summaryrefslogtreecommitdiff
path: root/src/mono_shake.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-12-15 10:19:05 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-12-15 10:19:05 -0500
commit6179a09d47c5af4db1ac41d00b8cb7ec36741c3e (patch)
tree0912963011416a0f1132c07d44c3eca8b6545d54 /src/mono_shake.sml
parent1589307fcb887ec55b5baea7445747b479a665d2 (diff)
Convert to task syntax
Diffstat (limited to 'src/mono_shake.sml')
-rw-r--r--src/mono_shake.sml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mono_shake.sml b/src/mono_shake.sml
index fc46cf96..048cc190 100644
--- a/src/mono_shake.sml
+++ b/src/mono_shake.sml
@@ -57,7 +57,7 @@ fun shake file =
(fn ((DExport (_, _, n, _, _), _), (page_cs, page_es)) => (page_cs, IS.add (page_es, n))
| ((DDatabase {expunge = n1, initialize = n2, ...}, _), (page_cs, page_es)) =>
(page_cs, IS.addList (page_es, [n1, n2]))
- | ((DInitializer e, _), st) => usedVars st e
+ | ((DTask (e1, e2), _), st) => usedVars (usedVars st e2) e1
| (_, st) => st) (IS.empty, IS.empty) file
val (cdef, edef) = foldl (fn ((DDatatype dts, _), (cdef, edef)) =>
@@ -74,7 +74,7 @@ fun shake file =
| ((DJavaScript _, _), acc) => acc
| ((DCookie _, _), acc) => acc
| ((DStyle _, _), acc) => acc
- | ((DInitializer _, _), acc) => acc)
+ | ((DTask _, _), acc) => acc)
(IM.empty, IM.empty) file
fun typ (c, s) =
@@ -141,7 +141,7 @@ fun shake file =
| (DJavaScript _, _) => true
| (DCookie _, _) => true
| (DStyle _, _) => true
- | (DInitializer _, _) => true) file
+ | (DTask _, _) => true) file
end
end