filesystem-conduit 0.3.0 → 0.4.0
raw patch · 2 files changed
+7/−7 lines, 2 filesdep ~conduitdep ~transformersPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: conduit, transformers
API changes (from Hackage documentation)
Files
Data/Conduit/Filesystem.hs view
@@ -42,17 +42,17 @@ => Bool -- ^ Follow directory symlinks (only used on POSIX platforms) -> FilePath -- ^ Root directory -> C.Source m FilePath-traverse followSymlinks root = C.SourceM+traverse followSymlinks root = C.PipeM (liftIO (listDirectory root) >>= pull) (return ()) where- mkSrc ps = C.SourceM (pull ps) (return ())+ mkSrc ps = C.PipeM (pull ps) (return ()) - pull [] = return C.Closed+ pull [] = return $ C.Done Nothing () pull (p:ps) = do isFile' <- liftIO $ isFile p if isFile'- then return $ C.Open (mkSrc ps) (return ()) p+ then return $ C.HaveOutput (mkSrc ps) (return ()) p else do follow' <- liftIO $ follow p if follow'
filesystem-conduit.cabal view
@@ -1,5 +1,5 @@ Name: filesystem-conduit-Version: 0.3.0+Version: 0.4.0 Synopsis: Use system-filepath data types with conduits. Description: Provides ability to traverse a folder structure efficiently, as well as convenience wrappers for reading from and writing to files. License: BSD3@@ -16,12 +16,12 @@ Exposed-modules: Data.Conduit.Filesystem Build-depends: base >= 4 && < 5 , containers- , transformers >= 0.2.2 && < 0.3+ , transformers >= 0.2.2 && < 0.4 , system-fileio >= 0.3.3 && < 0.4 , system-filepath >= 0.4.3 && < 0.5 , bytestring >= 0.9 , text >= 0.11- , conduit >= 0.3 && < 0.4+ , conduit >= 0.4 && < 0.5 ghc-options: -Wall if os(windows)