-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
118 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.0.1.1 | ||
|
||
* Support GHC-8.6.5...9.10.1 | ||
|
||
## 0.0.1.0 | ||
|
||
* Add `pkgconfig` package flag. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,103 @@ | ||
cabal-version: >=1.10 | ||
name: lzma | ||
version: 0.0.1.0 | ||
x-revision: 1 | ||
cabal-version: 2.2 | ||
name: lzma | ||
version: 0.0.1.1 | ||
synopsis: LZMA/XZ compression and decompression | ||
homepage: https://github.com/hvr/lzma | ||
bug-reports: https://github.com/hvr/lzma/issues | ||
license: BSD-3-Clause | ||
license-file: LICENSE | ||
author: Herbert Valerio Riedel | ||
maintainer: [email protected] | ||
copyright: (c) 2015, Herbert Valerio Riedel | ||
stability: experimental | ||
category: Codec, Compression | ||
build-type: Simple | ||
tested-with: | ||
GHC ==8.6.5 | ||
|| ==8.8.4 | ||
|| ==8.10.7 | ||
|| ==9.0.2 | ||
|| ==9.2.8 | ||
|| ==9.4.8 | ||
|| ==9.6.5 | ||
|| ==9.8.2 | ||
|| ==9.10.1 | ||
|
||
synopsis: LZMA/XZ compression and decompression | ||
homepage: https://github.com/hvr/lzma | ||
bug-reports: https://github.com/hvr/lzma/issues | ||
license: BSD3 | ||
license-file: LICENSE | ||
author: Herbert Valerio Riedel | ||
maintainer: [email protected] | ||
copyright: (c) 2015, Herbert Valerio Riedel | ||
stability: experimental | ||
category: Codec, Compression | ||
build-type: Simple | ||
tested-with: GHC ==7.4.2, GHC ==7.6.3, GHC ==7.8.4, GHC ==7.10.3, GHC ==8.0.2, GHC ==8.2.2, GHC ==8.4.4, GHC==8.6.5, GHC==8.8.4, GHC==8.10.7, GHC==9.0.2, GHC==9.2.8, GHC==9.4.7, GHC==9.6.3, GHC==9.8.1 | ||
description: | ||
This package provides a pure interface for compressing and | ||
decompressing | ||
<https://en.wikipedia.org/wiki/LZMA LZMA (Lempel–Ziv–Markov chain algorithm)> | ||
streams of data represented as lazy @ByteString@s. A | ||
monadic incremental interface is provided as well. This package | ||
relies on the <http://tukaani.org/xz/ liblzma C library>. | ||
. | ||
The following packages are based on this package and provide | ||
API support for popular streaming frameworks: | ||
. | ||
* </package/lzma-streams lzma-streams> (for </package/io-streams io-streams>) | ||
. | ||
* </package/pipes-lzma pipes-lzma> (for </package/pipes pipes>) | ||
. | ||
* </package/lzma-conduit lzma-conduit> (for </package/conduit conduit>) | ||
. | ||
This package provides a pure interface for compressing and | ||
decompressing | ||
<https://en.wikipedia.org/wiki/LZMA LZMA (Lempel–Ziv–Markov chain algorithm)> | ||
streams of data represented as lazy @ByteString@s. A | ||
monadic incremental interface is provided as well. This package | ||
relies on the <http://tukaani.org/xz/ liblzma C library>. | ||
. | ||
The following packages are based on this package and provide | ||
API support for popular streaming frameworks: | ||
. | ||
* </package/lzma-streams lzma-streams> (for </package/io-streams io-streams>) | ||
. | ||
* </package/pipes-lzma pipes-lzma> (for </package/pipes pipes>) | ||
. | ||
* </package/lzma-conduit lzma-conduit> (for </package/conduit conduit>) | ||
. | ||
|
||
extra-source-files: | ||
Changelog.md | ||
extra-source-files: Changelog.md | ||
|
||
flag pkgconfig | ||
description: Use @pkgconfig@ on unix system to find @liblzma@ | ||
manual: True | ||
default: True | ||
manual: True | ||
default: True | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/hvr/lzma.git | ||
|
||
library | ||
default-language: Haskell2010 | ||
other-extensions: BangPatterns, RecordWildCards, DeriveDataTypeable | ||
hs-source-dirs: src | ||
default-language: Haskell2010 | ||
other-extensions: | ||
BangPatterns | ||
DeriveDataTypeable | ||
RecordWildCards | ||
|
||
exposed-modules: Codec.Compression.Lzma | ||
other-modules: LibLzma | ||
|
||
build-depends: base >=4.5 && <4.20 | ||
, bytestring >=0.9.2 && <0.13 | ||
hs-source-dirs: src | ||
exposed-modules: Codec.Compression.Lzma | ||
other-modules: LibLzma | ||
build-depends: | ||
, base >=4.12.0.0 && <4.21 | ||
, bytestring >=0.10.8.2 && <0.13 | ||
|
||
if os(windows) | ||
build-depends: lzma-clib | ||
build-depends: lzma-clib | ||
|
||
else | ||
if flag(pkgconfig) | ||
pkgconfig-depends: liblzma >=5.2.2 | ||
else | ||
includes: lzma.h | ||
extra-libraries: lzma | ||
|
||
c-sources: cbits/lzma_wrapper.c | ||
|
||
ghc-options: -Wall | ||
else | ||
includes: lzma.h | ||
extra-libraries: lzma | ||
|
||
c-sources: cbits/lzma_wrapper.c | ||
ghc-options: -Wall | ||
|
||
test-suite lzma-tests | ||
default-language: Haskell2010 | ||
other-extensions: OverloadedStrings | ||
hs-source-dirs: src-tests | ||
type: exitcode-stdio-1.0 | ||
main-is: lzma-tests.hs | ||
default-language: Haskell2010 | ||
other-extensions: OverloadedStrings | ||
hs-source-dirs: src-tests | ||
type: exitcode-stdio-1.0 | ||
main-is: lzma-tests.hs | ||
|
||
-- dependencies with version bounds inherited from the library stanza | ||
build-depends: lzma | ||
, base | ||
, bytestring | ||
build-depends: | ||
, base | ||
, bytestring | ||
, lzma | ||
|
||
-- additional dependencies that require version bounds | ||
build-depends: HUnit >= 1.2 && <1.7 | ||
, QuickCheck >= 2.8 && <2.15 | ||
, tasty >= 0.10 && <1.6 | ||
, tasty-hunit >= 0.9 && <0.11 | ||
, tasty-quickcheck >= 0.8.3.2 && <0.11 | ||
build-depends: | ||
, QuickCheck ^>=2.14.1 || ^>=2.15.0.1 | ||
, tasty ^>=1.5 | ||
, tasty-hunit ^>=0.10.1 | ||
, tasty-quickcheck ^>=0.10.3 | ||
|
||
ghc-options: -Wall -threaded | ||
ghc-options: -Wall -threaded |