[Haskell-cafe] Operator overloading

rodrigo.bonifacio rodrigo.bonifacio at uol.com.br
Thu Aug 9 14:19:51 EDT 2007


Hi all.

I want to overload the operator "^" for working instead of the following "+++" operator:

(+++) :: String -> [[String]] -> [[String]]
x +++ y = [ x:e | e<-y ]

How can I overload the "^" operator?

Thanks a lot.

Rodrigo.



More information about the Haskell-Cafe mailing list