packages feed

conduit-combinators 1.0.6 → 1.0.7

raw patch · 4 files changed

+25/−1 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Conduit: sinkFileBS :: MonadResource m => FilePath -> Consumer ByteString m ()
+ Conduit: sourceFileBS :: MonadResource m => FilePath -> Producer m ByteString
+ Data.Conduit.Combinators: sinkFileBS :: MonadResource m => FilePath -> Consumer ByteString m ()
+ Data.Conduit.Combinators: sourceFileBS :: MonadResource m => FilePath -> Producer m ByteString
- Conduit: lift :: Monad m => m a -> t m a
+ Conduit: lift :: (MonadTrans t, Monad m) => m a -> t m a
- Conduit: liftBase :: b α -> m α
+ Conduit: liftBase :: MonadBase b m => b α -> m α
- Conduit: liftIO :: IO a -> m a
+ Conduit: liftIO :: MonadIO m => IO a -> m a
- Conduit: throwM :: Exception e => e -> m a
+ Conduit: throwM :: (MonadThrow m, Exception e) => e -> m a

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+# 1.0.7++* Add `sourceFileBS` and `sinkFileBS`+ # 1.0.6  * Add `peekForeverE` combinator
Data/Conduit/Combinators.hs view
@@ -38,6 +38,7 @@        -- ** I\/O     , sourceFile+    , sourceFileBS     , sourceHandle     , sourceIOHandle     , stdin@@ -123,6 +124,7 @@        -- ** I\/O     , sinkFile+    , sinkFileBS     , sinkHandle     , sinkIOHandle     , print@@ -423,6 +425,14 @@ sourceFile fp = sourceIOHandle (SIO.openFile fp SIO.ReadMode) {-# INLINE sourceFile #-} +-- | 'sourceFile' specialized to 'ByteString' to help with type+-- inference.+--+-- @since 1.0.7+sourceFileBS :: MonadResource m => FilePath -> Producer m ByteString+sourceFileBS = sourceFile+{-# INLINE sourceFileBS #-}+ -- | Read all data from the given @Handle@. -- -- Does not close the @Handle@ at any point.@@ -1321,6 +1331,14 @@ sinkFile :: (MonadResource m, IOData a) => FilePath -> Consumer a m () sinkFile fp = sinkIOHandle (SIO.openFile fp SIO.WriteMode) {-# INLINE sinkFile #-}++-- | 'sinkFile' specialized to 'ByteString' to help with type+-- inference.+--+-- @since 1.0.7+sinkFileBS :: MonadResource m => FilePath -> Consumer ByteString m ()+sinkFileBS = sinkFile+{-# INLINE sinkFileBS #-}  -- | Print all incoming values to stdout. --
Data/Conduit/Combinators/Unqualified.hs view
@@ -25,6 +25,7 @@        -- *** I\/O     , sourceFile+    , CC.sourceFileBS     , sourceHandle     , sourceIOHandle     , stdinC@@ -109,6 +110,7 @@        -- *** I\/O     , sinkFile+    , CC.sinkFileBS     , sinkHandle     , sinkIOHandle     , printC
conduit-combinators.cabal view
@@ -1,5 +1,5 @@ name:                conduit-combinators-version:             1.0.6+version:             1.0.7 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/snoyberg/mono-traversable