packages feed

servant-haxl-client-0.2.0.0: servant-haxl-client.cabal

name:                servant-haxl-client
version:             0.2.0.0
synopsis: automatical derivation of querying functions for servant webservices
description:
  This library lets you derive automatically Haskell functions that
  let you query each endpoint of a <http://hackage.haskell.org/package/servant servant> webservice.
  .
  See <http://haskell-servant.github.io/tutorial/client.html the client section of the tutorial>.
  .
  <https://github.com/haskell-servant/servant/blob/master/servant-client/CHANGELOG.md CHANGELOG>
license:             BSD3
license-file:        LICENSE
author:              ElvishJerricco, Alp Mestanogullari, Sönke Hahn, Julian K. Arni
maintainer:          elvishjerricco@gmail.com
copyright:           2016 ElvishJerricco
category:            Web
build-type:          Simple
cabal-version:       >=1.10
tested-with:         GHC >= 7.10
homepage:            http://github.com/ElvishJerricco/servant-haxl-client/
Bug-reports:         http://github.com/ElvishJerricco/servant-haxl-client/issues
-- Deal with https://github.com/haskell/cabal/issues/2544 / https://github.com/haskell/cabal/issues/367
extra-source-files: src-ghc/Servant/Haxl/Client/Internal.hs
                    src-ghc/Servant/Haxl/Client/Internal/Error.hs
                    src-ghcjs/Servant/Haxl/Client/Internal.hs
                    src-ghcjs/Servant/Haxl/Client/Internal/Error.hs
                    src/Servant/Haxl/Client.hs
                    src/Servant/Haxl/Client/BaseUrl.hs
                    src/Servant/Haxl/Client/Req.hs
                    src/Servant/Haxl/Client/Types.hs

source-repository head
  type: git
  location: http://github.com/ElvishJerricco/servant-haxl-client.git

library
  hs-source-dirs: src
  build-depends:
      base >=4.8 && <5
    , aeson
    , async
    , attoparsec
    , bytestring
    , either
    , exceptions
    , hashable
    , haxl
    , http-media
    , http-types
    , network-uri >= 2.6
    , safe
    , servant == 0.4.*
    , string-conversions
    , text
    , transformers
  if !impl(ghcjs)
    hs-source-dirs: src-ghc
    build-depends:
        http-client
      , http-client-tls
  else
    hs-source-dirs: src-ghcjs
    build-depends:
        ghcjs-base
      , case-insensitive
  exposed-modules:
    Servant.Haxl.Client
    Servant.Haxl.Client.BaseUrl
    Servant.Haxl.Client.Req
    Servant.Haxl.Client.Types
    Servant.Haxl.Client.Internal
    Servant.Haxl.Client.Internal.Error
  default-language: Haskell2010
  ghc-options: -Wall


test-suite spec
  type: exitcode-stdio-1.0
  ghc-options:
    -Wall -fno-warn-name-shadowing -fno-warn-missing-signatures
  default-language: Haskell2010
  hs-source-dirs: test
  main-is: Spec.hs
  other-modules:
      Servant.ClientSpec
    , Servant.Common.BaseUrlSpec
  build-depends:
      base == 4.*
    , aeson
    , bytestring
    , deepseq
    , either
    , haxl
    , hspec == 2.*
    , http-client
    , http-client-tls
    , http-media
    , http-types
    , HUnit
    , network >= 2.6
    , QuickCheck >= 2.7
    , servant == 0.4.*
    , servant-haxl-client
    , servant-server == 0.4.*
    , text
    , wai
    , warp