Created
January 31, 2022 08:59
-
-
Save kuribas/c4d7fd7ce7ef963f7c02a266828095f3 to your computer and use it in GitHub Desktop.
parametrised record
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
record Foo (f : Type -> Type) where | |
constructor MkFoo | |
baz : f Int | |
bar : f String | |
Identity : Type -> Type | |
Identity x = x | |
foo2 : Foo Identity | |
foo2 = MkFoo { baz = 9.3 | |
, bar = "foo" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment