packages feed

streaming-bytestring 0.2.1 → 0.2.2

raw patch · 3 files changed

+24/−13 lines, 3 filesdep ~ghc-primdep ~mmorphPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: ghc-prim, mmorph

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,9 @@+## 0.2.2 (2022-05-18)++#### Changed++- Dependency adjustments.+ ## 0.2.1 (2021-06-23)  #### Changed
lib/Streaming/ByteString/Internal.hs view
@@ -133,18 +133,18 @@   {-# INLINE pure #-}   bf <*> bx = do {f <- bf; x <- bx; Empty (f x)}   {-# INLINE (<*>) #-}-  (*>) = (>>)-  {-# INLINE (*>) #-}--instance Monad m => Monad (ByteStream m) where-  return = Empty-  {-# INLINE return #-}-  x0 >> y = loop SPEC x0 where+  x0 *> y = loop SPEC x0 where     loop !_ x = case x of   -- this seems to be insanely effective       Empty _   -> y       Chunk a b -> Chunk a (loop SPEC b)       Go m      -> Go (fmap (loop SPEC) m)-  {-# INLINEABLE (>>) #-}+  {-# INLINEABLE (*>) #-}++instance Monad m => Monad (ByteStream m) where+  return = pure+  {-# INLINE return #-}+  (>>) = (*>)+  {-# INLINE (>>) #-}   x >>= f =     -- case x of     --   Empty a -> f a@@ -189,7 +189,11 @@ instance (Monoid r, Monad m) => Monoid (ByteStream m r) where   mempty = Empty mempty   {-# INLINE mempty #-}+#if MIN_VERSION_base(4,11,0)+  mappend = (<>)+#else   mappend = liftM2 mappend+#endif   {-# INLINE mappend #-}  instance (MonadBase b m) => MonadBase b (ByteStream m) where
streaming-bytestring.cabal view
@@ -1,6 +1,6 @@ cabal-version:      >=1.10 name:               streaming-bytestring-version:            0.2.1+version:            0.2.2 synopsis:           Fast, effectful byte streams. description:   This library enables fast and safe streaming of byte data, in either @Word8@ or@@ -40,11 +40,12 @@    || ==8.4.4    || ==8.6.5    || ==8.8.4-   || ==8.10.2+   || ==8.10.3+   || ==9.0.2  source-repository head   type:     git-  location: https://github.com/michaelt/streaming-bytestring+  location: https://github.com/haskell-streaming/streaming-bytestring  library   default-language: Haskell2010@@ -71,8 +72,8 @@     , bytestring     , deepseq     , exceptions-    , ghc-prim           >=0.4     && <0.8-    , mmorph             >=1.0     && <1.2+    , ghc-prim           >=0.4     && <0.9+    , mmorph             >=1.0     && <1.3     , mtl                >=2.1     && <2.3     , resourcet     , streaming          >=0.1.4.0 && <0.3