1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
3 ;;; Copyright © 2015, 2016, 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>
9 ;;; This file is part of GNU Guix.
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
12 ;;; under the terms of the GNU General Public License as published by
13 ;;; the Free Software Foundation; either version 3 of the License, or (at
14 ;;; your option) any later version.
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
17 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;;; GNU General Public License for more details.
21 ;;; You should have received a copy of the GNU General Public License
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24 (define-module (gnu packages haskell-web)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages haskell)
27 #:use-module (gnu packages haskell-check)
28 #:use-module (gnu packages haskell-crypto)
29 #:use-module (gnu packages tls)
30 #:use-module (guix build-system haskell)
31 #:use-module (guix download)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix packages)
34 #:use-module (guix utils))
36 (define-public ghc-tagsoup
43 (uri (string-append "https://hackage.haskell.org/package/tagsoup/"
44 "tagsoup-" version ".tar.gz"))
47 "1yv3dbyb0i1yqm796jgc4jj5kxkla1sxb3b2klw5ks182kdx8kjb"))))
48 (build-system haskell-build-system)
49 (inputs `(("ghc-text" ,ghc-text)))
51 `(("ghc-quickcheck" ,ghc-quickcheck)))
52 (home-page "http://community.haskell.org/~ndm/tagsoup/")
54 "Parsing and extracting information from (possibly malformed) HTML/XML
57 "TagSoup is a library for parsing HTML/XML. It supports the HTML 5
58 specification, and can be used to parse either well-formed XML, or
59 unstructured and malformed HTML from the web. The library also provides
60 useful functions to extract information from an HTML document, making it ideal
61 for screen-scraping.")
62 (license license:bsd-3)))
64 (define-public ghc-cookie
72 "https://hackage.haskell.org/package/cookie/cookie-"
77 "0qpdydhb9gw590ffabqg70x7xvjpg8l74idqnrfbhv5yrr7hryzv"))))
78 (build-system haskell-build-system)
80 `(("ghc-old-locale" ,ghc-old-locale)
81 ("ghc-blaze-builder" ,ghc-blaze-builder)
82 ("ghc-text" ,ghc-text)
83 ("ghc-data-default-class" ,ghc-data-default-class)
84 ("ghc-hunit" ,ghc-hunit)
85 ("ghc-quickcheck" ,ghc-quickcheck)
86 ("ghc-tasty" ,ghc-tasty)
87 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
88 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
89 (home-page "https://github.com/snoyberg/cookie")
90 (synopsis "HTTP cookie parsing and rendering")
91 (description "HTTP cookie parsing and rendering library for Haskell.")
92 (license license:bsd-3)))
94 (define-public ghc-httpd-shed
96 (name "ghc-httpd-shed")
101 (uri (string-append "https://hackage.haskell.org/package/httpd-shed/"
102 "httpd-shed-" version ".tar.gz"))
105 "064jy1mqhnf1hvq6s04wlhmp916rd522x58djb9qixv13vc8gzxh"))))
106 (build-system haskell-build-system)
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")
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)))
118 (define-public ghc-http-types
120 (name "ghc-http-types")
125 (uri (string-append "https://hackage.haskell.org/package/http-types/"
126 "http-types-" version ".tar.gz"))
129 "1wv9k6nlvkdsxwlr7gaynphvzmvi5211gvwq96mbcxgk51a739rz"))))
130 (build-system haskell-build-system)
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)))
138 `(("ghc-case-insensitive" ,ghc-case-insensitive)
139 ("ghc-blaze-builder" ,ghc-blaze-builder)
140 ("ghc-text" ,ghc-text)))
141 (home-page "https://github.com/aristidb/http-types")
142 (synopsis "Generic HTTP types for Haskell")
143 (description "This package provides generic HTTP types for Haskell (for
144 both client and server code).")
145 (license license:bsd-3)))
147 (define-public ghc-http
150 (version "4000.3.12")
151 (outputs '("out" "doc"))
155 (uri (string-append "https://hackage.haskell.org/package/HTTP/"
156 "HTTP-" version ".tar.gz"))
159 "140r6qy1ay25piv0z3hih11zhigyi08nkwc32097j43pjff6mzx3"))))
160 (build-system haskell-build-system)
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)))
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-parsec" ,ghc-parsec)
173 ("ghc-puremd5" ,ghc-puremd5)
175 ("ghc-network" ,ghc-network)
176 ("ghc-network-uri" ,ghc-network-uri)
177 ("ghc-split" ,ghc-split)))
179 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
180 (home-page "https://github.com/haskell/HTTP")
181 (synopsis "Library for client-side HTTP")
183 "The HTTP package supports client-side web programming in Haskell. It
184 lets you set up HTTP connections, transmitting requests and processing the
185 responses coming back.")
186 (license license:bsd-3)))
188 (define-public ghc-http-client
190 (name "ghc-http-client")
194 (uri (string-append "https://hackage.haskell.org/package/"
195 "http-client/http-client-"
199 "0szwbgvkkdz56lgi91armkagmb7nnfwbpp4j7cm9zhmffv3ba8g1"))))
200 (build-system haskell-build-system)
201 ;; Tests require access to the web.
202 (arguments `(#:tests? #f))
204 `(("ghc-async" ,ghc-async)
205 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
206 ("ghc-blaze-builder" ,ghc-blaze-builder)
207 ("ghc-case-insensitive" ,ghc-case-insensitive)
208 ("ghc-cookie" ,ghc-cookie)
209 ("ghc-data-default-class" ,ghc-data-default-class)
210 ("ghc-exceptions" ,ghc-exceptions)
211 ("ghc-http-types" ,ghc-http-types)
212 ("ghc-memory" ,ghc-memory)
213 ("ghc-mime-types" ,ghc-mime-types)
214 ("ghc-monad-control" ,ghc-monad-control)
215 ("ghc-network" ,ghc-network)
216 ("ghc-network-uri" ,ghc-network-uri)
217 ("ghc-random" ,ghc-random)
218 ("ghc-streaming-commons" ,ghc-streaming-commons)
219 ("ghc-text" ,ghc-text)
220 ("ghc-zlib" ,ghc-zlib)))
222 `(("ghc-hspec" ,ghc-hspec)))
223 (home-page "https://github.com/snoyberg/http-client")
224 (synopsis "HTTP client engine")
226 "This package provides an HTTP client engine, intended as a base layer
227 for more user-friendly packages.")
228 (license license:expat)))
230 (define-public ghc-http-client-tls
232 (name "ghc-http-client-tls")
236 (uri (string-append "https://hackage.haskell.org/package/"
237 "http-client-tls/http-client-tls-"
241 "0n4mi8z77qaggfyq17z79cl304nf1f4h6gag60v4wjwghvmj7yn1"))))
242 (build-system haskell-build-system)
243 ;; Tests require Internet access
244 (arguments `(#:tests? #f))
246 `(("ghc-data-default-class" ,ghc-data-default-class)
247 ("ghc-http-client" ,ghc-http-client)
248 ("ghc-connection" ,ghc-connection)
249 ("ghc-network" ,ghc-network)
251 ("ghc-http-types" ,ghc-http-types)))
253 `(("ghc-hspec" ,ghc-hspec)))
254 (home-page "https://github.com/snoyberg/http-client")
255 (synopsis "Backend for http-client using the TLS library")
257 "This package provides a backend for the http-client package using the
258 connection and TLS libraries. It is intended for use by higher-level
259 libraries, such as http-conduit.")
260 (license license:expat)))
262 (define-public ghc-http-date
264 (name "ghc-http-date")
269 (uri (string-append "https://hackage.haskell.org/package/"
270 "http-date-" version "/"
271 "http-date-" version ".tar.gz"))
274 "0dknh28kyarnzqrsc80ssalxjrq0qbv7ir49247p2grb7rh0dqgj"))))
275 (build-system haskell-build-system)
277 `(("ghc-attoparsec" ,ghc-attoparsec)))
279 `(("ghc-doctest" ,ghc-doctest)
280 ("ghc-hspec" ,ghc-hspec)
281 ("hspec-discover" ,hspec-discover)
282 ("ghc-old-locale" ,ghc-old-locale)))
283 (home-page "https://github.com/kazu-yamamoto/http-date")
284 (synopsis "HTTP Date parser/formatter")
285 (description "Library for Parsing and formatting HTTP
287 (license license:bsd-3)))
289 (define-public ghc-http2
296 (uri (string-append "https://hackage.haskell.org/package/"
298 "http2-" version ".tar.gz"))
301 "0hww0rfsv6lqx62qzycbcqy5q6rh9k09qkyjkdm5m1sp1z50wqk1"))))
302 (build-system haskell-build-system)
304 `(("ghc-bytestring-builder" ,ghc-bytestring-builder)
305 ("ghc-case-insensitive" ,ghc-case-insensitive)
306 ("ghc-aeson" ,ghc-aeson)
307 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
309 ("ghc-unordered-containers" ,ghc-unordered-containers)
310 ("ghc-vector" ,ghc-vector)
311 ("ghc-word8" ,ghc-word8)
312 ("ghc-psqueues" ,ghc-psqueues)
313 ("ghc-stm" ,ghc-stm)))
315 `(("ghc-glob" ,ghc-glob)
316 ("ghc-hspec" ,ghc-hspec)
317 ("ghc-doctest" ,ghc-doctest)
318 ("hspec-discover" ,hspec-discover)))
319 (home-page "https://github.com/kazu-yamamoto/http2")
320 (synopsis "HTTP/2 library including frames, priority queues and HPACK")
321 (description "This package provides a HTTP/2.0 library including frames
322 and HPACK. Currently HTTP/2 16 framing and HPACK 10 is supported.")
323 (license license:bsd-3)))
325 (define-public ghc-http-conduit
327 (name "ghc-http-conduit")
332 (uri (string-append "https://hackage.haskell.org/package/"
333 "http-conduit-" version "/" "http-conduit-"
337 "1iay4hr0mj8brkxvgkv1liqa8irl9axfc3qhn8qsvcyq4n1l95km"))))
338 (build-system haskell-build-system)
339 ;; FIXME: `httpLbs TLS` in test-suite `test` fails with
340 ;; ConnectionFailure getProtocolByName: does not exist (no such protocol
342 (arguments `(#:tests? #f))
344 `(("ghc-aeson" ,ghc-aeson)
345 ("ghc-resourcet" ,ghc-resourcet)
346 ("ghc-conduit" ,ghc-conduit)
347 ("ghc-conduit-extra" ,ghc-conduit-extra)
348 ("ghc-http-types" ,ghc-http-types)
349 ("ghc-lifted-base" ,ghc-lifted-base)
350 ("ghc-http-client" ,ghc-http-client)
351 ("ghc-http-client-tls" ,ghc-http-client-tls)
352 ("ghc-monad-control" ,ghc-monad-control)
354 ("ghc-exceptions" ,ghc-exceptions)
355 ("ghc-unliftio" ,ghc-unliftio)))
357 `(("ghc-hunit" ,ghc-hunit)
358 ("ghc-hspec" ,ghc-hspec)
359 ("ghc-data-default-class" ,ghc-data-default-class)
360 ("ghc-connection" ,ghc-connection)
361 ("ghc-warp-tls" ,ghc-warp-tls)
362 ("ghc-blaze-builder" ,ghc-blaze-builder)
363 ("ghc-text" ,ghc-text)
364 ("ghc-conduit" ,ghc-conduit)
365 ("ghc-utf8-string" ,ghc-utf8-string)
366 ("ghc-case-insensitive" ,ghc-case-insensitive)
367 ("ghc-lifted-base" ,ghc-lifted-base)
368 ("ghc-network" ,ghc-network)
370 ("ghc-warp" ,ghc-warp)
371 ("ghc-wai-conduit" ,ghc-wai-conduit)
372 ("ghc-http-types" ,ghc-http-types)
373 ("ghc-http-client" ,ghc-http-client)
374 ("ghc-cookie" ,ghc-cookie)
375 ("ghc-conduit-extra" ,ghc-conduit-extra)
376 ("ghc-streaming-commons" ,ghc-streaming-commons)
377 ("ghc-aeson" ,ghc-aeson)
378 ("ghc-temporary" ,ghc-temporary)
379 ("ghc-resourcet" ,ghc-resourcet)))
380 (home-page "https://hackage.haskell.org/package/http-conduit")
381 (synopsis "HTTP/HTTPS client with conduit interface")
382 (description "This library uses attoparsec for parsing the actual
383 contents of the HTTP connection. It also provides higher-level functions
384 which allow you to avoid direct usage of conduits.")
385 (license license:bsd-3)))
387 (define-public ghc-wai
395 "https://hackage.haskell.org/package/wai/wai-"
400 "08afasnirja21vr0bmzcywz4w29x736dmdv7h8nnh1l8bn7sd02x"))))
401 (build-system haskell-build-system)
403 `(("ghc-bytestring-builder" ,ghc-bytestring-builder)
404 ("ghc-unix-compat" ,ghc-unix-compat)
405 ("ghc-vault" ,ghc-vault)
406 ("ghc-blaze-builder" ,ghc-blaze-builder)
407 ("ghc-network" ,ghc-network)
408 ("ghc-text" ,ghc-text)
409 ("ghc-http-types" ,ghc-http-types)))
411 `(("hspec-discover" ,hspec-discover)
412 ("ghc-quickcheck" ,ghc-quickcheck)
413 ("ghc-hunit" ,ghc-hunit)
414 ("ghc-hspec" ,ghc-hspec)))
415 (home-page "https://hackage.haskell.org/package/wai")
416 (synopsis "Web application interface for Haskell")
417 (description "This package provides a Web Application Interface (WAI)
418 library for the Haskell language. It defines a common protocol for
419 communication between web applications and web servers.")
420 (license license:bsd-3)))
422 (define-public ghc-wai-logger
424 (name "ghc-wai-logger")
430 "https://hackage.haskell.org/package/wai-logger/wai-logger-"
435 "1w0b0vinsyqr37wciljkz8g5dcmfi2r210lq194a0wkycly9kkch"))))
436 (build-system haskell-build-system)
437 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find libraries exported
438 ; by propagated-inputs.
440 `(("ghc-auto-update" ,ghc-auto-update)
441 ("ghc-byteorder" ,ghc-byteorder)
442 ("ghc-easy-file" ,ghc-easy-file)
443 ("ghc-unix-time" ,ghc-unix-time)
444 ("ghc-blaze-builder" ,ghc-blaze-builder)
445 ("ghc-case-insensitive" ,ghc-case-insensitive)
446 ("ghc-fast-logger" ,ghc-fast-logger)
447 ("ghc-http-types" ,ghc-http-types)
448 ("ghc-network" ,ghc-network)
449 ("ghc-wai" ,ghc-wai)))
450 (home-page "https://hackage.haskell.org/package/wai-logger")
451 (synopsis "Logging system for WAI")
452 (description "This package provides the logging system for WAI.")
453 (license license:bsd-3)))
455 (define-public ghc-wai-extra
457 (name "ghc-wai-extra")
463 "https://hackage.haskell.org/package/wai-extra/wai-extra-"
468 "0r079mqqdv14fp97w0rigdpwk6b88grpjlqsjc5y8bbc0skf5za2"))))
469 (build-system haskell-build-system)
471 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
472 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
473 ("ghc-cookie" ,ghc-cookie)
474 ("ghc-blaze-builder" ,ghc-blaze-builder)
475 ("ghc-network" ,ghc-network)
476 ("ghc-lifted-base" ,ghc-lifted-base)
477 ("ghc-streaming-commons" ,ghc-streaming-commons)
478 ("ghc-stringsearch" ,ghc-stringsearch)
479 ("ghc-resourcet" ,ghc-resourcet)
480 ("ghc-fast-logger" ,ghc-fast-logger)
481 ("ghc-wai-logger" ,ghc-wai-logger)
482 ("ghc-zlib" ,ghc-zlib)
483 ("ghc-word8" ,ghc-word8)
484 ("ghc-iproute" ,ghc-iproute)
485 ("ghc-void" ,ghc-void)
487 ("ghc-http-types" ,ghc-http-types)
488 ("ghc-text" ,ghc-text)
489 ("ghc-case-insensitive" ,ghc-case-insensitive)
490 ("ghc-data-default-class" ,ghc-data-default-class)
491 ("ghc-unix-compat" ,ghc-unix-compat)
492 ("ghc-vault" ,ghc-vault)
493 ("ghc-aeson" ,ghc-aeson)))
495 `(("hspec-discover" ,hspec-discover)
496 ("ghc-hspec" ,ghc-hspec)
497 ("ghc-hunit" ,ghc-hunit)))
498 (home-page "https://github.com/yesodweb/wai")
499 (synopsis "Some basic WAI handlers and middleware")
500 (description "This library provides basic WAI handlers and middleware
502 (license license:expat)))
504 (define-public ghc-wai-conduit
506 (name "ghc-wai-conduit")
511 (uri (string-append "https://hackage.haskell.org/package/"
512 "wai-conduit-" version "/"
513 "wai-conduit-" version ".tar.gz"))
516 "1zvsiwjq2mvkb9sjgp3ly9m968m7a2jjzr4id6jpi3mmqykj15z4"))))
517 (build-system haskell-build-system)
519 `(("ghc-conduit" ,ghc-conduit)
520 ("ghc-http-types" ,ghc-http-types)
522 ("ghc-blaze-builder" ,ghc-blaze-builder)))
523 (home-page "https://github.com/yesodweb/wai")
524 (synopsis "Conduit wrappers for Haskell's WAI")
525 (description "This package provides data streaming abstraction for
526 Haskell's Web Application Interface (WAI).")
527 (license license:expat)))
529 (define-public ghc-warp
536 (uri (string-append "https://hackage.haskell.org/package/"
537 "warp-" version "/" "warp-" version
541 "1zp5cy0bbj508vdvms1n5z80z37m253kwsqc5a83cfc990n6fgw5"))))
542 (build-system haskell-build-system)
544 `(#:tests? #f)) ; FIXME: Test-Suite `spec` fails.
546 `(("ghc-async" ,ghc-async)
547 ("ghc-auto-update" ,ghc-auto-update)
548 ("ghc-blaze-builder" ,ghc-blaze-builder)
549 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
550 ("ghc-case-insensitive" ,ghc-case-insensitive)
551 ("ghc-hashable" ,ghc-hashable)
552 ("ghc-http-types" ,ghc-http-types)
553 ("ghc-iproute" ,ghc-iproute)
554 ("ghc-network" ,ghc-network)
556 ("ghc-streaming-commons" ,ghc-streaming-commons)
557 ("ghc-text" ,ghc-text)
558 ("ghc-unix-compat" ,ghc-unix-compat)
559 ("ghc-vault" ,ghc-vault)
561 ("ghc-word8" ,ghc-word8)
562 ("ghc-lifted-base" ,ghc-lifted-base)
563 ("ghc-http-date" ,ghc-http-date)
564 ("ghc-simple-sendfile" ,ghc-simple-sendfile)
565 ("ghc-http2" ,ghc-http2)))
567 `(("ghc-silently" ,ghc-silently)
568 ("ghc-hspec" ,ghc-hspec)
569 ("ghc-auto-update" ,ghc-auto-update)
570 ("ghc-doctest" ,ghc-doctest)
571 ("ghc-quickcheck" ,ghc-quickcheck)
572 ("ghc-hunit" ,ghc-hunit)
573 ("ghc-http" ,ghc-http)
574 ("hspec-discover" ,hspec-discover)))
575 (home-page "http://github.com/yesodweb/wai")
576 (synopsis "HTTP server library for Haskell's WAI")
577 (description "Warp is a server library for HTTP/1.x and HTTP/2
578 based WAI (Web Application Interface in Haskell).")
579 (license license:expat)))
581 (define-public ghc-warp-tls
583 (name "ghc-warp-tls")
588 (uri (string-append "https://hackage.haskell.org/package/"
589 "warp-tls-" version "/"
590 "warp-tls-" version ".tar.gz"))
593 "14m2bzk5ivz9gdpxlcj6qnh46f2lycm1ybdjnfkj2876zrqwii7m"))))
594 (build-system haskell-build-system)
596 `(("ghc-cryptonite" ,ghc-cryptonite)
597 ("ghc-data-default-class" ,ghc-data-default-class)
598 ("ghc-network" ,ghc-network)
599 ("ghc-streaming-commons" ,ghc-streaming-commons)
602 ("ghc-warp" ,ghc-warp)))
603 (home-page "http://github.com/yesodweb/wai")
604 (synopsis "SSL/TLS support for Warp")
605 (description "This package provides SSL/TLS support for Warp,
606 a WAI handler, via the native Haskell TLS implementation.")
607 (license license:expat)))
609 (define-public ghc-xss-sanitize
611 (name "ghc-xss-sanitize")
617 "https://hackage.haskell.org/package/xss-sanitize/xss-sanitize-"
621 "005cmhaw9xbzkcn42jmhvcvk63bzmg4lml368xwmqdvh7r0mcn4m"))))
622 (build-system haskell-build-system)
624 `(("ghc-tagsoup" ,ghc-tagsoup)
625 ("ghc-utf8-string" ,ghc-utf8-string)
626 ("ghc-css-text" ,ghc-css-text)
627 ("ghc-network-uri" ,ghc-network-uri)))
629 `(("ghc-text" ,ghc-text)
630 ("ghc-attoparsec" ,ghc-attoparsec)
631 ("ghc-hspec" ,ghc-hspec)
632 ("ghc-hunit" ,ghc-hunit)))
633 (home-page "https://github.com/yesodweb/haskell-xss-sanitize")
634 (synopsis "Sanitize untrusted HTML to prevent XSS attacks")
635 (description "This library provides @code{sanitizeXSS}. Run untrusted
636 HTML through @code{Text.HTML.SanitizeXSS.sanitizeXSS} to prevent XSS
638 (license license:bsd-3)))
640 (define-public ghc-css-text
642 (name "ghc-css-text")
648 "https://hackage.haskell.org/package/css-text/css-text-"
653 "0ynd9f4hn2sfwqzbsa0y7phmxq8za7jiblpjwx0ry8b372zhgxaz"))))
654 (build-system haskell-build-system)
656 `(("ghc-text" ,ghc-text)
657 ("ghc-attoparsec" ,ghc-attoparsec)
658 ("ghc-hspec" ,ghc-hspec)
659 ("ghc-quickcheck" ,ghc-quickcheck)))
660 (home-page "http://www.yesodweb.com/")
661 (synopsis "CSS parser and renderer")
662 (description "This package provides a CSS parser and renderer for
664 (license license:bsd-3)))
666 (define-public ghc-mime-types
668 (name "ghc-mime-types")
672 (uri (string-append "https://hackage.haskell.org/package/"
673 "mime-types/mime-types-"
677 "1fg9cqpp5lswk8ajlq4f41n12c2v2naz179l8dsz6zisjqj4l5l3"))))
678 (build-system haskell-build-system)
680 `(("ghc-text" ,ghc-text)))
681 (home-page "https://github.com/yesodweb/wai")
682 (synopsis "Basic MIME type handling types and functions")
684 "This library provides basic MIME type handling types and functions.")
685 (license license:expat)))
687 (define-public ghc-html
695 "https://hackage.haskell.org/package/html/html-"
700 "0q9hmfii62kc82ijlg238fxrzxhsivn42x5wd6ffcr9xldg4jd8c"))))
701 (build-system haskell-build-system)
703 "https://hackage.haskell.org/package/html")
704 (synopsis "HTML combinator library")
706 "This package contains a combinator library for constructing HTML
708 (license license:bsd-3)))
710 (define-public ghc-xhtml
718 "https://hackage.haskell.org/package/xhtml/xhtml-"
723 "1n6wgzxbj8xf0wf1il827qidphnffb5vzhwzqlxhh70c2y10f0ik"))))
724 (build-system haskell-build-system)
725 (home-page "https://github.com/haskell/xhtml")
726 (synopsis "XHTML combinator library")
728 "This package provides combinators for producing XHTML 1.0, including the
729 Strict, Transitional and Frameset variants.")
730 (license license:bsd-3)))
732 (define-public ghc-blaze-html
734 (name "ghc-blaze-html")
739 (uri (string-append "https://hackage.haskell.org/package/"
740 "blaze-html/blaze-html-"
744 "0r0acv47nh75bmf7kjyfvhcwz8f02rn9x0a1l80pzgyczfrsmkmf"))))
745 (build-system haskell-build-system)
747 `(#:configure-flags (list "--allow-newer=QuickCheck"
748 "--allow-newer=HUnit")))
750 `(("ghc-blaze-builder" ,ghc-blaze-builder)
751 ("ghc-text" ,ghc-text)
752 ("ghc-blaze-markup" ,ghc-blaze-markup)))
754 `(("ghc-hunit" ,ghc-hunit)
755 ("ghc-quickcheck" ,ghc-quickcheck)
756 ("ghc-test-framework" ,ghc-test-framework)
757 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
758 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
759 (home-page "http://jaspervdj.be/blaze")
760 (synopsis "Fast HTML combinator library")
761 (description "This library provides HTML combinators for Haskell.")
762 (license license:bsd-3)))
764 (define-public ghc-aeson
772 "https://hackage.haskell.org/package/aeson/aeson-"
777 "16zwpd07cmhs58wwsqbhxy3b58gqw8w5nr7nf6lwi4nvznjdn09l"))))
778 (build-system haskell-build-system)
779 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
781 `(("ghc-attoparsec" ,ghc-attoparsec)
782 ("ghc-base-compat" ,ghc-base-compat)
783 ("ghc-dlist" ,ghc-dlist)
784 ("ghc-hashable" ,ghc-hashable)
785 ("ghc-scientific" ,ghc-scientific)
786 ("ghc-tagged" ,ghc-tagged)
787 ("ghc-text" ,ghc-text)
788 ("ghc-th-abstraction" ,ghc-th-abstraction)
789 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
790 ("ghc-unordered-containers" ,ghc-unordered-containers)
791 ("ghc-uuid-types" ,ghc-uuid-types)
792 ("ghc-vector" ,ghc-vector)
793 ("ghc-hunit" ,ghc-hunit)
794 ("ghc-quickcheck" ,ghc-quickcheck)
795 ("ghc-integer-logarithms" ,ghc-integer-logarithms)
796 ("ghc-base-orphans" ,ghc-base-orphans)
797 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
798 ("ghc-generic-deriving" ,ghc-generic-deriving)
799 ("ghc-test-framework" ,ghc-test-framework)
800 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
801 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
802 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
803 ("ghc-hashable-time" ,ghc-hashable-time)))
804 (home-page "https://github.com/bos/aeson")
805 (synopsis "Fast JSON parsing and encoding")
806 (description "This package provides a JSON parsing and encoding library
807 for Haskell, optimized for ease of use and high performance. (A note on
808 naming: in Greek mythology, Aeson was the father of Jason.)")
809 (license license:bsd-3)))
811 (define-public ghc-aeson-for-pandoc-1
812 (package (inherit ghc-aeson)
817 (uri (string-append "https://hackage.haskell.org/package/aeson/aeson-"
821 "1zy5z8pzvh53qkjm0nm3f4rwqfqg3867ck8ncd6mrxpcyvxqqj1p"))))))
823 (define-public ghc-aeson-pretty
825 (name "ghc-aeson-pretty")
830 "https://hackage.haskell.org/package/aeson-pretty/aeson-pretty-"
834 "1yd98972srlbkn0f2jhrb3f443j9wnq2fnw5gbxjxzmkcinfh5yx"))))
835 (build-system haskell-build-system)
837 `(("ghc-aeson" ,ghc-aeson)
838 ("ghc-base-compat" ,ghc-base-compat)
839 ("ghc-scientific" ,ghc-scientific)
840 ("ghc-vector" ,ghc-vector)
841 ("ghc-text" ,ghc-text)
842 ("ghc-unordered-containers" ,ghc-unordered-containers)
843 ("ghc-attoparsec" ,ghc-attoparsec)
844 ("ghc-cmdargs" ,ghc-cmdargs)))
845 (home-page "https://github.com/informatikr/aeson-pretty")
846 (synopsis "JSON pretty-printing library and command-line tool")
848 "This package provides a JSON pretty-printing library compatible with aeson
849 as well as a command-line tool to improve readabilty of streams of JSON data.
850 The library provides the function @code{encodePretty}. It is a drop-in
851 replacement for aeson's @code{encode} function, producing JSON-ByteStrings for
852 human readers. The command-line tool reads JSON from stdin and writes
853 prettified JSON to stdout. It also offers a complementary \"compact\"-mode,
854 essentially the opposite of pretty-printing.")
855 (license license:bsd-3)))
857 (define-public ghc-aeson-qq
859 (name "ghc-aeson-qq")
863 (uri (string-append "https://hackage.haskell.org/package/"
864 "aeson-qq/aeson-qq-" version ".tar.gz"))
867 "0ln13jqyfh5726hdrk1rad9a6cgrrj201plmwcfcpvq18v4m5ckd"))))
868 (build-system haskell-build-system)
870 `(("ghc-base-compat" ,ghc-base-compat)
871 ("ghc-text" ,ghc-text)
872 ("ghc-attoparsec" ,ghc-attoparsec)
873 ("ghc-scientific" ,ghc-scientific)
874 ("ghc-vector" ,ghc-vector)
875 ("ghc-aeson" ,ghc-aeson)
876 ("ghc-parsec" ,ghc-parsec)
877 ("ghc-haskell-src-meta" ,ghc-haskell-src-meta)))
879 `(("ghc-hspec" ,ghc-hspec)
880 ("hspec-discover" ,hspec-discover)))
881 (home-page "https://github.com/zalora/aeson-qq")
882 (synopsis "JSON quasiquoter for Haskell")
884 "aeson-qq provides a JSON quasiquoter for Haskell. This package exposes
885 the function @code{aesonQQ} that compile-time converts a string representation
886 of a JSON value into a @code{Data.Aeson.Value}.")
887 (license license:expat)))
889 (define-public ghc-multipart
891 (name "ghc-multipart")
897 "https://hackage.haskell.org/package/multipart/multipart-"
902 "0g04jhyw1ib1s7c9bcldyyn4n90qd9x7dmvic4vgq57bgcqgnhz5"))))
903 (build-system haskell-build-system)
904 (inputs `(("ghc-parsec" ,ghc-parsec)))
906 "http://www.github.com/silkapp/multipart")
908 "HTTP multipart library")
910 "HTTP multipart split out of the cgi package, for Haskell.")
911 (license license:bsd-3)))
913 (define-public ghc-uri-encode
915 (name "ghc-uri-encode")
921 "https://hackage.haskell.org/package/uri-encode/uri-encode-"
925 "11miwb5vvnn17m92ykz1pzg9x6s8fbpz3mmsyqs2s4b3mn55haz8"))))
926 (build-system haskell-build-system)
928 `(("ghc-text" ,ghc-text)
929 ("ghc-utf8-string" ,ghc-utf8-string)
930 ("ghc-network-uri" ,ghc-network-uri)))
931 (home-page "https://hackage.haskell.org/package/uri-encode")
932 (synopsis "Unicode aware uri-encoding")
933 (description "Unicode aware uri-encoding for Haskell.")
934 (license license:bsd-3)))
936 (define-public ghc-path-pieces
938 (name "ghc-path-pieces")
943 (uri (string-append "https://hackage.haskell.org/package/"
944 "path-pieces-" version "/"
945 "path-pieces-" version ".tar.gz"))
948 "0vx3sivcsld76058925hym2j6hm3g71f0qjr7v59f1g2afgx82q8"))))
949 (build-system haskell-build-system)
950 (inputs `(("ghc-text" ,ghc-text)))
951 (native-inputs `(("ghc-hunit" ,ghc-hunit)
952 ("ghc-hspec" ,ghc-hspec)
953 ("ghc-quickcheck" ,ghc-quickcheck)))
954 (home-page "https://github.com/yesodweb/path-pieces")
955 (synopsis "Used in Yesod to automatically marshall data in the request path")
956 (description "This Haskell package provides two typeclasses for converting
957 Haskell data types to and from route pieces.")
958 (license license:bsd-3)))
960 (define-public ghc-skein
967 (uri (string-append "https://hackage.haskell.org/package/"
969 "skein-" version ".tar.gz"))
972 "1jdqdk0rz2wnvw735clnj8jh0a9rkrbqjg7vk3w6wczdql6cm0pq"))))
973 (build-system haskell-build-system)
974 (inputs `(("ghc-cereal" ,ghc-cereal)
975 ("ghc-tagged" ,ghc-tagged)
976 ("ghc-crpto-api" ,ghc-crypto-api)))
977 (native-inputs `(("ghc-hspec" ,ghc-hspec)))
978 (home-page "https://github.com/yesodweb/path-pieces")
979 (synopsis "Skein family of cryptographic hash functions for Haskell")
980 (description "@uref{(http://www.skein-hash.info, Skein} is a family of
981 fast secure cryptographic hash functions designed by Niels Ferguson, Stefan
982 Lucks, Bruce Schneier, Doug Whiting, Mihir Bellare, Tadayoshi Kohno, Jon
983 Callas and Jesse Walker.
985 This Haskell package uses bindings to the optimized C implementation of Skein.")
986 (license license:bsd-3)))
988 (define-public ghc-clientsession
990 (name "ghc-clientsession")
995 (uri (string-append "https://hackage.haskell.org/package/"
996 "clientsession-" version "/"
997 "clientsession-" version ".tar.gz"))
1000 "0s6h4ykj16mpf7nlw2iqn2ji0p8g1fn5ni0s7yqaili6vv2as5ar"))))
1001 (build-system haskell-build-system)
1002 (inputs `(("ghc-cereal" ,ghc-cereal)
1003 ("ghc-tagged" ,ghc-tagged)
1004 ("ghc-crypto-api" ,ghc-crypto-api)
1005 ("ghc-skein" ,ghc-skein)
1006 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
1007 ("ghc-entropy" ,ghc-entropy)
1008 ("ghc-cprng-aes" ,ghc-cprng-aes)
1009 ("ghc-cipher-aes" ,ghc-cipher-aes)
1010 ("ghc-crypto-random" ,ghc-crypto-random)
1011 ("ghc-setenv" ,ghc-setenv)))
1012 (native-inputs `(("ghc-hunit" ,ghc-hunit)
1013 ("ghc-hspec" ,ghc-hspec)
1014 ("ghc-quickcheck" ,ghc-quickcheck)))
1015 (home-page "https://github.com/yesodweb/clientsession/tree/master")
1016 (synopsis "Haskell library for securely store session data in a
1017 client-side cookie")
1018 (description "This Haskell package achieves security through AES-CTR
1019 encryption and Skein-MAC-512-256 authentication. Uses Base64 encoding to
1020 avoid any issues with characters.")
1021 (license license:expat)))
1023 (define-public ghc-yesod-core
1025 (name "ghc-yesod-core")
1030 (uri (string-append "https://hackage.haskell.org/package/"
1031 "yesod-core-" version "/"
1032 "yesod-core-" version ".tar.gz"))
1035 "0ww8hl0cx2g58zrdx3j6d5m2xwhssbajdqws1xk6rzl7rpfm1b9j"))))
1036 (build-system haskell-build-system)
1037 (inputs `(("ghc-wai" ,ghc-wai)
1038 ("ghc-extra" ,ghc-extra)
1039 ("ghc-text" ,ghc-text)
1040 ("ghc-shakespeare" ,ghc-shakespeare)
1041 ("ghc-blaze-builder" ,ghc-blaze-builder)
1042 ("ghc-mtl" ,ghc-mtl)
1043 ("ghc-clientsession" ,ghc-clientsession)
1044 ("ghc-random" ,ghc-random)
1045 ("ghc-cereal" ,ghc-cereal)
1046 ("ghc-old-locale" ,ghc-old-locale)
1047 ("ghc-unordered-containers" ,ghc-unordered-containers)
1048 ("ghc-monad-control" ,ghc-monad-control)
1049 ("ghc-transformers-base" ,ghc-transformers-base)
1050 ("ghc-cookie" ,ghc-cookie)
1051 ("ghc-http-types" ,ghc-http-types)
1052 ("ghc-case-insensitive" ,ghc-case-insensitive)
1053 ("ghc-parsec" ,ghc-parsec)
1054 ("ghc-vector" ,ghc-vector)
1055 ("ghc-aeson" ,ghc-aeson)
1056 ("ghc-fast-logger" ,ghc-fast-logger)
1057 ("ghc-wai-logger" ,ghc-wai-logger)
1058 ("ghc-monad-logger" ,ghc-monad-logger)
1059 ("ghc-conduit" ,ghc-conduit)
1060 ("ghc-resourcet" ,ghc-resourcet)
1061 ("ghc-lifted-base" ,ghc-lifted-base)
1062 ("ghc-blaze-html" ,ghc-blaze-html)
1063 ("ghc-blaze-markup" ,ghc-blaze-markup)
1064 ("ghc-data-default" ,ghc-data-default)
1065 ("ghc-safe" ,ghc-safe)
1066 ("ghc-warp" ,ghc-warp)
1067 ("ghc-unix-compat" ,ghc-unix-compat)
1068 ("ghc-conduit-extra" ,ghc-conduit-extra)
1069 ("ghc-exceptions" ,ghc-exceptions)
1070 ("ghc-deepseq-generics" ,ghc-deepseq-generics)
1071 ("ghc-mwc-random" ,ghc-mwc-random)
1072 ("ghc-primitive" ,ghc-primitive)
1073 ("ghc-word8" ,ghc-word8)
1074 ("ghc-auto-update" ,ghc-auto-update)
1075 ("ghc-semigroups" ,ghc-semigroups)
1076 ("ghc-byteable" ,ghc-byteable)))
1077 (native-inputs `(("ghc-hspec" ,ghc-hspec)
1078 ("ghc-path-pieces" ,ghc-path-pieces)
1079 ("ghc-hunit" ,ghc-hunit)
1080 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
1081 ("ghc-quickcheck" ,ghc-quickcheck)
1082 ("ghc-network" ,ghc-network)
1083 ("ghc-async" ,ghc-async)
1084 ("ghc-streaming-commons" ,ghc-streaming-commons)
1085 ("ghc-wai-extra" ,ghc-wai-extra)))
1086 (home-page "https://www.yesodweb.com")
1087 (synopsis "Core package for the Yesod web framework")
1088 (description "This Haskell package provides all core functionality, for
1089 Yesod, on which other packages can be built. It provides dispatch, handler
1090 functions, widgets, etc.")
1091 (license license:expat)))
1093 (define-public ghc-yesod-persistent
1095 (name "ghc-yesod-persistent")
1100 (uri (string-append "https://hackage.haskell.org/package/"
1101 "yesod-persistent-" version "/"
1102 "yesod-persistent-" version ".tar.gz"))
1105 "0kiksw46c8ww9yiwl28pkrppx8d6fhsasr0hvmsliqbrp16likj8"))))
1106 (build-system haskell-build-system)
1107 (arguments `(#:tests? #f)) ; FIXME: hspec-discover not available in PATH.
1108 (inputs `(("ghc-yesod-core" ,ghc-yesod-core)
1109 ("ghc-persistent" ,ghc-persistent)
1110 ("ghc-persistent-template" ,ghc-persistent-template)
1111 ("ghc-blaze-builder" ,ghc-blaze-builder)
1112 ("ghc-conduit" ,ghc-conduit)
1113 ("ghc-resourcet" ,ghc-resourcet)
1114 ("ghc-resource-pool" ,ghc-resource-pool)))
1115 (native-inputs `(("ghc-hspec" ,ghc-hspec)
1116 ("ghc-wai-extra" ,ghc-wai-extra)
1117 ("ghc-yesod-core" ,ghc-yesod-core)
1118 ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
1119 ("ghc-text" ,ghc-text)))
1120 (home-page "http://www.yesodweb.com/")
1121 (synopsis "Helpers for using Persistent from Yesod")
1122 (description "This Haskell package provides helpers for using Persistent
1124 (license license:expat)))
1126 (define-public ghc-yesod-form
1128 (name "ghc-yesod-form")
1134 "https://hackage.haskell.org/package/yesod-form/yesod-form-"
1139 "0lij3m5vn8nvh6y88r1dhk03xmmjwmjzazm307nc2wvc5fmx9p2j"))))
1140 (build-system haskell-build-system)
1142 `(("ghc-yesod-core" ,ghc-yesod-core)
1143 ("ghc-yesod-persistent" ,ghc-yesod-persistent)
1144 ("ghc-shakespeare" ,ghc-shakespeare)
1145 ("ghc-persistent" ,ghc-persistent)
1146 ("ghc-data-default" ,ghc-data-default)
1147 ("ghc-xss-sanitize" ,ghc-xss-sanitize)
1148 ("ghc-blaze-builder" ,ghc-blaze-builder)
1149 ("ghc-email-validate" ,ghc-email-validate)
1150 ("ghc-text" ,ghc-text)
1151 ("ghc-wai" ,ghc-wai)
1152 ("ghc-blaze-html" ,ghc-blaze-html)
1153 ("ghc-blaze-markup" ,ghc-blaze-markup)
1154 ("ghc-attoparsec" ,ghc-attoparsec)
1155 ("ghc-byteable" ,ghc-byteable)
1156 ("ghc-aeson" ,ghc-aeson)
1157 ("ghc-resourcet" ,ghc-resourcet)
1158 ("ghc-semigroups" ,ghc-semigroups)
1159 ("ghc-network-uri" ,ghc-network-uri)
1160 ("ghc-hspec" ,ghc-hspec)))
1161 (home-page "https://www.yesodweb.com")
1162 (synopsis "Form handling support for Yesod Web Framework")
1163 (description "This Haskell package provies a set of basic form inputs such
1164 as text, number, time, checkbox, select, textarea, etc through the
1165 @code{Yesod.Form.Fields} module. Also, there is @code{Yesod.Form.Nic} module
1166 providing richtext field using Nic editor. ")
1167 (license license:expat)))
1169 (define-public ghc-yesod
1177 "https://hackage.haskell.org/package/yesod/yesod-"
1181 "1sg66nq8yaas2m5nqsdrxricvcizd1ik02zqk60sxh3wna08fz16"))))
1182 (build-system haskell-build-system)
1184 `(("ghc-yesod-core" ,ghc-yesod-core)
1185 ("ghc-yesod-persistent" ,ghc-yesod-persistent)
1186 ("ghc-yesod-form" ,ghc-yesod-form)
1187 ("ghc-monad-control" ,ghc-monad-control)
1188 ("ghc-wai" ,ghc-wai)
1189 ("ghc-wai-extra" ,ghc-wai-extra)
1190 ("ghc-warp" ,ghc-warp)
1191 ("ghc-blaze-html" ,ghc-blaze-html)
1192 ("ghc-blaze-markup" ,ghc-blaze-markup)
1193 ("ghc-aeson" ,ghc-aeson)
1194 ("ghc-data-default-class" ,ghc-data-default-class)
1195 ("ghc-unordered-containers" ,ghc-unordered-containers)
1196 ("ghc-yaml" ,ghc-yaml)
1197 ("ghc-text" ,ghc-text)
1198 ("ghc-monad-logger" ,ghc-monad-logger)
1199 ("ghc-fast-logger" ,ghc-fast-logger)
1200 ("ghc-conduit" ,ghc-conduit)
1201 ("ghc-conduit-extra" ,ghc-conduit-extra)
1202 ("ghc-resourcet" ,ghc-resourcet)
1203 ("ghc-shakespeare" ,ghc-shakespeare)
1204 ("ghc-streaming-commons" ,ghc-streaming-commons)
1205 ("ghc-wai-logger" ,ghc-wai-logger)
1206 ("ghc-semigroups" ,ghc-semigroups)))
1207 (home-page "https://www.yesodweb.com")
1208 (synopsis "Framework for creating type-safe, RESTful web applications")
1209 (description "The Haskell package package groups together the various
1210 Yesod related packages into one cohesive whole. This is the version of Yesod,
1211 whereas most of the core code lives in @code{ghc-yesod-core}.")
1212 (license license:expat)))