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

Ross Mellgren rmm-haskell at z.odi.ac
Thu Apr 23 09:58:27 EDT 2009


Hahah yeah of course, I left it implicit that you'd only do this if  
you were changing the types (e.g. parameterized monads or what have you)

-Ross

On Apr 23, 2009, at 5:15 AM, Heinrich Apfelmus wrote:

> 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
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list