Skip to content

Instantly share code, notes, and snippets.

@kuribas
Created January 31, 2022 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuribas/c4d7fd7ce7ef963f7c02a266828095f3 to your computer and use it in GitHub Desktop.
Save kuribas/c4d7fd7ce7ef963f7c02a266828095f3 to your computer and use it in GitHub Desktop.
parametrised record
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