Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
:: Integral a | |
=> (ArchivePtr -> a -> IO e) | Action to read contents from an archive entry |
-> ByteString | |
-> Either ArchiveResult [Entry FilePath e] |
:: 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
:: (ArchivePtr -> IO ArchiveResult) | Action to set supported formats |
-> ByteString | |
-> ArchiveM ArchivePtr |