aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/mono_util.sig
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-12-20 14:19:21 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-12-20 14:19:21 -0500
commita08075494d9c16a349215fbcaefa3e1d14d2e0f9 (patch)
treeb3d519edc46498c2743994fbcf548dd1a2f3e66b /src/mono_util.sig
parente478b4d432d65b33613a601f71204fc0c656c3db (diff)
Start of JsComp
Diffstat (limited to 'src/mono_util.sig')
-rw-r--r--src/mono_util.sig11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mono_util.sig b/src/mono_util.sig
index 32a83855..2a96211a 100644
--- a/src/mono_util.sig
+++ b/src/mono_util.sig
@@ -71,6 +71,11 @@ structure Exp : sig
val exists : {typ : Mono.typ' -> bool,
exp : Mono.exp' -> bool} -> Mono.exp -> bool
+
+ val foldB : {typ : Mono.typ' * 'state -> 'state,
+ exp : 'context * Mono.exp' * 'state -> 'state,
+ bind : 'context * binder -> 'context}
+ -> 'context -> 'state -> Mono.exp -> 'state
end
structure Decl : sig
@@ -95,6 +100,12 @@ structure Decl : sig
exp : Mono.exp' -> Mono.exp',
decl : Mono.decl' -> Mono.decl'}
-> Mono.decl -> Mono.decl
+
+ val foldMapB : {typ : Mono.typ' * 'state -> Mono.typ' * 'state,
+ exp : 'context * Mono.exp' * 'state -> Mono.exp' * 'state,
+ decl : 'context * Mono.decl' * 'state -> Mono.decl' * 'state,
+ bind : 'context * binder -> 'context}
+ -> 'context -> 'state -> Mono.decl -> Mono.decl * 'state
end
structure File : sig