You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Note that even though Monad depends on Apply, the implementation of apply can depend on Monad. This flexibility may be unexpected by readers.
3. Change
Try writing userCity using only pure and apply
to
Try writing userCity using only what's available from Applicative (map, apply, pure) and without the additional Bind capabilities of Monad. This means no using bind or <- in do notation.
The text was updated successfully, but these errors were encountered:
This section could be made more beginner-friendly:
https://book.purescript.org/chapter8.html#monads-and-applicatives
Inspired by #184
Improvement ideas:
1. A concrete example of using
ap
for anApply
instance.Replace
F
with another typehttps://pursuit.purescript.org/packages/purescript-prelude/4.1.1/docs/Control.Monad#v:ap
2. Note that even though
Monad
depends onApply
, the implementation ofapply
can depend onMonad
. This flexibility may be unexpected by readers.3. Change
to
The text was updated successfully, but these errors were encountered: