[Haskell-cafe] Re: Functors [Comments from OCaml Hacker Brian Hurt]
Heinrich Apfelmus
apfelmus at quantentunnel.de
Sun Jan 18 04:41:25 EST 2009
Andrew Coppin wrote:
>> instance (Monad m) => Functor m where
>> fmap f ma = do a <- ma; return (f a)
>>
>
> While that's quite interesting from a mathematical point of view, how is
> this "useful" for programming purposes?
Surely, you agree that liftM is "useful"? Because that's the same thing.
Regards,
apfelmus
--
http://apfelmus.nfshost.com
More information about the Haskell-Cafe
mailing list