on f730c16 help sign in
typeable/req/req.cabal
127 lines 3.7 kB history raw
1cabal-version: 2.4
2name: req
3version: 3.13.4
4license: BSD-3-Clause
5license-file: LICENSE.md
6maintainer: Mark Karpov <markkarpov92@gmail.com>
7author: Mark Karpov <markkarpov92@gmail.com>
8tested-with: ghc ==9.6.3 ghc ==9.8.2 ghc ==9.10.1
9homepage: https://github.com/mrkkrp/req
10bug-reports: https://github.com/mrkkrp/req/issues
11synopsis: HTTP client library
12description: HTTP client library.
13category: Network, Web
14build-type: Simple
15data-files:
16 httpbin-data/utf8.html
17 httpbin-data/robots.txt
19extra-doc-files:
20 CHANGELOG.md
21 README.md
23source-repository head
24 type: git
25 location: https://github.com/mrkkrp/req.git
27flag dev
28 description: Turn on development settings.
29 default: False
30 manual: True
32library
33 exposed-modules: Network.HTTP.Req
34 default-language: GHC2021
35 build-depends:
36 aeson >=0.9 && <3,
37 authenticate-oauth >=1.5 && <1.8,
38 base >=4.15 && <5,
39 blaze-builder >=0.3 && <0.5,
40 bytestring >=0.10.8 && <0.13,
41 case-insensitive >=0.2 && <1.3,
42 containers >=0.5 && <0.8,
43 crypton-connection >=0.4.2 && <0.5,
44 data-default-class >=0.2.0.0,
45 exceptions >=0.6 && <0.11,
46 http-api-data >=0.2 && <0.7,
47 http-client >=0.7.13.1 && <0.8,
48 http-client-tls >=0.3.2 && <0.4,
49 http-types >=0.8 && <10,
50 modern-uri >=0.3 && <0.4,
51 monad-control >=1.0 && <1.1,
52 mtl >=2.0 && <3.0,
53 retry >=0.8 && <0.10,
54 template-haskell >=2.19 && <2.23,
55 text >=0.2 && <2.2,
56 transformers >=0.5.3.0 && <0.7,
57 transformers-base,
58 unliftio-core >=0.1.1 && <0.3
60 if flag(dev)
61 ghc-options:
62 -Wall -Werror -Wpartial-fields -Wunused-packages
63 -Wno-unused-imports
65 else
66 ghc-options: -O2 -Wall
68test-suite pure-tests
69 type: exitcode-stdio-1.0
70 main-is: Spec.hs
71 build-tool-depends: hspec-discover:hspec-discover >=2 && <3
72 hs-source-dirs: pure-tests
73 other-modules: Network.HTTP.ReqSpec
74 default-language: GHC2021
75 build-depends:
76 QuickCheck >=2.7 && <3,
77 aeson >=0.9 && <3,
78 base >=4.15 && <5.0,
79 blaze-builder >=0.3 && <0.5,
80 bytestring >=0.10.8 && <0.13,
81 case-insensitive >=0.2 && <1.3,
82 hspec >=2.0 && <3,
83 hspec-core >=2.0 && <3,
84 http-api-data >=0.2 && <0.7,
85 http-client >=0.7 && <0.8,
86 http-types >=0.8 && <10,
87 modern-uri >=0.3 && <0.4,
88 req,
89 retry >=0.8 && <0.10,
90 template-haskell >=2.19 && <2.23,
91 text >=0.2 && <2.2,
92 time >=1.2 && <1.15
94 if flag(dev)
95 ghc-options:
96 -Wall -Werror -Wredundant-constraints -Wpartial-fields
97 -Wunused-packages
99 else
100 ghc-options: -O2 -Wall
102test-suite httpbin-tests
103 type: exitcode-stdio-1.0
104 main-is: Spec.hs
105 build-tool-depends: hspec-discover:hspec-discover >=2 && <3
106 hs-source-dirs: httpbin-tests
107 other-modules: Network.HTTP.ReqSpec
108 default-language: GHC2021
109 build-depends:
110 QuickCheck >=2.7 && <3,
111 aeson >=2 && <3,
112 base >=4.15 && <5,
113 bytestring >=0.10.8 && <0.13,
114 hspec >=2.0 && <3.0,
115 http-client >=0.7 && <0.8,
116 http-types >=0.8 && <10,
117 monad-control >=1.0 && <1.1,
118 req,
119 text >=0.2 && <2.2
121 if flag(dev)
122 ghc-options:
123 -Wall -Werror -Wredundant-constraints -Wpartial-fields
124 -Wunused-packages
126 else
127 buildable: False