diff options
Diffstat (limited to 'src/expl_print.sml')
-rw-r--r-- | src/expl_print.sml | 6 |
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 |