Hi,

On Mon, 18 Oct 2004 09:43:26 +0200, Peter Theissen <[EMAIL PROTECTED]> wrote:

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

Example:
Plus :: Int, Int -> Int

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

Times2:: x = x `Plus` x

Best regards!
 Georg

--

---- Georg Martius,  Tel: (+49 34297) 89434 ----
------- http://www.flexman.homeip.net ---------
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to