| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Archive.Internal.Unpack.Lazy
Synopsis
- readArchiveBSL :: ByteString -> Either ArchiveResult [Entry FilePath ByteString]
- readArchiveBSLAbs :: Integral a => (ArchivePtr -> a -> IO e) -> ByteString -> Either ArchiveResult [Entry FilePath e]
- unpackToDirLazy :: FilePath -> ByteString -> ArchiveM ()
- bslToArchive :: ByteString -> ArchiveM ArchivePtr
- bslToArchiveAbs :: (ArchivePtr -> IO ArchiveResult) -> ByteString -> ArchiveM ArchivePtr
Documentation
readArchiveBSL :: ByteString -> Either ArchiveResult [Entry FilePath ByteString] Source #
Read an archive lazily. The format of the archive is automatically detected.
In general, this will be more efficient than readArchiveBS
Since: 1.0.4.0
Arguments
| :: Integral a | |
| => (ArchivePtr -> a -> IO e) | Action to read contents from an archive entry |
| -> ByteString | |
| -> Either ArchiveResult [Entry FilePath e] |
Arguments
| :: FilePath | Directory to unpack in |
| -> ByteString |
|
| -> ArchiveM () |
In general, this will be more efficient than unpackToDir
Since: 1.0.4.0
bslToArchive :: ByteString -> ArchiveM ArchivePtr Source #
Lazily stream a ByteString
Arguments
| :: (ArchivePtr -> IO ArchiveResult) | Action to set supported formats |
| -> ByteString | |
| -> ArchiveM ArchivePtr |