--- a/src/Tools/Code/code_haskell.ML Fri Apr 30 14:58:21 2010 +0200
+++ b/src/Tools/Code/code_haskell.ML Fri Apr 30 17:53:49 2010 +0200
@@ -109,10 +109,9 @@
let
val (p, vars') = print_bind tyvars some_thm NOBR pat vars;
in semicolon [p, str "->", print_term tyvars some_thm vars' NOBR body] end;
- in brackify_block fxy
- (concat [str "case", print_term tyvars some_thm vars NOBR t, str "of", str "{"])
+ in Pretty.block_enclose
+ (concat [str "(case", print_term tyvars some_thm vars NOBR t, str "of", str "{"], str "})")
(map print_select clauses)
- (str "}")
end
| print_case tyvars some_thm vars fxy ((_, []), _) =
(brackify fxy o Pretty.breaks o map str) ["error", "\"empty case\""];