Commit | Line | Data |
---|---|---|
44b7374a RW |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> | |
9656e6e8 | 3 | ;;; Copyright © 2015, 2016, 2018 Ricardo Wurmus <rekado@elephly.net> |
44b7374a RW |
4 | ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch> |
5 | ;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org> | |
6 | ;;; Copyright © 2017 rsiddharth <s@ricketyspace.net> | |
1a1cf03f | 7 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
44b7374a RW |
8 | ;;; |
9 | ;;; This file is part of GNU Guix. | |
10 | ;;; | |
11 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
12 | ;;; under the terms of the GNU General Public License as published by | |
13 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
14 | ;;; your option) any later version. | |
15 | ;;; | |
16 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
17 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 | ;;; GNU General Public License for more details. | |
20 | ;;; | |
21 | ;;; You should have received a copy of the GNU General Public License | |
22 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
23 | ||
24 | (define-module (gnu packages haskell-web) | |
25 | #:use-module (gnu packages) | |
26 | #:use-module (gnu packages haskell) | |
27 | #:use-module (gnu packages haskell-check) | |
f24eba89 | 28 | #:use-module (gnu packages haskell-crypto) |
587d1752 | 29 | #:use-module (gnu packages tls) |
44b7374a RW |
30 | #:use-module (guix build-system haskell) |
31 | #:use-module (guix download) | |
32 | #:use-module ((guix licenses) #:prefix license:) | |
33 | #:use-module (guix packages) | |
34 | #:use-module (guix utils)) | |
35 | ||
36 | (define-public ghc-tagsoup | |
37 | (package | |
38 | (name "ghc-tagsoup") | |
545de2a2 | 39 | (version "0.14.6") |
44b7374a RW |
40 | (source |
41 | (origin | |
42 | (method url-fetch) | |
545de2a2 RW |
43 | (uri (string-append "https://hackage.haskell.org/package/tagsoup/" |
44 | "tagsoup-" version ".tar.gz")) | |
44b7374a RW |
45 | (sha256 |
46 | (base32 | |
545de2a2 | 47 | "1yv3dbyb0i1yqm796jgc4jj5kxkla1sxb3b2klw5ks182kdx8kjb")))) |
44b7374a RW |
48 | (build-system haskell-build-system) |
49 | (inputs `(("ghc-text" ,ghc-text))) | |
d3c398cf RW |
50 | (native-inputs |
51 | `(("ghc-quickcheck" ,ghc-quickcheck))) | |
52 | (home-page "http://community.haskell.org/~ndm/tagsoup/") | |
44b7374a RW |
53 | (synopsis |
54 | "Parsing and extracting information from (possibly malformed) HTML/XML | |
55 | documents") | |
56 | (description | |
57 | "TagSoup is a library for parsing HTML/XML. It supports the HTML 5 | |
58 | specification, and can be used to parse either well-formed XML, or | |
59 | unstructured and malformed HTML from the web. The library also provides | |
60 | useful functions to extract information from an HTML document, making it ideal | |
61 | for screen-scraping.") | |
62 | (license license:bsd-3))) | |
63 | ||
64 | (define-public ghc-cookie | |
65 | (package | |
66 | (name "ghc-cookie") | |
083c9c73 | 67 | (version "0.4.4") |
44b7374a RW |
68 | (source |
69 | (origin | |
70 | (method url-fetch) | |
71 | (uri (string-append | |
72 | "https://hackage.haskell.org/package/cookie/cookie-" | |
73 | version | |
74 | ".tar.gz")) | |
75 | (sha256 | |
76 | (base32 | |
083c9c73 | 77 | "1qy09i0jh2z9i9avy2khf8a8afq4fqgnv0fyrszgfg4kmq2fsi9j")))) |
44b7374a RW |
78 | (build-system haskell-build-system) |
79 | (inputs | |
80 | `(("ghc-old-locale" ,ghc-old-locale) | |
81 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
82 | ("ghc-text" ,ghc-text) | |
83 | ("ghc-data-default-class" ,ghc-data-default-class) | |
84 | ("ghc-hunit" ,ghc-hunit) | |
85 | ("ghc-quickcheck" ,ghc-quickcheck) | |
86 | ("ghc-tasty" ,ghc-tasty) | |
87 | ("ghc-tasty-hunit" ,ghc-tasty-hunit) | |
88 | ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck))) | |
89 | (home-page "https://github.com/snoyberg/cookie") | |
90 | (synopsis "HTTP cookie parsing and rendering") | |
91 | (description "HTTP cookie parsing and rendering library for Haskell.") | |
92 | (license license:bsd-3))) | |
93 | ||
57f25c7d RW |
94 | (define-public ghc-httpd-shed |
95 | (package | |
96 | (name "ghc-httpd-shed") | |
97 | (version "0.4.0.3") | |
98 | (source | |
99 | (origin | |
100 | (method url-fetch) | |
101 | (uri (string-append "https://hackage.haskell.org/package/httpd-shed/" | |
102 | "httpd-shed-" version ".tar.gz")) | |
103 | (sha256 | |
104 | (base32 | |
105 | "064jy1mqhnf1hvq6s04wlhmp916rd522x58djb9qixv13vc8gzxh")))) | |
106 | (build-system haskell-build-system) | |
107 | (inputs | |
108 | `(("ghc-network-uri" ,ghc-network-uri) | |
109 | ("ghc-network" ,ghc-network))) | |
110 | (home-page "https://hackage.haskell.org/package/httpd-shed") | |
111 | (synopsis "Simple web-server with an interact style API") | |
112 | (description | |
113 | "This web server promotes a function from @code{Request} to @code{IO | |
114 | Response} into a local web server. The user can decide how to interpret the | |
115 | requests, and the library is intended for implementing Ajax APIs.") | |
116 | (license license:bsd-3))) | |
117 | ||
44b7374a RW |
118 | (define-public ghc-http-types |
119 | (package | |
120 | (name "ghc-http-types") | |
7da274a8 | 121 | (version "0.12.1") |
44b7374a RW |
122 | (source |
123 | (origin | |
124 | (method url-fetch) | |
7da274a8 RW |
125 | (uri (string-append "https://hackage.haskell.org/package/http-types/" |
126 | "http-types-" version ".tar.gz")) | |
44b7374a RW |
127 | (sha256 |
128 | (base32 | |
7da274a8 | 129 | "1wv9k6nlvkdsxwlr7gaynphvzmvi5211gvwq96mbcxgk51a739rz")))) |
44b7374a | 130 | (build-system haskell-build-system) |
d4846779 TGR |
131 | (native-inputs |
132 | `(("ghc-doctest" ,ghc-doctest) | |
133 | ("ghc-hspec" ,ghc-hspec) | |
134 | ("ghc-quickcheck" ,ghc-quickcheck) | |
135 | ("ghc-quickcheck-instances" ,ghc-quickcheck-instances) | |
136 | ("hspec-discover" ,hspec-discover))) | |
44b7374a RW |
137 | (inputs |
138 | `(("ghc-case-insensitive" ,ghc-case-insensitive) | |
139 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
140 | ("ghc-text" ,ghc-text))) | |
141 | (home-page "https://github.com/aristidb/http-types") | |
142 | (synopsis "Generic HTTP types for Haskell") | |
143 | (description "This package provides generic HTTP types for Haskell (for | |
144 | both client and server code).") | |
145 | (license license:bsd-3))) | |
146 | ||
147 | (define-public ghc-http | |
148 | (package | |
149 | (name "ghc-http") | |
4aa46e40 | 150 | (version "4000.3.12") |
44b7374a RW |
151 | (outputs '("out" "doc")) |
152 | (source | |
153 | (origin | |
154 | (method url-fetch) | |
4aa46e40 RW |
155 | (uri (string-append "https://hackage.haskell.org/package/HTTP/" |
156 | "HTTP-" version ".tar.gz")) | |
44b7374a RW |
157 | (sha256 |
158 | (base32 | |
4aa46e40 | 159 | "140r6qy1ay25piv0z3hih11zhigyi08nkwc32097j43pjff6mzx3")))) |
44b7374a RW |
160 | (build-system haskell-build-system) |
161 | (native-inputs | |
4aa46e40 RW |
162 | `(("ghc-httpd-shed" ,ghc-httpd-shed) |
163 | ("ghc-hunit" ,ghc-hunit) | |
164 | ("ghc-test-framework" ,ghc-test-framework) | |
165 | ("ghc-test-framework-hunit" ,ghc-test-framework-hunit))) | |
44b7374a | 166 | (inputs |
4aa46e40 RW |
167 | `(("ghc-case-insensitive" ,ghc-case-insensitive) |
168 | ("ghc-conduit" ,ghc-conduit) | |
169 | ("ghc-conduit-extra" ,ghc-conduit-extra) | |
170 | ("ghc-http-types" ,ghc-http-types) | |
171 | ("ghc-old-time" ,ghc-old-time) | |
44b7374a | 172 | ("ghc-parsec" ,ghc-parsec) |
4aa46e40 | 173 | ("ghc-puremd5" ,ghc-puremd5) |
44b7374a | 174 | ("ghc-network" ,ghc-network) |
4aa46e40 RW |
175 | ("ghc-network-uri" ,ghc-network-uri) |
176 | ("ghc-split" ,ghc-split))) | |
44b7374a | 177 | (arguments |
4aa46e40 | 178 | `(#:tests? #f)) ; FIXME: currently missing libraries used for tests. |
44b7374a RW |
179 | (home-page "https://github.com/haskell/HTTP") |
180 | (synopsis "Library for client-side HTTP") | |
181 | (description | |
182 | "The HTTP package supports client-side web programming in Haskell. It | |
183 | lets you set up HTTP connections, transmitting requests and processing the | |
184 | responses coming back.") | |
185 | (license license:bsd-3))) | |
186 | ||
187 | (define-public ghc-http-client | |
188 | (package | |
189 | (name "ghc-http-client") | |
6c7a3279 | 190 | (version "0.5.13.1") |
44b7374a RW |
191 | (source (origin |
192 | (method url-fetch) | |
193 | (uri (string-append "https://hackage.haskell.org/package/" | |
194 | "http-client/http-client-" | |
195 | version ".tar.gz")) | |
196 | (sha256 | |
197 | (base32 | |
6c7a3279 | 198 | "0szwbgvkkdz56lgi91armkagmb7nnfwbpp4j7cm9zhmffv3ba8g1")))) |
44b7374a RW |
199 | (build-system haskell-build-system) |
200 | ;; Tests require access to the web. | |
201 | (arguments `(#:tests? #f)) | |
202 | (inputs | |
6c7a3279 RW |
203 | `(("ghc-async" ,ghc-async) |
204 | ("ghc-base64-bytestring" ,ghc-base64-bytestring) | |
44b7374a | 205 | ("ghc-blaze-builder" ,ghc-blaze-builder) |
44b7374a | 206 | ("ghc-case-insensitive" ,ghc-case-insensitive) |
44b7374a | 207 | ("ghc-cookie" ,ghc-cookie) |
6c7a3279 | 208 | ("ghc-data-default-class" ,ghc-data-default-class) |
44b7374a | 209 | ("ghc-exceptions" ,ghc-exceptions) |
6c7a3279 RW |
210 | ("ghc-http-types" ,ghc-http-types) |
211 | ("ghc-memory" ,ghc-memory) | |
44b7374a | 212 | ("ghc-mime-types" ,ghc-mime-types) |
44b7374a | 213 | ("ghc-monad-control" ,ghc-monad-control) |
6c7a3279 RW |
214 | ("ghc-network" ,ghc-network) |
215 | ("ghc-network-uri" ,ghc-network-uri) | |
216 | ("ghc-random" ,ghc-random) | |
217 | ("ghc-streaming-commons" ,ghc-streaming-commons) | |
218 | ("ghc-text" ,ghc-text) | |
219 | ("ghc-zlib" ,ghc-zlib))) | |
44b7374a RW |
220 | (native-inputs |
221 | `(("ghc-hspec" ,ghc-hspec))) | |
222 | (home-page "https://github.com/snoyberg/http-client") | |
223 | (synopsis "HTTP client engine") | |
224 | (description | |
225 | "This package provides an HTTP client engine, intended as a base layer | |
226 | for more user-friendly packages.") | |
227 | (license license:expat))) | |
228 | ||
229 | (define-public ghc-http-client-tls | |
230 | (package | |
231 | (name "ghc-http-client-tls") | |
89d44801 | 232 | (version "0.3.5.3") |
44b7374a RW |
233 | (source (origin |
234 | (method url-fetch) | |
235 | (uri (string-append "https://hackage.haskell.org/package/" | |
236 | "http-client-tls/http-client-tls-" | |
237 | version ".tar.gz")) | |
238 | (sha256 | |
239 | (base32 | |
89d44801 | 240 | "0qj3pcpgbsfsc4m52dz35khhl4hf1i0nmcpa445z82d9567vy6j7")))) |
44b7374a RW |
241 | (build-system haskell-build-system) |
242 | ;; Tests require Internet access | |
243 | (arguments `(#:tests? #f)) | |
244 | (inputs | |
245 | `(("ghc-data-default-class" ,ghc-data-default-class) | |
246 | ("ghc-http-client" ,ghc-http-client) | |
247 | ("ghc-connection" ,ghc-connection) | |
248 | ("ghc-network" ,ghc-network) | |
249 | ("ghc-tls" ,ghc-tls) | |
250 | ("ghc-http-types" ,ghc-http-types))) | |
251 | (native-inputs | |
252 | `(("ghc-hspec" ,ghc-hspec))) | |
253 | (home-page "https://github.com/snoyberg/http-client") | |
254 | (synopsis "Backend for http-client using the TLS library") | |
255 | (description | |
256 | "This package provides a backend for the http-client package using the | |
257 | connection and TLS libraries. It is intended for use by higher-level | |
258 | libraries, such as http-conduit.") | |
259 | (license license:expat))) | |
260 | ||
261 | (define-public ghc-http-date | |
262 | (package | |
263 | (name "ghc-http-date") | |
40e1af35 | 264 | (version "0.0.8") |
44b7374a RW |
265 | (source |
266 | (origin | |
267 | (method url-fetch) | |
268 | (uri (string-append "https://hackage.haskell.org/package/" | |
269 | "http-date-" version "/" | |
270 | "http-date-" version ".tar.gz")) | |
271 | (sha256 | |
272 | (base32 | |
40e1af35 | 273 | "09slbzqayjnqqz9zybk7slgzvizgplikqgg4b2flzgks91466k0g")))) |
44b7374a RW |
274 | (build-system haskell-build-system) |
275 | (inputs | |
276 | `(("ghc-attoparsec" ,ghc-attoparsec))) | |
277 | (native-inputs | |
278 | `(("ghc-doctest" ,ghc-doctest) | |
279 | ("ghc-hspec" ,ghc-hspec) | |
280 | ("hspec-discover" ,hspec-discover) | |
281 | ("ghc-old-locale" ,ghc-old-locale))) | |
282 | (home-page "https://github.com/kazu-yamamoto/http-date") | |
283 | (synopsis "HTTP Date parser/formatter") | |
284 | (description "Library for Parsing and formatting HTTP | |
285 | Date in Haskell.") | |
286 | (license license:bsd-3))) | |
287 | ||
288 | (define-public ghc-http2 | |
289 | (package | |
290 | (name "ghc-http2") | |
291 | (version "1.6.3") | |
292 | (source | |
293 | (origin | |
294 | (method url-fetch) | |
295 | (uri (string-append "https://hackage.haskell.org/package/" | |
296 | "http2-" version "/" | |
297 | "http2-" version ".tar.gz")) | |
298 | (sha256 | |
299 | (base32 | |
300 | "0hww0rfsv6lqx62qzycbcqy5q6rh9k09qkyjkdm5m1sp1z50wqk1")))) | |
301 | (build-system haskell-build-system) | |
302 | (inputs | |
303 | `(("ghc-bytestring-builder" ,ghc-bytestring-builder) | |
304 | ("ghc-case-insensitive" ,ghc-case-insensitive) | |
305 | ("ghc-aeson" ,ghc-aeson) | |
306 | ("ghc-aeson-pretty" ,ghc-aeson-pretty) | |
307 | ("ghc-hex" ,ghc-hex) | |
308 | ("ghc-unordered-containers" ,ghc-unordered-containers) | |
309 | ("ghc-vector" ,ghc-vector) | |
310 | ("ghc-word8" ,ghc-word8) | |
311 | ("ghc-psqueues" ,ghc-psqueues) | |
312 | ("ghc-stm" ,ghc-stm))) | |
313 | (native-inputs | |
314 | `(("ghc-glob" ,ghc-glob) | |
315 | ("ghc-hspec" ,ghc-hspec) | |
316 | ("ghc-doctest" ,ghc-doctest) | |
317 | ("hspec-discover" ,hspec-discover))) | |
318 | (home-page "https://github.com/kazu-yamamoto/http2") | |
319 | (synopsis "HTTP/2 library including frames, priority queues and HPACK") | |
320 | (description "This package provides a HTTP/2.0 library including frames | |
321 | and HPACK. Currently HTTP/2 16 framing and HPACK 10 is supported.") | |
322 | (license license:bsd-3))) | |
323 | ||
324 | (define-public ghc-http-conduit | |
325 | (package | |
326 | (name "ghc-http-conduit") | |
828c9ff8 | 327 | (version "2.3.2") |
44b7374a RW |
328 | (source |
329 | (origin | |
330 | (method url-fetch) | |
331 | (uri (string-append "https://hackage.haskell.org/package/" | |
332 | "http-conduit-" version "/" "http-conduit-" | |
333 | version ".tar.gz")) | |
828c9ff8 RW |
334 | (sha256 |
335 | (base32 | |
336 | "1iay4hr0mj8brkxvgkv1liqa8irl9axfc3qhn8qsvcyq4n1l95km")))) | |
44b7374a RW |
337 | (build-system haskell-build-system) |
338 | ;; FIXME: `httpLbs TLS` in test-suite `test` fails with | |
339 | ;; ConnectionFailure getProtocolByName: does not exist (no such protocol | |
340 | ;; name: tcp) | |
341 | (arguments `(#:tests? #f)) | |
342 | (inputs | |
343 | `(("ghc-aeson" ,ghc-aeson) | |
344 | ("ghc-resourcet" ,ghc-resourcet) | |
345 | ("ghc-conduit" ,ghc-conduit) | |
346 | ("ghc-conduit-extra" ,ghc-conduit-extra) | |
347 | ("ghc-http-types" ,ghc-http-types) | |
348 | ("ghc-lifted-base" ,ghc-lifted-base) | |
349 | ("ghc-http-client" ,ghc-http-client) | |
350 | ("ghc-http-client-tls" ,ghc-http-client-tls) | |
351 | ("ghc-monad-control" ,ghc-monad-control) | |
828c9ff8 RW |
352 | ("ghc-exceptions" ,ghc-exceptions) |
353 | ("ghc-unliftio" ,ghc-unliftio))) | |
44b7374a RW |
354 | (native-inputs |
355 | `(("ghc-hunit" ,ghc-hunit) | |
356 | ("ghc-hspec" ,ghc-hspec) | |
357 | ("ghc-data-default-class" ,ghc-data-default-class) | |
358 | ("ghc-connection" ,ghc-connection) | |
359 | ("ghc-warp-tls" ,ghc-warp-tls) | |
360 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
361 | ("ghc-text" ,ghc-text) | |
362 | ("ghc-conduit" ,ghc-conduit) | |
363 | ("ghc-utf8-string" ,ghc-utf8-string) | |
364 | ("ghc-case-insensitive" ,ghc-case-insensitive) | |
365 | ("ghc-lifted-base" ,ghc-lifted-base) | |
366 | ("ghc-network" ,ghc-network) | |
367 | ("ghc-wai" ,ghc-wai) | |
368 | ("ghc-warp" ,ghc-warp) | |
369 | ("ghc-wai-conduit" ,ghc-wai-conduit) | |
370 | ("ghc-http-types" ,ghc-http-types) | |
371 | ("ghc-http-client" ,ghc-http-client) | |
372 | ("ghc-cookie" ,ghc-cookie) | |
373 | ("ghc-conduit-extra" ,ghc-conduit-extra) | |
374 | ("ghc-streaming-commons" ,ghc-streaming-commons) | |
375 | ("ghc-aeson" ,ghc-aeson) | |
376 | ("ghc-temporary" ,ghc-temporary) | |
377 | ("ghc-resourcet" ,ghc-resourcet))) | |
378 | (home-page "https://hackage.haskell.org/package/http-conduit") | |
379 | (synopsis "HTTP/HTTPS client with conduit interface") | |
380 | (description "This library uses attoparsec for parsing the actual | |
381 | contents of the HTTP connection. It also provides higher-level functions | |
382 | which allow you to avoid direct usage of conduits.") | |
383 | (license license:bsd-3))) | |
384 | ||
385 | (define-public ghc-wai | |
386 | (package | |
387 | (name "ghc-wai") | |
19da4c3c | 388 | (version "3.2.1.2") |
44b7374a RW |
389 | (source |
390 | (origin | |
391 | (method url-fetch) | |
392 | (uri (string-append | |
393 | "https://hackage.haskell.org/package/wai/wai-" | |
394 | version | |
395 | ".tar.gz")) | |
396 | (sha256 | |
397 | (base32 | |
19da4c3c | 398 | "0jr3b2789wa4m6mxkz12ynz4lfsqmgbrcy0am8karyqr3x3528r8")))) |
44b7374a RW |
399 | (build-system haskell-build-system) |
400 | (inputs | |
401 | `(("ghc-bytestring-builder" ,ghc-bytestring-builder) | |
402 | ("ghc-unix-compat" ,ghc-unix-compat) | |
403 | ("ghc-vault" ,ghc-vault) | |
404 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
405 | ("ghc-network" ,ghc-network) | |
406 | ("ghc-text" ,ghc-text) | |
407 | ("ghc-http-types" ,ghc-http-types))) | |
408 | (native-inputs | |
409 | `(("hspec-discover" ,hspec-discover) | |
410 | ("ghc-quickcheck" ,ghc-quickcheck) | |
411 | ("ghc-hunit" ,ghc-hunit) | |
412 | ("ghc-hspec" ,ghc-hspec))) | |
413 | (home-page "https://hackage.haskell.org/package/wai") | |
414 | (synopsis "Web application interface for Haskell") | |
415 | (description "This package provides a Web Application Interface (WAI) | |
416 | library for the Haskell language. It defines a common protocol for | |
417 | communication between web applications and web servers.") | |
418 | (license license:bsd-3))) | |
419 | ||
420 | (define-public ghc-wai-logger | |
421 | (package | |
422 | (name "ghc-wai-logger") | |
7b19f0a8 | 423 | (version "2.3.2") |
44b7374a RW |
424 | (source |
425 | (origin | |
426 | (method url-fetch) | |
427 | (uri (string-append | |
428 | "https://hackage.haskell.org/package/wai-logger/wai-logger-" | |
429 | version | |
430 | ".tar.gz")) | |
431 | (sha256 | |
432 | (base32 | |
7b19f0a8 | 433 | "0w5ldq4gplc16zzk5ikmbbjw79imaqvw8p6lylaw3hlsbn3zzm4d")))) |
44b7374a RW |
434 | (build-system haskell-build-system) |
435 | (arguments `(#:tests? #f)) ; FIXME: Tests cannot find libraries exported | |
436 | ; by propagated-inputs. | |
437 | (inputs | |
438 | `(("ghc-auto-update" ,ghc-auto-update) | |
439 | ("ghc-byteorder" ,ghc-byteorder) | |
440 | ("ghc-easy-file" ,ghc-easy-file) | |
441 | ("ghc-unix-time" ,ghc-unix-time) | |
442 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
443 | ("ghc-case-insensitive" ,ghc-case-insensitive) | |
444 | ("ghc-fast-logger" ,ghc-fast-logger) | |
445 | ("ghc-http-types" ,ghc-http-types) | |
446 | ("ghc-network" ,ghc-network) | |
447 | ("ghc-wai" ,ghc-wai))) | |
448 | (home-page "https://hackage.haskell.org/package/wai-logger") | |
449 | (synopsis "Logging system for WAI") | |
450 | (description "This package provides the logging system for WAI.") | |
451 | (license license:bsd-3))) | |
452 | ||
453 | (define-public ghc-wai-extra | |
454 | (package | |
455 | (name "ghc-wai-extra") | |
6369346e | 456 | (version "3.0.24.2") |
44b7374a RW |
457 | (source |
458 | (origin | |
459 | (method url-fetch) | |
460 | (uri (string-append | |
461 | "https://hackage.haskell.org/package/wai-extra/wai-extra-" | |
462 | version | |
463 | ".tar.gz")) | |
464 | (sha256 | |
465 | (base32 | |
6369346e | 466 | "07gcgq59dki5drkjci9ka34xjsy3bqilbsx0lsc4905w9jlyfbci")))) |
44b7374a RW |
467 | (build-system haskell-build-system) |
468 | (inputs | |
469 | `(("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
470 | ("ghc-base64-bytestring" ,ghc-base64-bytestring) | |
471 | ("ghc-cookie" ,ghc-cookie) | |
472 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
473 | ("ghc-network" ,ghc-network) | |
474 | ("ghc-lifted-base" ,ghc-lifted-base) | |
475 | ("ghc-streaming-commons" ,ghc-streaming-commons) | |
476 | ("ghc-stringsearch" ,ghc-stringsearch) | |
477 | ("ghc-resourcet" ,ghc-resourcet) | |
478 | ("ghc-fast-logger" ,ghc-fast-logger) | |
479 | ("ghc-wai-logger" ,ghc-wai-logger) | |
480 | ("ghc-zlib" ,ghc-zlib) | |
481 | ("ghc-word8" ,ghc-word8) | |
482 | ("ghc-iproute" ,ghc-iproute) | |
483 | ("ghc-void" ,ghc-void) | |
484 | ("ghc-wai" ,ghc-wai) | |
485 | ("ghc-http-types" ,ghc-http-types) | |
486 | ("ghc-text" ,ghc-text) | |
487 | ("ghc-case-insensitive" ,ghc-case-insensitive) | |
488 | ("ghc-data-default-class" ,ghc-data-default-class) | |
489 | ("ghc-unix-compat" ,ghc-unix-compat) | |
490 | ("ghc-vault" ,ghc-vault) | |
491 | ("ghc-aeson" ,ghc-aeson))) | |
492 | (native-inputs | |
493 | `(("hspec-discover" ,hspec-discover) | |
494 | ("ghc-hspec" ,ghc-hspec) | |
495 | ("ghc-hunit" ,ghc-hunit))) | |
496 | (home-page "https://github.com/yesodweb/wai") | |
497 | (synopsis "Some basic WAI handlers and middleware") | |
498 | (description "This library provides basic WAI handlers and middleware | |
499 | functionality.") | |
500 | (license license:expat))) | |
501 | ||
502 | (define-public ghc-wai-conduit | |
503 | (package | |
504 | (name "ghc-wai-conduit") | |
505 | (version "3.0.0.3") | |
506 | (source | |
507 | (origin | |
508 | (method url-fetch) | |
509 | (uri (string-append "https://hackage.haskell.org/package/" | |
510 | "wai-conduit-" version "/" | |
511 | "wai-conduit-" version ".tar.gz")) | |
512 | (sha256 | |
513 | (base32 | |
514 | "1zvsiwjq2mvkb9sjgp3ly9m968m7a2jjzr4id6jpi3mmqykj15z4")))) | |
515 | (build-system haskell-build-system) | |
516 | (inputs | |
517 | `(("ghc-conduit" ,ghc-conduit) | |
518 | ("ghc-http-types" ,ghc-http-types) | |
519 | ("ghc-wai" ,ghc-wai) | |
520 | ("ghc-blaze-builder" ,ghc-blaze-builder))) | |
521 | (home-page "https://github.com/yesodweb/wai") | |
522 | (synopsis "Conduit wrappers for Haskell's WAI") | |
523 | (description "This package provides data streaming abstraction for | |
524 | Haskell's Web Application Interface (WAI).") | |
525 | (license license:expat))) | |
526 | ||
e95cc108 TS |
527 | (define-public ghc-bsb-http-chunked |
528 | (package | |
529 | (name "ghc-bsb-http-chunked") | |
530 | (version "0.0.0.2") | |
531 | (source | |
532 | (origin | |
533 | (method url-fetch) | |
534 | (uri (string-append | |
535 | "https://hackage.haskell.org/package/" | |
536 | "bsb-http-chunked/bsb-http-chunked-" | |
537 | version ".tar.gz")) | |
538 | (sha256 | |
539 | (base32 | |
540 | "1x6m6xkrcw6jiaig1bb2wb5pqyw31x8xr9k9pxgq2g3ng44pbjr8")))) | |
541 | (build-system haskell-build-system) | |
542 | (inputs | |
543 | `(("ghc-bytestring-builder" ,ghc-bytestring-builder))) | |
544 | (home-page "http://github.com/sjakobi/bsb-http-chunked") | |
545 | (synopsis "Chunked HTTP transfer encoding for bytestring builders") | |
546 | (description "This Haskell library contains functions for encoding | |
547 | bytestring builders for chunked Hypertext Transfer Protocol (HTTP) 1.1 | |
548 | transfers.") | |
549 | (license license:bsd-3))) | |
550 | ||
44b7374a RW |
551 | (define-public ghc-warp |
552 | (package | |
553 | (name "ghc-warp") | |
554 | (version "3.2.11.1") | |
555 | (source | |
556 | (origin | |
557 | (method url-fetch) | |
558 | (uri (string-append "https://hackage.haskell.org/package/" | |
559 | "warp-" version "/" "warp-" version | |
560 | ".tar.gz")) | |
561 | (sha256 | |
562 | (base32 | |
563 | "1zp5cy0bbj508vdvms1n5z80z37m253kwsqc5a83cfc990n6fgw5")))) | |
564 | (build-system haskell-build-system) | |
565 | (arguments | |
566 | `(#:tests? #f)) ; FIXME: Test-Suite `spec` fails. | |
567 | (inputs | |
568 | `(("ghc-async" ,ghc-async) | |
569 | ("ghc-auto-update" ,ghc-auto-update) | |
570 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
571 | ("ghc-bytestring-builder" ,ghc-bytestring-builder) | |
572 | ("ghc-case-insensitive" ,ghc-case-insensitive) | |
573 | ("ghc-hashable" ,ghc-hashable) | |
574 | ("ghc-http-types" ,ghc-http-types) | |
575 | ("ghc-iproute" ,ghc-iproute) | |
576 | ("ghc-network" ,ghc-network) | |
577 | ("ghc-stm" ,ghc-stm) | |
578 | ("ghc-streaming-commons" ,ghc-streaming-commons) | |
579 | ("ghc-text" ,ghc-text) | |
580 | ("ghc-unix-compat" ,ghc-unix-compat) | |
581 | ("ghc-vault" ,ghc-vault) | |
582 | ("ghc-wai" ,ghc-wai) | |
583 | ("ghc-word8" ,ghc-word8) | |
584 | ("ghc-lifted-base" ,ghc-lifted-base) | |
585 | ("ghc-http-date" ,ghc-http-date) | |
586 | ("ghc-simple-sendfile" ,ghc-simple-sendfile) | |
587 | ("ghc-http2" ,ghc-http2))) | |
588 | (native-inputs | |
589 | `(("ghc-silently" ,ghc-silently) | |
590 | ("ghc-hspec" ,ghc-hspec) | |
591 | ("ghc-auto-update" ,ghc-auto-update) | |
592 | ("ghc-doctest" ,ghc-doctest) | |
593 | ("ghc-quickcheck" ,ghc-quickcheck) | |
594 | ("ghc-hunit" ,ghc-hunit) | |
595 | ("ghc-http" ,ghc-http) | |
596 | ("hspec-discover" ,hspec-discover))) | |
597 | (home-page "http://github.com/yesodweb/wai") | |
598 | (synopsis "HTTP server library for Haskell's WAI") | |
599 | (description "Warp is a server library for HTTP/1.x and HTTP/2 | |
600 | based WAI (Web Application Interface in Haskell).") | |
601 | (license license:expat))) | |
602 | ||
aac78f6b TS |
603 | (define-public ghc-tls-session-manager |
604 | (package | |
605 | (name "ghc-tls-session-manager") | |
606 | (version "0.0.0.2") | |
607 | (source | |
608 | (origin | |
609 | (method url-fetch) | |
610 | (uri (string-append | |
611 | "https://hackage.haskell.org/package/" | |
612 | "tls-session-manager/tls-session-manager-" | |
613 | version ".tar.gz")) | |
614 | (sha256 | |
615 | (base32 | |
616 | "0rvmln545vghsx8zhxp44f0f6pzma8cylarmfhhysy55ipywr1n5")))) | |
617 | (build-system haskell-build-system) | |
618 | (inputs | |
619 | `(("ghc-auto-update" ,ghc-auto-update) | |
620 | ("ghc-clock" ,ghc-clock) | |
621 | ("ghc-psqueues" ,ghc-psqueues) | |
622 | ("ghc-tls" ,ghc-tls))) | |
623 | (home-page "http://hackage.haskell.org/package/tls-session-manager") | |
624 | (synopsis "In-memory TLS session manager") | |
625 | (description "This Haskell library provides a TLS session manager with | |
626 | limitation, automatic pruning, energy saving and replay resistance.") | |
627 | (license license:bsd-3))) | |
628 | ||
44b7374a RW |
629 | (define-public ghc-warp-tls |
630 | (package | |
631 | (name "ghc-warp-tls") | |
632 | (version "3.2.3") | |
633 | (source | |
634 | (origin | |
635 | (method url-fetch) | |
636 | (uri (string-append "https://hackage.haskell.org/package/" | |
637 | "warp-tls-" version "/" | |
638 | "warp-tls-" version ".tar.gz")) | |
639 | (sha256 | |
640 | (base32 | |
641 | "14m2bzk5ivz9gdpxlcj6qnh46f2lycm1ybdjnfkj2876zrqwii7m")))) | |
642 | (build-system haskell-build-system) | |
643 | (inputs | |
644 | `(("ghc-cryptonite" ,ghc-cryptonite) | |
645 | ("ghc-data-default-class" ,ghc-data-default-class) | |
646 | ("ghc-network" ,ghc-network) | |
647 | ("ghc-streaming-commons" ,ghc-streaming-commons) | |
648 | ("ghc-tls" ,ghc-tls) | |
649 | ("ghc-wai" ,ghc-wai) | |
650 | ("ghc-warp" ,ghc-warp))) | |
651 | (home-page "http://github.com/yesodweb/wai") | |
652 | (synopsis "SSL/TLS support for Warp") | |
653 | (description "This package provides SSL/TLS support for Warp, | |
654 | a WAI handler, via the native Haskell TLS implementation.") | |
655 | (license license:expat))) | |
656 | ||
657 | (define-public ghc-xss-sanitize | |
658 | (package | |
659 | (name "ghc-xss-sanitize") | |
3f135acc | 660 | (version "0.3.6") |
44b7374a RW |
661 | (source |
662 | (origin | |
663 | (method url-fetch) | |
664 | (uri (string-append | |
665 | "https://hackage.haskell.org/package/xss-sanitize/xss-sanitize-" | |
ecbb9b41 | 666 | version ".tar.gz")) |
44b7374a RW |
667 | (sha256 |
668 | (base32 | |
3f135acc | 669 | "1d72s3a6520iwwc1wbn9v2znqgbw6a5wwzb23iq8ny9ccnjyx1dk")))) |
44b7374a RW |
670 | (build-system haskell-build-system) |
671 | (inputs | |
672 | `(("ghc-tagsoup" ,ghc-tagsoup) | |
673 | ("ghc-utf8-string" ,ghc-utf8-string) | |
674 | ("ghc-css-text" ,ghc-css-text) | |
675 | ("ghc-network-uri" ,ghc-network-uri))) | |
676 | (native-inputs | |
677 | `(("ghc-text" ,ghc-text) | |
678 | ("ghc-attoparsec" ,ghc-attoparsec) | |
679 | ("ghc-hspec" ,ghc-hspec) | |
680 | ("ghc-hunit" ,ghc-hunit))) | |
681 | (home-page "https://github.com/yesodweb/haskell-xss-sanitize") | |
682 | (synopsis "Sanitize untrusted HTML to prevent XSS attacks") | |
683 | (description "This library provides @code{sanitizeXSS}. Run untrusted | |
684 | HTML through @code{Text.HTML.SanitizeXSS.sanitizeXSS} to prevent XSS | |
685 | attacks.") | |
686 | (license license:bsd-3))) | |
687 | ||
688 | (define-public ghc-css-text | |
689 | (package | |
690 | (name "ghc-css-text") | |
9656e6e8 | 691 | (version "0.1.3.0") |
44b7374a RW |
692 | (source |
693 | (origin | |
694 | (method url-fetch) | |
695 | (uri (string-append | |
696 | "https://hackage.haskell.org/package/css-text/css-text-" | |
697 | version | |
698 | ".tar.gz")) | |
699 | (sha256 | |
700 | (base32 | |
9656e6e8 | 701 | "0ynd9f4hn2sfwqzbsa0y7phmxq8za7jiblpjwx0ry8b372zhgxaz")))) |
44b7374a RW |
702 | (build-system haskell-build-system) |
703 | (inputs | |
704 | `(("ghc-text" ,ghc-text) | |
705 | ("ghc-attoparsec" ,ghc-attoparsec) | |
706 | ("ghc-hspec" ,ghc-hspec) | |
707 | ("ghc-quickcheck" ,ghc-quickcheck))) | |
708 | (home-page "http://www.yesodweb.com/") | |
709 | (synopsis "CSS parser and renderer") | |
710 | (description "This package provides a CSS parser and renderer for | |
711 | Haskell.") | |
712 | (license license:bsd-3))) | |
713 | ||
714 | (define-public ghc-mime-types | |
715 | (package | |
716 | (name "ghc-mime-types") | |
8d75edc0 | 717 | (version "0.1.0.8") |
44b7374a RW |
718 | (source (origin |
719 | (method url-fetch) | |
720 | (uri (string-append "https://hackage.haskell.org/package/" | |
721 | "mime-types/mime-types-" | |
722 | version ".tar.gz")) | |
723 | (sha256 | |
724 | (base32 | |
8d75edc0 | 725 | "14ccl2842ya17zyj0bpc7vzklbyqvvydpbypn69h2fmhgji192x8")))) |
44b7374a RW |
726 | (build-system haskell-build-system) |
727 | (inputs | |
728 | `(("ghc-text" ,ghc-text))) | |
729 | (home-page "https://github.com/yesodweb/wai") | |
730 | (synopsis "Basic MIME type handling types and functions") | |
731 | (description | |
732 | "This library provides basic MIME type handling types and functions.") | |
733 | (license license:expat))) | |
734 | ||
735 | (define-public ghc-html | |
736 | (package | |
737 | (name "ghc-html") | |
738 | (version "1.0.1.2") | |
739 | (source | |
740 | (origin | |
741 | (method url-fetch) | |
742 | (uri (string-append | |
743 | "https://hackage.haskell.org/package/html/html-" | |
744 | version | |
745 | ".tar.gz")) | |
746 | (sha256 | |
747 | (base32 | |
748 | "0q9hmfii62kc82ijlg238fxrzxhsivn42x5wd6ffcr9xldg4jd8c")))) | |
749 | (build-system haskell-build-system) | |
750 | (home-page | |
751 | "https://hackage.haskell.org/package/html") | |
752 | (synopsis "HTML combinator library") | |
753 | (description | |
754 | "This package contains a combinator library for constructing HTML | |
755 | documents.") | |
756 | (license license:bsd-3))) | |
757 | ||
758 | (define-public ghc-xhtml | |
759 | (package | |
760 | (name "ghc-xhtml") | |
6c76f51f | 761 | (version "3000.2.2.1") |
44b7374a RW |
762 | (source |
763 | (origin | |
764 | (method url-fetch) | |
765 | (uri (string-append | |
766 | "https://hackage.haskell.org/package/xhtml/xhtml-" | |
767 | version | |
768 | ".tar.gz")) | |
769 | (sha256 | |
770 | (base32 | |
6c76f51f | 771 | "0939kwpinq6l4n3nyvd1gzyl7f83gymw0wzqndlgy1yc7q0nkj2w")))) |
44b7374a RW |
772 | (build-system haskell-build-system) |
773 | (home-page "https://github.com/haskell/xhtml") | |
774 | (synopsis "XHTML combinator library") | |
775 | (description | |
776 | "This package provides combinators for producing XHTML 1.0, including the | |
777 | Strict, Transitional and Frameset variants.") | |
778 | (license license:bsd-3))) | |
779 | ||
780 | (define-public ghc-blaze-html | |
781 | (package | |
782 | (name "ghc-blaze-html") | |
b8afa2da | 783 | (version "0.9.1.1") |
44b7374a RW |
784 | (source |
785 | (origin | |
786 | (method url-fetch) | |
64b5cce9 RW |
787 | (uri (string-append "https://hackage.haskell.org/package/" |
788 | "blaze-html/blaze-html-" | |
789 | version ".tar.gz")) | |
44b7374a RW |
790 | (sha256 |
791 | (base32 | |
b8afa2da | 792 | "06xv8fqhclfjj61z74cgggn4lmx1s7diakxg84mnkgfvk11983pa")))) |
44b7374a | 793 | (build-system haskell-build-system) |
44b7374a RW |
794 | (inputs |
795 | `(("ghc-blaze-builder" ,ghc-blaze-builder) | |
796 | ("ghc-text" ,ghc-text) | |
797 | ("ghc-blaze-markup" ,ghc-blaze-markup))) | |
64b5cce9 RW |
798 | (native-inputs |
799 | `(("ghc-hunit" ,ghc-hunit) | |
800 | ("ghc-quickcheck" ,ghc-quickcheck) | |
801 | ("ghc-test-framework" ,ghc-test-framework) | |
802 | ("ghc-test-framework-hunit" ,ghc-test-framework-hunit) | |
803 | ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2))) | |
44b7374a RW |
804 | (home-page "http://jaspervdj.be/blaze") |
805 | (synopsis "Fast HTML combinator library") | |
806 | (description "This library provides HTML combinators for Haskell.") | |
807 | (license license:bsd-3))) | |
808 | ||
809 | (define-public ghc-aeson | |
810 | (package | |
811 | (name "ghc-aeson") | |
2dbecb3a | 812 | (version "1.3.1.1") |
44b7374a RW |
813 | (source |
814 | (origin | |
815 | (method url-fetch) | |
816 | (uri (string-append | |
817 | "https://hackage.haskell.org/package/aeson/aeson-" | |
818 | version | |
819 | ".tar.gz")) | |
820 | (sha256 | |
821 | (base32 | |
2dbecb3a | 822 | "1i1ig840fvsb1lnklcv32zsc0zscirc301lw1mpfxhc6h4pk0gw4")))) |
44b7374a RW |
823 | (build-system haskell-build-system) |
824 | (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing. | |
825 | (inputs | |
826 | `(("ghc-attoparsec" ,ghc-attoparsec) | |
e74e1ad6 | 827 | ("ghc-base-compat" ,ghc-base-compat) |
44b7374a | 828 | ("ghc-dlist" ,ghc-dlist) |
e74e1ad6 | 829 | ("ghc-hashable" ,ghc-hashable) |
44b7374a | 830 | ("ghc-scientific" ,ghc-scientific) |
e74e1ad6 RW |
831 | ("ghc-tagged" ,ghc-tagged) |
832 | ("ghc-text" ,ghc-text) | |
833 | ("ghc-th-abstraction" ,ghc-th-abstraction) | |
834 | ("ghc-time-locale-compat" ,ghc-time-locale-compat) | |
44b7374a | 835 | ("ghc-unordered-containers" ,ghc-unordered-containers) |
e74e1ad6 | 836 | ("ghc-uuid-types" ,ghc-uuid-types) |
44b7374a | 837 | ("ghc-vector" ,ghc-vector) |
44b7374a | 838 | ("ghc-hunit" ,ghc-hunit) |
e74e1ad6 RW |
839 | ("ghc-quickcheck" ,ghc-quickcheck) |
840 | ("ghc-integer-logarithms" ,ghc-integer-logarithms) | |
841 | ("ghc-base-orphans" ,ghc-base-orphans) | |
842 | ("ghc-base16-bytestring" ,ghc-base16-bytestring) | |
843 | ("ghc-generic-deriving" ,ghc-generic-deriving) | |
844 | ("ghc-test-framework" ,ghc-test-framework) | |
845 | ("ghc-test-framework-hunit" ,ghc-test-framework-hunit) | |
846 | ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2) | |
847 | ("ghc-quickcheck-instances" ,ghc-quickcheck-instances) | |
848 | ("ghc-hashable-time" ,ghc-hashable-time))) | |
44b7374a RW |
849 | (home-page "https://github.com/bos/aeson") |
850 | (synopsis "Fast JSON parsing and encoding") | |
851 | (description "This package provides a JSON parsing and encoding library | |
852 | for Haskell, optimized for ease of use and high performance. (A note on | |
853 | naming: in Greek mythology, Aeson was the father of Jason.)") | |
854 | (license license:bsd-3))) | |
855 | ||
379cb389 RW |
856 | (define-public ghc-aeson-for-pandoc-1 |
857 | (package (inherit ghc-aeson) | |
858 | (version "1.1.2.0") | |
859 | (source | |
860 | (origin | |
861 | (method url-fetch) | |
862 | (uri (string-append "https://hackage.haskell.org/package/aeson/aeson-" | |
863 | version ".tar.gz")) | |
864 | (sha256 | |
865 | (base32 | |
866 | "1zy5z8pzvh53qkjm0nm3f4rwqfqg3867ck8ncd6mrxpcyvxqqj1p")))))) | |
867 | ||
44b7374a RW |
868 | (define-public ghc-aeson-pretty |
869 | (package | |
870 | (name "ghc-aeson-pretty") | |
d1d27a67 | 871 | (version "0.8.7") |
44b7374a RW |
872 | (source (origin |
873 | (method url-fetch) | |
874 | (uri (string-append | |
875 | "https://hackage.haskell.org/package/aeson-pretty/aeson-pretty-" | |
876 | version ".tar.gz")) | |
877 | (sha256 | |
878 | (base32 | |
d1d27a67 | 879 | "1m977gs0s9gf3lwzlbs5y7bl6ansc5pywmn2qjk09l5bwg2yrhf1")))) |
44b7374a RW |
880 | (build-system haskell-build-system) |
881 | (inputs | |
882 | `(("ghc-aeson" ,ghc-aeson) | |
95796f81 RW |
883 | ("ghc-base-compat" ,ghc-base-compat) |
884 | ("ghc-scientific" ,ghc-scientific) | |
44b7374a RW |
885 | ("ghc-vector" ,ghc-vector) |
886 | ("ghc-text" ,ghc-text) | |
95796f81 | 887 | ("ghc-unordered-containers" ,ghc-unordered-containers) |
44b7374a RW |
888 | ("ghc-attoparsec" ,ghc-attoparsec) |
889 | ("ghc-cmdargs" ,ghc-cmdargs))) | |
890 | (home-page "https://github.com/informatikr/aeson-pretty") | |
891 | (synopsis "JSON pretty-printing library and command-line tool") | |
892 | (description | |
893 | "This package provides a JSON pretty-printing library compatible with aeson | |
894 | as well as a command-line tool to improve readabilty of streams of JSON data. | |
895 | The library provides the function @code{encodePretty}. It is a drop-in | |
896 | replacement for aeson's @code{encode} function, producing JSON-ByteStrings for | |
897 | human readers. The command-line tool reads JSON from stdin and writes | |
898 | prettified JSON to stdout. It also offers a complementary \"compact\"-mode, | |
899 | essentially the opposite of pretty-printing.") | |
900 | (license license:bsd-3))) | |
901 | ||
902 | (define-public ghc-aeson-qq | |
903 | (package | |
904 | (name "ghc-aeson-qq") | |
1a1cf03f | 905 | (version "0.8.2") |
44b7374a RW |
906 | (source (origin |
907 | (method url-fetch) | |
908 | (uri (string-append "https://hackage.haskell.org/package/" | |
909 | "aeson-qq/aeson-qq-" version ".tar.gz")) | |
910 | (sha256 | |
911 | (base32 | |
1a1cf03f | 912 | "0ln13jqyfh5726hdrk1rad9a6cgrrj201plmwcfcpvq18v4m5ckd")))) |
44b7374a RW |
913 | (build-system haskell-build-system) |
914 | (inputs | |
915 | `(("ghc-base-compat" ,ghc-base-compat) | |
916 | ("ghc-text" ,ghc-text) | |
917 | ("ghc-attoparsec" ,ghc-attoparsec) | |
918 | ("ghc-scientific" ,ghc-scientific) | |
919 | ("ghc-vector" ,ghc-vector) | |
920 | ("ghc-aeson" ,ghc-aeson) | |
921 | ("ghc-parsec" ,ghc-parsec) | |
922 | ("ghc-haskell-src-meta" ,ghc-haskell-src-meta))) | |
923 | (native-inputs | |
924 | `(("ghc-hspec" ,ghc-hspec) | |
925 | ("hspec-discover" ,hspec-discover))) | |
926 | (home-page "https://github.com/zalora/aeson-qq") | |
927 | (synopsis "JSON quasiquoter for Haskell") | |
928 | (description | |
929 | "aeson-qq provides a JSON quasiquoter for Haskell. This package exposes | |
930 | the function @code{aesonQQ} that compile-time converts a string representation | |
931 | of a JSON value into a @code{Data.Aeson.Value}.") | |
932 | (license license:expat))) | |
933 | ||
934 | (define-public ghc-multipart | |
935 | (package | |
936 | (name "ghc-multipart") | |
4729cfac | 937 | (version "0.1.3") |
44b7374a RW |
938 | (source |
939 | (origin | |
940 | (method url-fetch) | |
941 | (uri (string-append | |
942 | "https://hackage.haskell.org/package/multipart/multipart-" | |
943 | version | |
944 | ".tar.gz")) | |
945 | (sha256 | |
946 | (base32 | |
4729cfac | 947 | "1x4n4yyva22dhfr1pg5ki112qvvzb4hyd7bwpm189iq4gcp52q4z")))) |
44b7374a | 948 | (build-system haskell-build-system) |
4729cfac TS |
949 | (inputs |
950 | `(("ghc-parsec" ,ghc-parsec) | |
951 | ("ghc-stringsearch" ,ghc-stringsearch))) | |
44b7374a RW |
952 | (home-page |
953 | "http://www.github.com/silkapp/multipart") | |
954 | (synopsis | |
955 | "HTTP multipart library") | |
956 | (description | |
957 | "HTTP multipart split out of the cgi package, for Haskell.") | |
958 | (license license:bsd-3))) | |
7df5669f AW |
959 | |
960 | (define-public ghc-uri-encode | |
961 | (package | |
962 | (name "ghc-uri-encode") | |
963 | (version "1.5.0.5") | |
964 | (source | |
965 | (origin | |
966 | (method url-fetch) | |
967 | (uri (string-append | |
968 | "https://hackage.haskell.org/package/uri-encode/uri-encode-" | |
969 | version ".tar.gz")) | |
970 | (sha256 | |
971 | (base32 | |
972 | "11miwb5vvnn17m92ykz1pzg9x6s8fbpz3mmsyqs2s4b3mn55haz8")))) | |
973 | (build-system haskell-build-system) | |
974 | (inputs | |
975 | `(("ghc-text" ,ghc-text) | |
976 | ("ghc-utf8-string" ,ghc-utf8-string) | |
977 | ("ghc-network-uri" ,ghc-network-uri))) | |
978 | (home-page "https://hackage.haskell.org/package/uri-encode") | |
979 | (synopsis "Unicode aware uri-encoding") | |
980 | (description "Unicode aware uri-encoding for Haskell.") | |
981 | (license license:bsd-3))) | |
448d6226 | 982 | |
983 | (define-public ghc-path-pieces | |
984 | (package | |
985 | (name "ghc-path-pieces") | |
986 | (version "0.2.1") | |
987 | (source | |
988 | (origin | |
989 | (method url-fetch) | |
990 | (uri (string-append "https://hackage.haskell.org/package/" | |
991 | "path-pieces-" version "/" | |
992 | "path-pieces-" version ".tar.gz")) | |
993 | (sha256 | |
994 | (base32 | |
995 | "0vx3sivcsld76058925hym2j6hm3g71f0qjr7v59f1g2afgx82q8")))) | |
996 | (build-system haskell-build-system) | |
997 | (inputs `(("ghc-text" ,ghc-text))) | |
998 | (native-inputs `(("ghc-hunit" ,ghc-hunit) | |
999 | ("ghc-hspec" ,ghc-hspec) | |
1000 | ("ghc-quickcheck" ,ghc-quickcheck))) | |
1001 | (home-page "https://github.com/yesodweb/path-pieces") | |
1002 | (synopsis "Used in Yesod to automatically marshall data in the request path") | |
1003 | (description "This Haskell package provides two typeclasses for converting | |
1004 | Haskell data types to and from route pieces.") | |
1005 | (license license:bsd-3))) | |
122260b3 | 1006 | |
1007 | (define-public ghc-skein | |
1008 | (package | |
1009 | (name "ghc-skein") | |
1010 | (version "1.0.9.4") | |
1011 | (source | |
1012 | (origin | |
1013 | (method url-fetch) | |
1014 | (uri (string-append "https://hackage.haskell.org/package/" | |
1015 | "skein-" version "/" | |
1016 | "skein-" version ".tar.gz")) | |
1017 | (sha256 | |
1018 | (base32 | |
1019 | "1jdqdk0rz2wnvw735clnj8jh0a9rkrbqjg7vk3w6wczdql6cm0pq")))) | |
1020 | (build-system haskell-build-system) | |
1021 | (inputs `(("ghc-cereal" ,ghc-cereal) | |
1022 | ("ghc-tagged" ,ghc-tagged) | |
1023 | ("ghc-crpto-api" ,ghc-crypto-api))) | |
1024 | (native-inputs `(("ghc-hspec" ,ghc-hspec))) | |
1025 | (home-page "https://github.com/yesodweb/path-pieces") | |
1026 | (synopsis "Skein family of cryptographic hash functions for Haskell") | |
1027 | (description "@uref{(http://www.skein-hash.info, Skein} is a family of | |
1028 | fast secure cryptographic hash functions designed by Niels Ferguson, Stefan | |
1029 | Lucks, Bruce Schneier, Doug Whiting, Mihir Bellare, Tadayoshi Kohno, Jon | |
1030 | Callas and Jesse Walker. | |
1031 | ||
1032 | This Haskell package uses bindings to the optimized C implementation of Skein.") | |
1033 | (license license:bsd-3))) | |
15b9ce63 | 1034 | |
1035 | (define-public ghc-clientsession | |
1036 | (package | |
1037 | (name "ghc-clientsession") | |
1038 | (version "0.9.1.2") | |
1039 | (source | |
1040 | (origin | |
1041 | (method url-fetch) | |
1042 | (uri (string-append "https://hackage.haskell.org/package/" | |
1043 | "clientsession-" version "/" | |
1044 | "clientsession-" version ".tar.gz")) | |
1045 | (sha256 | |
1046 | (base32 | |
1047 | "0s6h4ykj16mpf7nlw2iqn2ji0p8g1fn5ni0s7yqaili6vv2as5ar")))) | |
1048 | (build-system haskell-build-system) | |
1049 | (inputs `(("ghc-cereal" ,ghc-cereal) | |
1050 | ("ghc-tagged" ,ghc-tagged) | |
1051 | ("ghc-crypto-api" ,ghc-crypto-api) | |
1052 | ("ghc-skein" ,ghc-skein) | |
1053 | ("ghc-base64-bytestring" ,ghc-base64-bytestring) | |
1054 | ("ghc-entropy" ,ghc-entropy) | |
1055 | ("ghc-cprng-aes" ,ghc-cprng-aes) | |
1056 | ("ghc-cipher-aes" ,ghc-cipher-aes) | |
1057 | ("ghc-crypto-random" ,ghc-crypto-random) | |
1058 | ("ghc-setenv" ,ghc-setenv))) | |
1059 | (native-inputs `(("ghc-hunit" ,ghc-hunit) | |
1060 | ("ghc-hspec" ,ghc-hspec) | |
1061 | ("ghc-quickcheck" ,ghc-quickcheck))) | |
1062 | (home-page "https://github.com/yesodweb/clientsession/tree/master") | |
1063 | (synopsis "Haskell library for securely store session data in a | |
1064 | client-side cookie") | |
1065 | (description "This Haskell package achieves security through AES-CTR | |
1066 | encryption and Skein-MAC-512-256 authentication. Uses Base64 encoding to | |
1067 | avoid any issues with characters.") | |
1068 | (license license:expat))) | |
aebe9d25 | 1069 | |
1070 | (define-public ghc-yesod-core | |
1071 | (package | |
1072 | (name "ghc-yesod-core") | |
1073 | (version "1.4.37") | |
1074 | (source | |
1075 | (origin | |
1076 | (method url-fetch) | |
1077 | (uri (string-append "https://hackage.haskell.org/package/" | |
1078 | "yesod-core-" version "/" | |
1079 | "yesod-core-" version ".tar.gz")) | |
1080 | (sha256 | |
1081 | (base32 | |
1082 | "0ww8hl0cx2g58zrdx3j6d5m2xwhssbajdqws1xk6rzl7rpfm1b9j")))) | |
1083 | (build-system haskell-build-system) | |
1084 | (inputs `(("ghc-wai" ,ghc-wai) | |
1085 | ("ghc-extra" ,ghc-extra) | |
1086 | ("ghc-text" ,ghc-text) | |
1087 | ("ghc-shakespeare" ,ghc-shakespeare) | |
1088 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
aebe9d25 | 1089 | ("ghc-clientsession" ,ghc-clientsession) |
1090 | ("ghc-random" ,ghc-random) | |
1091 | ("ghc-cereal" ,ghc-cereal) | |
1092 | ("ghc-old-locale" ,ghc-old-locale) | |
1093 | ("ghc-unordered-containers" ,ghc-unordered-containers) | |
1094 | ("ghc-monad-control" ,ghc-monad-control) | |
1095 | ("ghc-transformers-base" ,ghc-transformers-base) | |
1096 | ("ghc-cookie" ,ghc-cookie) | |
1097 | ("ghc-http-types" ,ghc-http-types) | |
1098 | ("ghc-case-insensitive" ,ghc-case-insensitive) | |
1099 | ("ghc-parsec" ,ghc-parsec) | |
1100 | ("ghc-vector" ,ghc-vector) | |
1101 | ("ghc-aeson" ,ghc-aeson) | |
1102 | ("ghc-fast-logger" ,ghc-fast-logger) | |
1103 | ("ghc-wai-logger" ,ghc-wai-logger) | |
1104 | ("ghc-monad-logger" ,ghc-monad-logger) | |
1105 | ("ghc-conduit" ,ghc-conduit) | |
1106 | ("ghc-resourcet" ,ghc-resourcet) | |
1107 | ("ghc-lifted-base" ,ghc-lifted-base) | |
1108 | ("ghc-blaze-html" ,ghc-blaze-html) | |
1109 | ("ghc-blaze-markup" ,ghc-blaze-markup) | |
1110 | ("ghc-data-default" ,ghc-data-default) | |
1111 | ("ghc-safe" ,ghc-safe) | |
1112 | ("ghc-warp" ,ghc-warp) | |
1113 | ("ghc-unix-compat" ,ghc-unix-compat) | |
1114 | ("ghc-conduit-extra" ,ghc-conduit-extra) | |
1115 | ("ghc-exceptions" ,ghc-exceptions) | |
1116 | ("ghc-deepseq-generics" ,ghc-deepseq-generics) | |
1117 | ("ghc-mwc-random" ,ghc-mwc-random) | |
1118 | ("ghc-primitive" ,ghc-primitive) | |
1119 | ("ghc-word8" ,ghc-word8) | |
1120 | ("ghc-auto-update" ,ghc-auto-update) | |
1121 | ("ghc-semigroups" ,ghc-semigroups) | |
1122 | ("ghc-byteable" ,ghc-byteable))) | |
1123 | (native-inputs `(("ghc-hspec" ,ghc-hspec) | |
1124 | ("ghc-path-pieces" ,ghc-path-pieces) | |
1125 | ("ghc-hunit" ,ghc-hunit) | |
1126 | ("ghc-hspec-expectations" ,ghc-hspec-expectations) | |
1127 | ("ghc-quickcheck" ,ghc-quickcheck) | |
1128 | ("ghc-network" ,ghc-network) | |
1129 | ("ghc-async" ,ghc-async) | |
1130 | ("ghc-streaming-commons" ,ghc-streaming-commons) | |
1131 | ("ghc-wai-extra" ,ghc-wai-extra))) | |
1132 | (home-page "https://www.yesodweb.com") | |
1133 | (synopsis "Core package for the Yesod web framework") | |
1134 | (description "This Haskell package provides all core functionality, for | |
1135 | Yesod, on which other packages can be built. It provides dispatch, handler | |
1136 | functions, widgets, etc.") | |
1137 | (license license:expat))) | |
d1992741 | 1138 | |
1139 | (define-public ghc-yesod-persistent | |
1140 | (package | |
1141 | (name "ghc-yesod-persistent") | |
1142 | (version "1.4.3") | |
1143 | (source | |
1144 | (origin | |
1145 | (method url-fetch) | |
1146 | (uri (string-append "https://hackage.haskell.org/package/" | |
1147 | "yesod-persistent-" version "/" | |
1148 | "yesod-persistent-" version ".tar.gz")) | |
1149 | (sha256 | |
1150 | (base32 | |
1151 | "0kiksw46c8ww9yiwl28pkrppx8d6fhsasr0hvmsliqbrp16likj8")))) | |
1152 | (build-system haskell-build-system) | |
1153 | (arguments `(#:tests? #f)) ; FIXME: hspec-discover not available in PATH. | |
1154 | (inputs `(("ghc-yesod-core" ,ghc-yesod-core) | |
1155 | ("ghc-persistent" ,ghc-persistent) | |
1156 | ("ghc-persistent-template" ,ghc-persistent-template) | |
1157 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
1158 | ("ghc-conduit" ,ghc-conduit) | |
1159 | ("ghc-resourcet" ,ghc-resourcet) | |
1160 | ("ghc-resource-pool" ,ghc-resource-pool))) | |
1161 | (native-inputs `(("ghc-hspec" ,ghc-hspec) | |
1162 | ("ghc-wai-extra" ,ghc-wai-extra) | |
1163 | ("ghc-yesod-core" ,ghc-yesod-core) | |
1164 | ("ghc-persistent-sqlite" ,ghc-persistent-sqlite) | |
1165 | ("ghc-text" ,ghc-text))) | |
1166 | (home-page "http://www.yesodweb.com/") | |
1167 | (synopsis "Helpers for using Persistent from Yesod") | |
1168 | (description "This Haskell package provides helpers for using Persistent | |
1169 | from Yesod.") | |
1170 | (license license:expat))) | |
6faa30c1 | 1171 | |
1172 | (define-public ghc-yesod-form | |
1173 | (package | |
1174 | (name "ghc-yesod-form") | |
1175 | (version "1.4.16") | |
1176 | (source | |
1177 | (origin | |
1178 | (method url-fetch) | |
1179 | (uri (string-append | |
1180 | "https://hackage.haskell.org/package/yesod-form/yesod-form-" | |
1181 | version | |
1182 | ".tar.gz")) | |
1183 | (sha256 | |
1184 | (base32 | |
1185 | "0lij3m5vn8nvh6y88r1dhk03xmmjwmjzazm307nc2wvc5fmx9p2j")))) | |
1186 | (build-system haskell-build-system) | |
1187 | (inputs | |
1188 | `(("ghc-yesod-core" ,ghc-yesod-core) | |
1189 | ("ghc-yesod-persistent" ,ghc-yesod-persistent) | |
1190 | ("ghc-shakespeare" ,ghc-shakespeare) | |
1191 | ("ghc-persistent" ,ghc-persistent) | |
1192 | ("ghc-data-default" ,ghc-data-default) | |
1193 | ("ghc-xss-sanitize" ,ghc-xss-sanitize) | |
1194 | ("ghc-blaze-builder" ,ghc-blaze-builder) | |
1195 | ("ghc-email-validate" ,ghc-email-validate) | |
1196 | ("ghc-text" ,ghc-text) | |
1197 | ("ghc-wai" ,ghc-wai) | |
1198 | ("ghc-blaze-html" ,ghc-blaze-html) | |
1199 | ("ghc-blaze-markup" ,ghc-blaze-markup) | |
1200 | ("ghc-attoparsec" ,ghc-attoparsec) | |
1201 | ("ghc-byteable" ,ghc-byteable) | |
1202 | ("ghc-aeson" ,ghc-aeson) | |
1203 | ("ghc-resourcet" ,ghc-resourcet) | |
1204 | ("ghc-semigroups" ,ghc-semigroups) | |
1205 | ("ghc-network-uri" ,ghc-network-uri) | |
1206 | ("ghc-hspec" ,ghc-hspec))) | |
1207 | (home-page "https://www.yesodweb.com") | |
1208 | (synopsis "Form handling support for Yesod Web Framework") | |
1209 | (description "This Haskell package provies a set of basic form inputs such | |
1210 | as text, number, time, checkbox, select, textarea, etc through the | |
1211 | @code{Yesod.Form.Fields} module. Also, there is @code{Yesod.Form.Nic} module | |
1212 | providing richtext field using Nic editor. ") | |
1213 | (license license:expat))) | |
42469226 | 1214 | |
1215 | (define-public ghc-yesod | |
1216 | (package | |
1217 | (name "ghc-yesod") | |
1218 | (version "1.4.5") | |
1219 | (source | |
1220 | (origin | |
1221 | (method url-fetch) | |
1222 | (uri (string-append | |
1223 | "https://hackage.haskell.org/package/yesod/yesod-" | |
1224 | version ".tar.gz")) | |
1225 | (sha256 | |
1226 | (base32 | |
1227 | "1sg66nq8yaas2m5nqsdrxricvcizd1ik02zqk60sxh3wna08fz16")))) | |
1228 | (build-system haskell-build-system) | |
1229 | (inputs | |
1230 | `(("ghc-yesod-core" ,ghc-yesod-core) | |
1231 | ("ghc-yesod-persistent" ,ghc-yesod-persistent) | |
1232 | ("ghc-yesod-form" ,ghc-yesod-form) | |
1233 | ("ghc-monad-control" ,ghc-monad-control) | |
1234 | ("ghc-wai" ,ghc-wai) | |
1235 | ("ghc-wai-extra" ,ghc-wai-extra) | |
1236 | ("ghc-warp" ,ghc-warp) | |
1237 | ("ghc-blaze-html" ,ghc-blaze-html) | |
1238 | ("ghc-blaze-markup" ,ghc-blaze-markup) | |
1239 | ("ghc-aeson" ,ghc-aeson) | |
1240 | ("ghc-data-default-class" ,ghc-data-default-class) | |
1241 | ("ghc-unordered-containers" ,ghc-unordered-containers) | |
1242 | ("ghc-yaml" ,ghc-yaml) | |
1243 | ("ghc-text" ,ghc-text) | |
1244 | ("ghc-monad-logger" ,ghc-monad-logger) | |
1245 | ("ghc-fast-logger" ,ghc-fast-logger) | |
1246 | ("ghc-conduit" ,ghc-conduit) | |
1247 | ("ghc-conduit-extra" ,ghc-conduit-extra) | |
1248 | ("ghc-resourcet" ,ghc-resourcet) | |
1249 | ("ghc-shakespeare" ,ghc-shakespeare) | |
1250 | ("ghc-streaming-commons" ,ghc-streaming-commons) | |
1251 | ("ghc-wai-logger" ,ghc-wai-logger) | |
1252 | ("ghc-semigroups" ,ghc-semigroups))) | |
1253 | (home-page "https://www.yesodweb.com") | |
1254 | (synopsis "Framework for creating type-safe, RESTful web applications") | |
1255 | (description "The Haskell package package groups together the various | |
1256 | Yesod related packages into one cohesive whole. This is the version of Yesod, | |
1257 | whereas most of the core code lives in @code{ghc-yesod-core}.") | |
1258 | (license license:expat))) |