src/HOL/Library/Phantom_Type.thy
changeset 52147 9943f8067f11
parent 52143 36ffe23b25f8
child 58249 180f1b3508ed
--- a/src/HOL/Library/Phantom_Type.thy	Sat May 25 17:13:34 2013 +0200
+++ b/src/HOL/Library/Phantom_Type.thy	Sat May 25 17:40:44 2013 +0200
@@ -29,10 +29,10 @@
 
 typed_print_translation {*
   let
-    fun phantom_tr' ctxt 
-        (Type (@{type_name fun}, [_, Type (@{type_name phantom}, [T, _])])) ts =
-          list_comb (Syntax.const @{syntax_const "_Phantom"} $ Syntax_Phases.term_of_typ ctxt T, ts)
-    | phantom_tr' _ _ _ = raise Match;
+    fun phantom_tr' ctxt (Type (@{type_name fun}, [_, Type (@{type_name phantom}, [T, _])])) ts =
+          list_comb
+            (Syntax.const @{syntax_const "_Phantom"} $ Syntax_Phases.term_of_typ ctxt T, ts)
+      | phantom_tr' _ _ _ = raise Match;
   in [(@{const_syntax phantom}, phantom_tr')] end
 *}