Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist-newstyle/
6 changes: 0 additions & 6 deletions CHANGELOG.md

This file was deleted.

11 changes: 11 additions & 0 deletions bzlib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Revision history for bzlib

## 0.5.2.0 -- 2024-??-??

* Split packages into `bzlib` and `bzlib-clib`
* Fix security vulnerability: https://github.com/hackage-trustees/bzlib/issues/4

## 0.5.1.0 -- 2020-06-08

* Added `MonadFail` instance
* Constrained bounds on `base`
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 19 additions & 19 deletions bzlib.cabal → bzlib/bzlib.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cabal-version: 2.0
name: bzlib
version: 0.5.1.0
version: 0.5.2.0
copyright: (c) 2006-2015 Duncan Coutts
license: BSD3
license-file: LICENSE
Expand All @@ -16,12 +17,14 @@ description: This package provides a pure interface for compressing and
tasks and for the few cases where more control is needed it
provides access to the full bzip2 feature set.
build-type: Simple
cabal-version: >= 1.10
extra-source-files: cbits/bzlib_private.h cbits/LICENSE
-- demo programs:
examples/bzip2.hs examples/bunzip2.hs
-- changelog
CHANGELOG.md
extra-doc-files: CHANGELOG.md
extra-source-files:
-- demo programs:
examples/bzip2.hs examples/bunzip2.hs

flag system-bzlib
description:
Use system bzlib rather than the bundled sources

source-repository head
type: darcs
Expand All @@ -38,20 +41,17 @@ library
Codec.Compression.BZip.Internal
other-modules: Codec.Compression.BZip.Stream
default-extensions: CPP, ForeignFunctionInterface
build-depends: base >= 4.3 && < 4.16,
bytestring == 0.9.* || == 0.10.*
build-depends: base >= 4.3 && < 4.20,
bytestring >= 0.9 && < 0.13

if !impl(ghc >=8.0)
build-depends: fail ==4.9.*

includes: bzlib.h
ghc-options: -Wall
if !os(windows)
-- Normally we use the the standard system bz2 lib:
extra-libraries: bz2

if flag(system-bzlib)
extra-libraries: bz2
else
-- However for the benefit of users of Windows (which does not have zlib
-- by default) we bundle a complete copy of the C sources of bzip2-1.0.6
c-sources: cbits/blocksort.c cbits/bzlib.c cbits/compress.c
cbits/crctable.c cbits/decompress.c cbits/huffman.c
cbits/randtable.c
include-dirs: cbits
install-includes: bzlib.h
build-depends: bzip2-clib

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages: ./bzlib/
42 changes: 0 additions & 42 deletions cbits/LICENSE

This file was deleted.

Loading