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