Copyright | (c) 2018 Composewell Technologies |
---|---|
License | BSD3 |
Maintainer | streamly@composewell.com |
Portability | GHC |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- read :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath
- readFiles :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath
- readDirs :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath
- readEither :: (MonadIO m, MonadCatch m) => FilePath -> Stream m (Either FilePath FilePath)
- readEitherPaths :: (MonadIO m, MonadCatch m) => FilePath -> Stream m (Either FilePath FilePath)
- reader :: (MonadIO m, MonadCatch m) => Unfold m FilePath FilePath
- fileReader :: (MonadIO m, MonadCatch m) => Unfold m FilePath FilePath
- dirReader :: (MonadIO m, MonadCatch m) => Unfold m FilePath FilePath
- eitherReader :: (MonadIO m, MonadCatch m) => Unfold m FilePath (Either FilePath FilePath)
- eitherReaderPaths :: (MonadIO m, MonadCatch m) => Unfold m FilePath (Either FilePath FilePath)
- toStream :: (MonadIO m, MonadCatch m) => String -> Stream m String
- toEither :: (MonadIO m, MonadCatch m) => FilePath -> Stream m (Either FilePath FilePath)
- toFiles :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath
- toDirs :: (MonadIO m, MonadCatch m) => String -> Stream m String
Streams
read :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath Source #
Raw read of a directory.
Pre-release
readFiles :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath Source #
Read files only.
Internal
readDirs :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath Source #
Read directories only.
Internal
readEither :: (MonadIO m, MonadCatch m) => FilePath -> Stream m (Either FilePath FilePath) Source #
Read directories as Left and files as Right. Filter out "." and ".." entries. The output contains the names of the directories and files.
Pre-release
readEitherPaths :: (MonadIO m, MonadCatch m) => FilePath -> Stream m (Either FilePath FilePath) Source #
Like readEither
but prefix the names of the files and directories with
the supplied directory path.
Unfolds
Use the more convenient stream APIs instead of unfolds where possible.
fileReader :: (MonadIO m, MonadCatch m) => Unfold m FilePath FilePath Source #
Read files only.
Internal
dirReader :: (MonadIO m, MonadCatch m) => Unfold m FilePath FilePath Source #
Read directories only. Filter out "." and ".." entries.
Internal
eitherReader :: (MonadIO m, MonadCatch m) => Unfold m FilePath (Either FilePath FilePath) Source #
Read directories as Left and files as Right. Filter out "." and ".." entries.
Internal
eitherReaderPaths :: (MonadIO m, MonadCatch m) => Unfold m FilePath (Either FilePath FilePath) Source #
Deprecated
toStream :: (MonadIO m, MonadCatch m) => String -> Stream m String Source #
Deprecated: Please use read
instead
toEither :: (MonadIO m, MonadCatch m) => FilePath -> Stream m (Either FilePath FilePath) Source #
Deprecated: Please use readEither
instead