packages feed

gerrit-0.1.6.0: gerrit.cabal

cabal-version:       2.4
name:                gerrit
version:             0.1.6.0
synopsis:            A gerrit client library
description:
    Gerrit is a client library to interface with https://www.gerritcodereview.com/
    .
    Use this library to query and post to gerrit REST API.
    .
homepage:            https://github.com/softwarefactory-project/gerrit-haskell#readme
bug-reports:         https://github.com/softwarefactory-project/gerrit-haskell/issues
license:             Apache-2.0
license-file:        LICENSE
author:              Tristan de Cacqueray
maintainer:          tdecacqu@redhat.com
copyright:           2020 Red Hat
category:            Development
build-type:          Simple
extra-doc-files:     CHANGELOG.md
                     README.md
extra-source-files:  test/data/*.json
tested-with:         GHC == 8.10.4

source-repository head
  type:                git
  location:            https://github.com/softwarefactory-project/gerrit-haskell.git

common common-options
  build-depends:       base                   >= 4.11.0.0 && < 5
                     , aeson                  >= 1.0.0.0  && < 2.1
                     , bytestring             < 0.12
                     , time                   >= 1.9.3    && < 2.0
  ghc-options:         -Wall
                       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
                       -Wpartial-fields
  if impl(ghc >= 8.10)
    ghc-options:       -Wunused-packages

  default-language:    Haskell2010

library
  import:              common-options
  build-depends:       containers             >= 0.5.8.0  && < 0.7
                     , http-client            >= 0.5.0    && < 0.8
                     , http-client-openssl    >= 0.3.0    && < 0.4
                     , text                   >= 0.11.1.0 && < 1.3
                     , aeson-casing           >= 0.2.0.0  && < 0.3.0.0

  hs-source-dirs:      src
  exposed-modules:     Gerrit
                     , Gerrit.Data.Review
                     , Gerrit.Data.Change
                     , Gerrit.Data.Account
                     , Gerrit.Data.Event
                     , Gerrit.Data.Project
  other-modules:       Gerrit.Client

test-suite gerrit-test
  import:              common-options
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       directory
                     , gerrit
                     , tasty                      >= 0.11.2   && < 1.5
                     , tasty-hunit                >= 0.10     && < 0.11
  ghc-options:         -threaded
                       -rtsopts
                       -with-rtsopts=-N