diff src/monoize.sml @ 807:61a1f5c5ae2c

Mutual datatypes through Effectize
author Adam Chlipala <adamc@hcoop.net>
date Sat, 16 May 2009 15:45:12 -0400
parents 152b61b2901a
children d8f58d488cfb
line wrap: on
line diff
--- a/src/monoize.sml	Sat May 16 15:22:05 2009 -0400
+++ b/src/monoize.sml	Sat May 16 15:45:12 2009 -0400
@@ -3045,7 +3045,8 @@
     in
         case d of
             L.DCon _ => NONE
-          | L.DDatatype (x, n, [], xncs) =>
+          | L.DDatatype _ => raise Fail "Monoize DDatatype"
+          (*| L.DDatatype (x, n, [], xncs) =>
             let
                 val env' = Env.declBinds env all
                 val d = (L'.DDatatype (x, n, map (fn (x, n, to) => (x, n, Option.map (monoType env') to)) xncs), loc)
@@ -3064,7 +3065,7 @@
                 NONE
             else
                 poly ()
-          | L.DDatatype _ => poly ()
+          | L.DDatatype _ => poly ()*)
           | L.DVal (x, n, t, e, s) =>
             let
                 val (e, fm) = monoExp (env, St.empty, fm) e