Copyright | (c) CNRS 2017 |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Utilities for handling zip files
Synopsis
- withZipFileBS :: MonadIO m => ByteString -> ZipArchive a -> m a
- zipContents :: MonadBase IO m => FilePath -> ByteString -> m ByteString
- zipContentsPure :: FilePath -> ByteString -> ByteString
- zipContentsPureWithLastModified :: FilePath -> ByteString -> Integer -> ByteString
Documentation
withZipFileBS :: MonadIO m => ByteString -> ZipArchive a -> m a #
Take a zip file (in for of a ByteString) and work on its contents (using the ZipArchive monad)
zipContents :: MonadBase IO m => FilePath -> ByteString -> m ByteString #
Zip ByteString contents and return the ZIP file as ByteString
zipContentsPure :: FilePath -> ByteString -> ByteString #
Same as zipContents above, but pure (in-memory)
zipContentsPureWithLastModified :: FilePath -> ByteString -> Integer -> ByteString #