18 Oct
2004
18 Oct
'04
7:51 a.m.
Hi, On Mon, 18 Oct 2004 09:43:26 +0200, Peter Theissen <peter@tsunamis.de> 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 ---------