packages feed

hw-kafka-avro-5.0.0: hw-kafka-avro.cabal

cabal-version:  2.4

name:           hw-kafka-avro
version:        5.0.0
synopsis:       Avro support for Kafka infrastructure
description:    Avro support for Kafka infrastructure.
category:       Services
homepage:       https://github.com/haskell-works/hw-kafka-avro#readme
bug-reports:    https://github.com/haskell-works/hw-kafka-avro/issues
author:         Alexey Raga
maintainer:     alexey.raga@gmail.com
copyright:      Alexey Raga
license:        BSD-3-Clause
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md

source-repository head
  type: git
  location: https://github.com/haskell-works/hw-kafka-avro

flag examples
  description: Also compile examples
  manual: True
  default: False

library
  exposed-modules:
      Kafka.Avro
      Kafka.Avro.Decode
      Kafka.Avro.Encode
      Kafka.Avro.SchemaRegistry
  hs-source-dirs: src
  build-depends:
      aeson
    , avro >=0.5 && <0.6
    , base >=4.7 && <5
    , binary
    , bytestring
    , cache
    , containers
    , errors
    , hashable
    , http-client
    , http-types
    , lens
    , mtl
    , pure-zlib >=0.6
    , semigroups
    , tagged
    , text
    , transformers
    , unordered-containers
    , wreq
  default-language: Haskell2010

executable kafka-avro-example
  main-is: Main.hs
  other-modules:
      Message
  hs-source-dirs: example
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      aeson
    , avro  >=0.5 && <0.6
    , base
    , binary
    , bytestring
    , cache
    , containers
    , errors
    , hashable
    , http-client
    , hw-kafka-avro
    , mtl
    , pure-zlib >=0.6
    , semigroups
    , text
    , transformers
    , unordered-containers
  if !(flag(examples))
    buildable: False
  default-language: Haskell2010

test-suite kafka-avro-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
  hs-source-dirs: test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      QuickCheck
    , aeson
    , avro  >=0.5 && <0.6
    , base
    , binary
    , bytestring
    , cache
    , containers
    , errors
    , hashable
    , hspec
    , http-client
    , hw-kafka-avro
    , mtl
    , pure-zlib >=0.6
    , semigroups
    , text
    , transformers
    , unordered-containers
  default-language: Haskell2010