1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
3 ;;; Copyright © 2015, 2016 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 "07pax7i0bl79dmqqz58zy09yrgpnyyr2ya0z183hv96kp65jv0lh"))))
50 (build-system haskell-build-system)
51 (inputs `(("ghc-text" ,ghc-text)))
53 "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 "0b6ym6fn29p5az4dwydy036lxj131kagrmgb93w4bbkqfkds8b9s"))))
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-http-types
97 (name "ghc-http-types")
103 "https://hackage.haskell.org/package/http-types/http-types-"
108 "0ny15jgm5skhs2yx6snr13lrnw19hwjgfygrpsmhib8wqa8cz8cc"))))
109 (build-system haskell-build-system)
110 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find
111 ; Blaze.Bytestring.Builder, which should be
112 ; provided by ghc-blaze-builder.
114 `(("ghc-case-insensitive" ,ghc-case-insensitive)
115 ("ghc-blaze-builder" ,ghc-blaze-builder)
116 ("ghc-text" ,ghc-text)))
117 (home-page "https://github.com/aristidb/http-types")
118 (synopsis "Generic HTTP types for Haskell")
119 (description "This package provides generic HTTP types for Haskell (for
120 both client and server code).")
121 (license license:bsd-3)))
123 (define-public ghc-http
126 (version "4000.2.20")
127 (outputs '("out" "doc"))
132 "https://hackage.haskell.org/package/HTTP/HTTP-"
137 "0nyqdxr5ls2dxkf4a1f3x15xzwdm46ppn99nkcbhswlr6s3cq1s4"))))
138 (build-system haskell-build-system)
140 `(("ghc-hunit" ,ghc-hunit)))
142 `(("ghc-old-time" ,ghc-old-time)
143 ("ghc-parsec" ,ghc-parsec)
145 ("ghc-network" ,ghc-network)
146 ("ghc-network-uri" ,ghc-network-uri)))
148 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
149 (home-page "https://github.com/haskell/HTTP")
150 (synopsis "Library for client-side HTTP")
152 "The HTTP package supports client-side web programming in Haskell. It
153 lets you set up HTTP connections, transmitting requests and processing the
154 responses coming back.")
155 (license license:bsd-3)))
157 (define-public ghc-http-client
159 (name "ghc-http-client")
163 (uri (string-append "https://hackage.haskell.org/package/"
164 "http-client/http-client-"
168 "1v9bdb8dkhb5g6jl9azk86ig7ia8xh9arr64n7s8r94fp0vl6c1c"))))
169 (build-system haskell-build-system)
170 ;; Tests require access to the web.
171 (arguments `(#:tests? #f))
173 `(("ghc-text" ,ghc-text)
174 ("ghc-http-types" ,ghc-http-types)
175 ("ghc-blaze-builder" ,ghc-blaze-builder)
176 ("ghc-data-default-class" ,ghc-data-default-class)
177 ("ghc-network" ,ghc-network)
178 ("ghc-streaming-commons" ,ghc-streaming-commons)
179 ("ghc-case-insensitive" ,ghc-case-insensitive)
180 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
181 ("ghc-cookie" ,ghc-cookie)
182 ("ghc-exceptions" ,ghc-exceptions)
183 ("ghc-random" ,ghc-random)
184 ("ghc-mime-types" ,ghc-mime-types)
185 ("ghc-network-uri" ,ghc-network-uri)
186 ("ghc-monad-control" ,ghc-monad-control)
187 ("ghc-zlib" ,ghc-zlib)
188 ("ghc-async" ,ghc-async)))
190 `(("ghc-hspec" ,ghc-hspec)))
191 (home-page "https://github.com/snoyberg/http-client")
192 (synopsis "HTTP client engine")
194 "This package provides an HTTP client engine, intended as a base layer
195 for more user-friendly packages.")
196 (license license:expat)))
198 (define-public ghc-http-client-tls
200 (name "ghc-http-client-tls")
204 (uri (string-append "https://hackage.haskell.org/package/"
205 "http-client-tls/http-client-tls-"
209 "1mbwdfn4hs8lcwml2l6xv4n068l9zlasyv6vwb2ylgm030pyv3xh"))))
210 (build-system haskell-build-system)
211 ;; Tests require Internet access
212 (arguments `(#:tests? #f))
214 `(("ghc-data-default-class" ,ghc-data-default-class)
215 ("ghc-http-client" ,ghc-http-client)
216 ("ghc-connection" ,ghc-connection)
217 ("ghc-network" ,ghc-network)
219 ("ghc-http-types" ,ghc-http-types)))
221 `(("ghc-hspec" ,ghc-hspec)))
222 (home-page "https://github.com/snoyberg/http-client")
223 (synopsis "Backend for http-client using the TLS library")
225 "This package provides a backend for the http-client package using the
226 connection and TLS libraries. It is intended for use by higher-level
227 libraries, such as http-conduit.")
228 (license license:expat)))
230 (define-public ghc-http-date
232 (name "ghc-http-date")
237 (uri (string-append "https://hackage.haskell.org/package/"
238 "http-date-" version "/"
239 "http-date-" version ".tar.gz"))
242 "0dknh28kyarnzqrsc80ssalxjrq0qbv7ir49247p2grb7rh0dqgj"))))
243 (build-system haskell-build-system)
245 `(("ghc-attoparsec" ,ghc-attoparsec)))
247 `(("ghc-doctest" ,ghc-doctest)
248 ("ghc-hspec" ,ghc-hspec)
249 ("hspec-discover" ,hspec-discover)
250 ("ghc-old-locale" ,ghc-old-locale)))
251 (home-page "https://github.com/kazu-yamamoto/http-date")
252 (synopsis "HTTP Date parser/formatter")
253 (description "Library for Parsing and formatting HTTP
255 (license license:bsd-3)))
257 (define-public ghc-http2
264 (uri (string-append "https://hackage.haskell.org/package/"
266 "http2-" version ".tar.gz"))
269 "0hww0rfsv6lqx62qzycbcqy5q6rh9k09qkyjkdm5m1sp1z50wqk1"))))
270 (build-system haskell-build-system)
272 `(("ghc-bytestring-builder" ,ghc-bytestring-builder)
273 ("ghc-case-insensitive" ,ghc-case-insensitive)
274 ("ghc-aeson" ,ghc-aeson)
275 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
277 ("ghc-unordered-containers" ,ghc-unordered-containers)
278 ("ghc-vector" ,ghc-vector)
279 ("ghc-word8" ,ghc-word8)
280 ("ghc-psqueues" ,ghc-psqueues)
281 ("ghc-stm" ,ghc-stm)))
283 `(("ghc-glob" ,ghc-glob)
284 ("ghc-hspec" ,ghc-hspec)
285 ("ghc-doctest" ,ghc-doctest)
286 ("hspec-discover" ,hspec-discover)))
287 (home-page "https://github.com/kazu-yamamoto/http2")
288 (synopsis "HTTP/2 library including frames, priority queues and HPACK")
289 (description "This package provides a HTTP/2.0 library including frames
290 and HPACK. Currently HTTP/2 16 framing and HPACK 10 is supported.")
291 (license license:bsd-3)))
293 (define-public ghc-http-conduit
295 (name "ghc-http-conduit")
300 (uri (string-append "https://hackage.haskell.org/package/"
301 "http-conduit-" version "/" "http-conduit-"
304 "03na2nbm9la0shlijvjyb5mpp1prfskk4jmjy8iz707r0731dbjk"))))
305 (build-system haskell-build-system)
306 ;; FIXME: `httpLbs TLS` in test-suite `test` fails with
307 ;; ConnectionFailure getProtocolByName: does not exist (no such protocol
309 (arguments `(#:tests? #f))
311 `(("ghc-aeson" ,ghc-aeson)
312 ("ghc-resourcet" ,ghc-resourcet)
313 ("ghc-conduit" ,ghc-conduit)
314 ("ghc-conduit-extra" ,ghc-conduit-extra)
315 ("ghc-http-types" ,ghc-http-types)
316 ("ghc-lifted-base" ,ghc-lifted-base)
317 ("ghc-http-client" ,ghc-http-client)
318 ("ghc-http-client-tls" ,ghc-http-client-tls)
319 ("ghc-monad-control" ,ghc-monad-control)
321 ("ghc-exceptions" ,ghc-exceptions)))
323 `(("ghc-hunit" ,ghc-hunit)
324 ("ghc-hspec" ,ghc-hspec)
325 ("ghc-data-default-class" ,ghc-data-default-class)
326 ("ghc-connection" ,ghc-connection)
327 ("ghc-warp-tls" ,ghc-warp-tls)
328 ("ghc-blaze-builder" ,ghc-blaze-builder)
329 ("ghc-text" ,ghc-text)
330 ("ghc-conduit" ,ghc-conduit)
331 ("ghc-utf8-string" ,ghc-utf8-string)
332 ("ghc-case-insensitive" ,ghc-case-insensitive)
333 ("ghc-lifted-base" ,ghc-lifted-base)
334 ("ghc-network" ,ghc-network)
336 ("ghc-warp" ,ghc-warp)
337 ("ghc-wai-conduit" ,ghc-wai-conduit)
338 ("ghc-http-types" ,ghc-http-types)
339 ("ghc-http-client" ,ghc-http-client)
340 ("ghc-cookie" ,ghc-cookie)
341 ("ghc-conduit-extra" ,ghc-conduit-extra)
342 ("ghc-streaming-commons" ,ghc-streaming-commons)
343 ("ghc-aeson" ,ghc-aeson)
344 ("ghc-temporary" ,ghc-temporary)
345 ("ghc-resourcet" ,ghc-resourcet)))
346 (home-page "https://hackage.haskell.org/package/http-conduit")
347 (synopsis "HTTP/HTTPS client with conduit interface")
348 (description "This library uses attoparsec for parsing the actual
349 contents of the HTTP connection. It also provides higher-level functions
350 which allow you to avoid direct usage of conduits.")
351 (license license:bsd-3)))
353 (define-public ghc-wai
361 "https://hackage.haskell.org/package/wai/wai-"
366 "08afasnirja21vr0bmzcywz4w29x736dmdv7h8nnh1l8bn7sd02x"))))
367 (build-system haskell-build-system)
369 `(("ghc-bytestring-builder" ,ghc-bytestring-builder)
370 ("ghc-unix-compat" ,ghc-unix-compat)
371 ("ghc-vault" ,ghc-vault)
372 ("ghc-blaze-builder" ,ghc-blaze-builder)
373 ("ghc-network" ,ghc-network)
374 ("ghc-text" ,ghc-text)
375 ("ghc-http-types" ,ghc-http-types)))
377 `(("hspec-discover" ,hspec-discover)
378 ("ghc-quickcheck" ,ghc-quickcheck)
379 ("ghc-hunit" ,ghc-hunit)
380 ("ghc-hspec" ,ghc-hspec)))
381 (home-page "https://hackage.haskell.org/package/wai")
382 (synopsis "Web application interface for Haskell")
383 (description "This package provides a Web Application Interface (WAI)
384 library for the Haskell language. It defines a common protocol for
385 communication between web applications and web servers.")
386 (license license:bsd-3)))
388 (define-public ghc-wai-logger
390 (name "ghc-wai-logger")
396 "https://hackage.haskell.org/package/wai-logger/wai-logger-"
401 "1s6svvy3ci4j1dj1jaw8hg628miwj8f5gpy9n8d8hpsaxav6nzgk"))))
402 (build-system haskell-build-system)
403 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find libraries exported
404 ; by propagated-inputs.
406 `(("ghc-auto-update" ,ghc-auto-update)
407 ("ghc-byteorder" ,ghc-byteorder)
408 ("ghc-easy-file" ,ghc-easy-file)
409 ("ghc-unix-time" ,ghc-unix-time)
410 ("ghc-blaze-builder" ,ghc-blaze-builder)
411 ("ghc-case-insensitive" ,ghc-case-insensitive)
412 ("ghc-fast-logger" ,ghc-fast-logger)
413 ("ghc-http-types" ,ghc-http-types)
414 ("ghc-network" ,ghc-network)
415 ("ghc-wai" ,ghc-wai)))
416 (home-page "https://hackage.haskell.org/package/wai-logger")
417 (synopsis "Logging system for WAI")
418 (description "This package provides the logging system for WAI.")
419 (license license:bsd-3)))
421 (define-public ghc-wai-extra
423 (name "ghc-wai-extra")
429 "https://hackage.haskell.org/package/wai-extra/wai-extra-"
434 "0mh761a1bayr4ydwqmh3h8ndpi19zqw34mmy49lp2abr70r0nm1p"))))
435 (build-system haskell-build-system)
437 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
438 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
439 ("ghc-cookie" ,ghc-cookie)
440 ("ghc-blaze-builder" ,ghc-blaze-builder)
441 ("ghc-network" ,ghc-network)
442 ("ghc-lifted-base" ,ghc-lifted-base)
443 ("ghc-streaming-commons" ,ghc-streaming-commons)
444 ("ghc-stringsearch" ,ghc-stringsearch)
445 ("ghc-resourcet" ,ghc-resourcet)
446 ("ghc-fast-logger" ,ghc-fast-logger)
447 ("ghc-wai-logger" ,ghc-wai-logger)
448 ("ghc-zlib" ,ghc-zlib)
449 ("ghc-word8" ,ghc-word8)
450 ("ghc-iproute" ,ghc-iproute)
451 ("ghc-void" ,ghc-void)
453 ("ghc-http-types" ,ghc-http-types)
454 ("ghc-text" ,ghc-text)
455 ("ghc-case-insensitive" ,ghc-case-insensitive)
456 ("ghc-data-default-class" ,ghc-data-default-class)
457 ("ghc-unix-compat" ,ghc-unix-compat)
458 ("ghc-vault" ,ghc-vault)
459 ("ghc-aeson" ,ghc-aeson)))
461 `(("hspec-discover" ,hspec-discover)
462 ("ghc-hspec" ,ghc-hspec)
463 ("ghc-hunit" ,ghc-hunit)))
464 (home-page "https://github.com/yesodweb/wai")
465 (synopsis "Some basic WAI handlers and middleware")
466 (description "This library provides basic WAI handlers and middleware
468 (license license:expat)))
470 (define-public ghc-wai-conduit
472 (name "ghc-wai-conduit")
477 (uri (string-append "https://hackage.haskell.org/package/"
478 "wai-conduit-" version "/"
479 "wai-conduit-" version ".tar.gz"))
482 "1zvsiwjq2mvkb9sjgp3ly9m968m7a2jjzr4id6jpi3mmqykj15z4"))))
483 (build-system haskell-build-system)
485 `(("ghc-conduit" ,ghc-conduit)
486 ("ghc-http-types" ,ghc-http-types)
488 ("ghc-blaze-builder" ,ghc-blaze-builder)))
489 (home-page "https://github.com/yesodweb/wai")
490 (synopsis "Conduit wrappers for Haskell's WAI")
491 (description "This package provides data streaming abstraction for
492 Haskell's Web Application Interface (WAI).")
493 (license license:expat)))
495 (define-public ghc-warp
502 (uri (string-append "https://hackage.haskell.org/package/"
503 "warp-" version "/" "warp-" version
507 "1zp5cy0bbj508vdvms1n5z80z37m253kwsqc5a83cfc990n6fgw5"))))
508 (build-system haskell-build-system)
510 `(#:tests? #f)) ; FIXME: Test-Suite `spec` fails.
512 `(("ghc-async" ,ghc-async)
513 ("ghc-auto-update" ,ghc-auto-update)
514 ("ghc-blaze-builder" ,ghc-blaze-builder)
515 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
516 ("ghc-case-insensitive" ,ghc-case-insensitive)
517 ("ghc-hashable" ,ghc-hashable)
518 ("ghc-http-types" ,ghc-http-types)
519 ("ghc-iproute" ,ghc-iproute)
520 ("ghc-network" ,ghc-network)
522 ("ghc-streaming-commons" ,ghc-streaming-commons)
523 ("ghc-text" ,ghc-text)
524 ("ghc-unix-compat" ,ghc-unix-compat)
525 ("ghc-vault" ,ghc-vault)
527 ("ghc-word8" ,ghc-word8)
528 ("ghc-lifted-base" ,ghc-lifted-base)
529 ("ghc-http-date" ,ghc-http-date)
530 ("ghc-simple-sendfile" ,ghc-simple-sendfile)
531 ("ghc-http2" ,ghc-http2)))
533 `(("ghc-silently" ,ghc-silently)
534 ("ghc-hspec" ,ghc-hspec)
535 ("ghc-auto-update" ,ghc-auto-update)
536 ("ghc-doctest" ,ghc-doctest)
537 ("ghc-quickcheck" ,ghc-quickcheck)
538 ("ghc-hunit" ,ghc-hunit)
539 ("ghc-http" ,ghc-http)
540 ("hspec-discover" ,hspec-discover)))
541 (home-page "http://github.com/yesodweb/wai")
542 (synopsis "HTTP server library for Haskell's WAI")
543 (description "Warp is a server library for HTTP/1.x and HTTP/2
544 based WAI (Web Application Interface in Haskell).")
545 (license license:expat)))
547 (define-public ghc-warp-tls
549 (name "ghc-warp-tls")
554 (uri (string-append "https://hackage.haskell.org/package/"
555 "warp-tls-" version "/"
556 "warp-tls-" version ".tar.gz"))
559 "14m2bzk5ivz9gdpxlcj6qnh46f2lycm1ybdjnfkj2876zrqwii7m"))))
560 (build-system haskell-build-system)
562 `(("ghc-cryptonite" ,ghc-cryptonite)
563 ("ghc-data-default-class" ,ghc-data-default-class)
564 ("ghc-network" ,ghc-network)
565 ("ghc-streaming-commons" ,ghc-streaming-commons)
568 ("ghc-warp" ,ghc-warp)))
569 (home-page "http://github.com/yesodweb/wai")
570 (synopsis "SSL/TLS support for Warp")
571 (description "This package provides SSL/TLS support for Warp,
572 a WAI handler, via the native Haskell TLS implementation.")
573 (license license:expat)))
575 (define-public ghc-xss-sanitize
577 (name "ghc-xss-sanitize")
583 "https://hackage.haskell.org/package/xss-sanitize/xss-sanitize-"
588 "1j2qrn2dbfx01m7zyk9ilgnp9zjwq9mk62b0rdal4zkg4vh212h0"))))
589 (build-system haskell-build-system)
591 `(("ghc-tagsoup" ,ghc-tagsoup)
592 ("ghc-utf8-string" ,ghc-utf8-string)
593 ("ghc-css-text" ,ghc-css-text)
594 ("ghc-network-uri" ,ghc-network-uri)))
596 `(("ghc-text" ,ghc-text)
597 ("ghc-attoparsec" ,ghc-attoparsec)
598 ("ghc-hspec" ,ghc-hspec)
599 ("ghc-hunit" ,ghc-hunit)))
600 (home-page "https://github.com/yesodweb/haskell-xss-sanitize")
601 (synopsis "Sanitize untrusted HTML to prevent XSS attacks")
602 (description "This library provides @code{sanitizeXSS}. Run untrusted
603 HTML through @code{Text.HTML.SanitizeXSS.sanitizeXSS} to prevent XSS
605 (license license:bsd-3)))
607 (define-public ghc-css-text
609 (name "ghc-css-text")
615 "https://hackage.haskell.org/package/css-text/css-text-"
620 "1xi1n2f0g8y43p95lynhcg50wxbq7hqfzbfzm7fy8mn7gvd920nw"))))
621 (build-system haskell-build-system)
623 `(("ghc-text" ,ghc-text)
624 ("ghc-attoparsec" ,ghc-attoparsec)
625 ("ghc-hspec" ,ghc-hspec)
626 ("ghc-quickcheck" ,ghc-quickcheck)))
627 (home-page "http://www.yesodweb.com/")
628 (synopsis "CSS parser and renderer")
629 (description "This package provides a CSS parser and renderer for
631 (license license:bsd-3)))
633 (define-public ghc-mime-types
635 (name "ghc-mime-types")
639 (uri (string-append "https://hackage.haskell.org/package/"
640 "mime-types/mime-types-"
644 "090z3dp928243amnc6s8g10rk2h2bprk9y138q6wj3cpflzr72pw"))))
645 (build-system haskell-build-system)
647 `(("ghc-text" ,ghc-text)))
648 (home-page "https://github.com/yesodweb/wai")
649 (synopsis "Basic MIME type handling types and functions")
651 "This library provides basic MIME type handling types and functions.")
652 (license license:expat)))
654 (define-public ghc-html
662 "https://hackage.haskell.org/package/html/html-"
667 "0q9hmfii62kc82ijlg238fxrzxhsivn42x5wd6ffcr9xldg4jd8c"))))
668 (build-system haskell-build-system)
670 "https://hackage.haskell.org/package/html")
671 (synopsis "HTML combinator library")
673 "This package contains a combinator library for constructing HTML
675 (license license:bsd-3)))
677 (define-public ghc-xhtml
685 "https://hackage.haskell.org/package/xhtml/xhtml-"
690 "1n6wgzxbj8xf0wf1il827qidphnffb5vzhwzqlxhh70c2y10f0ik"))))
691 (build-system haskell-build-system)
692 (home-page "https://github.com/haskell/xhtml")
693 (synopsis "XHTML combinator library")
695 "This package provides combinators for producing XHTML 1.0, including the
696 Strict, Transitional and Frameset variants.")
697 (license license:bsd-3)))
699 (define-public ghc-blaze-html
701 (name "ghc-blaze-html")
707 "https://hackage.haskell.org/package/blaze-html/blaze-html-"
712 "1dnw50kh0s405cg9i2y4a8awanhj3bqzk21jwgfza65kcjby7lpq"))))
713 (build-system haskell-build-system)
714 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
716 `(("ghc-blaze-builder" ,ghc-blaze-builder)
717 ("ghc-text" ,ghc-text)
718 ("ghc-blaze-markup" ,ghc-blaze-markup)))
719 (home-page "http://jaspervdj.be/blaze")
720 (synopsis "Fast HTML combinator library")
721 (description "This library provides HTML combinators for Haskell.")
722 (license license:bsd-3)))
724 (define-public ghc-aeson
732 "https://hackage.haskell.org/package/aeson/aeson-"
737 "19kp33rfivr4d3myyr8xn803wd7p8x5nc4wb3qvlgjwgyqjaxvrz"))))
738 (build-system haskell-build-system)
739 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
741 `(("ghc-attoparsec" ,ghc-attoparsec)
742 ("ghc-dlist" ,ghc-dlist)
744 ("ghc-scientific" ,ghc-scientific)
746 ("ghc-unordered-containers" ,ghc-unordered-containers)
747 ("ghc-vector" ,ghc-vector)
748 ("ghc-hashable" ,ghc-hashable)
749 ("ghc-text" ,ghc-text)
750 ("ghc-hunit" ,ghc-hunit)
751 ("ghc-quickcheck" ,ghc-quickcheck)))
752 (home-page "https://github.com/bos/aeson")
753 (synopsis "Fast JSON parsing and encoding")
754 (description "This package provides a JSON parsing and encoding library
755 for Haskell, optimized for ease of use and high performance. (A note on
756 naming: in Greek mythology, Aeson was the father of Jason.)")
757 (license license:bsd-3)))
759 (define-public ghc-aeson-pretty
761 (name "ghc-aeson-pretty")
766 "https://hackage.haskell.org/package/aeson-pretty/aeson-pretty-"
770 "03ap81853qi8yd9kdgczllrrni23a6glsfxrwj8zab6ipjrbh234"))))
771 (build-system haskell-build-system)
773 `(("ghc-aeson" ,ghc-aeson)
774 ("ghc-vector" ,ghc-vector)
775 ("ghc-text" ,ghc-text)
776 ("ghc-unordered-containers"
777 ,ghc-unordered-containers)
778 ("ghc-attoparsec" ,ghc-attoparsec)
779 ("ghc-cmdargs" ,ghc-cmdargs)))
780 (home-page "https://github.com/informatikr/aeson-pretty")
781 (synopsis "JSON pretty-printing library and command-line tool")
783 "This package provides a JSON pretty-printing library compatible with aeson
784 as well as a command-line tool to improve readabilty of streams of JSON data.
785 The library provides the function @code{encodePretty}. It is a drop-in
786 replacement for aeson's @code{encode} function, producing JSON-ByteStrings for
787 human readers. The command-line tool reads JSON from stdin and writes
788 prettified JSON to stdout. It also offers a complementary \"compact\"-mode,
789 essentially the opposite of pretty-printing.")
790 (license license:bsd-3)))
792 (define-public ghc-aeson-qq
794 (name "ghc-aeson-qq")
798 (uri (string-append "https://hackage.haskell.org/package/"
799 "aeson-qq/aeson-qq-" version ".tar.gz"))
802 "0ln13jqyfh5726hdrk1rad9a6cgrrj201plmwcfcpvq18v4m5ckd"))))
803 (build-system haskell-build-system)
805 `(("ghc-base-compat" ,ghc-base-compat)
806 ("ghc-text" ,ghc-text)
807 ("ghc-attoparsec" ,ghc-attoparsec)
808 ("ghc-scientific" ,ghc-scientific)
809 ("ghc-vector" ,ghc-vector)
810 ("ghc-aeson" ,ghc-aeson)
811 ("ghc-parsec" ,ghc-parsec)
812 ("ghc-haskell-src-meta" ,ghc-haskell-src-meta)))
814 `(("ghc-hspec" ,ghc-hspec)
815 ("hspec-discover" ,hspec-discover)))
816 (home-page "https://github.com/zalora/aeson-qq")
817 (synopsis "JSON quasiquoter for Haskell")
819 "aeson-qq provides a JSON quasiquoter for Haskell. This package exposes
820 the function @code{aesonQQ} that compile-time converts a string representation
821 of a JSON value into a @code{Data.Aeson.Value}.")
822 (license license:expat)))
824 (define-public ghc-multipart
826 (name "ghc-multipart")
832 "https://hackage.haskell.org/package/multipart/multipart-"
837 "0g04jhyw1ib1s7c9bcldyyn4n90qd9x7dmvic4vgq57bgcqgnhz5"))))
838 (build-system haskell-build-system)
839 (inputs `(("ghc-parsec" ,ghc-parsec)))
841 "http://www.github.com/silkapp/multipart")
843 "HTTP multipart library")
845 "HTTP multipart split out of the cgi package, for Haskell.")
846 (license license:bsd-3)))