On Monday, 2003-07-07, 09:46, CEST, Arun Kumar S Jadhav wrote: > Hi All, > How to define a new unary operator.
The only unary operator in Haskell is unary minus for negating numbers. There are no other predefined unary operators and it is not possible to define any. So unary minus is rather an exception in the Haskell language. But note that because of the way, function application is written, one can have notations similar to unary operators. For instance, there is not :: Bool -> Bool and not <expression> looks like applying an unary not operator. > [...] Wolfgang _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell