[Haskell] Question about Infix/Postfix Operators in Haskell

Ketil Malde ketil+haskell at ii.uib.no
Mon Oct 18 04:50:16 EDT 2004

Lest it all be explanation by example, the story basically goes like

Binary functions can be used in infix style by surrounding the
function name by backticks  (plus x y <=> x `plus` y)

Binary operators can be used in prefix style by enclosing it in
parentheses ( 4 + 3 <=> (+) 4 3 )

And just like you can declare new "normal" functions, you can declare
new infix operators by using non-alpha names. 

If I haven't seen further, it is by standing in the footprints of giants

More information about the Haskell mailing list