Created
March 20, 2010 10:43
-
-
Save sjoerdvisscher/338607 to your computer and use it in GitHub Desktop.
Type level Fin
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 Z = Z | |
newtype S n = S n | |
data family Fin n a b :: * | |
data instance Fin (S n) n Z = FZ | |
newtype instance Fin (S n) a (S b) = FS (Fin (S n) (S a) b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment