comparison tests/type_classMod.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/type_classMod.lac@56db662ebcfd
children
comparison
equal deleted inserted replaced
243:2b9dfaffb008 244:71bafe66dbe1
1 structure M = struct
2 structure N = struct
3 class c t = t
4 val string_c : c string = "Hi"
5 end
6 end
7
8 val c : t :: Type -> M.N.c t -> t =
9 fn t :: Type => fn pf : M.N.c t => pf
10 val hi = c [string] _
11
12 val bool_c : M.N.c bool = True
13 val true = c [bool] _
14 val hi = c [string] _
15
16 con c = M.N.c
17 val int_c : c int = 0
18 val zero = c [int] _