packages feed

monad-logger-extras 0.1.1.0 → 0.1.1.1

raw patch · 4 files changed

+9/−4 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for monad-logger-extras +## 0.1.1.1++* Fix haddocks formatting+* Fix Alternative orphan instance+ ## 0.1.1.0  * Add `colorize` functions to apply colors to log messages.
monad-logger-extras.cabal view
@@ -1,6 +1,6 @@ cabal-version:      >=1.10 name:               monad-logger-extras-version:            0.1.1.0+version:            0.1.1.1 synopsis:   Utilities for composing loggers, coloring output, plus a few orphan instances. 
src/Control/Monad/Logger/Extras.hs view
@@ -2,7 +2,7 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-| Description: Composable logging actions for monad-logger, with a few predefined loggers.-|-}+-} module Control.Monad.Logger.Extras where  import Control.Monad.Logger
src/Control/Monad/Logger/Orphans.hs view
@@ -1,7 +1,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Description: Orphan instances for monad-logger's LoggingT-|-}+-} module Control.Monad.Logger.Orphans where  import Control.Monad.Logger@@ -12,6 +12,6 @@  instance (Monad m, Alternative m) => Alternative (LoggingT m) where   empty = lift empty-  a <|> b = LoggingT $ \r -> let LoggingT f' = a <|> b in f' r+  a <|> b = LoggingT $ \f -> runLoggingT a f <|> runLoggingT b f  instance (Monad m, Alternative m) => MonadPlus (LoggingT m)