cabal-version:       1.12
build-type:          Simple
name:                brotli-streams
version:             0.0.0.0
x-revision:          6

synopsis:            IO-Streams interface for Brotli (RFC7932) compression
homepage:            https://github.com/haskell-hvr/brotli-streams
bug-reports:         https://github.com/haskell-hvr/brotli-streams/issues
license:             BSD3
license-file:        LICENSE
author:              Herbert Valerio Riedel
maintainer:          https://github.com/haskell-hvr/brotli-streams
copyright:           (c) 2016, Herbert Valerio Riedel
category:            Codec, Compression, IO-Streams

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 an IO-Streams interface for the Brotli compression algorithm.
    .
    Decompressing Brotli 'InputStreams' and compressing 'OutputStreams'
    to Brotli streams with tunable (de)compression parameters is supported.
    .

tested-with:
  GHC == 9.6.0
  GHC == 9.4.4
  GHC == 9.2.5
  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
  GHC == 7.10.3
  GHC == 7.8.4
  GHC == 7.6.3
  GHC == 7.4.2

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

library
  default-language:    Haskell2010
  other-extensions:    Trustworthy

  hs-source-dirs:      src
  exposed-modules:     System.IO.Streams.Brotli

  build-depends:       base       >= 4.5    && < 4.19,
                       bytestring >= 0.9.2  && < 0.12,
                       io-streams >= 1.3    && < 1.6,
                       brotli     == 0.0.*

  ghc-options:         -Wall

test-suite lzma-streams-test
  default-language:    Haskell2010
  hs-source-dirs:      src-tests
  main-is:             lzma-streams-test.hs
  type:                exitcode-stdio-1.0

  build-depends:       base,
                       bytestring,
                       io-streams,
                       brotli-streams,

                       HUnit == 1.6.*,
                       QuickCheck == 2.14.*,
                       test-framework == 0.8.*,
                       test-framework-hunit == 0.3.*,
                       test-framework-quickcheck2 == 0.3.*

  ghc-options:         -Wall -threaded