name:                rhbzquery
version:             0.2
synopsis:            Bugzilla query tool
description:
        A CLI tool for creating bugzilla queries for bugzilla.redhat.com.
license:             BSD3
license-file:        LICENSE
author:              Jens Petersen
maintainer:          petersen@redhat.com
copyright:           2020  Jens Petersen <petersen@redhat.com>
category:            Utils
homepage:            https://github.com/juhp/rhbzquery
bug-reports:         https://github.com/juhp/rhbzquery/issues
build-type:          Simple
extra-doc-files:     ChangeLog.md
                     README.md
                     TODO
cabal-version:       1.18
tested-with:         GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.2

source-repository head
  type:                git
  location:            https://github.com/juhp/rhbzquery.git

executable rhbzquery
  main-is:             Main.hs
  other-modules:       Bugzilla
                       Fields
                       Help
                       ParseArg
                       Paths_rhbzquery
                       User
  build-depends:       base <5
                     , bytestring
                     , config-ini
                     , directory
                     , email-validate
                     , extra
                     , filepath
                     , http-types
                     , optparse-applicative
                     , simple-cmd
                     , simple-cmd-args
                     , text
  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall
  if impl(ghc >= 8.0)
    ghc-options:       -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

test-suite test
    main-is: tests.hs
    type: exitcode-stdio-1.0
    hs-source-dirs: test

    default-language: Haskell2010

    ghc-options:   -Wall
    build-depends: base >= 4 && < 5
                 , simple-cmd