[Haskell-cafe] State monad is missing Applicative instance

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Fri Mar 13 04:14:07 EDT 2009


Am Freitag, 13. März 2009 05:09 schrieb Denis Bueno:
> This works because every monad induces an Applicative instance in a
> way I've ingested just enough wine to forget. =]

pure = return

(<*>) = ap

Best wishes,
Wolfgang


More information about the Haskell-Cafe mailing list