[Haskell-beginners] can I use "pure" all the time instead of "return" now?

Marcin Mrotek marcin.jan.mrotek at gmail.com
Sun May 15 08:58:46 UTC 2016


Hello,

> If/when Applicative Do drops, would using 'return' force monad semantics on a do-block that could otherwise be
> applicative? That's the only thing that comes to mind. Otherwise yeah, I've been using 'pure' exclusively for a while.

 I think so, at least until the "Monad of no return" proposal
(https://ghc.haskell.org/trac/ghc/wiki/Proposal/MonadOfNoReturn)
lands.

Best regards,
Marcin Mrotek


More information about the Beginners mailing list