More pretty breaks in error msgs.
authornipkow
Fri, 09 Oct 1998 14:36:48 +0200
changeset 5634 7f61a83d4a01
parent 5633 fb7fa1b154c4
child 5635 b7d6b7f66131
More pretty breaks in error msgs.
src/Pure/type_infer.ML
--- a/src/Pure/type_infer.ML	Fri Oct 09 14:19:13 1998 +0200
+++ b/src/Pure/type_infer.ML	Fri Oct 09 14:36:48 1998 +0200
@@ -330,9 +330,9 @@
           "Type error in application: " ^ why,
           "",
           str_of (Pretty.block [Pretty.str "Operator:", Pretty.brk 2, prt t',
-            Pretty.str " :: ", prT T']),
+            Pretty.str " ::", Pretty.brk 1, prT T']),
           str_of (Pretty.block [Pretty.str "Operand:", Pretty.brk 3, prt u',
-            Pretty.str " :: ", prT U']), ""];
+            Pretty.str " ::", Pretty.brk 1, prT U']), ""];
       in raise TYPE (text, [T', U'], [t', u']) end;
 
     fun err_constraint msg bs t T U =
@@ -343,7 +343,7 @@
           "Cannot meet type constraint:",
           "",
           str_of (Pretty.block [Pretty.str "Term:", Pretty.brk 2, prt t',
-            Pretty.str " :: ", prT T']),
+            Pretty.str " ::", Pretty.brk 1, prT T']),
           str_of (Pretty.block [Pretty.str "Type:", Pretty.brk 2, prT U']), ""];
       in raise TYPE (text, [T', U'], [t']) end;