packages feed

monad-logger 0.3.28.3 → 0.3.28.4

raw patch · 4 files changed

+64/−135 lines, 4 filesdep ~base

Dependency ranges changed: base

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.3.28.4++* Move to a new repo+ ## 0.3.28.3  * Compat for older GHCs [#161](https://github.com/kazu-yamamoto/logger/pull/161)
− Control/Monad/Logger/CallStack.hs
@@ -1,86 +0,0 @@--- | Log functions using CallStack support in place of Template Haskell------ @since 0.3.19-module Control.Monad.Logger.CallStack (-    module Log-  , logDebug-  , logInfo-  , logWarn-  , logError-  , logOther-  , logDebugSH-  , logInfoSH-  , logWarnSH-  , logErrorSH-  , logOtherSH-  ) where--import           Control.Monad.Logger as Log hiding (logDebug, logDebugSH,-                                              logError, logErrorSH, logInfo,-                                              logInfoSH, logOther, logOtherSH,-                                              logWarn, logWarnSH)-import           Data.Text            (Text)-import qualified Data.Text            as Text-import           GHC.Stack---- | Logs a message with the location provided by--- an implicit 'CallStack'.------ @since 0.3.19-logDebug :: (HasCallStack, Log.MonadLogger m) => Text -> m ()-logDebug = Log.logDebugCS callStack---- | See 'logDebug'------ @since 0.3.19-logInfo :: (HasCallStack, Log.MonadLogger m) => Text -> m ()-logInfo = Log.logInfoCS callStack---- | See 'logDebug'------ @since 0.3.19-logWarn :: (HasCallStack, Log.MonadLogger m) => Text -> m ()-logWarn = Log.logWarnCS callStack---- | See 'logDebug'------ @since 0.3.19-logError :: (HasCallStack, Log.MonadLogger m) => Text -> m ()-logError = Log.logErrorCS callStack---- | See 'logDebug'------ @since 0.3.25-logOther :: (HasCallStack, Log.MonadLogger m) => Log.LogLevel -> Text -> m ()-logOther = Log.logOtherCS callStack---- | Logs a showable value with the location provided by--- an implicit 'CallStack'.------ @since 0.3.25-logDebugSH :: (HasCallStack, Log.MonadLogger m, Show a) => a -> m ()-logDebugSH = Log.logDebugCS callStack . Text.pack . show---- | See 'logDebugSH'------ @since 0.3.25-logInfoSH :: (HasCallStack, Log.MonadLogger m, Show a) => a -> m ()-logInfoSH = Log.logInfoCS callStack . Text.pack . show---- | See 'logDebugSH'------ @since 0.3.25-logWarnSH :: (HasCallStack, Log.MonadLogger m, Show a) => a -> m ()-logWarnSH = Log.logWarnCS callStack . Text.pack . show---- | See 'logDebugSH'------ @since 0.3.25-logErrorSH :: (HasCallStack, Log.MonadLogger m, Show a) => a -> m ()-logErrorSH = Log.logErrorCS callStack . Text.pack . show---- | See 'logDebugSH'------ @since 0.3.25-logOtherSH :: (HasCallStack, Log.MonadLogger m, Show a) => Log.LogLevel -> a -> m ()-logOtherSH lvl = Log.logOtherCS callStack lvl . Text.pack . show
README.md view
@@ -1,5 +1,8 @@ ## monad-logger +[![Build Status](https://travis-ci.org/snoyberg/monad-logger.svg?branch=master)](https://travis-ci.org/snoyberg/monad-logger)+[![Build status](https://ci.appveyor.com/api/projects/status/egsp4r31t54ak4i5/branch/master?svg=true)](https://ci.appveyor.com/project/snoyberg/monad-logger/branch/master)+ A monad transformer approach for logging.  This package provides Template Haskell functions for determining source code locations of messages.
monad-logger.cabal view
@@ -1,56 +1,64 @@-name:                monad-logger-version:             0.3.28.3-synopsis:            A class of monads which can log messages.-description:         Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/monad-logger>.-homepage:            https://github.com/kazu-yamamoto/logger-license:             MIT-license-file:        LICENSE-author:              Michael Snoyman-maintainer:          michael@snoyman.com-category:            System-build-type:          Simple-cabal-version:       >=1.8-extra-source-files:  ChangeLog.md-                     README.md+-- This file has been generated from package.yaml by hpack version 0.28.2.+--+-- see: https://github.com/sol/hpack+--+-- hash: a22562775171e4b22c79e95e4396956c585a91cf50879c2f62b47c590d45a83c +name:           monad-logger+version:        0.3.28.4+synopsis:       A class of monads which can log messages.+description:    See README and Haddocks at <https://www.stackage.org/package/monad-logger>+category:       System+homepage:       https://github.com/snoyberg/monad-logger#readme+bug-reports:    https://github.com/snoyberg/monad-logger/issues+author:         Michael Snoyman+maintainer:     michael@snoyman.com+license:        MIT+license-file:   LICENSE+build-type:     Simple+cabal-version:  >= 1.10+extra-source-files:+    ChangeLog.md+    README.md+ source-repository head-  type:              git-  location:          https://github.com/kazu-yamamoto/logger.git+  type: git+  location: https://github.com/snoyberg/monad-logger -flag template_haskell {-      Description: Enable Template Haskell support-      Default:     True-      Manual:      True-}+flag template_haskell+  description: Enable Template Haskell support+  manual: True+  default: True  library-  exposed-modules:     Control.Monad.Logger--  build-depends:       base                >= 4         && < 5-                     , transformers-                     , transformers-compat >= 0.3-                     , text-                     , stm-                     , stm-chans-                     , lifted-base-                     , resourcet           >= 1.1       && < 1.3-                     , conduit             >= 1.0       && < 1.4-                     , conduit-extra       >= 1.1       && < 1.4-                     , fast-logger         >= 2.1       && < 2.5-                     , transformers-base-                     , monad-control       >= 1.0-                     , monad-loops-                     , mtl-                     , bytestring          >= 0.10.2-                     , exceptions          >= 0.6       && < 0.11-                     , unliftio-core--  if impl(ghc >= 8.0.1)-     cpp-options: -DWITH_CALLSTACK-     exposed-modules:  Control.Monad.Logger.CallStack-+  exposed-modules:+      Control.Monad.Logger+  other-modules:+      Paths_monad_logger+  build-depends:+      base >=4.8 && <5+    , bytestring >=0.10.2+    , conduit >=1.0 && <1.4+    , conduit-extra >=1.1 && <1.4+    , exceptions >=0.6 && <0.11+    , fast-logger >=2.1 && <2.5+    , lifted-base+    , monad-control >=1.0+    , monad-loops+    , mtl+    , resourcet >=1.1 && <1.3+    , stm+    , stm-chans+    , text+    , transformers+    , transformers-base+    , transformers-compat >=0.3+    , unliftio-core+  if impl(ghc >=8.0.1)+    cpp-options: -DWITH_CALLSTACK   if flag(template_haskell)-     build-depends:     template-haskell-+    build-depends:+        template-haskell   if flag(template_haskell)-     cpp-options: -DWITH_TEMPLATE_HASKELL+    cpp-options: -DWITH_TEMPLATE_HASKELL+  default-language: Haskell2010