packages feed

req-conduit-1.0.1: req-conduit.cabal

cabal-version:   1.18
name:            req-conduit
version:         1.0.1
license:         BSD3
license-file:    LICENSE.md
maintainer:      Mark Karpov <markkarpov92@gmail.com>
author:
    Mark Karpov <markkarpov92@gmail.com>, Michael Snoyman <michael@snoyman.com>

tested-with:     ghc ==8.8.4 ghc ==8.10.5 ghc ==9.0.1
homepage:        https://github.com/mrkkrp/req-conduit
bug-reports:     https://github.com/mrkkrp/req-conduit/issues
synopsis:        Conduit helpers for the req HTTP client library
description:     Conduit helpers for the req HTTP client library.
category:        Network, Web, Conduit
build-type:      Simple
extra-doc-files:
    CHANGELOG.md
    README.md

source-repository head
    type:     git
    location: https://github.com/mrkkrp/req-conduit.git

flag dev
    description: Turn on development settings.
    default:     False
    manual:      True

library
    exposed-modules:  Network.HTTP.Req.Conduit
    default-language: Haskell2010
    build-depends:
        base >=4.13 && <5.0,
        bytestring >=0.2 && <0.12,
        conduit >=1.3 && <1.4,
        http-client >=0.5 && <0.8,
        req >=1.0 && <4.0,
        resourcet >=1.1 && <1.3,
        transformers >=0.4 && <0.6

    if flag(dev)
        ghc-options: -Wall -Werror

    else
        ghc-options: -O2 -Wall

    if flag(dev)
        ghc-options:
            -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns
            -Wnoncanonical-monad-instances

test-suite httpbin-tests
    type:             exitcode-stdio-1.0
    main-is:          Spec.hs
    build-tools:      hspec-discover >=2.0 && <3.0
    hs-source-dirs:   httpbin-tests
    other-modules:    Network.HTTP.Req.ConduitSpec
    default-language: Haskell2010
    build-depends:
        base >=4.13 && <5.0,
        bytestring >=0.2 && <0.12,
        conduit >=1.3 && <1.4,
        conduit-extra >=1.1.10 && <1.4,
        hspec >=2.0 && <3.0,
        req >=1.0 && <4.0,
        req-conduit,
        resourcet >=1.1 && <1.3,
        temporary >=1.1 && <1.4,
        transformers >=0.4 && <0.6

    if flag(dev)
        ghc-options: -Wall -Werror

    else
        ghc-options: -O2 -Wall

benchmark weigh-bench
    type:             exitcode-stdio-1.0
    main-is:          Main.hs
    hs-source-dirs:   weigh-bench
    default-language: Haskell2010
    build-depends:
        base >=4.13 && <5.0,
        bytestring >=0.2 && <0.12,
        conduit >=1.3 && <1.4,
        conduit-extra >=1.1.10 && <1.4,
        req >=1.0 && <4.0,
        req-conduit,
        resourcet >=1.1 && <1.3,
        temporary >=1.1 && <1.4,
        weigh >=0.0.4

    if flag(dev)
        ghc-options: -O2 -Wall -Werror

    else
        ghc-options: -O2 -Wall