aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/mono_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-09 19:23:31 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-09 19:23:31 -0400
commit0186af3d727b1b92e7b63925500a21d5e412d7b4 (patch)
tree6f836a2c222f87f521569b4110e0422d4291d37a /src/mono_util.sml
parent3232399b3893f93678a2d1a519bd0d4011275dba (diff)
'Option' datatype encoding
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r--src/mono_util.sml8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml
index 3c76e029..50927ac9 100644
--- a/src/mono_util.sml
+++ b/src/mono_util.sml
@@ -29,12 +29,6 @@ structure MonoUtil :> MONO_UTIL = struct
open Mono
-fun classifyDatatype xncs =
- if List.all (fn (_, _, NONE) => true | _ => false) xncs then
- Enum
- else
- Default
-
structure S = Search
structure Typ = struct
@@ -354,7 +348,7 @@ fun mapfoldB (all as {bind, ...}) =
DDatatype (x, n, xncs) =>
let
val ctx = bind (ctx, Datatype (x, n, xncs))
- val t = (TDatatype (n, ref (classifyDatatype xncs, xncs)), #2 d')
+ val t = (TDatatype (n, ref (ElabUtil.classifyDatatype xncs, xncs)), #2 d')
in
foldl (fn ((x, n, to), ctx) =>
let