Skip to content

Support ghc-8.10.1 #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,24 @@ workflows:
cabal-build-extra: --write-ghc-environment-files=ghc8.4.4+
cabal-test-extra: --test-show-details=direct

- haskell/build-with-binary-cache:
name: GHC 8.10.1
executor:
name: cabal-build
ghc-version: 8.10.1
before-build: [build-librdkafka]
context: haskell-ci
binary-cache-uri: ${BINARY_CACHE_URI-"http://hw-binary-cache-us-west-2-a.s3-website-us-west-2.amazonaws.com/archive"}
cabal-build-extra: --write-ghc-environment-files=ghc8.4.4+
cabal-test-extra: --test-show-details=direct

- merge-point/merge-point:
name: Build Ok
requires:
- GHC 8.4.4
- GHC 8.6.5
- GHC 8.8.3
- GHC 8.10.1

- github/release-cabal:
name: GitHub Release
Expand Down
223 changes: 106 additions & 117 deletions hw-kafka-client.cabal
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
name: hw-kafka-client
version: 3.0.0
synopsis: Kafka bindings for Haskell
description: Apache Kafka bindings backed by the librdkafka C library.
.
Features include:
.
* Consumer groups: auto-rebalancing consumers
.
* Keyed and keyless messages producing/consuming
.
* Batch producing messages
category: Database
homepage: https://github.com/haskell-works/hw-kafka-client
bug-reports: https://github.com/haskell-works/hw-kafka-client/issues
author: Alexey Raga <[email protected]>
maintainer: Alexey Raga <[email protected]>
license: MIT
license-file: LICENSE
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
README.md
cabal-version: 2.2

name: hw-kafka-client
version: 3.0.0
synopsis: Kafka bindings for Haskell
description: Apache Kafka bindings backed by the librdkafka C library.
.
Features include:
.
* Consumer groups: auto-rebalancing consumers
.
* Keyed and keyless messages producing/consuming
.
* Batch producing messages
category: Database
homepage: https://github.com/haskell-works/hw-kafka-client
bug-reports: https://github.com/haskell-works/hw-kafka-client/issues
author: Alexey Raga <[email protected]>
maintainer: Alexey Raga <[email protected]>
license: MIT
license-file: LICENSE
tested-with: GHC == 8.10.1, GHC == 8.8.3, GHC == 8.6.5, GHC == 8.4.4
build-type: Simple
extra-source-files: README.md

source-repository head
type: git
Expand All @@ -32,106 +33,94 @@ flag examples
default: False

library
hs-source-dirs: src
ghc-options:
-Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
extra-libraries: rdkafka
build-depends:
base >=4.6 && <5
, bifunctors
, bytestring
, containers
, text
, transformers
, unix
build-tools: c2hs
hs-source-dirs: src
ghc-options: -Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
extra-libraries: rdkafka
build-depends: base >=4.6 && <5
, bifunctors
, bytestring
, containers
, text
, transformers
, unix
build-tool-depends: c2hs:c2hs
if impl(ghc <8.0)
build-depends:
semigroups
exposed-modules:
Kafka.Consumer
Kafka.Consumer.ConsumerProperties
Kafka.Consumer.Subscription
Kafka.Consumer.Types
Kafka.Dump
Kafka.Metadata
Kafka.Producer
Kafka.Producer.ProducerProperties
Kafka.Producer.Types
Kafka.Types
other-modules:
Kafka.Callbacks
Kafka.Consumer.Callbacks
Kafka.Consumer.Convert
Kafka.Internal.RdKafka
Kafka.Internal.Setup
Kafka.Internal.Shared
Kafka.Producer.Callbacks
Kafka.Producer.Convert
default-language: Haskell2010
build-depends: semigroups
exposed-modules: Kafka.Consumer
Kafka.Consumer.ConsumerProperties
Kafka.Consumer.Subscription
Kafka.Consumer.Types
Kafka.Dump
Kafka.Metadata
Kafka.Producer
Kafka.Producer.ProducerProperties
Kafka.Producer.Types
Kafka.Types
other-modules: Kafka.Callbacks
Kafka.Consumer.Callbacks
Kafka.Consumer.Convert
Kafka.Internal.RdKafka
Kafka.Internal.Setup
Kafka.Internal.Shared
Kafka.Producer.Callbacks
Kafka.Producer.Convert
default-language: Haskell2010

executable kafka-client-example
main-is: Main.hs
hs-source-dirs: example
ghc-options: -threaded -rtsopts
build-depends:
base >=4.6 && <5
, bytestring
, hw-kafka-client
, text
main-is: Main.hs
hs-source-dirs: example
ghc-options: -threaded -rtsopts
build-depends: base >=4.6 && <5
, bytestring
, hw-kafka-client
, text
if !(flag(examples))
buildable: False
buildable: False
other-modules:
ConsumerExample
ProducerExample
default-language: Haskell2010
ConsumerExample
ProducerExample
default-language: Haskell2010

test-suite integration-tests
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: tests-it
ghc-options: -Wall -threaded
build-depends:
base >=4.6 && <5
, bifunctors
, bytestring
, containers
, either
, hspec
, hw-kafka-client
, monad-loops
, random
, text
, transformers
build-tool-depends:
hspec-discover:hspec-discover
other-modules:
Kafka.IntegrationSpec
Kafka.TestEnv
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: tests-it
ghc-options: -Wall -threaded
build-depends: base >=4.6 && <5
, bifunctors
, bytestring
, containers
, either
, hspec
, hw-kafka-client
, monad-loops
, random
, text
, transformers
build-tool-depends: hspec-discover:hspec-discover
other-modules: Kafka.IntegrationSpec
Kafka.TestEnv
default-language: Haskell2010

test-suite tests
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: tests
ghc-options: -Wall -threaded
build-depends:
base >=4.6 && <5
, bifunctors
, bytestring
, containers
, either
, hspec
, hw-kafka-client
, text
, monad-loops
build-tool-depends:
hspec-discover:hspec-discover
other-modules:
Kafka.Consumer.ConsumerRecordMapSpec
Kafka.Consumer.ConsumerRecordTraverseSpec
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: tests
ghc-options: -Wall -threaded
build-depends: base >=4.6 && <5
, bifunctors
, bytestring
, containers
, either
, hspec
, hw-kafka-client
, text
, monad-loops
build-tool-depends: hspec-discover:hspec-discover
other-modules: Kafka.Consumer.ConsumerRecordMapSpec
Kafka.Consumer.ConsumerRecordTraverseSpec
default-language: Haskell2010