name:                twfy-api-client
version:             0.2.0.0
synopsis:            They Work For You API Client Library
description:         Please see README.md
homepage:            https://github.com/wiggly/twfy-api-client#readme
license:             BSD3
license-file:        LICENSE
author:              Nigel Rantor
maintainer:          wiggly@wiggly.org
copyright:           2016 Nigel Rantor
category:            API
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10
stability: alpha
bug-reports: https://github.com/wiggly/twfy-api-client/issues

library
  hs-source-dirs:      src
  exposed-modules:     Twfy.Client Twfy.Api Twfy.Data.Constituency Twfy.Data.MP Twfy.Data.JsonIso8859 Twfy.Util.Json
  build-depends:       base >= 4.7 && < 5
                     , base-compat
                     , mtl
                     , either
                     , transformers
                     , exceptions
                     , bytestring
                     , text
                     , aeson
                     , aeson-compat
                     , servant >= 0.9.1
                     , servant-client >= 0.9.1
                     , servant-server >= 0.9.1
                     , http-client
                     , http-client-tls
                     , http-media
  default-language:    Haskell2010

executable twfy-api-client
  hs-source-dirs:      app
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base
                     , twfy-api-client
                     , http-client
                     , base-compat
                     , mtl
                     , either
                     , transformers
                     , text
                     , aeson
                     , aeson-compat
                     , servant >= 0.9.1
                     , servant-client >= 0.9.1
                     , http-client
                     , http-client-tls
                     , optparse-applicative
  default-language: Haskell2010

test-suite twfy-api-client-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , twfy-api-client
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/wiggly/twfy-api-client
