From 3e59b823392701f538f972d689d04b0182696e51 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 9 Aug 2008 16:48:32 -0400 Subject: Lists all the way through --- src/mono_env.sml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mono_env.sml') diff --git a/src/mono_env.sml b/src/mono_env.sml index 3beced1c..60b22642 100644 --- a/src/mono_env.sml +++ b/src/mono_env.sml @@ -98,7 +98,7 @@ fun declBinds env (d, loc) = DDatatype (x, n, xncs) => let val env = pushDatatype env x n xncs - val dt = (TDatatype (MonoUtil.classifyDatatype xncs, n, xncs), loc) + val dt = (TDatatype (n, ref (MonoUtil.classifyDatatype xncs, xncs)), loc) in foldl (fn ((x', n', NONE), env) => pushENamed env x' n' dt NONE "" | ((x', n', SOME t), env) => pushENamed env x' n' (TFun (t, dt), loc) NONE "") -- cgit v1.2.3