Mercurial > urweb
comparison tests/cargs.ur @ 244:71bafe66dbe1
Laconic -> Ur
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 31 Aug 2008 08:32:18 -0400 |
parents | tests/cargs.lac@7036d29574f2 |
children |
comparison
equal
deleted
inserted
replaced
243:2b9dfaffb008 | 244:71bafe66dbe1 |
---|---|
1 con id = fn t :: Type => t | |
2 con id2 = fn (t :: Type) => id t | |
3 con id3 = fn t => id2 t | |
4 | |
5 con pair = fn (t :: Type) (u :: Type) => (t, u) | |
6 con pair2 = fn t u => pair t u | |
7 con pair3 = fn t (u :: Type) => pair2 t u | |
8 | |
9 con id4 (t :: Type) = t | |
10 con id5 (t :: Type) :: Type = id4 t | |
11 con id6 t :: Type = id5 t | |
12 | |
13 con pair4 t (u :: Type) = pair3 t u | |
14 con pair5 t (u :: Type) :: (Type * Type) = pair4 t u |