From b4398c433195b75d5e03d0774b1128fae14e9f41 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 2 Sep 2008 10:51:41 -0400 Subject: 'database' declaration threaded through compiler --- src/mono_shake.sml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mono_shake.sml') diff --git a/src/mono_shake.sml b/src/mono_shake.sml index e694c0dd..8276b4d6 100644 --- a/src/mono_shake.sml +++ b/src/mono_shake.sml @@ -53,7 +53,8 @@ fun shake file = (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 @@ fun shake file = 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 -- cgit v1.2.3