infix syntax for generated code for composition
authorhaftmann
Mon, 18 Dec 2006 08:21:26 +0100
changeset 21870 c701cdacf69b
parent 21869 c5e79547bf54
child 21871 9ce66839d9f1
infix syntax for generated code for composition
src/HOL/Fun.thy
--- a/src/HOL/Fun.thy	Mon Dec 18 08:21:25 2006 +0100
+++ b/src/HOL/Fun.thy	Mon Dec 18 08:21:26 2006 +0100
@@ -7,7 +7,7 @@
 header {* Notions about functions *}
 
 theory Fun
-imports Set
+imports Set Code_Generator
 begin
 
 constdefs
@@ -474,6 +474,13 @@
 instance "fun" :: (type, ord) ord ..
 
 
+subsection {* Code generator setup *}
+
+code_const "op \<circ>"
+  (SML infixl 5 "o")
+  (Haskell infixr 9 ".")
+
+
 subsection {* ML legacy bindings *} 
 
 text{*The ML section includes some compatibility bindings and a simproc