4 ms·
In Haskell, <∗> is implemented in "Applicative", not "Functor". So a Functor instance is not enough. <$> is from Functor, however.
by jrockway 17y ago
In Haskell, <∗> is implemented in "Applicative", not "Functor". So a Functor instance is not enough. <$> is from Functor, however.
- jmillikin 17y agoOh, that's right -- I forgot applicatives are a separate class. Regardless, the concept of "lifting" pure functions is separate from monads, which exist to enforce sequencing.