aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/expl_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-07-29 13:16:21 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-07-29 13:16:21 -0400
commit4b511aa7ed5b36cb0a9adb898f881d6db0a89996 (patch)
tree116bd8e11b341df6999ea79432cb4386a48ca9fc /src/expl_print.sml
parent4cbbb0bb751dd9e9dae9d6b621e563ee5c7ae1b4 (diff)
Datatypes through corify
Diffstat (limited to 'src/expl_print.sml')
-rw-r--r--src/expl_print.sml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/expl_print.sml b/src/expl_print.sml
index 472d83ae..7d0bfebd 100644
--- a/src/expl_print.sml
+++ b/src/expl_print.sml
@@ -285,8 +285,10 @@ fun p_datatype env (x, n, cons) =
string "=",
space,
p_list_sep (box [space, string "|", space])
- (fn (x, _, NONE) => string x
- | (x, _, SOME t) => box [string x, space, string "of", space, p_con env t])
+ (fn (x, n, NONE) => if !debug then (string (x ^ "__" ^ Int.toString n))
+ else string x
+ | (x, _, SOME t) => box [if !debug then (string (x ^ "__" ^ Int.toString n))
+ else string x, space, string "of", space, p_con env t])
cons]
end