From 4b511aa7ed5b36cb0a9adb898f881d6db0a89996 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 29 Jul 2008 13:16:21 -0400 Subject: Datatypes through corify --- src/expl_print.sml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/expl_print.sml') 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 -- cgit v1.2.3