Mercurial > urweb
annotate tests/datatype.lac @ 224:cb8a68964ebb
GROUP BY added to query type, with trivial parsing, for now
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 21 Aug 2008 12:54:09 -0400 |
parents | 34ccd7d2bea8 |
children |
rev | line source |
---|---|
adamc@156 | 1 datatype t = A | B |
adamc@156 | 2 |
adamc@156 | 3 val a = A |
adamc@156 | 4 val b = B |
adamc@156 | 5 |
adamc@156 | 6 datatype foo = C of t |
adamc@156 | 7 |
adamc@156 | 8 val c = C a |
adamc@156 | 9 |
adamc@156 | 10 datatype list = Nil | Cons of {Head : int, Tail : list} |
adamc@156 | 11 |
adamc@156 | 12 val nil = Nil |
adamc@156 | 13 val l1 = Cons {Head = 0, Tail = nil} |