src/Pure/Isar/locale.ML
changeset 46870 11050f8e5f8e
parent 46862 ef45df55127d
child 46880 af8e516953ce
--- a/src/Pure/Isar/locale.ML	Sun Mar 11 14:09:01 2012 +0100
+++ b/src/Pure/Isar/locale.ML	Sun Mar 11 22:06:12 2012 +0100
@@ -291,7 +291,7 @@
 in
 
 (* Note that while identifiers always have the external (exported) view, activate_dep
-  is presented with the internal view. *)
+   is presented with the internal view. *)
 
 fun roundup thy activate_dep export (name, morph) (marked, input) =
   let
@@ -488,13 +488,9 @@
     else
       (Idents.get context, context)
       (* add new registrations with inherited mixins *)
-      |> roundup thy (add_reg thy export) export (name, morph)
-      |> snd
+      |> (snd o roundup thy (add_reg thy export) export (name, morph))
       (* add mixin *)
-      |>
-        (case mixin of
-          NONE => I
-        | SOME mixin => amend_registration (name, morph) mixin export)
+      |> (case mixin of NONE => I | SOME mixin => amend_registration (name, morph) mixin export)
       (* activate import hierarchy as far as not already active *)
       |> activate_facts (SOME export) (name, morph)
   end;