[Haskell-cafe] Combining LoggingT with another library's monad
Tom Ellis
tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Wed Sep 24 15:14:27 UTC 2014
On Wed, Sep 24, 2014 at 04:08:08PM +0100, Tom Ellis wrote:
> On Wed, Sep 24, 2014 at 10:50:05AM -0400, Joe Fiorini wrote:
> > I added LoggingT to the top of my monad stack, but ran into lots of
> > problems and moved the LoggingT type to one of my route handlers (you
> > can see my latest attempt & the compiler error here
> > https://gist.github.com/joefiorini/9e89bdf86e28e6b98bf0).
>
> Don't you want `lift` instead of `return` in `handleHome`?
`lift` is in `Control.Monad.Trans.Class`, by the way.
More information about the Haskell-Cafe
mailing list