[Haskell-cafe] Stacking monads
andrewcoppin at btinternet.com
Thu Oct 2 16:40:13 EDT 2008
Robert Greayer wrote:
> --- On Thu, 10/2/08, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
>> I'm lost...
>> (What does liftM have to do with fmap?)
> They're (effectively) the same function.
> liftM :: (Monad m) => (a -> b) -> m a -> m b
> fmap :: (Functor f) => (a -> b) -> f a -> f b
Hmm. Interesting. I hadn't thought of it like that...
More information about the Haskell-Cafe