-
Notifications
You must be signed in to change notification settings - Fork 70
/
wreq.cabal
233 lines (218 loc) · 5.07 KB
/
wreq.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
cabal-version: 3.0
name: wreq
version: 0.5.4.3
synopsis: An easy-to-use HTTP client library.
description:
.
A web client library that is designed for ease of use.
.
Tutorial: <http://www.serpentine.com/wreq/tutorial.html>
.
Features include:
.
* Simple but powerful `lens`-based API
.
* A solid test suite, and built on reliable libraries like
http-client and lens
.
* Session handling includes connection keep-alive and pooling, and
cookie persistence
.
* Automatic response body decompression
.
* Powerful multipart form and file upload handling
.
* Support for JSON requests and responses, including navigation of
schema-less responses
.
* Basic and OAuth2 bearer authentication
.
* Early TLS support via the tls package
homepage: http://www.serpentine.com/wreq
bug-reports: https://github.com/haskell/wreq/issues
license: BSD-3-Clause
license-file: LICENSE.md
author: Bryan O'Sullivan <bos@serpentine.com>
maintainer: Ondřej Palkovský
copyright: 2014 Bryan O'Sullivan
category: Web
build-type: Custom
tested-with: GHC ==9.2.8 || ==9.4.8 || ==9.6.4
extra-source-files:
README.md
TODO.md
changelog.md
examples/*.cabal
examples/*.hs
www/*.css
www/*.md
www/Makefile
custom-setup
setup-depends:
base < 5, Cabal < 4.0, cabal-doctest >=1.0.2 && <1.1
-- disable doctests with -f-doctest
flag doctest
description: enable doctest tests
default: True
manual: True
-- enable aws with -faws
flag aws
description: enable AWS tests
default: False
manual: True
-- enable httpbin with -fhttpbin
flag httpbin
description: enable httpbin test daemon
default: False
manual: True
flag developer
description: build in developer mode
default: False
manual: True
library
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
if flag(developer)
ghc-options: -Werror
default-language: Haskell98
exposed-modules:
Network.Wreq
Network.Wreq.Cache
Network.Wreq.Cache.Store
Network.Wreq.Lens
Network.Wreq.Session
Network.Wreq.Types
other-modules:
Network.Wreq.Internal
Network.Wreq.Internal.AWS
Network.Wreq.Internal.Lens
Network.Wreq.Internal.Link
Network.Wreq.Internal.OAuth1
Network.Wreq.Internal.Types
Network.Wreq.Lens.Machinery
Network.Wreq.Lens.TH
Paths_wreq
autogen-modules:
Paths_wreq
build-depends:
psqueues >= 0.2,
aeson >= 0.7.0.3,
attoparsec >= 0.11.1.0,
authenticate-oauth >= 1.5,
base >= 4.13 && < 5,
base16-bytestring,
bytestring >= 0.9,
case-insensitive,
containers,
crypton,
exceptions >= 0.5,
ghc-prim,
hashable,
http-client >= 0.6,
http-client-tls >= 0.3.3,
http-types >= 0.8,
lens >= 4.5,
lens-aeson,
memory,
mime-types,
time-locale-compat,
template-haskell,
text,
time >= 1.5,
unordered-containers
-- A convenient server for testing locally, or if httpbin.org is down.
executable httpbin
hs-source-dirs: httpbin
ghc-options: -Wall -fwarn-tabs -threaded -rtsopts
if flag(developer)
ghc-options: -Werror
default-language: Haskell98
main-is: HttpBin.hs
other-modules: HttpBin.Server
if !flag(httpbin)
buildable: False
else
build-depends:
aeson >= 2.0,
aeson-pretty >= 0.8.0,
base >= 4.13 && < 5,
base64-bytestring,
bytestring,
case-insensitive,
containers,
snap-core >= 1.0.0.0,
snap-server >= 0.9.4.4,
text,
time,
transformers,
unix-compat,
uuid
test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: httpbin tests
main-is: Tests.hs
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -threaded -rtsopts
if flag(developer)
ghc-options: -Werror
default-language: Haskell98
other-modules:
Properties.Store
UnitTests
HttpBin.Server
if flag(aws)
cpp-options: -DAWS_TESTS
other-modules:
AWS
AWS.Aeson
AWS.DynamoDB
AWS.IAM
AWS.S3
AWS.SQS
build-depends:
HUnit,
QuickCheck >= 2.7,
aeson,
aeson-pretty >= 0.8.0,
base >= 4.13 && < 5,
base64-bytestring,
bytestring,
case-insensitive,
containers,
hashable,
http-client,
http-types,
lens,
lens-aeson,
network-info,
snap-core >= 1.0.0.0,
snap-server >= 0.9.4.4,
temporary,
test-framework,
test-framework-hunit,
test-framework-quickcheck2,
text,
time,
transformers,
unordered-containers,
unix-compat,
uuid,
vector,
wreq
test-suite doctests
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: doctests.hs
ghc-options: -Wall -fwarn-tabs -threaded
if flag(developer)
ghc-options: -Werror
default-language: Haskell2010
if !flag(doctest)
buildable: False
else
build-depends:
base >= 4.13 && < 5,
directory,
doctest,
filepath
source-repository head
type: git
location: https://github.com/haskell/wreq