Logging infrastructure [Haskell]