name:                bugzilla-redhat
version:             1.0.1
synopsis:            A Haskell interface to the Bugzilla native REST API
description:         This package is designed to provide an easy-to-use,
                     type-safe interface to querying Bugzilla from Haskell.
                     .
                     This is a friendly fork of Seth Fowler's library,
                     with updates and API tweaks needed for
                     bugzilla.redhat.com.
homepage:            https://github.com/juhp/hsbugzilla
license:             BSD3
license-file:        LICENSE
author:              Seth Fowler <mark.seth.fowler@gmail.com>
maintainer:          Jens Petersen <juhpetersen@gmail.com>
copyright:           2014 Seth Fowler,
                     2020-2022 Jens Petersen
category:            Web
build-type:          Simple
extra-source-files:  README.md
                     ChangeLog.md
                     TODO
cabal-version:       >=1.10

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

flag BuildDemo
  description:  Build the 'bugzilla' demo program
  default:      False

library
  ghc-options:         -Wall
  exposed-modules:     Web.RedHatBugzilla,
                       Web.RedHatBugzilla.Search
  other-modules:       Web.RedHatBugzilla.Internal.Network,
                       Web.RedHatBugzilla.Internal.Search,
                       Web.RedHatBugzilla.Internal.Types
  build-depends:       base >=4.6 && <5,
                       aeson >=0.7 && <2.2,
                       blaze-builder >=0.3 && <0.5,
                       bytestring >=0.10,
                       connection >=0.2 && <0.4,
                       containers >=0.5 && <0.7,
                       http-conduit >=2.1.11 && <2.4,
                       http-types >=0.8 && <0.13,
                       iso8601-time >=0.1 && <1.6,
                       resourcet >=0.4,
                       text >=0.11,
                       time >=1.4 && <1.13,
                       transformers >=0.3 && <0.6,
                       unordered-containers >=0.2 && <0.3,
                       vector >= 0.10 && <0.13
  hs-source-dirs:      src
  default-language:    Haskell2010

executable bugzilla
  if flag(BuildDemo)
    buildable:         True
  else
    buildable:         False

  ghc-options:         -Wall
  main-is:             BugzillaDemo.hs
  build-depends:       base >=4.6 && <5,
                       bugzilla-redhat,
                       containers >=0.5 && <0.7,
                       text >=0.11,
                       time >=1.4 && <1.13
  hs-source-dirs:      demo
  default-language:    Haskell2010

test-suite bugzilla-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base >=4.6 && <5,
                       aeson >=0.7 && <2.2,
                       bugzilla-redhat,
                       hspec >=2.0 && <3.0,
                       time >=1.4 && <1.13
  ghc-options:         -Wall
  default-language:    Haskell2010
