packages feed

hw-kafka-streamly-0.2.0.0: hw-kafka-streamly.cabal

cabal-version:   3.4
name:            hw-kafka-streamly
version:         0.2.0.0
synopsis:        Streamly bindings for hw-kafka-client
description:
  Streamly streaming integration for hw-kafka-client, a Haskell
  binding to Apache Kafka via librdkafka. Provides composable streams
  for consuming and folds for producing, with safe resource management.

license:         MIT
license-file:    LICENSE
author:          Nadeem Bitar
maintainer:      Nadeem Bitar
copyright:       2026 Nadeem Bitar
category:        Kafka
homepage:        https://github.com/shinzui/hw-kafka-streamly
bug-reports:     https://github.com/shinzui/hw-kafka-streamly/issues
build-type:      Simple
tested-with:     GHC ==9.12.2
extra-doc-files:
  CHANGELOG.md
  README.md

source-repository head
  type:     git
  location: https://github.com/shinzui/hw-kafka-streamly.git

common warnings
  ghc-options:
    -Wall -Wcompat -Widentities -Wincomplete-uni-patterns
    -Wincomplete-record-updates -Wredundant-constraints
    -fhide-source-paths -Wmissing-export-lists -Wpartial-fields
    -Wmissing-deriving-strategies

library
  import:             warnings
  exposed-modules:
    Kafka.Streamly.Combinators
    Kafka.Streamly.Fold
    Kafka.Streamly.Stream

  build-depends:
    , base             >=4.21 && <5
    , bytestring       >=0.11 && <0.13
    , exceptions       >=0.10 && <1
    , hw-kafka-client  >=5.3  && <6
    , streamly-core    >=0.3  && <0.5

  hs-source-dirs:     src
  default-language:   GHC2024
  default-extensions:
    DataKinds
    DuplicateRecordFields
    ImportQualifiedPost
    LambdaCase
    NoFieldSelectors
    OverloadedRecordDot
    OverloadedStrings

test-suite hw-kafka-streamly-test
  import:             warnings
  type:               exitcode-stdio-1.0
  main-is:            Main.hs
  hs-source-dirs:     test
  other-modules:
    Kafka.Streamly.CombinatorsTest
    Kafka.Streamly.StreamTest

  build-depends:
    , base               >=4.21 && <5
    , exceptions         >=0.10 && <1
    , hw-kafka-client    >=5.3  && <6
    , hw-kafka-streamly
    , streamly-core      >=0.3  && <0.5
    , tasty              >=1.4  && <2
    , tasty-hunit        >=0.10 && <0.11
    , tasty-quickcheck   >=0.10 && <0.12

  default-language:   GHC2024
  default-extensions:
    DataKinds
    DuplicateRecordFields
    ImportQualifiedPost
    LambdaCase
    NoFieldSelectors
    OverloadedRecordDot
    OverloadedStrings

  ghc-options:        -threaded -rtsopts -with-rtsopts=-N