packages feed

req-conduit-1.0.2: req-conduit.cabal

cabal-version:   2.4
name:            req-conduit
version:         1.0.2
license:         BSD-3-Clause
license-file:    LICENSE.md
maintainer:      Mark Karpov <markkarpov92@gmail.com>
author:
    Mark Karpov <markkarpov92@gmail.com>, Michael Snoyman <michael@snoyman.com>

tested-with:     ghc ==9.4.7 ghc ==9.6.3 ghc ==9.8.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: GHC2021
    build-depends:
        base >=4.15 && <5,
        bytestring >=0.2 && <0.13,
        conduit >=1.3 && <1.4,
        http-client >=0.5 && <0.8,
        req >=1 && <4

    if flag(dev)
        ghc-options:
            -Wall -Werror -Wredundant-constraints -Wpartial-fields
            -Wunused-packages

    else
        ghc-options: -O2 -Wall

test-suite httpbin-tests
    type:               exitcode-stdio-1.0
    main-is:            Spec.hs
    build-tool-depends: hspec-discover:hspec-discover >=2 && <3
    hs-source-dirs:     httpbin-tests
    other-modules:      Network.HTTP.Req.ConduitSpec
    default-language:   GHC2021
    build-depends:
        base >=4.15 && <5,
        bytestring >=0.2 && <0.13,
        conduit >=1.3 && <1.4,
        conduit-extra >=1.1.10 && <1.4,
        hspec >=2 && <3,
        req >=1 && <4,
        req-conduit,
        temporary >=1.1 && <1.4

    if flag(dev)
        ghc-options:
            -Wall -Werror -Wredundant-constraints -Wpartial-fields
            -Wunused-packages

    else
        ghc-options: -O2 -Wall

benchmark weigh-bench
    type:             exitcode-stdio-1.0
    main-is:          Main.hs
    hs-source-dirs:   weigh-bench
    default-language: GHC2021
    build-depends:
        base >=4.15 && <5,
        bytestring >=0.2 && <0.13,
        conduit >=1.3 && <1.4,
        conduit-extra >=1.1.10 && <1.4,
        req >=1 && <4,
        req-conduit,
        temporary >=1.1 && <1.4,
        weigh >=0.0.4

    if flag(dev)
        ghc-options:
            -Wall -Werror -Wredundant-constraints -Wpartial-fields
            -Wunused-packages

    else
        ghc-options: -O2 -Wall