packages feed

request-0.5.0.0: request.cabal

name:                request
version:             0.5.0.0
synopsis:            High level HTTP client for haskell
description:         HTTP client for haskell, inspired by requests and http-dispatch.
homepage:            https://github.com/aisk/haskell-request#readme
license:             BSD3
license-file:        LICENSE
author:              An Long
maintainer:          aisk1988@gmail.com
copyright:           2020 AN Long
category:            Web
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  -- TODO: Internal.Sse is exposed only so the test suite can import it. Keep it
  -- this way for now. Once internal sublibraries are mature enough, upgrade to
  -- cabal-version 3.0 and move the Internal modules into a private sublibrary.
  exposed-modules:     Network.HTTP.Request
                     , Network.HTTP.Request.Internal.Sse
  other-modules:       Network.HTTP.Request.Internal.Auth
                     , Network.HTTP.Request.Internal.Body
                     , Network.HTTP.Request.Internal.Charset
                     , Network.HTTP.Request.Internal.Client
                     , Network.HTTP.Request.Internal.Query
                     , Network.HTTP.Request.Internal.Status
                     , Network.HTTP.Request.Internal.Types
  build-depends:       base               >= 4.16 && < 5
                     , aeson              >= 2.0 && < 2.3
                     , base64-bytestring  >= 1.2 && < 1.3
                     , bytestring         >= 0.10.12 && < 0.13
                     , case-insensitive   >= 1.2.1 && < 1.3
                     , http-client        >= 0.6.4 && < 0.8
                     , http-types         >= 0.12.3 && < 0.13
                     , http-client-tls    >= 0.3.5 && < 0.4
                     , text               >= 2.0 && < 2.2
  ghc-options:         -Wall
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/aisk/haskell-request

test-suite spec
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , request
                     , hspec
                     , http-client        >= 0.6.4 && < 0.8
                     , bytestring         >= 0.10.12 && < 0.13
                     , text               >= 2.0 && < 2.2
                     , aeson
  ghc-options:         -Wall
  default-language:    Haskell2010