diff options
Diffstat (limited to 'src/elab_print.sml')
-rw-r--r-- | src/elab_print.sml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/elab_print.sml b/src/elab_print.sml index 81cbae69..e59fb9f7 100644 --- a/src/elab_print.sml +++ b/src/elab_print.sml @@ -274,6 +274,27 @@ fun p_exp' par env (e, _) = box [p_exp' true env e, string ".", p_con' true env c] + | ECut (e, c, {field, rest}) => + parenIf par (if !debug then + box [p_exp' true env e, + space, + string "--", + space, + p_con' true env c, + space, + string "[", + p_con env field, + space, + string " in ", + space, + p_con env rest, + string "]"] + else + box [p_exp' true env e, + space, + string "--", + space, + p_con' true env c]) | EFold _ => string "fold" | EError => string "<ERROR>" |