comparison src/elab_util.sml @ 188:8e9f97508f0d

Datatype representation optimization
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Aug 2008 19:49:21 -0400
parents d11754ffe252
children aa54250f58ac
comparison
equal deleted inserted replaced
187:fb6ed259f5bd 188:8e9f97508f0d
26 *) 26 *)
27 27
28 structure ElabUtil :> ELAB_UTIL = struct 28 structure ElabUtil :> ELAB_UTIL = struct
29 29
30 open Elab 30 open Elab
31
32 fun classifyDatatype xncs =
33 if List.all (fn (_, _, NONE) => true | _ => false) xncs then
34 Enum
35 else
36 Default
31 37
32 structure S = Search 38 structure S = Search
33 39
34 structure Kind = struct 40 structure Kind = struct
35 41