summaryrefslogtreecommitdiff
path: root/src/mono_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-07-13 20:07:10 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-07-13 20:07:10 -0400
commit811a3831805bf7a87ed3a64156f4ac6f6246edb9 (patch)
treea2bc2022ac4e0412a787a526135aafc99db66998 /src/mono_util.sml
parent97cc749872a8baf53bb34ef1b536b82f6aa7f1c7 (diff)
Passing an argument to a web function
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r--src/mono_util.sml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml
index 0d5211cf..bb4e20b2 100644
--- a/src/mono_util.sml
+++ b/src/mono_util.sml
@@ -264,7 +264,10 @@ fun mapfoldB {typ = fc, exp = fe, decl = fd, bind} =
S.map2 (mfe ctx e,
fn e' =>
(DVal (x, n, t', e', s), loc)))
- | DExport _ => S.return2 dAll
+ | DExport (s, n, ts) =>
+ S.map2 (ListUtil.mapfold mft ts,
+ fn ts' =>
+ (DExport (s, n, ts'), loc))
in
mfd
end