Created
July 24, 2020 20:24
-
-
Save donovancrichton/d0aa7aabeb83f918abc8037120c2222a to your computer and use it in GitHub Desktop.
@-Patterns forcing bound implicit types to 0 linearity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data MyList : Type -> Type where | |
Nil : {a : Type} -> MyList a | |
(::) : {a : Type} -> a -> MyList a -> MyList a | |
f : MyList a -> () | |
f [] = () | |
f (x :: xs) = ?normal | |
g : MyList a -> () | |
g [] = () | |
g l@(x :: xs) = ?no_linearity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment