[Haskell-cafe] Constraints on <$> vs <$!>

Alexey Egorov electreg at list.ru
Mon Aug 10 21:17:23 UTC 2015


Hello haskellers,

I wonder why <$> and <$!> have different typeclass constraints?

(<$>) :: Functor f => (a -> b) -> f a -> f b
(<$!>) :: Monad m => (a -> b) -> m a -> m b


More information about the Haskell-Cafe mailing list