packages feed

streaming-commons 0.1.15.2 → 0.1.15.3

raw patch · 4 files changed

+21/−15 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.1.15.3++* Fix benchmarks+ ## 0.1.15.2  * Document child process behavior in `waitForProcess`
bench/count-chars.hs view
@@ -5,7 +5,7 @@ import qualified Data.ByteString as S import qualified Data.ByteString.Lazy as L import Data.ByteString.Lazy.Internal (ByteString (..))-import Data.Text.StreamDecoding+import Data.Streaming.Text  calcLen :: (S.ByteString -> DecodeResult)         -> L.ByteString@@ -36,10 +36,10 @@  main :: IO () main = defaultMain $ map handleEncoding-    [ ("UTF-8", TLE.encodeUtf8, TLE.decodeUtf8, streamUtf8)-    , ("UTF-8 pure", TLE.encodeUtf8, TLE.decodeUtf8, streamUtf8Pure)-    , ("UTF-16LE", TLE.encodeUtf16LE, TLE.decodeUtf16LE, streamUtf16LE)-    , ("UTF-16BE", TLE.encodeUtf16BE, TLE.decodeUtf16BE, streamUtf16BE)-    , ("UTF-32LE", TLE.encodeUtf32LE, TLE.decodeUtf32LE, streamUtf32LE)-    , ("UTF-32BE", TLE.encodeUtf32BE, TLE.decodeUtf32BE, streamUtf32BE)+    [ ("UTF-8", TLE.encodeUtf8, TLE.decodeUtf8, decodeUtf8)+    , ("UTF-8 pure", TLE.encodeUtf8, TLE.decodeUtf8, decodeUtf8Pure)+    , ("UTF-16LE", TLE.encodeUtf16LE, TLE.decodeUtf16LE, decodeUtf16LE)+    , ("UTF-16BE", TLE.encodeUtf16BE, TLE.decodeUtf16BE, decodeUtf16BE)+    , ("UTF-32LE", TLE.encodeUtf32LE, TLE.decodeUtf32LE, decodeUtf32LE)+    , ("UTF-32BE", TLE.encodeUtf32BE, TLE.decodeUtf32BE, decodeUtf32BE)     ]
bench/decode-memory-usage.hs view
@@ -1,6 +1,6 @@ {-# LANGUAGE OverloadedStrings #-} import Data.ByteString (ByteString)-import Data.Text.StreamDecoding+import Data.Streaming.Text import System.Environment (getArgs)  input :: [ByteString]@@ -11,12 +11,12 @@     args <- getArgs     let dec =             case args of-                ["16le"] -> streamUtf16LE-                ["16be"] -> streamUtf16BE-                ["32le"] -> streamUtf32LE-                ["32be"] -> streamUtf32BE-                ["8pure"] -> streamUtf8Pure-                _ -> streamUtf8+                ["16le"] -> decodeUtf16LE+                ["16be"] -> decodeUtf16BE+                ["32le"] -> decodeUtf32LE+                ["32be"] -> decodeUtf32BE+                ["8pure"] -> decodeUtf8Pure+                _ -> decodeUtf8      loop dec input 
streaming-commons.cabal view
@@ -1,5 +1,5 @@ name:                streaming-commons-version:             0.1.15.2+version:             0.1.15.3 synopsis:            Common lower-level functions needed by various streaming data libraries description:         Provides low-dependency functionality commonly needed by various streaming data libraries, such as conduit and pipes. homepage:            https://github.com/fpco/streaming-commons@@ -124,6 +124,7 @@                   , criterion                   , bytestring                   , text+                  , streaming-commons     main-is:        count-chars.hs     ghc-options:    -Wall -O2 @@ -133,6 +134,7 @@     build-depends:  base                   , bytestring                   , text+                  , streaming-commons     main-is:        decode-memory-usage.hs     ghc-options:    -Wall -O2 -with-rtsopts=-s