summaryrefslogtreecommitdiff
path: root/src/mono_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-03 17:57:47 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-03 17:57:47 -0400
commit3e65e1558de55a1a47a62690b48159d92a4ed072 (patch)
tree57096304282d20c6a741d75fbeeedcbba1275a81 /src/mono_print.sml
parent289b94cdcffed0874ac10b38d69366d8a43057cf (diff)
FFI datatypes
Diffstat (limited to 'src/mono_print.sml')
-rw-r--r--src/mono_print.sml18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mono_print.sml b/src/mono_print.sml
index e069c1ec..ea8458eb 100644
--- a/src/mono_print.sml
+++ b/src/mono_print.sml
@@ -80,11 +80,11 @@ fun p_con_named env n =
fun p_patCon env pc =
case pc of
PConVar n => p_con_named env n
- | PConFfi (m, x) => box [string "FFI(",
- string m,
- string ".",
- string x,
- string ")"]
+ | PConFfi {mod = m, con, ...} => box [string "FFI(",
+ string m,
+ string ".",
+ string con,
+ string ")"]
fun p_pat' par env (p, _) =
case p of
@@ -117,10 +117,10 @@ fun p_exp' par env (e, _) =
string (#1 (E.lookupERel env n)))
handle E.UnboundRel _ => string ("UNBOUND_" ^ Int.toString n))
| ENamed n => p_enamed env n
- | ECon (n, NONE) => p_con_named env n
- | ECon (n, SOME e) => parenIf par (box [p_con_named env n,
- space,
- p_exp' true env e])
+ | ECon (pc, NONE) => p_patCon env pc
+ | ECon (pc, SOME e) => parenIf par (box [p_patCon env pc,
+ space,
+ p_exp' true env e])
| EFfi (m, x) => box [string "FFI(", string m, string ".", string x, string ")"]
| EFfiApp (m, x, es) => box [string "FFI(",