zip-archive: Library for creating and modifying zip archives.

[ bsd3, codec, library ] [ Propose Tags ] [ Report a vulnerability ]

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.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Flags

Automatic Flags
NameDescriptionDefault
executable

Build the Zip executable.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.1, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.1.4, 0.1.1.5, 0.1.1.6, 0.1.1.7, 0.1.1.8, 0.1.2.1, 0.1.3, 0.1.3.1, 0.1.3.2, 0.1.3.3, 0.1.3.4, 0.1.4, 0.2, 0.2.1, 0.2.2, 0.2.2.1, 0.2.3, 0.2.3.1, 0.2.3.2, 0.2.3.3, 0.2.3.4, 0.2.3.5, 0.2.3.6, 0.2.3.7, 0.3, 0.3.0.1, 0.3.0.2, 0.3.0.4, 0.3.0.5, 0.3.0.6, 0.3.0.7, 0.3.1, 0.3.1.1, 0.3.2, 0.3.2.1, 0.3.2.2, 0.3.2.3, 0.3.2.4, 0.3.2.5, 0.3.3, 0.4, 0.4.1, 0.4.2, 0.4.2.1, 0.4.2.2, 0.4.3, 0.4.3.1, 0.4.3.2 (info)
Change log changelog
Dependencies array, base (>=4.11 && <5), binary (>=0.7.2), bytestring (>=0.10.0), containers, digest (>=0.0.0.1), directory (>=1.2.0), filepath, mtl, pretty, text (>=0.11), time, unix, zip-archive, zlib [details]
Tested with ghc ==8.6.5, ghc ==8.8.1, ghc ==8.10.4, ghc ==9.0.1, ghc ==8.8.3, ghc ==9.2.1
License BSD-3-Clause
Author John MacFarlane
Maintainer jgm@berkeley.edu
Revised Revision 1 made by JohnMacFarlane at 2024-05-17T23:41:26Z
Category Codec
Home page http://github.com/jgm/zip-archive
Source repo head: git clone git://github.com/jgm/zip-archive.git
Uploaded by JohnMacFarlane at 2024-04-09T16:45:10Z
Distributions Arch:0.4.3.2, Debian:0.4.1, Fedora:0.4.3, FreeBSD:0.2.3.7, LTSHaskell:0.4.3.2, NixOS:0.4.3.2, Stackage:0.4.3.2, openSUSE:0.4.3.2
Reverse Dependencies 42 direct, 190 indirect [details]
Executables zip-archive
Downloads 164775 total (411 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-04-09 [all 1 reports]

Readme for zip-archive-0.4.3.2

[back to package description]

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.