cabal-version: 3.0
name: datastar-hs-brotli
version: 1.0.0.0
synopsis: Brotli compressor for datastar-hs
description:
@br@ (Brotli) @Content-Encoding@ compressor for
<https://hackage.haskell.org/package/datastar-hs datastar-hs> SSE streams.
Brotli compresses extremely well on SSE streams that repeatedly patch
similar HTML fragments.
.
Links against the system Brotli C library: @brew install brotli@ on macOS,
@apt-get install libbrotli-dev pkg-config@ on Debian/Ubuntu.
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.Brotli
hs-source-dirs: src
default-language: Haskell2010
default-extensions:
ImportQualifiedPost
LambdaCase
OverloadedStrings
build-depends:
, base >= 4.14 && < 5
, brotli >= 0.0.0.3 && < 1
, bytestring >= 0.10.12 && < 1
, datastar-hs >= 1.1 && < 1.2
test-suite datastar-hs-brotli-test
import: warnings
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
other-modules:
Hypermedia.Datastar.Compression.BrotliSpec
build-depends:
, base
, brotli
, bytestring
, datastar-hs
, datastar-hs-brotli
, hspec
, wai
default-language: Haskell2010
default-extensions:
ImportQualifiedPost
OverloadedStrings