packages feed

fast-logger 3.0.2 → 3.0.3

raw patch · 3 files changed

+19/−4 lines, 3 filesdep ~basedep ~bytestringdep ~directoryPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, bytestring, directory, unix-compat

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,3 +1,14 @@+## 3.0.3++* Dropping support of GHC 7.x.+* Add `ToLogStr` instance for `ShortByteString`. Add lower bound on+  `bytestring` dependency to ensure that `bytestring` exports+  `Data.ByteString.Short`.++## 3.0.2++* Fixing documentation.+ ## 3.0.1  * Creating the `Internal` module.
System/Log/FastLogger/LogStr.hs view
@@ -17,6 +17,7 @@ import qualified Data.ByteString.Builder as B import qualified Data.ByteString.Char8 as S8 import qualified Data.ByteString.Lazy as BL+import qualified Data.ByteString.Short as SBS #if MIN_VERSION_base(4,9,0) import qualified Data.Semigroup as Semi (Semigroup(..)) #endif@@ -78,6 +79,9 @@ instance ToLogStr Builder where     {-# INLINE toLogStr #-}     toLogStr x = let b = B.toLazyByteString x in LogStr (fromIntegral (BL.length b)) (B.lazyByteString b)+instance ToLogStr SBS.ShortByteString where+    {-# INLINE toLogStr #-}+    toLogStr b = LogStr (SBS.length b) (B.shortByteString b) instance ToLogStr String where     {-# INLINE toLogStr #-}     toLogStr = toLogStr . TL.pack
fast-logger.cabal view
@@ -1,5 +1,5 @@ Name:                   fast-logger-Version:                3.0.2+Version:                3.0.3 Author:                 Kazu Yamamoto <kazu@iij.ad.jp> Maintainer:             Kazu Yamamoto <kazu@iij.ad.jp> License:                BSD3@@ -27,11 +27,11 @@                         System.Log.FastLogger.FileIO                         System.Log.FastLogger.LogStr                         System.Log.FastLogger.Logger-  Build-Depends:        base >= 4.7 && < 5+  Build-Depends:        base >= 4.9 && < 5                       , array                       , auto-update >= 0.1.2                       , easy-file >= 0.2-                      , bytestring+                      , bytestring >= 0.10.4                       , directory                       , filepath                       , text@@ -52,7 +52,7 @@   Other-Modules:    FastLoggerSpec   Build-Tools:      hspec-discover >= 2.6   Build-Depends:    base >= 4 && < 5-                  , bytestring+                  , bytestring >= 0.10.4                   , directory                   , fast-logger                   , hspec