packages feed

datastar-hs-zlib-1.0.0.0: datastar-hs-zlib.cabal

cabal-version:   3.0
name:            datastar-hs-zlib
version:         1.0.0.0
synopsis:        gzip and deflate compressors for datastar-hs
description:
  @gzip@ and @deflate@ @Content-Encoding@ compressors for
  <https://hackage.haskell.org/package/datastar-hs datastar-hs> SSE streams.
  .
  Links against the system zlib C library. On macOS the headers ship with the
  Xcode Command Line Tools; on Debian/Ubuntu install @zlib1g-dev@. To build
  with no system library at all, add the constraint @zlib +bundled-c-zlib@.
homepage:        https://github.com/starfederation/datastar-haskell
bug-reports:     https://github.com/starfederation/datastar-haskell/issues
license:         MIT
license-file:    LICENSE
author:          Carlo Hamalainen
maintainer:      carlo@carlo-hamalainen.net
category:        Web, Hypermedia
build-type:      Simple
extra-doc-files: CHANGELOG.md

source-repository head
  type:     git
  location: https://github.com/starfederation/datastar-haskell.git

common warnings
  ghc-options:
    -Wall
    -Wcompat
    -Wunused-packages
    -Wredundant-constraints
    -Wincomplete-uni-patterns
    -Wincomplete-record-updates

library
  import: warnings
  exposed-modules:
    Hypermedia.Datastar.Compression.Zlib
  hs-source-dirs:  src
  default-language: Haskell2010
  default-extensions:
    ImportQualifiedPost
    LambdaCase
    OverloadedStrings
  build-depends:
    , base       >= 4.14  && < 5
    , bytestring >= 0.10.12 && < 1
    , datastar-hs >= 1.1 && < 1.2
    , streaming-commons >= 0.2.3.1 && < 1

test-suite datastar-hs-zlib-test
  import: warnings
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  main-is:          Main.hs
  other-modules:
    Hypermedia.Datastar.Compression.ZlibSpec
  build-depends:
    , base
    , bytestring
    , datastar-hs
    , datastar-hs-zlib
    , hspec
    , wai
    , zlib
  default-language: Haskell2010
  default-extensions:
    ImportQualifiedPost
    OverloadedStrings