monad-logger 0.3.0.1 → 0.3.1
raw patch · 2 files changed
+6/−1 lines, 2 files
Files
- Control/Monad/Logger.hs +5/−0
- monad-logger.cabal +1/−1
Control/Monad/Logger.hs view
@@ -39,6 +39,8 @@ , logWarnS , logErrorS , logOtherS+ -- * TH util+ , liftLoc ) where import Language.Haskell.TH.Syntax (Lift (lift), Q, Exp, Loc (..), qLocation)@@ -154,6 +156,9 @@ logOther :: Text -> Q Exp logOther = logTH . LevelOther +-- | Lift a location into an Exp.+--+-- Since 0.3.1 liftLoc :: Loc -> Q Exp liftLoc (Loc a b c (d1, d2) (e1, e2)) = [|Loc $(lift a)
monad-logger.cabal view
@@ -1,5 +1,5 @@ name: monad-logger-version: 0.3.0.1+version: 0.3.1 synopsis: A class of monads which can log messages. description: This package uses template-haskell for determining source code locations of messages. homepage: https://github.com/kazu-yamamoto/logger