Semi-automatic instances (was Re: Re[6]: All Monads are Functors)

2006-08-28 Thread Jón Fairbairn
Jón Fairbairn [EMAIL PROTECTED] writes: John Meacham [EMAIL PROTECTED] writes: The problem is you can't have working code change its behavior because of a module import (other than failing), say, by bringing an instance into scope that wasn't before. There is no way to have a monad

Re: Re[6]: All Monads are Functors

2006-08-15 Thread Jon Fairbairn
On 2006-08-15 at 16:25CDT Taral wrote: On 8/15/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: in this case we lose class Functor a = Monad a base class declaration. so what will be the meaning of this: I don't see why that is the case. class Functor m = Monad m where return :: a - m