packages feed

consumers-2.2.0.5: consumers.cabal

name:               consumers
version:            2.2.0.5
synopsis:           Concurrent PostgreSQL data consumers

description:        Library for setting up concurrent consumers of data
                    stored inside PostgreSQL database in a simple,
                    declarative manner.

homepage:           https://github.com/scrive/consumers
license:            BSD3
license-file:       LICENSE
extra-source-files: CHANGELOG.md, README.md
author:             Scrive AB
maintainer:         Andrzej Rybczak <andrzej@rybczak.net>,
                    Jonathan Jouty <jonathan@scrive.com>,
                    Mikhail Glushenkov <mikhail@scrive.com>
copyright:          Scrive AB
category:           Concurrency, Database
build-type:         Simple
cabal-version:      >=1.10
tested-with:        GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.4
                     || ==9.0.1

Source-repository head
  Type:             git
  Location:         https://github.com/scrive/consumers.git

library
  exposed-modules:  Database.PostgreSQL.Consumers,
                    Database.PostgreSQL.Consumers.Config,
                    Database.PostgreSQL.Consumers.Consumer,
                    Database.PostgreSQL.Consumers.Components,
                    Database.PostgreSQL.Consumers.Utils

  build-depends:    base              >= 4.9    && < 5
                  , containers        >= 0.5    && < 0.7
                  , exceptions        >= 0.10   && < 0.11
                  , extra             >= 1.6    && < 1.8
                  , hpqtypes          >= 1.7    && < 2.0
                  , lifted-base       >= 0.2    && < 0.3
                  , lifted-threads    >= 1.0    && < 1.1
                  , log-base          >= 0.11   && < 0.12
                  , monad-control     >= 1.0    && < 1.1
                  , monad-time        >= 0.3    && < 0.4
                  , mtl               >= 2.2    && < 2.3
                  , stm               >= 2.4    && < 2.6
                  , time              >= 1.6    && < 2.0
                  , transformers-base >= 0.4    && < 0.5

  hs-source-dirs:   src

  ghc-options:      -Wall

  default-language: Haskell2010
  default-extensions: DeriveDataTypeable
                    , FlexibleContexts
                    , GeneralizedNewtypeDeriving
                    , NoImplicitPrelude
                    , OverloadedStrings
                    , RankNTypes
                    , RecordWildCards
                    , ScopedTypeVariables
                    , TupleSections
                    , TypeFamilies
                    , UndecidableInstances

test-suite consumers-example
  -- Not quite a test suite, just a lazy way to disable this component
  -- by default, but have Travis build it.
  type:               exitcode-stdio-1.0
  hs-source-dirs:     example
  main-is:            Example.hs
  default-language:   Haskell2010
  ghc-options:        -Wall
  build-depends:      base,
                      consumers,
                      hpqtypes,
                      hpqtypes-extras >= 1.9 && < 2.0,
                      log-base,
                      text,
                      text-show,
                      transformers

test-suite consumers-test
  type:               exitcode-stdio-1.0
  hs-source-dirs:     test
  main-is:            Test.hs
  default-language:   Haskell2010
  ghc-options:        -Wall
  build-depends:      base,
                      consumers,
                      exceptions,
                      HUnit,
                      hpqtypes,
                      hpqtypes-extras,
                      log-base,
                      monad-control,
                      monad-loops,
                      monad-time,
                      mtl,
                      stm,
                      text,
                      text-show,
                      time,
                      transformers,
                      transformers-base