[Haskell-cafe] instance Applicative f => Applicative (StateT s f)

Martijn van Steenbergen martijn at van.steenbergen.nl
Fri Dec 5 10:35:51 EST 2008


Hello all,

How do I implement the following?

   instance Applicative f => Applicative (StateT s f)

The implementation of pure is trivial, but I can't figure out an 
implementation for <*>. Is it possible at all, or do I need to require f 
to be a monad?

Thanks in advance,

Martijn.


More information about the Haskell-Cafe mailing list