Copyright | (c) 2018 Composewell Technologies |
---|---|
License | BSD3 |
Maintainer | streamly@composewell.com |
Stability | pre-release |
Portability | GHC |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- read :: MonadIO m => FilePath -> Stream m FilePath
- readFiles :: MonadIO m => FilePath -> Stream m FilePath
- readDirs :: MonadIO m => FilePath -> Stream m FilePath
- readEither :: MonadIO m => FilePath -> Stream m (Either FilePath FilePath)
- readEitherPaths :: MonadIO m => FilePath -> Stream m (Either FilePath FilePath)
- reader :: MonadIO m => Unfold m FilePath FilePath
- fileReader :: MonadIO m => Unfold m FilePath FilePath
- dirReader :: MonadIO m => Unfold m FilePath FilePath
- eitherReader :: MonadIO m => Unfold m FilePath (Either FilePath FilePath)
- eitherReaderPaths :: MonadIO m => Unfold m FilePath (Either FilePath FilePath)
- toStream :: MonadIO m => String -> Stream m String
- toEither :: MonadIO m => FilePath -> Stream m (Either FilePath FilePath)
- toFiles :: MonadIO m => FilePath -> Stream m FilePath
- toDirs :: MonadIO m => String -> Stream m String
Streams
readEither :: MonadIO 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 => 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.
dirReader :: MonadIO m => Unfold m FilePath FilePath Source #
Read directories only. Filter out "." and ".." entries.
Internal
eitherReader :: MonadIO m => Unfold m FilePath (Either FilePath FilePath) Source #
Read directories as Left and files as Right. Filter out "." and ".." entries.
Internal
Deprecated
toEither :: MonadIO m => FilePath -> Stream m (Either FilePath FilePath) Source #
Deprecated: Please use readEither
instead