comparison tests/datatype.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/datatype.lac@34ccd7d2bea8
children f387d12193ba
comparison
equal deleted inserted replaced
243:2b9dfaffb008 244:71bafe66dbe1
1 datatype t = A | B
2
3 val a = A
4 val b = B
5
6 datatype foo = C of t
7
8 val c = C a
9
10 datatype list = Nil | Cons of {Head : int, Tail : list}
11
12 val nil = Nil
13 val l1 = Cons {Head = 0, Tail = nil}