Import Upstream version 20180207
[hcoop/debian/mlton.git] / mlton / atoms / cases.fun
1 (* Copyright (C) 1999-2005 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 Cases (S: CASES_STRUCTS): CASES =
10 struct
11
12 open S
13
14 datatype 'a t =
15 Char of (char * 'a) vector
16 | Con of (con * 'a) vector
17 | Int of (IntInf.t * 'a) vector
18 | Word of (word * 'a) vector
19
20
21
22 end