Import Debian changes 20180207-1
[hcoop/debian/mlton.git] / mlton / atoms / prim-cons.fun
1 (* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
4 *
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
7 *)
8
9 functor PrimCons (S: PRIM_CONS_STRUCTS): PRIM_CONS =
10 struct
11
12 open S
13
14 type con = t
15
16 val cons = fromString "::"
17 val falsee = fromString "false"
18 val nill = fromString "nil"
19 val reff = fromString "ref"
20 val truee = fromString "true"
21
22 (* exception constructors *)
23 val bind = fromString "Bind"
24 val match = fromString "Match"
25 val overflow = fromString "Overflow"
26
27 end