merged
authorhaftmann
Fri, 30 Apr 2010 17:53:49 +0200
changeset 36578 663bb2bc1e72
parent 36575 6e8a1c5eb0a8 (current diff)
parent 36577 f412bc3f2454 (diff)
child 36579 04dd306fdb3c
child 36608 16736dde54c0
merged
--- 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\""];