@@ -0,0 +1,26 @@
1+module main
2+
3+record Foo : Nat -> Set where
4+ MkFoo : (name : String) ->
5+ (things : Vect a n) ->
6+ (more_things : Vect b m) ->
7+ Foo n
8+
9+record Person : Set where
10+ MkPerson : (name : String) -> (age : Int) -> Person
11+
12+testFoo : Foo 3
13+testFoo = MkFoo "name" [1,2,3] [4,5,6,7]
14+
15+person : Person
16+person = MkPerson "Fred" 30
17+
18+main : IO ()
19+main = do let x = record { name = "foo",
20+ more_things = reverse ["a","b"] } testFoo
21+ print $ name x
22+ print $ name person
23+ print $ things x
24+ print $ more_things x
25+ print $ age (record { age = 25 } person)
26+