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 curl)
27 #:use-module (gnu packages haskell)
28 #:use-module (gnu packages haskell-check)
29 #:use-module (gnu packages haskell-crypto)
30 #:use-module (gnu packages tls)
31 #:use-module (guix build-system haskell)
32 #:use-module (guix download)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix packages)
35 #:use-module (guix utils))
37 (define-public ghc-tagsoup
44 (uri (string-append "https://hackage.haskell.org/package/tagsoup/"
45 "tagsoup-" version ".tar.gz"))
48 "1yv3dbyb0i1yqm796jgc4jj5kxkla1sxb3b2klw5ks182kdx8kjb"))))
49 (build-system haskell-build-system)
50 (inputs `(("ghc-text" ,ghc-text)))
52 `(("ghc-quickcheck" ,ghc-quickcheck)))
53 (home-page "http://community.haskell.org/~ndm/tagsoup/")
55 "Parsing and extracting information from (possibly malformed) HTML/XML
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)))
65 (define-public ghc-cookie
73 "https://hackage.haskell.org/package/cookie/cookie-"
78 "1qy09i0jh2z9i9avy2khf8a8afq4fqgnv0fyrszgfg4kmq2fsi9j"))))
79 (build-system haskell-build-system)
81 `(("ghc-old-locale" ,ghc-old-locale)
82 ("ghc-blaze-builder" ,ghc-blaze-builder)
83 ("ghc-text" ,ghc-text)
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)))
95 (define-public ghc-httpd-shed
97 (name "ghc-httpd-shed")
102 (uri (string-append "https://hackage.haskell.org/package/httpd-shed/"
103 "httpd-shed-" version ".tar.gz"))
106 "064jy1mqhnf1hvq6s04wlhmp916rd522x58djb9qixv13vc8gzxh"))))
107 (build-system haskell-build-system)
109 `(("ghc-network-uri" ,ghc-network-uri)
110 ("ghc-network" ,ghc-network)))
111 (home-page "https://hackage.haskell.org/package/httpd-shed")
112 (synopsis "Simple web-server with an interact style API")
114 "This web server promotes a function from @code{Request} to @code{IO
115 Response} into a local web server. The user can decide how to interpret the
116 requests, and the library is intended for implementing Ajax APIs.")
117 (license license:bsd-3)))
119 (define-public ghc-http-types
121 (name "ghc-http-types")
126 (uri (string-append "https://hackage.haskell.org/package/http-types/"
127 "http-types-" version ".tar.gz"))
130 "1wv9k6nlvkdsxwlr7gaynphvzmvi5211gvwq96mbcxgk51a739rz"))))
131 (build-system haskell-build-system)
133 `(("ghc-doctest" ,ghc-doctest)
134 ("ghc-hspec" ,ghc-hspec)
135 ("ghc-quickcheck" ,ghc-quickcheck)
136 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
137 ("hspec-discover" ,hspec-discover)))
139 `(("ghc-case-insensitive" ,ghc-case-insensitive)
140 ("ghc-blaze-builder" ,ghc-blaze-builder)
141 ("ghc-text" ,ghc-text)))
142 (home-page "https://github.com/aristidb/http-types")
143 (synopsis "Generic HTTP types for Haskell")
144 (description "This package provides generic HTTP types for Haskell (for
145 both client and server code).")
146 (license license:bsd-3)))
148 (define-public ghc-http
151 (version "4000.3.12")
152 (outputs '("out" "doc"))
156 (uri (string-append "https://hackage.haskell.org/package/HTTP/"
157 "HTTP-" version ".tar.gz"))
160 "140r6qy1ay25piv0z3hih11zhigyi08nkwc32097j43pjff6mzx3"))))
161 (build-system haskell-build-system)
163 `(("ghc-httpd-shed" ,ghc-httpd-shed)
164 ("ghc-hunit" ,ghc-hunit)
165 ("ghc-test-framework" ,ghc-test-framework)
166 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
168 `(("ghc-case-insensitive" ,ghc-case-insensitive)
169 ("ghc-conduit" ,ghc-conduit)
170 ("ghc-conduit-extra" ,ghc-conduit-extra)
171 ("ghc-http-types" ,ghc-http-types)
172 ("ghc-old-time" ,ghc-old-time)
173 ("ghc-parsec" ,ghc-parsec)
174 ("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 "0qj3pcpgbsfsc4m52dz35khhl4hf1i0nmcpa445z82d9567vy6j7"))))
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 "09slbzqayjnqqz9zybk7slgzvizgplikqgg4b2flzgks91466k0g"))))
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)
353 ("ghc-exceptions" ,ghc-exceptions)
354 ("ghc-unliftio" ,ghc-unliftio)))
356 `(("ghc-hunit" ,ghc-hunit)
357 ("ghc-hspec" ,ghc-hspec)
358 ("ghc-data-default-class" ,ghc-data-default-class)
359 ("ghc-connection" ,ghc-connection)
360 ("ghc-warp-tls" ,ghc-warp-tls)
361 ("ghc-blaze-builder" ,ghc-blaze-builder)
362 ("ghc-text" ,ghc-text)
363 ("ghc-conduit" ,ghc-conduit)
364 ("ghc-utf8-string" ,ghc-utf8-string)
365 ("ghc-case-insensitive" ,ghc-case-insensitive)
366 ("ghc-lifted-base" ,ghc-lifted-base)
367 ("ghc-network" ,ghc-network)
369 ("ghc-warp" ,ghc-warp)
370 ("ghc-wai-conduit" ,ghc-wai-conduit)
371 ("ghc-http-types" ,ghc-http-types)
372 ("ghc-cookie" ,ghc-cookie)
373 ("ghc-conduit-extra" ,ghc-conduit-extra)
374 ("ghc-streaming-commons" ,ghc-streaming-commons)
375 ("ghc-aeson" ,ghc-aeson)
376 ("ghc-temporary" ,ghc-temporary)
377 ("ghc-resourcet" ,ghc-resourcet)))
378 (home-page "https://hackage.haskell.org/package/http-conduit")
379 (synopsis "HTTP/HTTPS client with conduit interface")
380 (description "This library uses attoparsec for parsing the actual
381 contents of the HTTP connection. It also provides higher-level functions
382 which allow you to avoid direct usage of conduits.")
383 (license license:bsd-3)))
385 (define-public ghc-wai
393 "https://hackage.haskell.org/package/wai/wai-"
398 "0jr3b2789wa4m6mxkz12ynz4lfsqmgbrcy0am8karyqr3x3528r8"))))
399 (build-system haskell-build-system)
401 `(("ghc-bytestring-builder" ,ghc-bytestring-builder)
402 ("ghc-unix-compat" ,ghc-unix-compat)
403 ("ghc-vault" ,ghc-vault)
404 ("ghc-blaze-builder" ,ghc-blaze-builder)
405 ("ghc-network" ,ghc-network)
406 ("ghc-text" ,ghc-text)
407 ("ghc-http-types" ,ghc-http-types)))
409 `(("hspec-discover" ,hspec-discover)
410 ("ghc-quickcheck" ,ghc-quickcheck)
411 ("ghc-hunit" ,ghc-hunit)
412 ("ghc-hspec" ,ghc-hspec)))
413 (home-page "https://hackage.haskell.org/package/wai")
414 (synopsis "Web application interface for Haskell")
415 (description "This package provides a Web Application Interface (WAI)
416 library for the Haskell language. It defines a common protocol for
417 communication between web applications and web servers.")
418 (license license:bsd-3)))
420 (define-public ghc-wai-logger
422 (name "ghc-wai-logger")
428 "https://hackage.haskell.org/package/wai-logger/wai-logger-"
433 "0w5ldq4gplc16zzk5ikmbbjw79imaqvw8p6lylaw3hlsbn3zzm4d"))))
434 (build-system haskell-build-system)
435 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find libraries exported
436 ; by propagated-inputs.
438 `(("ghc-auto-update" ,ghc-auto-update)
439 ("ghc-byteorder" ,ghc-byteorder)
440 ("ghc-easy-file" ,ghc-easy-file)
441 ("ghc-unix-time" ,ghc-unix-time)
442 ("ghc-blaze-builder" ,ghc-blaze-builder)
443 ("ghc-case-insensitive" ,ghc-case-insensitive)
444 ("ghc-fast-logger" ,ghc-fast-logger)
445 ("ghc-http-types" ,ghc-http-types)
446 ("ghc-network" ,ghc-network)
447 ("ghc-wai" ,ghc-wai)))
448 (home-page "https://hackage.haskell.org/package/wai-logger")
449 (synopsis "Logging system for WAI")
450 (description "This package provides the logging system for WAI.")
451 (license license:bsd-3)))
453 (define-public ghc-wai-extra
455 (name "ghc-wai-extra")
461 "https://hackage.haskell.org/package/wai-extra/wai-extra-"
466 "07gcgq59dki5drkjci9ka34xjsy3bqilbsx0lsc4905w9jlyfbci"))))
467 (build-system haskell-build-system)
469 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
470 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
471 ("ghc-cookie" ,ghc-cookie)
472 ("ghc-blaze-builder" ,ghc-blaze-builder)
473 ("ghc-network" ,ghc-network)
474 ("ghc-lifted-base" ,ghc-lifted-base)
475 ("ghc-streaming-commons" ,ghc-streaming-commons)
476 ("ghc-stringsearch" ,ghc-stringsearch)
477 ("ghc-resourcet" ,ghc-resourcet)
478 ("ghc-fast-logger" ,ghc-fast-logger)
479 ("ghc-wai-logger" ,ghc-wai-logger)
480 ("ghc-zlib" ,ghc-zlib)
481 ("ghc-word8" ,ghc-word8)
482 ("ghc-iproute" ,ghc-iproute)
483 ("ghc-void" ,ghc-void)
485 ("ghc-http-types" ,ghc-http-types)
486 ("ghc-text" ,ghc-text)
487 ("ghc-case-insensitive" ,ghc-case-insensitive)
488 ("ghc-data-default-class" ,ghc-data-default-class)
489 ("ghc-unix-compat" ,ghc-unix-compat)
490 ("ghc-vault" ,ghc-vault)
491 ("ghc-aeson" ,ghc-aeson)))
493 `(("hspec-discover" ,hspec-discover)
494 ("ghc-hspec" ,ghc-hspec)
495 ("ghc-hunit" ,ghc-hunit)))
496 (home-page "https://github.com/yesodweb/wai")
497 (synopsis "Some basic WAI handlers and middleware")
498 (description "This library provides basic WAI handlers and middleware
500 (license license:expat)))
502 (define-public ghc-wai-conduit
504 (name "ghc-wai-conduit")
509 (uri (string-append "https://hackage.haskell.org/package/"
510 "wai-conduit-" version "/"
511 "wai-conduit-" version ".tar.gz"))
514 "07yn41rn2skd5p3wqqa09wa761vj7ibl8l19gh4bi4i8slxhk417"))))
515 (build-system haskell-build-system)
517 `(("ghc-conduit" ,ghc-conduit)
518 ("ghc-http-types" ,ghc-http-types)
520 ("ghc-blaze-builder" ,ghc-blaze-builder)))
521 (home-page "https://github.com/yesodweb/wai")
522 (synopsis "Conduit wrappers for Haskell's WAI")
523 (description "This package provides data streaming abstraction for
524 Haskell's Web Application Interface (WAI).")
525 (license license:expat)))
527 (define-public ghc-bsb-http-chunked
529 (name "ghc-bsb-http-chunked")
535 "https://hackage.haskell.org/package/"
536 "bsb-http-chunked/bsb-http-chunked-"
540 "1x6m6xkrcw6jiaig1bb2wb5pqyw31x8xr9k9pxgq2g3ng44pbjr8"))))
541 (build-system haskell-build-system)
543 `(("ghc-bytestring-builder" ,ghc-bytestring-builder)))
544 (home-page "http://github.com/sjakobi/bsb-http-chunked")
545 (synopsis "Chunked HTTP transfer encoding for bytestring builders")
546 (description "This Haskell library contains functions for encoding
547 bytestring builders for chunked Hypertext Transfer Protocol (HTTP) 1.1
549 (license license:bsd-3)))
551 (define-public ghc-warp
558 (uri (string-append "https://hackage.haskell.org/package/"
559 "warp-" version "/" "warp-" version
563 "12v9qhi4hyp0sb90yddsax16jj7x47nmqwn53sv7b5nszcxgzam0"))))
564 (build-system haskell-build-system)
566 `(("ghc-async" ,ghc-async)
567 ("ghc-auto-update" ,ghc-auto-update)
568 ("ghc-bsb-http-chunked" ,ghc-bsb-http-chunked)
569 ("ghc-case-insensitive" ,ghc-case-insensitive)
570 ("ghc-hashable" ,ghc-hashable)
571 ("ghc-http-types" ,ghc-http-types)
572 ("ghc-iproute" ,ghc-iproute)
573 ("ghc-network" ,ghc-network)
575 ("ghc-streaming-commons" ,ghc-streaming-commons)
576 ("ghc-text" ,ghc-text)
577 ("ghc-unix-compat" ,ghc-unix-compat)
578 ("ghc-vault" ,ghc-vault)
580 ("ghc-word8" ,ghc-word8)
581 ("ghc-http-date" ,ghc-http-date)
582 ("ghc-simple-sendfile" ,ghc-simple-sendfile)
583 ("ghc-http2" ,ghc-http2)))
586 ("ghc-silently" ,ghc-silently)
587 ("ghc-hspec" ,ghc-hspec)
588 ("ghc-doctest" ,ghc-doctest)
589 ("ghc-lifted-base" ,ghc-lifted-base)
590 ("ghc-quickcheck" ,ghc-quickcheck)
591 ("ghc-hunit" ,ghc-hunit)
592 ("ghc-http-client" ,ghc-http-client)
593 ("hspec-discover" ,hspec-discover)))
594 (home-page "http://github.com/yesodweb/wai")
595 (synopsis "HTTP server library for Haskell's WAI")
596 (description "Warp is a server library for HTTP/1.x and HTTP/2
597 based WAI (Web Application Interface in Haskell).")
598 (license license:expat)))
600 (define-public ghc-tls-session-manager
602 (name "ghc-tls-session-manager")
608 "https://hackage.haskell.org/package/"
609 "tls-session-manager/tls-session-manager-"
613 "0rvmln545vghsx8zhxp44f0f6pzma8cylarmfhhysy55ipywr1n5"))))
614 (build-system haskell-build-system)
616 `(("ghc-auto-update" ,ghc-auto-update)
617 ("ghc-clock" ,ghc-clock)
618 ("ghc-psqueues" ,ghc-psqueues)
619 ("ghc-tls" ,ghc-tls)))
620 (home-page "http://hackage.haskell.org/package/tls-session-manager")
621 (synopsis "In-memory TLS session manager")
622 (description "This Haskell library provides a TLS session manager with
623 limitation, automatic pruning, energy saving and replay resistance.")
624 (license license:bsd-3)))
626 (define-public ghc-warp-tls
628 (name "ghc-warp-tls")
633 (uri (string-append "https://hackage.haskell.org/package/"
634 "warp-tls-" version "/"
635 "warp-tls-" version ".tar.gz"))
638 "17gj295fr98l7mkz2gdz6kahdnmja0sql3kvy2zab6q168g53kc4"))))
639 (build-system haskell-build-system)
641 `(("ghc-cryptonite" ,ghc-cryptonite)
642 ("ghc-data-default-class" ,ghc-data-default-class)
643 ("ghc-network" ,ghc-network)
644 ("ghc-streaming-commons" ,ghc-streaming-commons)
646 ("ghc-tls-session-manager" ,ghc-tls-session-manager)
648 ("ghc-warp" ,ghc-warp)))
649 (home-page "http://github.com/yesodweb/wai")
650 (synopsis "SSL/TLS support for Warp")
651 (description "This package provides SSL/TLS support for Warp,
652 a WAI handler, via the native Haskell TLS implementation.")
653 (license license:expat)))
655 (define-public ghc-xss-sanitize
657 (name "ghc-xss-sanitize")
663 "https://hackage.haskell.org/package/xss-sanitize/xss-sanitize-"
667 "1d72s3a6520iwwc1wbn9v2znqgbw6a5wwzb23iq8ny9ccnjyx1dk"))))
668 (build-system haskell-build-system)
670 `(("ghc-tagsoup" ,ghc-tagsoup)
671 ("ghc-utf8-string" ,ghc-utf8-string)
672 ("ghc-css-text" ,ghc-css-text)
673 ("ghc-network-uri" ,ghc-network-uri)))
675 `(("ghc-text" ,ghc-text)
676 ("ghc-attoparsec" ,ghc-attoparsec)
677 ("ghc-hspec" ,ghc-hspec)
678 ("ghc-hunit" ,ghc-hunit)))
679 (home-page "https://github.com/yesodweb/haskell-xss-sanitize")
680 (synopsis "Sanitize untrusted HTML to prevent XSS attacks")
681 (description "This library provides @code{sanitizeXSS}. Run untrusted
682 HTML through @code{Text.HTML.SanitizeXSS.sanitizeXSS} to prevent XSS
684 (license license:bsd-3)))
686 (define-public ghc-css-text
688 (name "ghc-css-text")
694 "https://hackage.haskell.org/package/css-text/css-text-"
699 "0ynd9f4hn2sfwqzbsa0y7phmxq8za7jiblpjwx0ry8b372zhgxaz"))))
700 (build-system haskell-build-system)
702 `(("ghc-text" ,ghc-text)
703 ("ghc-attoparsec" ,ghc-attoparsec)
704 ("ghc-hspec" ,ghc-hspec)
705 ("ghc-quickcheck" ,ghc-quickcheck)))
706 (home-page "http://www.yesodweb.com/")
707 (synopsis "CSS parser and renderer")
708 (description "This package provides a CSS parser and renderer for
710 (license license:bsd-3)))
712 (define-public ghc-mime-types
714 (name "ghc-mime-types")
718 (uri (string-append "https://hackage.haskell.org/package/"
719 "mime-types/mime-types-"
723 "14ccl2842ya17zyj0bpc7vzklbyqvvydpbypn69h2fmhgji192x8"))))
724 (build-system haskell-build-system)
726 `(("ghc-text" ,ghc-text)))
727 (home-page "https://github.com/yesodweb/wai")
728 (synopsis "Basic MIME type handling types and functions")
730 "This library provides basic MIME type handling types and functions.")
731 (license license:expat)))
733 (define-public ghc-html
741 "https://hackage.haskell.org/package/html/html-"
746 "0q9hmfii62kc82ijlg238fxrzxhsivn42x5wd6ffcr9xldg4jd8c"))))
747 (build-system haskell-build-system)
749 "https://hackage.haskell.org/package/html")
750 (synopsis "HTML combinator library")
752 "This package contains a combinator library for constructing HTML
754 (license license:bsd-3)))
756 (define-public ghc-xhtml
759 (version "3000.2.2.1")
764 "https://hackage.haskell.org/package/xhtml/xhtml-"
769 "0939kwpinq6l4n3nyvd1gzyl7f83gymw0wzqndlgy1yc7q0nkj2w"))))
770 (build-system haskell-build-system)
771 (home-page "https://github.com/haskell/xhtml")
772 (synopsis "XHTML combinator library")
774 "This package provides combinators for producing XHTML 1.0, including the
775 Strict, Transitional and Frameset variants.")
776 (license license:bsd-3)))
778 (define-public ghc-blaze-html
780 (name "ghc-blaze-html")
785 (uri (string-append "https://hackage.haskell.org/package/"
786 "blaze-html/blaze-html-"
790 "06xv8fqhclfjj61z74cgggn4lmx1s7diakxg84mnkgfvk11983pa"))))
791 (build-system haskell-build-system)
793 `(("ghc-blaze-builder" ,ghc-blaze-builder)
794 ("ghc-text" ,ghc-text)
795 ("ghc-blaze-markup" ,ghc-blaze-markup)))
797 `(("ghc-hunit" ,ghc-hunit)
798 ("ghc-quickcheck" ,ghc-quickcheck)
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 (home-page "http://jaspervdj.be/blaze")
803 (synopsis "Fast HTML combinator library")
804 (description "This library provides HTML combinators for Haskell.")
805 (license license:bsd-3)))
807 (define-public ghc-aeson
815 "https://hackage.haskell.org/package/aeson/aeson-"
820 "1i1ig840fvsb1lnklcv32zsc0zscirc301lw1mpfxhc6h4pk0gw4"))))
821 (build-system haskell-build-system)
822 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
824 `(("ghc-attoparsec" ,ghc-attoparsec)
825 ("ghc-base-compat" ,ghc-base-compat)
826 ("ghc-dlist" ,ghc-dlist)
827 ("ghc-hashable" ,ghc-hashable)
828 ("ghc-scientific" ,ghc-scientific)
829 ("ghc-tagged" ,ghc-tagged)
830 ("ghc-text" ,ghc-text)
831 ("ghc-th-abstraction" ,ghc-th-abstraction)
832 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
833 ("ghc-unordered-containers" ,ghc-unordered-containers)
834 ("ghc-uuid-types" ,ghc-uuid-types)
835 ("ghc-vector" ,ghc-vector)
836 ("ghc-hunit" ,ghc-hunit)
837 ("ghc-quickcheck" ,ghc-quickcheck)
838 ("ghc-integer-logarithms" ,ghc-integer-logarithms)
839 ("ghc-base-orphans" ,ghc-base-orphans)
840 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
841 ("ghc-generic-deriving" ,ghc-generic-deriving)
842 ("ghc-test-framework" ,ghc-test-framework)
843 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
844 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
845 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
846 ("ghc-hashable-time" ,ghc-hashable-time)))
847 (home-page "https://github.com/bos/aeson")
848 (synopsis "Fast JSON parsing and encoding")
849 (description "This package provides a JSON parsing and encoding library
850 for Haskell, optimized for ease of use and high performance. (A note on
851 naming: in Greek mythology, Aeson was the father of Jason.)")
852 (license license:bsd-3)))
854 (define-public ghc-aeson-pretty
856 (name "ghc-aeson-pretty")
861 "https://hackage.haskell.org/package/aeson-pretty/aeson-pretty-"
865 "1m977gs0s9gf3lwzlbs5y7bl6ansc5pywmn2qjk09l5bwg2yrhf1"))))
866 (build-system haskell-build-system)
868 `(("ghc-aeson" ,ghc-aeson)
869 ("ghc-base-compat" ,ghc-base-compat)
870 ("ghc-scientific" ,ghc-scientific)
871 ("ghc-vector" ,ghc-vector)
872 ("ghc-text" ,ghc-text)
873 ("ghc-unordered-containers" ,ghc-unordered-containers)
874 ("ghc-attoparsec" ,ghc-attoparsec)
875 ("ghc-cmdargs" ,ghc-cmdargs)))
876 (home-page "https://github.com/informatikr/aeson-pretty")
877 (synopsis "JSON pretty-printing library and command-line tool")
879 "This package provides a JSON pretty-printing library compatible with aeson
880 as well as a command-line tool to improve readabilty of streams of JSON data.
881 The library provides the function @code{encodePretty}. It is a drop-in
882 replacement for aeson's @code{encode} function, producing JSON-ByteStrings for
883 human readers. The command-line tool reads JSON from stdin and writes
884 prettified JSON to stdout. It also offers a complementary \"compact\"-mode,
885 essentially the opposite of pretty-printing.")
886 (license license:bsd-3)))
888 (define-public ghc-aeson-qq
890 (name "ghc-aeson-qq")
894 (uri (string-append "https://hackage.haskell.org/package/"
895 "aeson-qq/aeson-qq-" version ".tar.gz"))
898 "0ln13jqyfh5726hdrk1rad9a6cgrrj201plmwcfcpvq18v4m5ckd"))))
899 (build-system haskell-build-system)
901 `(("ghc-base-compat" ,ghc-base-compat)
902 ("ghc-text" ,ghc-text)
903 ("ghc-attoparsec" ,ghc-attoparsec)
904 ("ghc-scientific" ,ghc-scientific)
905 ("ghc-vector" ,ghc-vector)
906 ("ghc-aeson" ,ghc-aeson)
907 ("ghc-parsec" ,ghc-parsec)
908 ("ghc-haskell-src-meta" ,ghc-haskell-src-meta)))
910 `(("ghc-hspec" ,ghc-hspec)
911 ("hspec-discover" ,hspec-discover)))
912 (home-page "https://github.com/zalora/aeson-qq")
913 (synopsis "JSON quasiquoter for Haskell")
915 "aeson-qq provides a JSON quasiquoter for Haskell. This package exposes
916 the function @code{aesonQQ} that compile-time converts a string representation
917 of a JSON value into a @code{Data.Aeson.Value}.")
918 (license license:expat)))
920 (define-public ghc-multipart
922 (name "ghc-multipart")
928 "https://hackage.haskell.org/package/multipart/multipart-"
933 "1x4n4yyva22dhfr1pg5ki112qvvzb4hyd7bwpm189iq4gcp52q4z"))))
934 (build-system haskell-build-system)
936 `(("ghc-parsec" ,ghc-parsec)
937 ("ghc-stringsearch" ,ghc-stringsearch)))
939 "http://www.github.com/silkapp/multipart")
941 "HTTP multipart library")
943 "HTTP multipart split out of the cgi package, for Haskell.")
944 (license license:bsd-3)))
946 (define-public ghc-uri-encode
948 (name "ghc-uri-encode")
954 "https://hackage.haskell.org/package/uri-encode/uri-encode-"
958 "11miwb5vvnn17m92ykz1pzg9x6s8fbpz3mmsyqs2s4b3mn55haz8"))))
959 (build-system haskell-build-system)
961 `(("ghc-text" ,ghc-text)
962 ("ghc-utf8-string" ,ghc-utf8-string)
963 ("ghc-network-uri" ,ghc-network-uri)))
964 (home-page "https://hackage.haskell.org/package/uri-encode")
965 (synopsis "Unicode aware uri-encoding")
966 (description "Unicode aware uri-encoding for Haskell.")
967 (license license:bsd-3)))
969 (define-public ghc-path-pieces
971 (name "ghc-path-pieces")
976 (uri (string-append "https://hackage.haskell.org/package/"
977 "path-pieces-" version "/"
978 "path-pieces-" version ".tar.gz"))
981 "0vx3sivcsld76058925hym2j6hm3g71f0qjr7v59f1g2afgx82q8"))))
982 (build-system haskell-build-system)
983 (inputs `(("ghc-text" ,ghc-text)))
984 (native-inputs `(("ghc-hunit" ,ghc-hunit)
985 ("ghc-hspec" ,ghc-hspec)
986 ("ghc-quickcheck" ,ghc-quickcheck)))
987 (home-page "https://github.com/yesodweb/path-pieces")
988 (synopsis "Used in Yesod to automatically marshall data in the request path")
989 (description "This Haskell package provides two typeclasses for converting
990 Haskell data types to and from route pieces.")
991 (license license:bsd-3)))
993 (define-public ghc-skein
1000 (uri (string-append "https://hackage.haskell.org/package/"
1001 "skein-" version "/"
1002 "skein-" version ".tar.gz"))
1005 "1jdqdk0rz2wnvw735clnj8jh0a9rkrbqjg7vk3w6wczdql6cm0pq"))))
1006 (build-system haskell-build-system)
1007 (inputs `(("ghc-cereal" ,ghc-cereal)
1008 ("ghc-tagged" ,ghc-tagged)
1009 ("ghc-crpto-api" ,ghc-crypto-api)))
1010 (native-inputs `(("ghc-hspec" ,ghc-hspec)))
1011 (home-page "https://github.com/yesodweb/path-pieces")
1012 (synopsis "Skein family of cryptographic hash functions for Haskell")
1013 (description "@uref{(http://www.skein-hash.info, Skein} is a family of
1014 fast secure cryptographic hash functions designed by Niels Ferguson, Stefan
1015 Lucks, Bruce Schneier, Doug Whiting, Mihir Bellare, Tadayoshi Kohno, Jon
1016 Callas and Jesse Walker.
1018 This Haskell package uses bindings to the optimized C implementation of Skein.")
1019 (license license:bsd-3)))
1021 (define-public ghc-clientsession
1023 (name "ghc-clientsession")
1028 (uri (string-append "https://hackage.haskell.org/package/"
1029 "clientsession-" version "/"
1030 "clientsession-" version ".tar.gz"))
1033 "0s6h4ykj16mpf7nlw2iqn2ji0p8g1fn5ni0s7yqaili6vv2as5ar"))))
1034 (build-system haskell-build-system)
1035 (inputs `(("ghc-cereal" ,ghc-cereal)
1036 ("ghc-tagged" ,ghc-tagged)
1037 ("ghc-crypto-api" ,ghc-crypto-api)
1038 ("ghc-skein" ,ghc-skein)
1039 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
1040 ("ghc-entropy" ,ghc-entropy)
1041 ("ghc-cprng-aes" ,ghc-cprng-aes)
1042 ("ghc-cipher-aes" ,ghc-cipher-aes)
1043 ("ghc-crypto-random" ,ghc-crypto-random)
1044 ("ghc-setenv" ,ghc-setenv)))
1045 (native-inputs `(("ghc-hunit" ,ghc-hunit)
1046 ("ghc-hspec" ,ghc-hspec)
1047 ("ghc-quickcheck" ,ghc-quickcheck)))
1048 (home-page "https://github.com/yesodweb/clientsession/tree/master")
1049 (synopsis "Haskell library for securely store session data in a
1050 client-side cookie")
1051 (description "This Haskell package achieves security through AES-CTR
1052 encryption and Skein-MAC-512-256 authentication. Uses Base64 encoding to
1053 avoid any issues with characters.")
1054 (license license:expat)))
1056 (define-public ghc-yesod-core
1058 (name "ghc-yesod-core")
1063 (uri (string-append "https://hackage.haskell.org/package/"
1064 "yesod-core-" version "/"
1065 "yesod-core-" version ".tar.gz"))
1068 "0xahf6m5c7mkl74p0gimy4wb5w4s3lh92wwxmk517fbq666c92kb"))))
1069 (build-system haskell-build-system)
1070 (inputs `(("ghc-wai" ,ghc-wai)
1071 ("ghc-extra" ,ghc-extra)
1072 ("ghc-text" ,ghc-text)
1073 ("ghc-shakespeare" ,ghc-shakespeare)
1074 ("ghc-blaze-builder" ,ghc-blaze-builder)
1075 ("ghc-clientsession" ,ghc-clientsession)
1076 ("ghc-random" ,ghc-random)
1077 ("ghc-cereal" ,ghc-cereal)
1078 ("ghc-old-locale" ,ghc-old-locale)
1079 ("ghc-unliftio" ,ghc-unliftio)
1080 ("ghc-unordered-containers" ,ghc-unordered-containers)
1081 ("ghc-monad-control" ,ghc-monad-control)
1082 ("ghc-transformers-base" ,ghc-transformers-base)
1083 ("ghc-cookie" ,ghc-cookie)
1084 ("ghc-http-types" ,ghc-http-types)
1085 ("ghc-case-insensitive" ,ghc-case-insensitive)
1086 ("ghc-parsec" ,ghc-parsec)
1087 ("ghc-vector" ,ghc-vector)
1088 ("ghc-aeson" ,ghc-aeson)
1089 ("ghc-fast-logger" ,ghc-fast-logger)
1090 ("ghc-wai-logger" ,ghc-wai-logger)
1091 ("ghc-monad-logger" ,ghc-monad-logger)
1092 ("ghc-conduit" ,ghc-conduit)
1093 ("ghc-resourcet" ,ghc-resourcet)
1094 ("ghc-rio" ,ghc-rio)
1095 ("ghc-lifted-base" ,ghc-lifted-base)
1096 ("ghc-blaze-html" ,ghc-blaze-html)
1097 ("ghc-blaze-markup" ,ghc-blaze-markup)
1098 ("ghc-data-default" ,ghc-data-default)
1099 ("ghc-safe" ,ghc-safe)
1100 ("ghc-warp" ,ghc-warp)
1101 ("ghc-unix-compat" ,ghc-unix-compat)
1102 ("ghc-conduit-extra" ,ghc-conduit-extra)
1103 ("ghc-exceptions" ,ghc-exceptions)
1104 ("ghc-deepseq-generics" ,ghc-deepseq-generics)
1105 ("ghc-mwc-random" ,ghc-mwc-random)
1106 ("ghc-primitive" ,ghc-primitive)
1107 ("ghc-word8" ,ghc-word8)
1108 ("ghc-auto-update" ,ghc-auto-update)
1109 ("ghc-semigroups" ,ghc-semigroups)
1110 ("ghc-byteable" ,ghc-byteable)))
1111 (native-inputs `(("ghc-hspec" ,ghc-hspec)
1112 ("ghc-path-pieces" ,ghc-path-pieces)
1113 ("ghc-hunit" ,ghc-hunit)
1114 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
1115 ("ghc-quickcheck" ,ghc-quickcheck)
1116 ("ghc-network" ,ghc-network)
1117 ("ghc-async" ,ghc-async)
1118 ("ghc-streaming-commons" ,ghc-streaming-commons)
1119 ("ghc-wai-extra" ,ghc-wai-extra)))
1120 (home-page "https://www.yesodweb.com")
1121 (synopsis "Core package for the Yesod web framework")
1122 (description "This Haskell package provides all core functionality, for
1123 Yesod, on which other packages can be built. It provides dispatch, handler
1124 functions, widgets, etc.")
1125 (license license:expat)))
1127 (define-public ghc-yesod-persistent
1129 (name "ghc-yesod-persistent")
1134 (uri (string-append "https://hackage.haskell.org/package/"
1135 "yesod-persistent-" version "/"
1136 "yesod-persistent-" version ".tar.gz"))
1139 "1gd59xf7b6v3cald58mzwnfbdzjr49cz60rm4wc5w9pvfx12pgj2"))))
1140 (build-system haskell-build-system)
1141 (arguments `(#:tests? #f)) ; FIXME: hspec-discover not available in PATH.
1142 (inputs `(("ghc-yesod-core" ,ghc-yesod-core)
1143 ("ghc-persistent" ,ghc-persistent)
1144 ("ghc-persistent-template" ,ghc-persistent-template)
1145 ("ghc-blaze-builder" ,ghc-blaze-builder)
1146 ("ghc-conduit" ,ghc-conduit)
1147 ("ghc-resourcet" ,ghc-resourcet)
1148 ("ghc-resource-pool" ,ghc-resource-pool)))
1149 (native-inputs `(("ghc-hspec" ,ghc-hspec)
1150 ("ghc-wai-extra" ,ghc-wai-extra)
1151 ("ghc-yesod-core" ,ghc-yesod-core)
1152 ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
1153 ("ghc-text" ,ghc-text)))
1154 (home-page "http://www.yesodweb.com/")
1155 (synopsis "Helpers for using Persistent from Yesod")
1156 (description "This Haskell package provides helpers for using Persistent
1158 (license license:expat)))
1160 (define-public ghc-yesod-form
1162 (name "ghc-yesod-form")
1168 "https://hackage.haskell.org/package/yesod-form/yesod-form-"
1173 "1p1x1hffvarplc82ykdk7rm6p5isqgqf78bvxzpfhncxs4kwx057"))))
1174 (build-system haskell-build-system)
1176 `(("ghc-yesod-core" ,ghc-yesod-core)
1177 ("ghc-yesod-persistent" ,ghc-yesod-persistent)
1178 ("ghc-shakespeare" ,ghc-shakespeare)
1179 ("ghc-persistent" ,ghc-persistent)
1180 ("ghc-data-default" ,ghc-data-default)
1181 ("ghc-xss-sanitize" ,ghc-xss-sanitize)
1182 ("ghc-blaze-builder" ,ghc-blaze-builder)
1183 ("ghc-email-validate" ,ghc-email-validate)
1184 ("ghc-text" ,ghc-text)
1185 ("ghc-wai" ,ghc-wai)
1186 ("ghc-blaze-html" ,ghc-blaze-html)
1187 ("ghc-blaze-markup" ,ghc-blaze-markup)
1188 ("ghc-attoparsec" ,ghc-attoparsec)
1189 ("ghc-byteable" ,ghc-byteable)
1190 ("ghc-aeson" ,ghc-aeson)
1191 ("ghc-resourcet" ,ghc-resourcet)
1192 ("ghc-semigroups" ,ghc-semigroups)
1193 ("ghc-network-uri" ,ghc-network-uri)
1194 ("ghc-hspec" ,ghc-hspec)))
1195 (home-page "https://www.yesodweb.com")
1196 (synopsis "Form handling support for Yesod Web Framework")
1197 (description "This Haskell package provies a set of basic form inputs such
1198 as text, number, time, checkbox, select, textarea, etc through the
1199 @code{Yesod.Form.Fields} module. Also, there is @code{Yesod.Form.Nic} module
1200 providing richtext field using Nic editor. ")
1201 (license license:expat)))
1203 (define-public ghc-yesod
1211 "https://hackage.haskell.org/package/yesod/yesod-"
1215 "0wx77nbpzdh40p1bm527kimfj48vs9d2avpvvz2w42zi3pz2y94a"))))
1216 (build-system haskell-build-system)
1218 `(("ghc-yesod-core" ,ghc-yesod-core)
1219 ("ghc-yesod-persistent" ,ghc-yesod-persistent)
1220 ("ghc-yesod-form" ,ghc-yesod-form)
1221 ("ghc-monad-control" ,ghc-monad-control)
1222 ("ghc-wai" ,ghc-wai)
1223 ("ghc-wai-extra" ,ghc-wai-extra)
1224 ("ghc-warp" ,ghc-warp)
1225 ("ghc-blaze-html" ,ghc-blaze-html)
1226 ("ghc-blaze-markup" ,ghc-blaze-markup)
1227 ("ghc-aeson" ,ghc-aeson)
1228 ("ghc-data-default-class" ,ghc-data-default-class)
1229 ("ghc-unordered-containers" ,ghc-unordered-containers)
1230 ("ghc-yaml" ,ghc-yaml)
1231 ("ghc-text" ,ghc-text)
1232 ("ghc-monad-logger" ,ghc-monad-logger)
1233 ("ghc-fast-logger" ,ghc-fast-logger)
1234 ("ghc-conduit" ,ghc-conduit)
1235 ("ghc-conduit-extra" ,ghc-conduit-extra)
1236 ("ghc-resourcet" ,ghc-resourcet)
1237 ("ghc-shakespeare" ,ghc-shakespeare)
1238 ("ghc-streaming-commons" ,ghc-streaming-commons)
1239 ("ghc-wai-logger" ,ghc-wai-logger)
1240 ("ghc-semigroups" ,ghc-semigroups)))
1241 (home-page "https://www.yesodweb.com")
1242 (synopsis "Framework for creating type-safe, RESTful web applications")
1243 (description "The Haskell package package groups together the various
1244 Yesod related packages into one cohesive whole. This is the version of Yesod,
1245 whereas most of the core code lives in @code{ghc-yesod-core}.")
1246 (license license:expat)))