[Haskell-cafe] Monoid wants a (++) equivalent

Mattias Bengtsson moonlite at dtek.chalmers.se
Mon Jul 6 08:37:24 EDT 2009


On Sun, 2009-07-05 at 22:30 +0200, Henning Thielemann wrote:
> 
> (?) is also undefined in Prelude.

Which i think is a good thing. 
I think it's quite nice to use (?) as an operator in higher order
functions. 
Eg. 
foldr _ z []     =  z
foldr (?) z (x:xs) =  x ? foldr (?) z xs



More information about the Haskell-Cafe mailing list