packages feed

brotli-0.0.0.2: brotli.cabal

cabal-version:       1.12
build-type:          Simple
name:                brotli
version:             0.0.0.2

synopsis:            Brotli (RFC7932) compression and decompression
homepage:            https://github.com/haskell-hvr/brotli
bug-reports:         https://github.com/haskell-hvr/brotli/issues
license:             GPL-3
license-file:        LICENSE
author:              Herbert Valerio Riedel
maintainer:          https://github.com/haskell-hvr/brotli
copyright:           (c) 2016, Herbert Valerio Riedel
category:            Codec, Compression
description:
    <http://brotli.org Brotli> (<https://tools.ietf.org/html/rfc7932 RFC7932>) is a generic-purpose lossless compression algorithm suitable for <https://en.wikipedia.org/wiki/HTTP_compression HTTP compression> that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling.
    .
    This package provides a pure interface for compressing and
    decompressing Brotli streams of data represented as lazy @ByteString@s. A
    monadic incremental interface is provided as well. This package
    relies on Google's C implementation.
    .
    The following packages are based on this package and provide
    API support for popular streaming frameworks:
    .
      * </package/brotli-streams brotli-streams> (for </package/io-streams io-streams>)
    .
      * </package/pipes-brotli pipes-brotli> (for </package/pipes pipes>)
    .
      * </package/brotli-conduit brotli-conduit> (for </package/conduit conduit>)
    .

tested-with:
  GHC == 9.10.1
  GHC == 9.8.2
  GHC == 9.6.5
  GHC == 9.4.8
  GHC == 9.2.8
  GHC == 9.0.2
  GHC == 8.10.7
  GHC == 8.8.4
  GHC == 8.6.5
  GHC == 8.4.4
  GHC == 8.2.2
  GHC == 8.0.2

extra-source-files:
  CHANGELOG.md
  cbits/hs_brotli.h

source-repository head
  type:     git
  location: https://github.com/haskell-hvr/brotli.git

library
  hs-source-dirs:      src
  exposed-modules:     Codec.Compression.Brotli
  other-modules:       LibBrotli

  build-depends:       base         >=4.9     && <5
                     , bytestring   >=0.9.2   && <0.13
                     , transformers >=0.3.0.0 && <0.7

  default-language:    Haskell2010

  pkgconfig-depends:   libbrotlienc
                     , libbrotlidec

  include-dirs:        cbits

  ghc-options:
    -Wall
    -Wcompat

test-suite brotli-tests
  default-language:    Haskell2010
  other-extensions:    OverloadedStrings
  hs-source-dirs:      src-tests
  type:                exitcode-stdio-1.0
  main-is:             brotli-tests.hs

  -- dependencies with version bounds inherited from the library stanza
  build-depends:       brotli
                     , base
                     , bytestring
  -- additional dependencies that require version bounds
  build-depends:       HUnit                       == 1.6.*
                     , QuickCheck                  >= 2.14    && < 2.16
                     , tasty                       >= 1.2     && < 1.6
                     , tasty-hunit                 == 0.10.*
                     , tasty-quickcheck            >= 0.10    && < 1


  ghc-options:
    -threaded
    -Wall
    -Wcompat