kazu-yamamoto/logger — pull request #11 by jwiegley (2013-07-26 22:11:02+00:00)
Title: Add non-TH variants of the various logging functions

Recently I ran into some difficulties with a project on Linux, where I had to build an FFI wrapper around a shared library that needed to link back to a static object in my project. This was simply not possible to do on Linux (after about 8 hours of trying) -- although it worked just fine on the Mac.

The problem lay in how template Haskell tries to dynamically load objects during compilation. The answer was finally to remove template Haskell for my program. However, the core library uses `MonadLogger`, and so I wanted to use the monad-logger framework in the code that couldn't use template Haskell. To do that, I needed non-template Haskell variance of the various logging functions.

I figure that for people who don't care about the source location of their messages (such as me in this case), these functions might be valuable for them as well.