packages feed

http-exchange-0.2.0.1: http-exchange.cabal

cabal-version:   3.0
name:            http-exchange
version:         0.2.0.1
synopsis:        Perform HTTP Requests
description:
  Perform HTTP requests. This uses backpack and is agnostic to the backend.

license:         BSD-3-Clause
license-file:    LICENSE
author:          Andrew Martin
maintainer:      amartin@layer3com.com
homepage:        https://github.com/byteverse/http-exchange
bug-reports:     https://github.com/byteverse/http-exchange/issues
copyright:       2023 Andrew Martin
category:        Data
build-type:      Simple
extra-doc-files: CHANGELOG.md
tested-with:     GHC ==9.4.8 || ==9.6.3 || ==9.8.1

common build-settings
  default-language: GHC2021
  ghc-options:      -Wall -Wunused-packages

library types
  import:          build-settings
  ghc-options:     -O2
  exposed-modules: Http.Exchange.Types
  build-depends:
    , base       >=4.16.3.0 && <5
    , byteslice  >=0.2.11.1

  hs-source-dirs:  src-types

library testdep
  import:          build-settings
  ghc-options:     -O2
  exposed-modules: OkChannel
  build-depends:
    , base       >=4.16.3.0 && <5
    , byteslice  >=0.2.11
    , types

  hs-source-dirs:  src-testdep

library
  import:          build-settings
  signatures:      Channel
  ghc-options:     -O2
  exposed-modules: Exchange
  build-depends:
    , base              >=4.16.3.0 && <5
    , byteslice         >=0.2.11
    , bytesmith         >=0.3.9
    , http-interchange  >=0.3.1
    , text              >=2.0
    , types

  hs-source-dirs:  src

test-suite test
  import:         build-settings
  type:           exitcode-stdio-1.0
  hs-source-dirs: test
  main-is:        Main.hs
  build-depends:
    , base              >=4.16.3.0 && <5
    , byteslice
    , http-exchange
    , http-interchange  >=0.3.1
    , tasty             >=1.4.3
    , tasty-hunit       >=0.10.0.3
    , testdep

  mixins:
    http-exchange (Exchange as OkExchange) requires (Channel as OkChannel)

source-repository head
  type:     git
  location: git://github.com/byteverse/http-exchange.git