[Haskell-cafe] Combining LoggingT with another library's monad
Joe Fiorini
joe at joefiorini.com
Wed Sep 24 17:09:41 UTC 2014
Thanks, good to know I was on the right track. This gets me a new error I
can work on now :)
On Wednesday, September 24, 2014 11:14:44 AM UTC-4, Tom Ellis wrote:
>
> 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.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskel... at haskell.org <javascript:>
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140924/b670e018/attachment-0001.html>
More information about the Haskell-Cafe
mailing list