-
Notifications
You must be signed in to change notification settings - Fork 23
/
servant-auth-cookie.cabal
246 lines (218 loc) · 7.34 KB
/
servant-auth-cookie.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
234
235
236
237
238
239
240
241
242
243
244
245
246
name: servant-auth-cookie
version: 0.6.0.3
synopsis: Authentication via encrypted cookies
description: Authentication via encrypted client-side cookies,
inspired by client-session library by Michael Snoyman and based on
ideas of the paper "A Secure Cookie Protocol" by Alex Liu et al.
license: BSD3
license-file: LICENSE
author: Al Zohali
maintainer: Al Zohali <zohl@fmap.me>
copyright: Al Zohali <zohl@fmap.me>, Mark Karpov <markkarpov@opmbx.org>
category: Web
build-type: Simple
cabal-version: >=1.10
extra-source-files:
CHANGELOG.md
source-repository head
type: git
location: https://github.com/zohl/servant-auth-cookie.git
flag dev
description: Turn on development settings.
manual: True
default: False
flag servant9
description: Use servant-0.9 (or higher)
manual: False
default: True
flag servant91
description: Use servant-0.9.1 (or higher)
manual: False
default: True
flag build-examples
description: Build example executables.
manual: True
default: False
library
exposed-modules:
Servant.Server.Experimental.Auth.Cookie
build-depends: base >= 4.7 && < 5.0
, base64-bytestring
, blaze-builder >= 0.4 && < 0.4.1
, bytestring
, cereal >= 0.5 && < 0.6
, cereal-time >= 0.1 && < 0.2
, cookie >= 0.4.1 && < 0.5
, cryptonite >= 0.14 && < 0.25
, data-default
, exceptions >= 0.8 && < 0.9
, http-types >= 0.9 && < 0.12
, memory >= 0.11 && < 0.15
, mtl >= 2.0 && < 3.0
, servant >= 0.5 && < 0.13
, servant-server >= 0.5 && < 0.13
, tagged == 0.8.*
, text
, time >= 1.6 && < 1.8.1
, transformers >= 0.4 && < 0.6
, wai >= 3.0 && < 3.3
if flag(dev)
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall
hs-source-dirs: src
default-language: Haskell2010
if flag(servant9)
build-depends:
servant >= 0.9,
http-api-data == 0.3.*
else
if flag(servant91)
build-depends:
servant >= 0.9,
http-api-data == 0.3.*
else
build-depends:
servant < 0.9,
bytestring-conversion >= 0.3.1 && <0.4
test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: Main.hs
other-modules: Utils
if flag(dev)
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall
build-depends: base >= 4.7 && < 5.0
, QuickCheck >= 2.4 && < 3.0
, bytestring
, cereal >= 0.5 && < 0.6
, cryptonite >= 0.14 && < 0.25
, data-default
, deepseq >= 1.3 && < 1.5
, exceptions
, hspec >= 2.0 && < 3.0
, servant-auth-cookie
, servant-server >= 0.5 && < 0.13
, tagged == 0.8.*
, template-haskell
, transformers >= 0.4 && < 0.6
, time >= 1.5 && < 1.8.1
default-language: Haskell2010
executable example
main-is: Main.hs
hs-source-dirs: example
if flag(build-examples)
build-depends: base >= 4.7 && < 5.0
, base-compat >= 0.9.1 && <0.10
, base64-bytestring
, blaze-html >= 0.8 && < 0.10
, blaze-markup >= 0.7 && < 0.9
, bytestring
, cereal >= 0.5 && < 0.6
, cryptonite >= 0.14 && < 0.25
, data-default
, directory
, exceptions
, filepath
, http-media
, http-types >= 0.9 && < 0.12
, mtl >= 2.0 && < 3.0
, servant >= 0.5 && < 0.13
, servant-auth-cookie
, servant-blaze >= 0.5 && < 0.8
, servant-server >= 0.5 && < 0.13
, text
, time
, transformers >= 0.4 && < 0.6
, wai >= 3.0 && < 3.3
, warp >= 3.0 && < 3.3
if flag(servant9)
build-depends:
servant >= 0.9,
http-api-data == 0.3.*
other-modules:
AuthAPI
FileKeySet
else
build-depends:
servant < 0.9,
bytestring-conversion >= 0.3.1 && <0.4
else
buildable: False
if flag(dev)
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall
default-language: Haskell2010
test-suite example-tests
type: exitcode-stdio-1.0
hs-source-dirs: example
main-is: Test.hs
if flag(dev)
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall
if flag(build-examples)
build-depends: base >= 4.7 && < 5.0
, base-compat >= 0.9.1 && <0.10
, base64-bytestring
, blaze-markup
, blaze-html >= 0.8 && < 0.10
, bytestring
, cereal >= 0.5 && < 0.6
, cookie
, exceptions
, cryptonite >= 0.14 && < 0.25
, data-default
, deepseq >= 1.3 && < 1.5
, directory
, filepath
, http-media
, http-types >= 0.9 && < 0.12
, hspec >= 2.0 && < 3.0
, hspec-wai
, mtl >= 2.0 && < 3.0
, QuickCheck >= 2.4 && < 3.0
, servant-auth-cookie
, servant-blaze >= 0.5 && < 0.8
, servant-server >= 0.5 && < 0.13
, text
, time >= 1.5 && < 1.8.1
, transformers >= 0.4 && < 0.6
, wai
, wai-extra
if flag(servant9)
build-depends:
servant >= 0.9,
http-api-data == 0.3.*
else
if flag(servant91)
build-depends:
servant >= 0.9.1,
http-api-data == 0.3.*
else
build-depends:
servant < 0.9,
bytestring-conversion >= 0.3.1 && <0.4
if !impl(ghc >= 7.8)
build-depends: tagged == 0.8.*
else
buildable: False
default-language: Haskell2010
benchmark bench
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Main.hs
default-language: Haskell2010
build-depends: base >= 4.7 && < 5.0
, bytestring
, criterion >= 0.6.2.1 && < 1.4
, cryptonite >= 0.14 && < 0.25
, servant-auth-cookie
, servant-server >= 0.5 && < 0.13
if flag(dev)
ghc-options: -Wall -Werror
else
ghc-options: -O2 -Wall