zip-archive
Library for creating and modifying zip archives.
http://github.com/jgm/zip-archive
LTS Haskell 23.26: | 0.4.3.2@rev:1 |
Stackage Nightly 2025-07-03: | 0.4.3.2@rev:1 |
Latest on Hackage: | 0.4.3.2@rev:1 |
zip-archive-0.4.3.2@sha256:b224f6d0d5527a113fa94fac0b710bc204c544b23d5cca90507fbb73942ce56f,4039
Module documentation for 0.4.3.2
- Codec
- Codec.Archive
zip-archive
The zip-archive library provides functions for creating, modifying,and extracting files from zip archives. The zip archive formatis documented inhttp://www.pkware.com/documents/casestudies/APPNOTE.TXT.
Certain simplifying assumptions are made about the zip archives:in particular, there is no support for strong encryption, zipfiles that span multiple disks, ZIP64, OS-specific fileattributes, or compression methods other than Deflate. However,the library should be able to read the most common zip archives,and the archives it produces should be readable by all standardunzip programs.
Archives are built and extracted in memory, so manipulatinglarge zip files will consume a lot of memory. If you work withlarge zip files or need features not supported by this library,a better choice may bezip,which uses a memory-efficient streaming approach. However, zipcan only read and write archives inside instances of MonadIO, sozip-archive is a better choice if you want to manipulate ziparchives in “pure” contexts.
As an example of the use of the library, a standalone zip archiverand extracter is provided in the source distribution.