snoyberg / monad-logger

A class of monads which can log messages
MIT License
36 stars 22 forks source link

Alternative instances for LoggingT, NoLoggingT, and WriterLoggingT #42

Closed thomasjm closed 1 year ago

thomasjm commented 1 year ago

I wanted to be able to use logging in a monad stack when using parser combinators like Control.Applicative.Combinators.

I'm not 100% sure the WriterLoggingT instance makes sense but the others seem to work fine.

snoyberg commented 1 year ago

I'm also not certain of the WriterLoggingT instance, I'd rather skip that for now. Can you update this PR to:

thomasjm commented 1 year ago

Done!

snoyberg commented 1 year ago

Awesome!