streamly-archive-0.2.0: Stream data from archives using the streamly library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Streamly.External.Archive

Contents

Synopsis

Read

readArchive :: MonadIO m => FilePath -> Unfold m Void (Either Header ByteString) Source #

Creates an unfold with which we can stream data out of the given archive.

groupByHeader :: Monad m => Fold m (Either Header ByteString) b -> Stream m (Either Header ByteString) -> Stream m b Source #

A convenience function for grouping Either Header ByteStrings, usually obtained with readArchive, by the headers. The input Fold processes a single entry (a Header followed by zero or more ByteStrings).

Header

data Header Source #

Header information for an entry in the archive.