tuned infix syntax
authorhaftmann
Wed, 14 Jul 2010 12:27:44 +0200
changeset 37817 71e5546b1965
parent 37816 e550439d4422
child 37818 dd65033fed78
tuned infix syntax
src/HOL/Library/State_Monad.thy
--- a/src/HOL/Library/State_Monad.thy	Wed Jul 14 12:27:44 2010 +0200
+++ b/src/HOL/Library/State_Monad.thy	Wed Jul 14 12:27:44 2010 +0200
@@ -56,9 +56,7 @@
 *}
 
 notation fcomp (infixl "\<circ>>" 60)
-notation (xsymbols) fcomp (infixl "\<circ>>" 60)
-notation scomp (infixl "o->" 60)
-notation (xsymbols) scomp (infixl "\<circ>\<rightarrow>" 60)
+notation scomp (infixl "\<circ>\<rightarrow>" 60)
 
 abbreviation (input)
   "return \<equiv> Pair"
@@ -112,10 +110,14 @@
 
 lemmas monad_collapse = monad_simp fcomp_apply scomp_apply split_beta
 
+
+subsection {* Do-syntax *}
+
 setup {*
-  Adhoc_Overloading.add_variant @{const_name bindM} @{const_name scomp}
+  Adhoc_Overloading.add_variant @{const_name bind} @{const_name scomp}
 *}
 
+
 text {*
   For an example, see HOL/Extraction/Higman.thy.
 *}