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