heavy-logger-instances 0.2.0.0 → 0.2.1.1
raw patch · 3 files changed
+33/−19 lines, 3 filesdep +unliftio-coredep ~template-haskellPVP ok
version bump matches the API change (PVP)
Dependencies added: unliftio-core
Dependency ranges changed: template-haskell
API changes (from Hackage documentation)
+ System.Log.Heavy.Instances.UnliftIO: instance Control.Monad.IO.Unlift.MonadUnliftIO m => Control.Monad.IO.Unlift.MonadUnliftIO (System.Log.Heavy.LoggingT.LoggingT m)
Files
- heavy-logger-instances.cabal +20/−18
- src/System/Log/Heavy/Instances/Binary.hs +1/−1
- src/System/Log/Heavy/Instances/UnliftIO.hs +12/−0
heavy-logger-instances.cabal view
@@ -1,35 +1,40 @@--- This file has been generated from package.yaml by hpack version 0.20.0.+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack------ hash: b28515ba9f195713b669f5ce46894d10ec2bcba100434c30c597ce440f1a858c name: heavy-logger-instances-version: 0.2.0.0+version: 0.2.1.1 synopsis: Orphan instances for data types in heavy-logger package description: This package contains orphan instances for data types in heavy-logger package for: * Binary type class (from binary package)- * MonadThrow, MonadCatch, MonadMask type classes (from exceptions package) for LoggingT transformer.+ * MonadThrow, MonadCatch, MonadMask type classes (from exceptions package)+ * MonadUnliftIO type class (from unliftio-core package) for LoggingT transformer. category: System homepage: https://github.com/portnov/heavy-logger#readme bug-reports: https://github.com/portnov/heavy-logger/issues author: Ilya Portnov maintainer: portnov84@rambler.ru-copyright: 2018 Ilya Portnov+copyright: 2018-2019 Ilya Portnov license: BSD3 license-file: LICENSE build-type: Simple-cabal-version: >= 1.10- extra-source-files:- ChangeLog.md README.md+ ChangeLog.md source-repository head type: git location: https://github.com/portnov/heavy-logger library+ exposed-modules:+ System.Log.Heavy.Instances.Binary+ System.Log.Heavy.Instances.Throw+ System.Log.Heavy.Instances.UnliftIO+ other-modules:+ Paths_heavy_logger_instances hs-source-dirs: src build-depends:@@ -39,19 +44,17 @@ , heavy-logger >=0.3.2.0 , hsyslog >=5.0.1 , mtl- , template-haskell >=2.12+ , template-haskell >=2.12.0.0 , text >=1.2 , text-format-heavy >=0.1.5.1- exposed-modules:- System.Log.Heavy.Instances.Binary- System.Log.Heavy.Instances.Throw- other-modules:- Paths_heavy_logger_instances+ , unliftio-core >=0.1.2.0 default-language: Haskell2010 test-suite binary-test type: exitcode-stdio-1.0 main-is: Binary.hs+ other-modules:+ Paths_heavy_logger_instances hs-source-dirs: tests build-depends:@@ -62,9 +65,8 @@ , heavy-logger-instances , hsyslog >=5.0.1 , mtl- , template-haskell >=2.12+ , template-haskell >=2.12.0.0 , text >=1.2 , text-format-heavy >=0.1.5.1- other-modules:- Paths_heavy_logger_instances+ , unliftio-core >=0.1.2.0 default-language: Haskell2010
src/System/Log/Heavy/Instances/Binary.hs view
@@ -72,7 +72,7 @@ putVariableNoformat :: Variable -> Put putVariableNoformat var = case formatAnyVar Nothing var of- Left err -> fail err+ Left err -> error err Right val -> put (B.toLazyText val) -- | Deserialize Variable with default format
+ src/System/Log/Heavy/Instances/UnliftIO.hs view
@@ -0,0 +1,12 @@+-- | This module contains the instance of Control.Monad.IO.Unlift.MonadUnliftIO+-- for LoggingT monad transformer defined in the heavy-logger package.+--+{-# LANGUAGE StandaloneDeriving #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+module System.Log.Heavy.Instances.UnliftIO where++import Control.Monad.IO.Unlift+import System.Log.Heavy++deriving instance MonadUnliftIO m => MonadUnliftIO (LoggingT m)+