[Haskell-cafe] Re: Overriding a Prelude function?

Heinrich Apfelmus apfelmus at quantentunnel.de
Thu Apr 23 05:15:39 EDT 2009


Ross Mellgren wrote:
> True enough -- if you really want to redefine the monadic operator, you
> have to use
> 
> {-# LANGUAGE NoImplicitPrelude #-}
> 
> import Prelude hiding ((>>), (>>=), return)
> 
> or something like it, although Michael's example didn't appear to be
> going quite that far.

Or just make it an instance of  Monad . :D


Regards,
apfelmus

--
http://apfelmus.nfshost.com



More information about the Haskell-Cafe mailing list