packages feed

conduit-combinators 0.2.6 → 0.2.6.1

raw patch · 3 files changed

+20/−1 lines, 3 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Conduit: decodeUtf8LenientC :: MonadThrow m => Conduit ByteString m Text

Files

Data/Conduit/Combinators/Unqualified.hs view
@@ -152,6 +152,7 @@       -- *** Textual     , encodeUtf8C     , decodeUtf8C+    , decodeUtf8LenientC     , lineC     , lineAsciiC     , unlinesC@@ -1297,6 +1298,14 @@ decodeUtf8C :: MonadThrow m => Conduit ByteString m Text decodeUtf8C = CC.decodeUtf8 {-# INLINE decodeUtf8C #-}++-- | Decode a stream of binary data as UTF8, replacing any invalid bytes with+-- the Unicode replacement character.+--+-- Since 1.0.0+decodeUtf8LenientC :: MonadThrow m => Conduit ByteString m Text+decodeUtf8LenientC = CC.decodeUtf8Lenient+{-# INLINE decodeUtf8LenientC #-}  -- | Stream in the entirety of a single line. --
conduit-combinators.cabal view
@@ -1,5 +1,5 @@ name:                conduit-combinators-version:             0.2.6+version:             0.2.6.1 synopsis:            Commonly used conduit functions, for both chunked and unchunked data description:         Provides a replacement for Data.Conduit.List, as well as a convenient Conduit module. homepage:            https://github.com/fpco/conduit-combinators
test/Spec.hs view
@@ -531,6 +531,16 @@                =$ decodeUtf8C                =$ sinkLazy         actual `shouldBe` expected+    prop "encode/decode UTF8 lenient" $ \(map T.pack -> inputs) (min 50 . max 1 . abs -> chunkSize) -> do+        let expected = fromChunks inputs+        actual <- yieldMany inputs+               $$ encodeUtf8C+               =$ concatC+               =$ conduitVector chunkSize+               =$ mapC (S.pack . V.toList)+               =$ decodeUtf8LenientC+               =$ sinkLazy+        actual `shouldBe` expected     prop "line" $ \(map T.pack -> input) size ->         let src = yieldMany input             sink = do