zip-archive

Library for creating and modifying zip archives.

http://github.com/jgm/zip-archive

Version on this page:0.4.1@rev:1
LTS Haskell 22.38:0.4.3.2@rev:1
Stackage Nightly 2024-10-11:0.4.3.2@rev:1
Latest on Hackage:0.4.3.2@rev:1

See all snapshots zip-archive appears in

BSD-3-Clause licensed by John MacFarlane
Maintained by [email protected]
This version can be pinned in stack with:zip-archive-0.4.1@sha256:51774bdc747d20b8f23172315f9c3fdd6c11de01607e98e9890eb87fb49566d7,4055

Module documentation for 0.4.1

zip-archive

The zip-archive library provides functions for creating, modifying, and extracting files from zip archives. The zip archive format is documented in http://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, zip files that span multiple disks, ZIP64, OS-specific file attributes, 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 standard unzip programs.

Archives are built and extracted in memory, so manipulating large zip files will consume a lot of memory. If you work with large zip files or need features not supported by this library, a better choice may be zip, which uses a memory-efficient streaming approach. However, zip can only read and write archives inside instances of MonadIO, so zip-archive is a better choice if you want to manipulate zip archives in “pure” contexts.

As an example of the use of the library, a standalone zip archiver and extracter is provided in the source distribution.