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
44 "https://hackage.haskell.org/package/tagsoup/tagsoup-"
49 "00j2rm2sx0syn16kg2402fz4k8yqfl9knmi367jsiycds1q9zzf9"))))
50 (build-system haskell-build-system)
51 (inputs `(("ghc-text" ,ghc-text)))
53 `(("ghc-quickcheck" ,ghc-quickcheck)))
54 (home-page "http://community.haskell.org/~ndm/tagsoup/")
56 "Parsing and extracting information from (possibly malformed) HTML/XML
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)))
66 (define-public ghc-cookie
74 "https://hackage.haskell.org/package/cookie/cookie-"
79 "0qpdydhb9gw590ffabqg70x7xvjpg8l74idqnrfbhv5yrr7hryzv"))))
80 (build-system haskell-build-system)
82 `(("ghc-old-locale" ,ghc-old-locale)
83 ("ghc-blaze-builder" ,ghc-blaze-builder)
84 ("ghc-text" ,ghc-text)
85 ("ghc-data-default-class" ,ghc-data-default-class)
86 ("ghc-hunit" ,ghc-hunit)
87 ("ghc-quickcheck" ,ghc-quickcheck)
88 ("ghc-tasty" ,ghc-tasty)
89 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
90 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
91 (home-page "https://github.com/snoyberg/cookie")
92 (synopsis "HTTP cookie parsing and rendering")
93 (description "HTTP cookie parsing and rendering library for Haskell.")
94 (license license:bsd-3)))
96 (define-public ghc-http-types
98 (name "ghc-http-types")
104 "https://hackage.haskell.org/package/http-types/http-types-"
109 "08w30rf1i7kbh2j1iajqmj6yhhmglnb8kjggc8kdni3xahhrgcss"))))
110 (build-system haskell-build-system)
112 `(("ghc-doctest" ,ghc-doctest)
113 ("ghc-hspec" ,ghc-hspec)
114 ("ghc-quickcheck" ,ghc-quickcheck)
115 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
116 ("hspec-discover" ,hspec-discover)))
118 `(("ghc-case-insensitive" ,ghc-case-insensitive)
119 ("ghc-blaze-builder" ,ghc-blaze-builder)
120 ("ghc-text" ,ghc-text)))
121 (home-page "https://github.com/aristidb/http-types")
122 (synopsis "Generic HTTP types for Haskell")
123 (description "This package provides generic HTTP types for Haskell (for
124 both client and server code).")
125 (license license:bsd-3)))
127 (define-public ghc-http
131 (outputs '("out" "doc"))
136 "https://hackage.haskell.org/package/HTTP/HTTP-"
141 "1wlvvqcxsnd2is3khsla0vd8i9cy12v1pg6d6i13ihcd131a7bdv"))))
142 (build-system haskell-build-system)
144 `(("ghc-hunit" ,ghc-hunit)))
146 `(("ghc-old-time" ,ghc-old-time)
147 ("ghc-parsec" ,ghc-parsec)
149 ("ghc-network" ,ghc-network)
150 ("ghc-network-uri" ,ghc-network-uri)))
152 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
153 (home-page "https://github.com/haskell/HTTP")
154 (synopsis "Library for client-side HTTP")
156 "The HTTP package supports client-side web programming in Haskell. It
157 lets you set up HTTP connections, transmitting requests and processing the
158 responses coming back.")
159 (license license:bsd-3)))
161 (define-public ghc-http-client
163 (name "ghc-http-client")
167 (uri (string-append "https://hackage.haskell.org/package/"
168 "http-client/http-client-"
172 "19cvnnfcjj2m3pgs6ivyjs21rw9wx5ynarh6hvb27a76cscai2fy"))))
173 (build-system haskell-build-system)
174 ;; Tests require access to the web.
175 (arguments `(#:tests? #f))
177 `(("ghc-text" ,ghc-text)
178 ("ghc-http-types" ,ghc-http-types)
179 ("ghc-blaze-builder" ,ghc-blaze-builder)
180 ("ghc-data-default-class" ,ghc-data-default-class)
181 ("ghc-network" ,ghc-network)
182 ("ghc-streaming-commons" ,ghc-streaming-commons)
183 ("ghc-case-insensitive" ,ghc-case-insensitive)
184 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
185 ("ghc-cookie" ,ghc-cookie)
186 ("ghc-exceptions" ,ghc-exceptions)
187 ("ghc-random" ,ghc-random)
188 ("ghc-mime-types" ,ghc-mime-types)
189 ("ghc-network-uri" ,ghc-network-uri)
190 ("ghc-monad-control" ,ghc-monad-control)
191 ("ghc-zlib" ,ghc-zlib)
192 ("ghc-async" ,ghc-async)))
194 `(("ghc-hspec" ,ghc-hspec)))
195 (home-page "https://github.com/snoyberg/http-client")
196 (synopsis "HTTP client engine")
198 "This package provides an HTTP client engine, intended as a base layer
199 for more user-friendly packages.")
200 (license license:expat)))
202 (define-public ghc-http-client-tls
204 (name "ghc-http-client-tls")
208 (uri (string-append "https://hackage.haskell.org/package/"
209 "http-client-tls/http-client-tls-"
213 "0n4mi8z77qaggfyq17z79cl304nf1f4h6gag60v4wjwghvmj7yn1"))))
214 (build-system haskell-build-system)
215 ;; Tests require Internet access
216 (arguments `(#:tests? #f))
218 `(("ghc-data-default-class" ,ghc-data-default-class)
219 ("ghc-http-client" ,ghc-http-client)
220 ("ghc-connection" ,ghc-connection)
221 ("ghc-network" ,ghc-network)
223 ("ghc-http-types" ,ghc-http-types)))
225 `(("ghc-hspec" ,ghc-hspec)))
226 (home-page "https://github.com/snoyberg/http-client")
227 (synopsis "Backend for http-client using the TLS library")
229 "This package provides a backend for the http-client package using the
230 connection and TLS libraries. It is intended for use by higher-level
231 libraries, such as http-conduit.")
232 (license license:expat)))
234 (define-public ghc-http-date
236 (name "ghc-http-date")
241 (uri (string-append "https://hackage.haskell.org/package/"
242 "http-date-" version "/"
243 "http-date-" version ".tar.gz"))
246 "0dknh28kyarnzqrsc80ssalxjrq0qbv7ir49247p2grb7rh0dqgj"))))
247 (build-system haskell-build-system)
249 `(("ghc-attoparsec" ,ghc-attoparsec)))
251 `(("ghc-doctest" ,ghc-doctest)
252 ("ghc-hspec" ,ghc-hspec)
253 ("hspec-discover" ,hspec-discover)
254 ("ghc-old-locale" ,ghc-old-locale)))
255 (home-page "https://github.com/kazu-yamamoto/http-date")
256 (synopsis "HTTP Date parser/formatter")
257 (description "Library for Parsing and formatting HTTP
259 (license license:bsd-3)))
261 (define-public ghc-http2
268 (uri (string-append "https://hackage.haskell.org/package/"
270 "http2-" version ".tar.gz"))
273 "0hww0rfsv6lqx62qzycbcqy5q6rh9k09qkyjkdm5m1sp1z50wqk1"))))
274 (build-system haskell-build-system)
276 `(("ghc-bytestring-builder" ,ghc-bytestring-builder)
277 ("ghc-case-insensitive" ,ghc-case-insensitive)
278 ("ghc-aeson" ,ghc-aeson)
279 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
281 ("ghc-unordered-containers" ,ghc-unordered-containers)
282 ("ghc-vector" ,ghc-vector)
283 ("ghc-word8" ,ghc-word8)
284 ("ghc-psqueues" ,ghc-psqueues)
285 ("ghc-stm" ,ghc-stm)))
287 `(("ghc-glob" ,ghc-glob)
288 ("ghc-hspec" ,ghc-hspec)
289 ("ghc-doctest" ,ghc-doctest)
290 ("hspec-discover" ,hspec-discover)))
291 (home-page "https://github.com/kazu-yamamoto/http2")
292 (synopsis "HTTP/2 library including frames, priority queues and HPACK")
293 (description "This package provides a HTTP/2.0 library including frames
294 and HPACK. Currently HTTP/2 16 framing and HPACK 10 is supported.")
295 (license license:bsd-3)))
297 (define-public ghc-http-conduit
299 (name "ghc-http-conduit")
304 (uri (string-append "https://hackage.haskell.org/package/"
305 "http-conduit-" version "/" "http-conduit-"
308 "1wcl3lpg4v1ylq9j77j9fmf6l9qbmp8dmj3a9829q19q6bbgza7l"))))
309 (build-system haskell-build-system)
310 ;; FIXME: `httpLbs TLS` in test-suite `test` fails with
311 ;; ConnectionFailure getProtocolByName: does not exist (no such protocol
313 (arguments `(#:tests? #f))
315 `(("ghc-aeson" ,ghc-aeson)
316 ("ghc-resourcet" ,ghc-resourcet)
317 ("ghc-conduit" ,ghc-conduit)
318 ("ghc-conduit-extra" ,ghc-conduit-extra)
319 ("ghc-http-types" ,ghc-http-types)
320 ("ghc-lifted-base" ,ghc-lifted-base)
321 ("ghc-http-client" ,ghc-http-client)
322 ("ghc-http-client-tls" ,ghc-http-client-tls)
323 ("ghc-monad-control" ,ghc-monad-control)
325 ("ghc-exceptions" ,ghc-exceptions)))
327 `(("ghc-hunit" ,ghc-hunit)
328 ("ghc-hspec" ,ghc-hspec)
329 ("ghc-data-default-class" ,ghc-data-default-class)
330 ("ghc-connection" ,ghc-connection)
331 ("ghc-warp-tls" ,ghc-warp-tls)
332 ("ghc-blaze-builder" ,ghc-blaze-builder)
333 ("ghc-text" ,ghc-text)
334 ("ghc-conduit" ,ghc-conduit)
335 ("ghc-utf8-string" ,ghc-utf8-string)
336 ("ghc-case-insensitive" ,ghc-case-insensitive)
337 ("ghc-lifted-base" ,ghc-lifted-base)
338 ("ghc-network" ,ghc-network)
340 ("ghc-warp" ,ghc-warp)
341 ("ghc-wai-conduit" ,ghc-wai-conduit)
342 ("ghc-http-types" ,ghc-http-types)
343 ("ghc-http-client" ,ghc-http-client)
344 ("ghc-cookie" ,ghc-cookie)
345 ("ghc-conduit-extra" ,ghc-conduit-extra)
346 ("ghc-streaming-commons" ,ghc-streaming-commons)
347 ("ghc-aeson" ,ghc-aeson)
348 ("ghc-temporary" ,ghc-temporary)
349 ("ghc-resourcet" ,ghc-resourcet)))
350 (home-page "https://hackage.haskell.org/package/http-conduit")
351 (synopsis "HTTP/HTTPS client with conduit interface")
352 (description "This library uses attoparsec for parsing the actual
353 contents of the HTTP connection. It also provides higher-level functions
354 which allow you to avoid direct usage of conduits.")
355 (license license:bsd-3)))
357 (define-public ghc-wai
365 "https://hackage.haskell.org/package/wai/wai-"
370 "08afasnirja21vr0bmzcywz4w29x736dmdv7h8nnh1l8bn7sd02x"))))
371 (build-system haskell-build-system)
373 `(("ghc-bytestring-builder" ,ghc-bytestring-builder)
374 ("ghc-unix-compat" ,ghc-unix-compat)
375 ("ghc-vault" ,ghc-vault)
376 ("ghc-blaze-builder" ,ghc-blaze-builder)
377 ("ghc-network" ,ghc-network)
378 ("ghc-text" ,ghc-text)
379 ("ghc-http-types" ,ghc-http-types)))
381 `(("hspec-discover" ,hspec-discover)
382 ("ghc-quickcheck" ,ghc-quickcheck)
383 ("ghc-hunit" ,ghc-hunit)
384 ("ghc-hspec" ,ghc-hspec)))
385 (home-page "https://hackage.haskell.org/package/wai")
386 (synopsis "Web application interface for Haskell")
387 (description "This package provides a Web Application Interface (WAI)
388 library for the Haskell language. It defines a common protocol for
389 communication between web applications and web servers.")
390 (license license:bsd-3)))
392 (define-public ghc-wai-logger
394 (name "ghc-wai-logger")
400 "https://hackage.haskell.org/package/wai-logger/wai-logger-"
405 "1w0b0vinsyqr37wciljkz8g5dcmfi2r210lq194a0wkycly9kkch"))))
406 (build-system haskell-build-system)
407 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find libraries exported
408 ; by propagated-inputs.
410 `(("ghc-auto-update" ,ghc-auto-update)
411 ("ghc-byteorder" ,ghc-byteorder)
412 ("ghc-easy-file" ,ghc-easy-file)
413 ("ghc-unix-time" ,ghc-unix-time)
414 ("ghc-blaze-builder" ,ghc-blaze-builder)
415 ("ghc-case-insensitive" ,ghc-case-insensitive)
416 ("ghc-fast-logger" ,ghc-fast-logger)
417 ("ghc-http-types" ,ghc-http-types)
418 ("ghc-network" ,ghc-network)
419 ("ghc-wai" ,ghc-wai)))
420 (home-page "https://hackage.haskell.org/package/wai-logger")
421 (synopsis "Logging system for WAI")
422 (description "This package provides the logging system for WAI.")
423 (license license:bsd-3)))
425 (define-public ghc-wai-extra
427 (name "ghc-wai-extra")
433 "https://hackage.haskell.org/package/wai-extra/wai-extra-"
438 "0r079mqqdv14fp97w0rigdpwk6b88grpjlqsjc5y8bbc0skf5za2"))))
439 (build-system haskell-build-system)
441 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
442 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
443 ("ghc-cookie" ,ghc-cookie)
444 ("ghc-blaze-builder" ,ghc-blaze-builder)
445 ("ghc-network" ,ghc-network)
446 ("ghc-lifted-base" ,ghc-lifted-base)
447 ("ghc-streaming-commons" ,ghc-streaming-commons)
448 ("ghc-stringsearch" ,ghc-stringsearch)
449 ("ghc-resourcet" ,ghc-resourcet)
450 ("ghc-fast-logger" ,ghc-fast-logger)
451 ("ghc-wai-logger" ,ghc-wai-logger)
452 ("ghc-zlib" ,ghc-zlib)
453 ("ghc-word8" ,ghc-word8)
454 ("ghc-iproute" ,ghc-iproute)
455 ("ghc-void" ,ghc-void)
457 ("ghc-http-types" ,ghc-http-types)
458 ("ghc-text" ,ghc-text)
459 ("ghc-case-insensitive" ,ghc-case-insensitive)
460 ("ghc-data-default-class" ,ghc-data-default-class)
461 ("ghc-unix-compat" ,ghc-unix-compat)
462 ("ghc-vault" ,ghc-vault)
463 ("ghc-aeson" ,ghc-aeson)))
465 `(("hspec-discover" ,hspec-discover)
466 ("ghc-hspec" ,ghc-hspec)
467 ("ghc-hunit" ,ghc-hunit)))
468 (home-page "https://github.com/yesodweb/wai")
469 (synopsis "Some basic WAI handlers and middleware")
470 (description "This library provides basic WAI handlers and middleware
472 (license license:expat)))
474 (define-public ghc-wai-conduit
476 (name "ghc-wai-conduit")
481 (uri (string-append "https://hackage.haskell.org/package/"
482 "wai-conduit-" version "/"
483 "wai-conduit-" version ".tar.gz"))
486 "1zvsiwjq2mvkb9sjgp3ly9m968m7a2jjzr4id6jpi3mmqykj15z4"))))
487 (build-system haskell-build-system)
489 `(("ghc-conduit" ,ghc-conduit)
490 ("ghc-http-types" ,ghc-http-types)
492 ("ghc-blaze-builder" ,ghc-blaze-builder)))
493 (home-page "https://github.com/yesodweb/wai")
494 (synopsis "Conduit wrappers for Haskell's WAI")
495 (description "This package provides data streaming abstraction for
496 Haskell's Web Application Interface (WAI).")
497 (license license:expat)))
499 (define-public ghc-warp
506 (uri (string-append "https://hackage.haskell.org/package/"
507 "warp-" version "/" "warp-" version
511 "1zp5cy0bbj508vdvms1n5z80z37m253kwsqc5a83cfc990n6fgw5"))))
512 (build-system haskell-build-system)
514 `(#:tests? #f)) ; FIXME: Test-Suite `spec` fails.
516 `(("ghc-async" ,ghc-async)
517 ("ghc-auto-update" ,ghc-auto-update)
518 ("ghc-blaze-builder" ,ghc-blaze-builder)
519 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
520 ("ghc-case-insensitive" ,ghc-case-insensitive)
521 ("ghc-hashable" ,ghc-hashable)
522 ("ghc-http-types" ,ghc-http-types)
523 ("ghc-iproute" ,ghc-iproute)
524 ("ghc-network" ,ghc-network)
526 ("ghc-streaming-commons" ,ghc-streaming-commons)
527 ("ghc-text" ,ghc-text)
528 ("ghc-unix-compat" ,ghc-unix-compat)
529 ("ghc-vault" ,ghc-vault)
531 ("ghc-word8" ,ghc-word8)
532 ("ghc-lifted-base" ,ghc-lifted-base)
533 ("ghc-http-date" ,ghc-http-date)
534 ("ghc-simple-sendfile" ,ghc-simple-sendfile)
535 ("ghc-http2" ,ghc-http2)))
537 `(("ghc-silently" ,ghc-silently)
538 ("ghc-hspec" ,ghc-hspec)
539 ("ghc-auto-update" ,ghc-auto-update)
540 ("ghc-doctest" ,ghc-doctest)
541 ("ghc-quickcheck" ,ghc-quickcheck)
542 ("ghc-hunit" ,ghc-hunit)
543 ("ghc-http" ,ghc-http)
544 ("hspec-discover" ,hspec-discover)))
545 (home-page "http://github.com/yesodweb/wai")
546 (synopsis "HTTP server library for Haskell's WAI")
547 (description "Warp is a server library for HTTP/1.x and HTTP/2
548 based WAI (Web Application Interface in Haskell).")
549 (license license:expat)))
551 (define-public ghc-warp-tls
553 (name "ghc-warp-tls")
558 (uri (string-append "https://hackage.haskell.org/package/"
559 "warp-tls-" version "/"
560 "warp-tls-" version ".tar.gz"))
563 "14m2bzk5ivz9gdpxlcj6qnh46f2lycm1ybdjnfkj2876zrqwii7m"))))
564 (build-system haskell-build-system)
566 `(("ghc-cryptonite" ,ghc-cryptonite)
567 ("ghc-data-default-class" ,ghc-data-default-class)
568 ("ghc-network" ,ghc-network)
569 ("ghc-streaming-commons" ,ghc-streaming-commons)
572 ("ghc-warp" ,ghc-warp)))
573 (home-page "http://github.com/yesodweb/wai")
574 (synopsis "SSL/TLS support for Warp")
575 (description "This package provides SSL/TLS support for Warp,
576 a WAI handler, via the native Haskell TLS implementation.")
577 (license license:expat)))
579 (define-public ghc-xss-sanitize
581 (name "ghc-xss-sanitize")
587 "https://hackage.haskell.org/package/xss-sanitize/xss-sanitize-"
591 "005cmhaw9xbzkcn42jmhvcvk63bzmg4lml368xwmqdvh7r0mcn4m"))))
592 (build-system haskell-build-system)
594 `(("ghc-tagsoup" ,ghc-tagsoup)
595 ("ghc-utf8-string" ,ghc-utf8-string)
596 ("ghc-css-text" ,ghc-css-text)
597 ("ghc-network-uri" ,ghc-network-uri)))
599 `(("ghc-text" ,ghc-text)
600 ("ghc-attoparsec" ,ghc-attoparsec)
601 ("ghc-hspec" ,ghc-hspec)
602 ("ghc-hunit" ,ghc-hunit)))
603 (home-page "https://github.com/yesodweb/haskell-xss-sanitize")
604 (synopsis "Sanitize untrusted HTML to prevent XSS attacks")
605 (description "This library provides @code{sanitizeXSS}. Run untrusted
606 HTML through @code{Text.HTML.SanitizeXSS.sanitizeXSS} to prevent XSS
608 (license license:bsd-3)))
610 (define-public ghc-css-text
612 (name "ghc-css-text")
618 "https://hackage.haskell.org/package/css-text/css-text-"
623 "0ynd9f4hn2sfwqzbsa0y7phmxq8za7jiblpjwx0ry8b372zhgxaz"))))
624 (build-system haskell-build-system)
626 `(("ghc-text" ,ghc-text)
627 ("ghc-attoparsec" ,ghc-attoparsec)
628 ("ghc-hspec" ,ghc-hspec)
629 ("ghc-quickcheck" ,ghc-quickcheck)))
630 (home-page "http://www.yesodweb.com/")
631 (synopsis "CSS parser and renderer")
632 (description "This package provides a CSS parser and renderer for
634 (license license:bsd-3)))
636 (define-public ghc-mime-types
638 (name "ghc-mime-types")
642 (uri (string-append "https://hackage.haskell.org/package/"
643 "mime-types/mime-types-"
647 "1fg9cqpp5lswk8ajlq4f41n12c2v2naz179l8dsz6zisjqj4l5l3"))))
648 (build-system haskell-build-system)
650 `(("ghc-text" ,ghc-text)))
651 (home-page "https://github.com/yesodweb/wai")
652 (synopsis "Basic MIME type handling types and functions")
654 "This library provides basic MIME type handling types and functions.")
655 (license license:expat)))
657 (define-public ghc-html
665 "https://hackage.haskell.org/package/html/html-"
670 "0q9hmfii62kc82ijlg238fxrzxhsivn42x5wd6ffcr9xldg4jd8c"))))
671 (build-system haskell-build-system)
673 "https://hackage.haskell.org/package/html")
674 (synopsis "HTML combinator library")
676 "This package contains a combinator library for constructing HTML
678 (license license:bsd-3)))
680 (define-public ghc-xhtml
688 "https://hackage.haskell.org/package/xhtml/xhtml-"
693 "1n6wgzxbj8xf0wf1il827qidphnffb5vzhwzqlxhh70c2y10f0ik"))))
694 (build-system haskell-build-system)
695 (home-page "https://github.com/haskell/xhtml")
696 (synopsis "XHTML combinator library")
698 "This package provides combinators for producing XHTML 1.0, including the
699 Strict, Transitional and Frameset variants.")
700 (license license:bsd-3)))
702 (define-public ghc-blaze-html
704 (name "ghc-blaze-html")
709 (uri (string-append "https://hackage.haskell.org/package/"
710 "blaze-html/blaze-html-"
714 "0r0acv47nh75bmf7kjyfvhcwz8f02rn9x0a1l80pzgyczfrsmkmf"))))
715 (build-system haskell-build-system)
717 `(#:configure-flags (list "--allow-newer=QuickCheck")))
719 `(("ghc-blaze-builder" ,ghc-blaze-builder)
720 ("ghc-text" ,ghc-text)
721 ("ghc-blaze-markup" ,ghc-blaze-markup)))
723 `(("ghc-hunit" ,ghc-hunit)
724 ("ghc-quickcheck" ,ghc-quickcheck)
725 ("ghc-test-framework" ,ghc-test-framework)
726 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
727 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
728 (home-page "http://jaspervdj.be/blaze")
729 (synopsis "Fast HTML combinator library")
730 (description "This library provides HTML combinators for Haskell.")
731 (license license:bsd-3)))
733 (define-public ghc-aeson
741 "https://hackage.haskell.org/package/aeson/aeson-"
746 "16zwpd07cmhs58wwsqbhxy3b58gqw8w5nr7nf6lwi4nvznjdn09l"))))
747 (build-system haskell-build-system)
748 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
750 `(("ghc-attoparsec" ,ghc-attoparsec)
751 ("ghc-base-compat" ,ghc-base-compat)
752 ("ghc-dlist" ,ghc-dlist)
753 ("ghc-hashable" ,ghc-hashable)
754 ("ghc-scientific" ,ghc-scientific)
755 ("ghc-tagged" ,ghc-tagged)
756 ("ghc-text" ,ghc-text)
757 ("ghc-th-abstraction" ,ghc-th-abstraction)
758 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
759 ("ghc-unordered-containers" ,ghc-unordered-containers)
760 ("ghc-uuid-types" ,ghc-uuid-types)
761 ("ghc-vector" ,ghc-vector)
762 ("ghc-hunit" ,ghc-hunit)
763 ("ghc-quickcheck" ,ghc-quickcheck)
764 ("ghc-integer-logarithms" ,ghc-integer-logarithms)
765 ("ghc-base-orphans" ,ghc-base-orphans)
766 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
767 ("ghc-generic-deriving" ,ghc-generic-deriving)
768 ("ghc-test-framework" ,ghc-test-framework)
769 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
770 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
771 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
772 ("ghc-hashable-time" ,ghc-hashable-time)))
773 (home-page "https://github.com/bos/aeson")
774 (synopsis "Fast JSON parsing and encoding")
775 (description "This package provides a JSON parsing and encoding library
776 for Haskell, optimized for ease of use and high performance. (A note on
777 naming: in Greek mythology, Aeson was the father of Jason.)")
778 (license license:bsd-3)))
780 (define-public ghc-aeson-pretty
782 (name "ghc-aeson-pretty")
787 "https://hackage.haskell.org/package/aeson-pretty/aeson-pretty-"
791 "1yd98972srlbkn0f2jhrb3f443j9wnq2fnw5gbxjxzmkcinfh5yx"))))
792 (build-system haskell-build-system)
794 `(("ghc-aeson" ,ghc-aeson)
795 ("ghc-base-compat" ,ghc-base-compat)
796 ("ghc-scientific" ,ghc-scientific)
797 ("ghc-vector" ,ghc-vector)
798 ("ghc-text" ,ghc-text)
799 ("ghc-unordered-containers" ,ghc-unordered-containers)
800 ("ghc-attoparsec" ,ghc-attoparsec)
801 ("ghc-cmdargs" ,ghc-cmdargs)))
802 (home-page "https://github.com/informatikr/aeson-pretty")
803 (synopsis "JSON pretty-printing library and command-line tool")
805 "This package provides a JSON pretty-printing library compatible with aeson
806 as well as a command-line tool to improve readabilty of streams of JSON data.
807 The library provides the function @code{encodePretty}. It is a drop-in
808 replacement for aeson's @code{encode} function, producing JSON-ByteStrings for
809 human readers. The command-line tool reads JSON from stdin and writes
810 prettified JSON to stdout. It also offers a complementary \"compact\"-mode,
811 essentially the opposite of pretty-printing.")
812 (license license:bsd-3)))
814 (define-public ghc-aeson-qq
816 (name "ghc-aeson-qq")
820 (uri (string-append "https://hackage.haskell.org/package/"
821 "aeson-qq/aeson-qq-" version ".tar.gz"))
824 "0ln13jqyfh5726hdrk1rad9a6cgrrj201plmwcfcpvq18v4m5ckd"))))
825 (build-system haskell-build-system)
827 `(("ghc-base-compat" ,ghc-base-compat)
828 ("ghc-text" ,ghc-text)
829 ("ghc-attoparsec" ,ghc-attoparsec)
830 ("ghc-scientific" ,ghc-scientific)
831 ("ghc-vector" ,ghc-vector)
832 ("ghc-aeson" ,ghc-aeson)
833 ("ghc-parsec" ,ghc-parsec)
834 ("ghc-haskell-src-meta" ,ghc-haskell-src-meta)))
836 `(("ghc-hspec" ,ghc-hspec)
837 ("hspec-discover" ,hspec-discover)))
838 (home-page "https://github.com/zalora/aeson-qq")
839 (synopsis "JSON quasiquoter for Haskell")
841 "aeson-qq provides a JSON quasiquoter for Haskell. This package exposes
842 the function @code{aesonQQ} that compile-time converts a string representation
843 of a JSON value into a @code{Data.Aeson.Value}.")
844 (license license:expat)))
846 (define-public ghc-multipart
848 (name "ghc-multipart")
854 "https://hackage.haskell.org/package/multipart/multipart-"
859 "0g04jhyw1ib1s7c9bcldyyn4n90qd9x7dmvic4vgq57bgcqgnhz5"))))
860 (build-system haskell-build-system)
861 (inputs `(("ghc-parsec" ,ghc-parsec)))
863 "http://www.github.com/silkapp/multipart")
865 "HTTP multipart library")
867 "HTTP multipart split out of the cgi package, for Haskell.")
868 (license license:bsd-3)))
870 (define-public ghc-uri-encode
872 (name "ghc-uri-encode")
878 "https://hackage.haskell.org/package/uri-encode/uri-encode-"
882 "11miwb5vvnn17m92ykz1pzg9x6s8fbpz3mmsyqs2s4b3mn55haz8"))))
883 (build-system haskell-build-system)
885 `(("ghc-text" ,ghc-text)
886 ("ghc-utf8-string" ,ghc-utf8-string)
887 ("ghc-network-uri" ,ghc-network-uri)))
888 (home-page "https://hackage.haskell.org/package/uri-encode")
889 (synopsis "Unicode aware uri-encoding")
890 (description "Unicode aware uri-encoding for Haskell.")
891 (license license:bsd-3)))