aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/mono_shake.sml
diff options
context:
space:
mode:
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