aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/mono_shake.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-02 10:51:41 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-02 10:51:41 -0400
commitb4398c433195b75d5e03d0774b1128fae14e9f41 (patch)
tree70e65dddc4c89b8cd1e13fce0d0c2ce21f50d67a /src/mono_shake.sml
parent8a494ef37c4f4f7e15bbf173f44f81d12a60b91b (diff)
'database' declaration threaded through compiler
Diffstat (limited to 'src/mono_shake.sml')
-rw-r--r--src/mono_shake.sml6
1 files changed, 4 insertions, 2 deletions
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