gnu: Add wl-clipboard.
[jackhill/guix/guix.git] / gnu / packages / haskell-web.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
3 ;;; Copyright © 2015, 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
5 ;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
6 ;;; Copyright © 2017 rsiddharth <s@ricketyspace.net>
7 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;;
9 ;;; This file is part of GNU Guix.
10 ;;;
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.
15 ;;;
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.
20 ;;;
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/>.
23
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))
36
37 (define-public ghc-tagsoup
38 (package
39 (name "ghc-tagsoup")
40 (version "0.14.6")
41 (source
42 (origin
43 (method url-fetch)
44 (uri (string-append "https://hackage.haskell.org/package/tagsoup/"
45 "tagsoup-" version ".tar.gz"))
46 (sha256
47 (base32
48 "1yv3dbyb0i1yqm796jgc4jj5kxkla1sxb3b2klw5ks182kdx8kjb"))))
49 (build-system haskell-build-system)
50 (inputs `(("ghc-text" ,ghc-text)))
51 (native-inputs
52 `(("ghc-quickcheck" ,ghc-quickcheck)))
53 (home-page "http://community.haskell.org/~ndm/tagsoup/")
54 (synopsis
55 "Parsing and extracting information from (possibly malformed) HTML/XML
56 documents")
57 (description
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)))
64
65 (define-public ghc-cookie
66 (package
67 (name "ghc-cookie")
68 (version "0.4.4")
69 (source
70 (origin
71 (method url-fetch)
72 (uri (string-append
73 "https://hackage.haskell.org/package/cookie/cookie-"
74 version
75 ".tar.gz"))
76 (sha256
77 (base32
78 "1qy09i0jh2z9i9avy2khf8a8afq4fqgnv0fyrszgfg4kmq2fsi9j"))))
79 (build-system haskell-build-system)
80 (inputs
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)))
94
95 (define-public ghc-httpd-shed
96 (package
97 (name "ghc-httpd-shed")
98 (version "0.4.0.3")
99 (source
100 (origin
101 (method url-fetch)
102 (uri (string-append "https://hackage.haskell.org/package/httpd-shed/"
103 "httpd-shed-" version ".tar.gz"))
104 (sha256
105 (base32
106 "064jy1mqhnf1hvq6s04wlhmp916rd522x58djb9qixv13vc8gzxh"))))
107 (build-system haskell-build-system)
108 (inputs
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")
113 (description
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)))
118
119 (define-public ghc-http-types
120 (package
121 (name "ghc-http-types")
122 (version "0.12.1")
123 (source
124 (origin
125 (method url-fetch)
126 (uri (string-append "https://hackage.haskell.org/package/http-types/"
127 "http-types-" version ".tar.gz"))
128 (sha256
129 (base32
130 "1wv9k6nlvkdsxwlr7gaynphvzmvi5211gvwq96mbcxgk51a739rz"))))
131 (build-system haskell-build-system)
132 (native-inputs
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)))
138 (inputs
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)))
147
148 (define-public ghc-http
149 (package
150 (name "ghc-http")
151 (version "4000.3.12")
152 (outputs '("out" "doc"))
153 (source
154 (origin
155 (method url-fetch)
156 (uri (string-append "https://hackage.haskell.org/package/HTTP/"
157 "HTTP-" version ".tar.gz"))
158 (sha256
159 (base32
160 "140r6qy1ay25piv0z3hih11zhigyi08nkwc32097j43pjff6mzx3"))))
161 (build-system haskell-build-system)
162 (native-inputs
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)))
167 (inputs
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)))
178 (arguments
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")
182 (description
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)))
187
188 (define-public ghc-http-client
189 (package
190 (name "ghc-http-client")
191 (version "0.5.13.1")
192 (source (origin
193 (method url-fetch)
194 (uri (string-append "https://hackage.haskell.org/package/"
195 "http-client/http-client-"
196 version ".tar.gz"))
197 (sha256
198 (base32
199 "0szwbgvkkdz56lgi91armkagmb7nnfwbpp4j7cm9zhmffv3ba8g1"))))
200 (build-system haskell-build-system)
201 ;; Tests require access to the web.
202 (arguments `(#:tests? #f))
203 (inputs
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)))
221 (native-inputs
222 `(("ghc-hspec" ,ghc-hspec)))
223 (home-page "https://github.com/snoyberg/http-client")
224 (synopsis "HTTP client engine")
225 (description
226 "This package provides an HTTP client engine, intended as a base layer
227 for more user-friendly packages.")
228 (license license:expat)))
229
230 (define-public ghc-http-client-tls
231 (package
232 (name "ghc-http-client-tls")
233 (version "0.3.5.3")
234 (source (origin
235 (method url-fetch)
236 (uri (string-append "https://hackage.haskell.org/package/"
237 "http-client-tls/http-client-tls-"
238 version ".tar.gz"))
239 (sha256
240 (base32
241 "0qj3pcpgbsfsc4m52dz35khhl4hf1i0nmcpa445z82d9567vy6j7"))))
242 (build-system haskell-build-system)
243 ;; Tests require Internet access
244 (arguments `(#:tests? #f))
245 (inputs
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)
250 ("ghc-tls" ,ghc-tls)
251 ("ghc-http-types" ,ghc-http-types)))
252 (native-inputs
253 `(("ghc-hspec" ,ghc-hspec)))
254 (home-page "https://github.com/snoyberg/http-client")
255 (synopsis "Backend for http-client using the TLS library")
256 (description
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)))
261
262 (define-public ghc-http-date
263 (package
264 (name "ghc-http-date")
265 (version "0.0.8")
266 (source
267 (origin
268 (method url-fetch)
269 (uri (string-append "https://hackage.haskell.org/package/"
270 "http-date-" version "/"
271 "http-date-" version ".tar.gz"))
272 (sha256
273 (base32
274 "09slbzqayjnqqz9zybk7slgzvizgplikqgg4b2flzgks91466k0g"))))
275 (build-system haskell-build-system)
276 (inputs
277 `(("ghc-attoparsec" ,ghc-attoparsec)))
278 (native-inputs
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
286 Date in Haskell.")
287 (license license:bsd-3)))
288
289 (define-public ghc-http2
290 (package
291 (name "ghc-http2")
292 (version "1.6.3")
293 (source
294 (origin
295 (method url-fetch)
296 (uri (string-append "https://hackage.haskell.org/package/"
297 "http2-" version "/"
298 "http2-" version ".tar.gz"))
299 (sha256
300 (base32
301 "0hww0rfsv6lqx62qzycbcqy5q6rh9k09qkyjkdm5m1sp1z50wqk1"))))
302 (build-system haskell-build-system)
303 (inputs
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)
308 ("ghc-hex" ,ghc-hex)
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)))
314 (native-inputs
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)))
324
325 (define-public ghc-http-conduit
326 (package
327 (name "ghc-http-conduit")
328 (version "2.3.2")
329 (source
330 (origin
331 (method url-fetch)
332 (uri (string-append "https://hackage.haskell.org/package/"
333 "http-conduit-" version "/" "http-conduit-"
334 version ".tar.gz"))
335 (sha256
336 (base32
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
341 ;; name: tcp)
342 (arguments `(#:tests? #f))
343 (inputs
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)))
355 (native-inputs
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)
368 ("ghc-wai" ,ghc-wai)
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)))
384
385 (define-public ghc-wai
386 (package
387 (name "ghc-wai")
388 (version "3.2.1.2")
389 (source
390 (origin
391 (method url-fetch)
392 (uri (string-append
393 "https://hackage.haskell.org/package/wai/wai-"
394 version
395 ".tar.gz"))
396 (sha256
397 (base32
398 "0jr3b2789wa4m6mxkz12ynz4lfsqmgbrcy0am8karyqr3x3528r8"))))
399 (build-system haskell-build-system)
400 (inputs
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)))
408 (native-inputs
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)))
419
420 (define-public ghc-wai-logger
421 (package
422 (name "ghc-wai-logger")
423 (version "2.3.2")
424 (source
425 (origin
426 (method url-fetch)
427 (uri (string-append
428 "https://hackage.haskell.org/package/wai-logger/wai-logger-"
429 version
430 ".tar.gz"))
431 (sha256
432 (base32
433 "0w5ldq4gplc16zzk5ikmbbjw79imaqvw8p6lylaw3hlsbn3zzm4d"))))
434 (build-system haskell-build-system)
435 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find libraries exported
436 ; by propagated-inputs.
437 (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)))
452
453 (define-public ghc-wai-extra
454 (package
455 (name "ghc-wai-extra")
456 (version "3.0.24.2")
457 (source
458 (origin
459 (method url-fetch)
460 (uri (string-append
461 "https://hackage.haskell.org/package/wai-extra/wai-extra-"
462 version
463 ".tar.gz"))
464 (sha256
465 (base32
466 "07gcgq59dki5drkjci9ka34xjsy3bqilbsx0lsc4905w9jlyfbci"))))
467 (build-system haskell-build-system)
468 (inputs
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)
484 ("ghc-wai" ,ghc-wai)
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)))
492 (native-inputs
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
499 functionality.")
500 (license license:expat)))
501
502 (define-public ghc-wai-conduit
503 (package
504 (name "ghc-wai-conduit")
505 (version "3.0.0.4")
506 (source
507 (origin
508 (method url-fetch)
509 (uri (string-append "https://hackage.haskell.org/package/"
510 "wai-conduit-" version "/"
511 "wai-conduit-" version ".tar.gz"))
512 (sha256
513 (base32
514 "07yn41rn2skd5p3wqqa09wa761vj7ibl8l19gh4bi4i8slxhk417"))))
515 (build-system haskell-build-system)
516 (inputs
517 `(("ghc-conduit" ,ghc-conduit)
518 ("ghc-http-types" ,ghc-http-types)
519 ("ghc-wai" ,ghc-wai)
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)))
526
527 (define-public ghc-bsb-http-chunked
528 (package
529 (name "ghc-bsb-http-chunked")
530 (version "0.0.0.2")
531 (source
532 (origin
533 (method url-fetch)
534 (uri (string-append
535 "https://hackage.haskell.org/package/"
536 "bsb-http-chunked/bsb-http-chunked-"
537 version ".tar.gz"))
538 (sha256
539 (base32
540 "1x6m6xkrcw6jiaig1bb2wb5pqyw31x8xr9k9pxgq2g3ng44pbjr8"))))
541 (build-system haskell-build-system)
542 (inputs
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
548 transfers.")
549 (license license:bsd-3)))
550
551 (define-public ghc-warp
552 (package
553 (name "ghc-warp")
554 (version "3.2.23")
555 (source
556 (origin
557 (method url-fetch)
558 (uri (string-append "https://hackage.haskell.org/package/"
559 "warp-" version "/" "warp-" version
560 ".tar.gz"))
561 (sha256
562 (base32
563 "12v9qhi4hyp0sb90yddsax16jj7x47nmqwn53sv7b5nszcxgzam0"))))
564 (build-system haskell-build-system)
565 (inputs
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)
574 ("ghc-stm" ,ghc-stm)
575 ("ghc-streaming-commons" ,ghc-streaming-commons)
576 ("ghc-text" ,ghc-text)
577 ("ghc-unix-compat" ,ghc-unix-compat)
578 ("ghc-vault" ,ghc-vault)
579 ("ghc-wai" ,ghc-wai)
580 ("ghc-word8" ,ghc-word8)
581 ("ghc-http-date" ,ghc-http-date)
582 ("ghc-simple-sendfile" ,ghc-simple-sendfile)
583 ("ghc-http2" ,ghc-http2)))
584 (native-inputs
585 `(("curl" ,curl)
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)))
599
600 (define-public ghc-tls-session-manager
601 (package
602 (name "ghc-tls-session-manager")
603 (version "0.0.0.2")
604 (source
605 (origin
606 (method url-fetch)
607 (uri (string-append
608 "https://hackage.haskell.org/package/"
609 "tls-session-manager/tls-session-manager-"
610 version ".tar.gz"))
611 (sha256
612 (base32
613 "0rvmln545vghsx8zhxp44f0f6pzma8cylarmfhhysy55ipywr1n5"))))
614 (build-system haskell-build-system)
615 (inputs
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)))
625
626 (define-public ghc-warp-tls
627 (package
628 (name "ghc-warp-tls")
629 (version "3.2.4.3")
630 (source
631 (origin
632 (method url-fetch)
633 (uri (string-append "https://hackage.haskell.org/package/"
634 "warp-tls-" version "/"
635 "warp-tls-" version ".tar.gz"))
636 (sha256
637 (base32
638 "17gj295fr98l7mkz2gdz6kahdnmja0sql3kvy2zab6q168g53kc4"))))
639 (build-system haskell-build-system)
640 (inputs
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)
645 ("ghc-tls" ,ghc-tls)
646 ("ghc-tls-session-manager" ,ghc-tls-session-manager)
647 ("ghc-wai" ,ghc-wai)
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)))
654
655 (define-public ghc-xss-sanitize
656 (package
657 (name "ghc-xss-sanitize")
658 (version "0.3.6")
659 (source
660 (origin
661 (method url-fetch)
662 (uri (string-append
663 "https://hackage.haskell.org/package/xss-sanitize/xss-sanitize-"
664 version ".tar.gz"))
665 (sha256
666 (base32
667 "1d72s3a6520iwwc1wbn9v2znqgbw6a5wwzb23iq8ny9ccnjyx1dk"))))
668 (build-system haskell-build-system)
669 (inputs
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)))
674 (native-inputs
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
683 attacks.")
684 (license license:bsd-3)))
685
686 (define-public ghc-css-text
687 (package
688 (name "ghc-css-text")
689 (version "0.1.3.0")
690 (source
691 (origin
692 (method url-fetch)
693 (uri (string-append
694 "https://hackage.haskell.org/package/css-text/css-text-"
695 version
696 ".tar.gz"))
697 (sha256
698 (base32
699 "0ynd9f4hn2sfwqzbsa0y7phmxq8za7jiblpjwx0ry8b372zhgxaz"))))
700 (build-system haskell-build-system)
701 (inputs
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
709 Haskell.")
710 (license license:bsd-3)))
711
712 (define-public ghc-mime-types
713 (package
714 (name "ghc-mime-types")
715 (version "0.1.0.8")
716 (source (origin
717 (method url-fetch)
718 (uri (string-append "https://hackage.haskell.org/package/"
719 "mime-types/mime-types-"
720 version ".tar.gz"))
721 (sha256
722 (base32
723 "14ccl2842ya17zyj0bpc7vzklbyqvvydpbypn69h2fmhgji192x8"))))
724 (build-system haskell-build-system)
725 (inputs
726 `(("ghc-text" ,ghc-text)))
727 (home-page "https://github.com/yesodweb/wai")
728 (synopsis "Basic MIME type handling types and functions")
729 (description
730 "This library provides basic MIME type handling types and functions.")
731 (license license:expat)))
732
733 (define-public ghc-html
734 (package
735 (name "ghc-html")
736 (version "1.0.1.2")
737 (source
738 (origin
739 (method url-fetch)
740 (uri (string-append
741 "https://hackage.haskell.org/package/html/html-"
742 version
743 ".tar.gz"))
744 (sha256
745 (base32
746 "0q9hmfii62kc82ijlg238fxrzxhsivn42x5wd6ffcr9xldg4jd8c"))))
747 (build-system haskell-build-system)
748 (home-page
749 "https://hackage.haskell.org/package/html")
750 (synopsis "HTML combinator library")
751 (description
752 "This package contains a combinator library for constructing HTML
753 documents.")
754 (license license:bsd-3)))
755
756 (define-public ghc-xhtml
757 (package
758 (name "ghc-xhtml")
759 (version "3000.2.2.1")
760 (source
761 (origin
762 (method url-fetch)
763 (uri (string-append
764 "https://hackage.haskell.org/package/xhtml/xhtml-"
765 version
766 ".tar.gz"))
767 (sha256
768 (base32
769 "0939kwpinq6l4n3nyvd1gzyl7f83gymw0wzqndlgy1yc7q0nkj2w"))))
770 (build-system haskell-build-system)
771 (home-page "https://github.com/haskell/xhtml")
772 (synopsis "XHTML combinator library")
773 (description
774 "This package provides combinators for producing XHTML 1.0, including the
775 Strict, Transitional and Frameset variants.")
776 (license license:bsd-3)))
777
778 (define-public ghc-blaze-html
779 (package
780 (name "ghc-blaze-html")
781 (version "0.9.1.1")
782 (source
783 (origin
784 (method url-fetch)
785 (uri (string-append "https://hackage.haskell.org/package/"
786 "blaze-html/blaze-html-"
787 version ".tar.gz"))
788 (sha256
789 (base32
790 "06xv8fqhclfjj61z74cgggn4lmx1s7diakxg84mnkgfvk11983pa"))))
791 (build-system haskell-build-system)
792 (inputs
793 `(("ghc-blaze-builder" ,ghc-blaze-builder)
794 ("ghc-text" ,ghc-text)
795 ("ghc-blaze-markup" ,ghc-blaze-markup)))
796 (native-inputs
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)))
806
807 (define-public ghc-aeson
808 (package
809 (name "ghc-aeson")
810 (version "1.3.1.1")
811 (source
812 (origin
813 (method url-fetch)
814 (uri (string-append
815 "https://hackage.haskell.org/package/aeson/aeson-"
816 version
817 ".tar.gz"))
818 (sha256
819 (base32
820 "1i1ig840fvsb1lnklcv32zsc0zscirc301lw1mpfxhc6h4pk0gw4"))))
821 (build-system haskell-build-system)
822 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
823 (inputs
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)))
853
854 (define-public ghc-aeson-pretty
855 (package
856 (name "ghc-aeson-pretty")
857 (version "0.8.7")
858 (source (origin
859 (method url-fetch)
860 (uri (string-append
861 "https://hackage.haskell.org/package/aeson-pretty/aeson-pretty-"
862 version ".tar.gz"))
863 (sha256
864 (base32
865 "1m977gs0s9gf3lwzlbs5y7bl6ansc5pywmn2qjk09l5bwg2yrhf1"))))
866 (build-system haskell-build-system)
867 (inputs
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")
878 (description
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)))
887
888 (define-public ghc-aeson-qq
889 (package
890 (name "ghc-aeson-qq")
891 (version "0.8.2")
892 (source (origin
893 (method url-fetch)
894 (uri (string-append "https://hackage.haskell.org/package/"
895 "aeson-qq/aeson-qq-" version ".tar.gz"))
896 (sha256
897 (base32
898 "0ln13jqyfh5726hdrk1rad9a6cgrrj201plmwcfcpvq18v4m5ckd"))))
899 (build-system haskell-build-system)
900 (inputs
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)))
909 (native-inputs
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")
914 (description
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)))
919
920 (define-public ghc-multipart
921 (package
922 (name "ghc-multipart")
923 (version "0.1.3")
924 (source
925 (origin
926 (method url-fetch)
927 (uri (string-append
928 "https://hackage.haskell.org/package/multipart/multipart-"
929 version
930 ".tar.gz"))
931 (sha256
932 (base32
933 "1x4n4yyva22dhfr1pg5ki112qvvzb4hyd7bwpm189iq4gcp52q4z"))))
934 (build-system haskell-build-system)
935 (inputs
936 `(("ghc-parsec" ,ghc-parsec)
937 ("ghc-stringsearch" ,ghc-stringsearch)))
938 (home-page
939 "http://www.github.com/silkapp/multipart")
940 (synopsis
941 "HTTP multipart library")
942 (description
943 "HTTP multipart split out of the cgi package, for Haskell.")
944 (license license:bsd-3)))
945
946 (define-public ghc-uri-encode
947 (package
948 (name "ghc-uri-encode")
949 (version "1.5.0.5")
950 (source
951 (origin
952 (method url-fetch)
953 (uri (string-append
954 "https://hackage.haskell.org/package/uri-encode/uri-encode-"
955 version ".tar.gz"))
956 (sha256
957 (base32
958 "11miwb5vvnn17m92ykz1pzg9x6s8fbpz3mmsyqs2s4b3mn55haz8"))))
959 (build-system haskell-build-system)
960 (inputs
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)))
968
969 (define-public ghc-path-pieces
970 (package
971 (name "ghc-path-pieces")
972 (version "0.2.1")
973 (source
974 (origin
975 (method url-fetch)
976 (uri (string-append "https://hackage.haskell.org/package/"
977 "path-pieces-" version "/"
978 "path-pieces-" version ".tar.gz"))
979 (sha256
980 (base32
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)))
992
993 (define-public ghc-skein
994 (package
995 (name "ghc-skein")
996 (version "1.0.9.4")
997 (source
998 (origin
999 (method url-fetch)
1000 (uri (string-append "https://hackage.haskell.org/package/"
1001 "skein-" version "/"
1002 "skein-" version ".tar.gz"))
1003 (sha256
1004 (base32
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.
1017
1018 This Haskell package uses bindings to the optimized C implementation of Skein.")
1019 (license license:bsd-3)))
1020
1021 (define-public ghc-clientsession
1022 (package
1023 (name "ghc-clientsession")
1024 (version "0.9.1.2")
1025 (source
1026 (origin
1027 (method url-fetch)
1028 (uri (string-append "https://hackage.haskell.org/package/"
1029 "clientsession-" version "/"
1030 "clientsession-" version ".tar.gz"))
1031 (sha256
1032 (base32
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)))
1055
1056 (define-public ghc-yesod-core
1057 (package
1058 (name "ghc-yesod-core")
1059 (version "1.6.6")
1060 (source
1061 (origin
1062 (method url-fetch)
1063 (uri (string-append "https://hackage.haskell.org/package/"
1064 "yesod-core-" version "/"
1065 "yesod-core-" version ".tar.gz"))
1066 (sha256
1067 (base32
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)))
1126
1127 (define-public ghc-yesod-persistent
1128 (package
1129 (name "ghc-yesod-persistent")
1130 (version "1.6.0")
1131 (source
1132 (origin
1133 (method url-fetch)
1134 (uri (string-append "https://hackage.haskell.org/package/"
1135 "yesod-persistent-" version "/"
1136 "yesod-persistent-" version ".tar.gz"))
1137 (sha256
1138 (base32
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
1157 from Yesod.")
1158 (license license:expat)))
1159
1160 (define-public ghc-yesod-form
1161 (package
1162 (name "ghc-yesod-form")
1163 (version "1.6.2")
1164 (source
1165 (origin
1166 (method url-fetch)
1167 (uri (string-append
1168 "https://hackage.haskell.org/package/yesod-form/yesod-form-"
1169 version
1170 ".tar.gz"))
1171 (sha256
1172 (base32
1173 "1p1x1hffvarplc82ykdk7rm6p5isqgqf78bvxzpfhncxs4kwx057"))))
1174 (build-system haskell-build-system)
1175 (inputs
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)))
1202
1203 (define-public ghc-yesod
1204 (package
1205 (name "ghc-yesod")
1206 (version "1.6.0")
1207 (source
1208 (origin
1209 (method url-fetch)
1210 (uri (string-append
1211 "https://hackage.haskell.org/package/yesod/yesod-"
1212 version ".tar.gz"))
1213 (sha256
1214 (base32
1215 "0wx77nbpzdh40p1bm527kimfj48vs9d2avpvvz2w42zi3pz2y94a"))))
1216 (build-system haskell-build-system)
1217 (inputs
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)))