Mercurial > urweb
diff src/mono_shake.sml @ 271:42dfb0d61cf0
'database' declaration threaded through compiler
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 02 Sep 2008 10:51:41 -0400 |
parents | 890a61991263 |
children | 09c66a30ef32 |
line wrap: on
line diff
--- a/src/mono_shake.sml Tue Sep 02 10:31:16 2008 -0400 +++ b/src/mono_shake.sml Tue Sep 02 10:51:41 2008 -0400 @@ -53,7 +53,8 @@ (cdef, IM.insert (edef, n, (t, e))) | ((DValRec vis, _), (cdef, edef)) => (cdef, foldl (fn ((_, n, t, e, _), edef) => IM.insert (edef, n, (t, e))) edef vis) - | ((DExport _, _), acc) => acc) + | ((DExport _, _), acc) => acc + | ((DDatabase _, _), acc) => acc) (IM.empty, IM.empty) file fun typ (c, s) = @@ -106,7 +107,8 @@ List.filter (fn (DDatatype (_, n, _), _) => IS.member (#con s, n) | (DVal (_, n, _, _, _), _) => IS.member (#exp s, n) | (DValRec vis, _) => List.exists (fn (_, n, _, _, _) => IS.member (#exp s, n)) vis - | (DExport _, _) => true) file + | (DExport _, _) => true + | (DDatabase _, _) => true) file end end