3 ms·
One example I found of an Applicative which is not a Monad is Const[K: Monoid] - <*> is just monadic plus, but you can't flatMap because there's no way to "get
by lmm 11y ago
One example I found of an Applicative which is not a Monad is Const[K: Monoid] - <*> is just monadic plus, but you can't flatMap because there's no way to "get a value out" of it.
This is a good reason to implement traverse in terms of Applicative rather than Monad - foldMap then becomes just a special case of traverse.