[Haskell] Question about Infix/Postfix Operators in Haskell

Peter Theissen peter at tsunamis.de
Mon Oct 18 03:43:26 EDT 2004


Hi,
is there any possibility of defining Infix-/Postfixoperators
in Haskell?

Example:
Plus :: Int, Int -> Int
Plus x y = x + y

an now I´m want to use Plus in another function as an infix:

Times2:: x = x Plus x

Is this possible anyway?

If this feature doesnt exist, could you please
give some reasons for this?

with kind regards, Peter Theissen




More information about the Haskell mailing list