summaryrefslogtreecommitdiff
path: root/src/untangle.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2013-03-15 16:09:55 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2013-03-15 16:09:55 -0400
commit3d21914a4b831ee9c727dd4296e56961c1e4ea89 (patch)
tree23527da3ec268f47015698c307c3d19f5c35b594 /src/untangle.sml
parent76e5e75ab203b7a8b7701b9d3e496653bd213345 (diff)
Make Scriptcheck catch more script/message-passing uses, and move the phase earlier in compilation
Diffstat (limited to 'src/untangle.sml')
-rw-r--r--src/untangle.sml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/untangle.sml b/src/untangle.sml
index 373cfe18..bcb90ed6 100644
--- a/src/untangle.sml
+++ b/src/untangle.sml
@@ -43,7 +43,7 @@ fun exp (e, s) =
| _ => s
-fun untangle file =
+fun untangle (file : file) =
let
fun decl (dAll as (d, loc)) =
case d of
@@ -208,7 +208,7 @@ fun untangle file =
end
| _ => [dAll]
in
- ListUtil.mapConcat decl file
+ (ListUtil.mapConcat decl (#1 file), #2 file)
end
end