[Haskell] Question about Infix/Postfix Operators in Haskell

Janis Voigtlaender voigt at tcs.inf.tu-dresden.de
Mon Oct 18 04:13:03 EDT 2004


One easy way:

 > plus :: Int -> Int -> Int
 > plus x y = x + y

 > times2 x = x `plus` x

-- 
Janis Voigtlaender
http://wwwtcs.inf.tu-dresden.de/~voigt/
mailto:voigt at tcs.inf.tu-dresden.de


More information about the Haskell mailing list