gnu: rust: Accept more detailed gdb responses.
[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 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))
35
36 (define-public ghc-tagsoup
37 (package
38 (name "ghc-tagsoup")
39 (version "0.14.6")
40 (source
41 (origin
42 (method url-fetch)
43 (uri (string-append "https://hackage.haskell.org/package/tagsoup/"
44 "tagsoup-" version ".tar.gz"))
45 (sha256
46 (base32
47 "1yv3dbyb0i1yqm796jgc4jj5kxkla1sxb3b2klw5ks182kdx8kjb"))))
48 (build-system haskell-build-system)
49 (inputs `(("ghc-text" ,ghc-text)))
50 (native-inputs
51 `(("ghc-quickcheck" ,ghc-quickcheck)))
52 (home-page "http://community.haskell.org/~ndm/tagsoup/")
53 (synopsis
54 "Parsing and extracting information from (possibly malformed) HTML/XML
55 documents")
56 (description
57 "TagSoup is a library for parsing HTML/XML. It supports the HTML 5
58 specification, and can be used to parse either well-formed XML, or
59 unstructured and malformed HTML from the web. The library also provides
60 useful functions to extract information from an HTML document, making it ideal
61 for screen-scraping.")
62 (license license:bsd-3)))
63
64 (define-public ghc-cookie
65 (package
66 (name "ghc-cookie")
67 (version "0.4.3")
68 (source
69 (origin
70 (method url-fetch)
71 (uri (string-append
72 "https://hackage.haskell.org/package/cookie/cookie-"
73 version
74 ".tar.gz"))
75 (sha256
76 (base32
77 "0qpdydhb9gw590ffabqg70x7xvjpg8l74idqnrfbhv5yrr7hryzv"))))
78 (build-system haskell-build-system)
79 (inputs
80 `(("ghc-old-locale" ,ghc-old-locale)
81 ("ghc-blaze-builder" ,ghc-blaze-builder)
82 ("ghc-text" ,ghc-text)
83 ("ghc-data-default-class" ,ghc-data-default-class)
84 ("ghc-hunit" ,ghc-hunit)
85 ("ghc-quickcheck" ,ghc-quickcheck)
86 ("ghc-tasty" ,ghc-tasty)
87 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
88 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
89 (home-page "https://github.com/snoyberg/cookie")
90 (synopsis "HTTP cookie parsing and rendering")
91 (description "HTTP cookie parsing and rendering library for Haskell.")
92 (license license:bsd-3)))
93
94 (define-public ghc-httpd-shed
95 (package
96 (name "ghc-httpd-shed")
97 (version "0.4.0.3")
98 (source
99 (origin
100 (method url-fetch)
101 (uri (string-append "https://hackage.haskell.org/package/httpd-shed/"
102 "httpd-shed-" version ".tar.gz"))
103 (sha256
104 (base32
105 "064jy1mqhnf1hvq6s04wlhmp916rd522x58djb9qixv13vc8gzxh"))))
106 (build-system haskell-build-system)
107 (inputs
108 `(("ghc-network-uri" ,ghc-network-uri)
109 ("ghc-network" ,ghc-network)))
110 (home-page "https://hackage.haskell.org/package/httpd-shed")
111 (synopsis "Simple web-server with an interact style API")
112 (description
113 "This web server promotes a function from @code{Request} to @code{IO
114 Response} into a local web server. The user can decide how to interpret the
115 requests, and the library is intended for implementing Ajax APIs.")
116 (license license:bsd-3)))
117
118 (define-public ghc-http-types
119 (package
120 (name "ghc-http-types")
121 (version "0.12.1")
122 (source
123 (origin
124 (method url-fetch)
125 (uri (string-append "https://hackage.haskell.org/package/http-types/"
126 "http-types-" version ".tar.gz"))
127 (sha256
128 (base32
129 "1wv9k6nlvkdsxwlr7gaynphvzmvi5211gvwq96mbcxgk51a739rz"))))
130 (build-system haskell-build-system)
131 (native-inputs
132 `(("ghc-doctest" ,ghc-doctest)
133 ("ghc-hspec" ,ghc-hspec)
134 ("ghc-quickcheck" ,ghc-quickcheck)
135 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
136 ("hspec-discover" ,hspec-discover)))
137 (inputs
138 `(("ghc-case-insensitive" ,ghc-case-insensitive)
139 ("ghc-blaze-builder" ,ghc-blaze-builder)
140 ("ghc-text" ,ghc-text)))
141 (home-page "https://github.com/aristidb/http-types")
142 (synopsis "Generic HTTP types for Haskell")
143 (description "This package provides generic HTTP types for Haskell (for
144 both client and server code).")
145 (license license:bsd-3)))
146
147 (define-public ghc-http
148 (package
149 (name "ghc-http")
150 (version "4000.3.12")
151 (outputs '("out" "doc"))
152 (source
153 (origin
154 (method url-fetch)
155 (uri (string-append "https://hackage.haskell.org/package/HTTP/"
156 "HTTP-" version ".tar.gz"))
157 (sha256
158 (base32
159 "140r6qy1ay25piv0z3hih11zhigyi08nkwc32097j43pjff6mzx3"))))
160 (build-system haskell-build-system)
161 (native-inputs
162 `(("ghc-httpd-shed" ,ghc-httpd-shed)
163 ("ghc-hunit" ,ghc-hunit)
164 ("ghc-test-framework" ,ghc-test-framework)
165 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
166 (inputs
167 `(("ghc-case-insensitive" ,ghc-case-insensitive)
168 ("ghc-conduit" ,ghc-conduit)
169 ("ghc-conduit-extra" ,ghc-conduit-extra)
170 ("ghc-http-types" ,ghc-http-types)
171 ("ghc-old-time" ,ghc-old-time)
172 ("ghc-parsec" ,ghc-parsec)
173 ("ghc-puremd5" ,ghc-puremd5)
174 ("ghc-mtl" ,ghc-mtl)
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.1")
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 "0n4mi8z77qaggfyq17z79cl304nf1f4h6gag60v4wjwghvmj7yn1"))))
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.6.1")
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 "0dknh28kyarnzqrsc80ssalxjrq0qbv7ir49247p2grb7rh0dqgj"))))
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-mtl" ,ghc-mtl)
354 ("ghc-exceptions" ,ghc-exceptions)
355 ("ghc-unliftio" ,ghc-unliftio)))
356 (native-inputs
357 `(("ghc-hunit" ,ghc-hunit)
358 ("ghc-hspec" ,ghc-hspec)
359 ("ghc-data-default-class" ,ghc-data-default-class)
360 ("ghc-connection" ,ghc-connection)
361 ("ghc-warp-tls" ,ghc-warp-tls)
362 ("ghc-blaze-builder" ,ghc-blaze-builder)
363 ("ghc-text" ,ghc-text)
364 ("ghc-conduit" ,ghc-conduit)
365 ("ghc-utf8-string" ,ghc-utf8-string)
366 ("ghc-case-insensitive" ,ghc-case-insensitive)
367 ("ghc-lifted-base" ,ghc-lifted-base)
368 ("ghc-network" ,ghc-network)
369 ("ghc-wai" ,ghc-wai)
370 ("ghc-warp" ,ghc-warp)
371 ("ghc-wai-conduit" ,ghc-wai-conduit)
372 ("ghc-http-types" ,ghc-http-types)
373 ("ghc-http-client" ,ghc-http-client)
374 ("ghc-cookie" ,ghc-cookie)
375 ("ghc-conduit-extra" ,ghc-conduit-extra)
376 ("ghc-streaming-commons" ,ghc-streaming-commons)
377 ("ghc-aeson" ,ghc-aeson)
378 ("ghc-temporary" ,ghc-temporary)
379 ("ghc-resourcet" ,ghc-resourcet)))
380 (home-page "https://hackage.haskell.org/package/http-conduit")
381 (synopsis "HTTP/HTTPS client with conduit interface")
382 (description "This library uses attoparsec for parsing the actual
383 contents of the HTTP connection. It also provides higher-level functions
384 which allow you to avoid direct usage of conduits.")
385 (license license:bsd-3)))
386
387 (define-public ghc-wai
388 (package
389 (name "ghc-wai")
390 (version "3.2.1.1")
391 (source
392 (origin
393 (method url-fetch)
394 (uri (string-append
395 "https://hackage.haskell.org/package/wai/wai-"
396 version
397 ".tar.gz"))
398 (sha256
399 (base32
400 "08afasnirja21vr0bmzcywz4w29x736dmdv7h8nnh1l8bn7sd02x"))))
401 (build-system haskell-build-system)
402 (inputs
403 `(("ghc-bytestring-builder" ,ghc-bytestring-builder)
404 ("ghc-unix-compat" ,ghc-unix-compat)
405 ("ghc-vault" ,ghc-vault)
406 ("ghc-blaze-builder" ,ghc-blaze-builder)
407 ("ghc-network" ,ghc-network)
408 ("ghc-text" ,ghc-text)
409 ("ghc-http-types" ,ghc-http-types)))
410 (native-inputs
411 `(("hspec-discover" ,hspec-discover)
412 ("ghc-quickcheck" ,ghc-quickcheck)
413 ("ghc-hunit" ,ghc-hunit)
414 ("ghc-hspec" ,ghc-hspec)))
415 (home-page "https://hackage.haskell.org/package/wai")
416 (synopsis "Web application interface for Haskell")
417 (description "This package provides a Web Application Interface (WAI)
418 library for the Haskell language. It defines a common protocol for
419 communication between web applications and web servers.")
420 (license license:bsd-3)))
421
422 (define-public ghc-wai-logger
423 (package
424 (name "ghc-wai-logger")
425 (version "2.3.0")
426 (source
427 (origin
428 (method url-fetch)
429 (uri (string-append
430 "https://hackage.haskell.org/package/wai-logger/wai-logger-"
431 version
432 ".tar.gz"))
433 (sha256
434 (base32
435 "1w0b0vinsyqr37wciljkz8g5dcmfi2r210lq194a0wkycly9kkch"))))
436 (build-system haskell-build-system)
437 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find libraries exported
438 ; by propagated-inputs.
439 (inputs
440 `(("ghc-auto-update" ,ghc-auto-update)
441 ("ghc-byteorder" ,ghc-byteorder)
442 ("ghc-easy-file" ,ghc-easy-file)
443 ("ghc-unix-time" ,ghc-unix-time)
444 ("ghc-blaze-builder" ,ghc-blaze-builder)
445 ("ghc-case-insensitive" ,ghc-case-insensitive)
446 ("ghc-fast-logger" ,ghc-fast-logger)
447 ("ghc-http-types" ,ghc-http-types)
448 ("ghc-network" ,ghc-network)
449 ("ghc-wai" ,ghc-wai)))
450 (home-page "https://hackage.haskell.org/package/wai-logger")
451 (synopsis "Logging system for WAI")
452 (description "This package provides the logging system for WAI.")
453 (license license:bsd-3)))
454
455 (define-public ghc-wai-extra
456 (package
457 (name "ghc-wai-extra")
458 (version "3.0.18")
459 (source
460 (origin
461 (method url-fetch)
462 (uri (string-append
463 "https://hackage.haskell.org/package/wai-extra/wai-extra-"
464 version
465 ".tar.gz"))
466 (sha256
467 (base32
468 "0r079mqqdv14fp97w0rigdpwk6b88grpjlqsjc5y8bbc0skf5za2"))))
469 (build-system haskell-build-system)
470 (inputs
471 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
472 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
473 ("ghc-cookie" ,ghc-cookie)
474 ("ghc-blaze-builder" ,ghc-blaze-builder)
475 ("ghc-network" ,ghc-network)
476 ("ghc-lifted-base" ,ghc-lifted-base)
477 ("ghc-streaming-commons" ,ghc-streaming-commons)
478 ("ghc-stringsearch" ,ghc-stringsearch)
479 ("ghc-resourcet" ,ghc-resourcet)
480 ("ghc-fast-logger" ,ghc-fast-logger)
481 ("ghc-wai-logger" ,ghc-wai-logger)
482 ("ghc-zlib" ,ghc-zlib)
483 ("ghc-word8" ,ghc-word8)
484 ("ghc-iproute" ,ghc-iproute)
485 ("ghc-void" ,ghc-void)
486 ("ghc-wai" ,ghc-wai)
487 ("ghc-http-types" ,ghc-http-types)
488 ("ghc-text" ,ghc-text)
489 ("ghc-case-insensitive" ,ghc-case-insensitive)
490 ("ghc-data-default-class" ,ghc-data-default-class)
491 ("ghc-unix-compat" ,ghc-unix-compat)
492 ("ghc-vault" ,ghc-vault)
493 ("ghc-aeson" ,ghc-aeson)))
494 (native-inputs
495 `(("hspec-discover" ,hspec-discover)
496 ("ghc-hspec" ,ghc-hspec)
497 ("ghc-hunit" ,ghc-hunit)))
498 (home-page "https://github.com/yesodweb/wai")
499 (synopsis "Some basic WAI handlers and middleware")
500 (description "This library provides basic WAI handlers and middleware
501 functionality.")
502 (license license:expat)))
503
504 (define-public ghc-wai-conduit
505 (package
506 (name "ghc-wai-conduit")
507 (version "3.0.0.3")
508 (source
509 (origin
510 (method url-fetch)
511 (uri (string-append "https://hackage.haskell.org/package/"
512 "wai-conduit-" version "/"
513 "wai-conduit-" version ".tar.gz"))
514 (sha256
515 (base32
516 "1zvsiwjq2mvkb9sjgp3ly9m968m7a2jjzr4id6jpi3mmqykj15z4"))))
517 (build-system haskell-build-system)
518 (inputs
519 `(("ghc-conduit" ,ghc-conduit)
520 ("ghc-http-types" ,ghc-http-types)
521 ("ghc-wai" ,ghc-wai)
522 ("ghc-blaze-builder" ,ghc-blaze-builder)))
523 (home-page "https://github.com/yesodweb/wai")
524 (synopsis "Conduit wrappers for Haskell's WAI")
525 (description "This package provides data streaming abstraction for
526 Haskell's Web Application Interface (WAI).")
527 (license license:expat)))
528
529 (define-public ghc-warp
530 (package
531 (name "ghc-warp")
532 (version "3.2.11.1")
533 (source
534 (origin
535 (method url-fetch)
536 (uri (string-append "https://hackage.haskell.org/package/"
537 "warp-" version "/" "warp-" version
538 ".tar.gz"))
539 (sha256
540 (base32
541 "1zp5cy0bbj508vdvms1n5z80z37m253kwsqc5a83cfc990n6fgw5"))))
542 (build-system haskell-build-system)
543 (arguments
544 `(#:tests? #f)) ; FIXME: Test-Suite `spec` fails.
545 (inputs
546 `(("ghc-async" ,ghc-async)
547 ("ghc-auto-update" ,ghc-auto-update)
548 ("ghc-blaze-builder" ,ghc-blaze-builder)
549 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
550 ("ghc-case-insensitive" ,ghc-case-insensitive)
551 ("ghc-hashable" ,ghc-hashable)
552 ("ghc-http-types" ,ghc-http-types)
553 ("ghc-iproute" ,ghc-iproute)
554 ("ghc-network" ,ghc-network)
555 ("ghc-stm" ,ghc-stm)
556 ("ghc-streaming-commons" ,ghc-streaming-commons)
557 ("ghc-text" ,ghc-text)
558 ("ghc-unix-compat" ,ghc-unix-compat)
559 ("ghc-vault" ,ghc-vault)
560 ("ghc-wai" ,ghc-wai)
561 ("ghc-word8" ,ghc-word8)
562 ("ghc-lifted-base" ,ghc-lifted-base)
563 ("ghc-http-date" ,ghc-http-date)
564 ("ghc-simple-sendfile" ,ghc-simple-sendfile)
565 ("ghc-http2" ,ghc-http2)))
566 (native-inputs
567 `(("ghc-silently" ,ghc-silently)
568 ("ghc-hspec" ,ghc-hspec)
569 ("ghc-auto-update" ,ghc-auto-update)
570 ("ghc-doctest" ,ghc-doctest)
571 ("ghc-quickcheck" ,ghc-quickcheck)
572 ("ghc-hunit" ,ghc-hunit)
573 ("ghc-http" ,ghc-http)
574 ("hspec-discover" ,hspec-discover)))
575 (home-page "http://github.com/yesodweb/wai")
576 (synopsis "HTTP server library for Haskell's WAI")
577 (description "Warp is a server library for HTTP/1.x and HTTP/2
578 based WAI (Web Application Interface in Haskell).")
579 (license license:expat)))
580
581 (define-public ghc-warp-tls
582 (package
583 (name "ghc-warp-tls")
584 (version "3.2.3")
585 (source
586 (origin
587 (method url-fetch)
588 (uri (string-append "https://hackage.haskell.org/package/"
589 "warp-tls-" version "/"
590 "warp-tls-" version ".tar.gz"))
591 (sha256
592 (base32
593 "14m2bzk5ivz9gdpxlcj6qnh46f2lycm1ybdjnfkj2876zrqwii7m"))))
594 (build-system haskell-build-system)
595 (inputs
596 `(("ghc-cryptonite" ,ghc-cryptonite)
597 ("ghc-data-default-class" ,ghc-data-default-class)
598 ("ghc-network" ,ghc-network)
599 ("ghc-streaming-commons" ,ghc-streaming-commons)
600 ("ghc-tls" ,ghc-tls)
601 ("ghc-wai" ,ghc-wai)
602 ("ghc-warp" ,ghc-warp)))
603 (home-page "http://github.com/yesodweb/wai")
604 (synopsis "SSL/TLS support for Warp")
605 (description "This package provides SSL/TLS support for Warp,
606 a WAI handler, via the native Haskell TLS implementation.")
607 (license license:expat)))
608
609 (define-public ghc-xss-sanitize
610 (package
611 (name "ghc-xss-sanitize")
612 (version "0.3.5.7")
613 (source
614 (origin
615 (method url-fetch)
616 (uri (string-append
617 "https://hackage.haskell.org/package/xss-sanitize/xss-sanitize-"
618 version ".tar.gz"))
619 (sha256
620 (base32
621 "005cmhaw9xbzkcn42jmhvcvk63bzmg4lml368xwmqdvh7r0mcn4m"))))
622 (build-system haskell-build-system)
623 (inputs
624 `(("ghc-tagsoup" ,ghc-tagsoup)
625 ("ghc-utf8-string" ,ghc-utf8-string)
626 ("ghc-css-text" ,ghc-css-text)
627 ("ghc-network-uri" ,ghc-network-uri)))
628 (native-inputs
629 `(("ghc-text" ,ghc-text)
630 ("ghc-attoparsec" ,ghc-attoparsec)
631 ("ghc-hspec" ,ghc-hspec)
632 ("ghc-hunit" ,ghc-hunit)))
633 (home-page "https://github.com/yesodweb/haskell-xss-sanitize")
634 (synopsis "Sanitize untrusted HTML to prevent XSS attacks")
635 (description "This library provides @code{sanitizeXSS}. Run untrusted
636 HTML through @code{Text.HTML.SanitizeXSS.sanitizeXSS} to prevent XSS
637 attacks.")
638 (license license:bsd-3)))
639
640 (define-public ghc-css-text
641 (package
642 (name "ghc-css-text")
643 (version "0.1.3.0")
644 (source
645 (origin
646 (method url-fetch)
647 (uri (string-append
648 "https://hackage.haskell.org/package/css-text/css-text-"
649 version
650 ".tar.gz"))
651 (sha256
652 (base32
653 "0ynd9f4hn2sfwqzbsa0y7phmxq8za7jiblpjwx0ry8b372zhgxaz"))))
654 (build-system haskell-build-system)
655 (inputs
656 `(("ghc-text" ,ghc-text)
657 ("ghc-attoparsec" ,ghc-attoparsec)
658 ("ghc-hspec" ,ghc-hspec)
659 ("ghc-quickcheck" ,ghc-quickcheck)))
660 (home-page "http://www.yesodweb.com/")
661 (synopsis "CSS parser and renderer")
662 (description "This package provides a CSS parser and renderer for
663 Haskell.")
664 (license license:bsd-3)))
665
666 (define-public ghc-mime-types
667 (package
668 (name "ghc-mime-types")
669 (version "0.1.0.7")
670 (source (origin
671 (method url-fetch)
672 (uri (string-append "https://hackage.haskell.org/package/"
673 "mime-types/mime-types-"
674 version ".tar.gz"))
675 (sha256
676 (base32
677 "1fg9cqpp5lswk8ajlq4f41n12c2v2naz179l8dsz6zisjqj4l5l3"))))
678 (build-system haskell-build-system)
679 (inputs
680 `(("ghc-text" ,ghc-text)))
681 (home-page "https://github.com/yesodweb/wai")
682 (synopsis "Basic MIME type handling types and functions")
683 (description
684 "This library provides basic MIME type handling types and functions.")
685 (license license:expat)))
686
687 (define-public ghc-html
688 (package
689 (name "ghc-html")
690 (version "1.0.1.2")
691 (source
692 (origin
693 (method url-fetch)
694 (uri (string-append
695 "https://hackage.haskell.org/package/html/html-"
696 version
697 ".tar.gz"))
698 (sha256
699 (base32
700 "0q9hmfii62kc82ijlg238fxrzxhsivn42x5wd6ffcr9xldg4jd8c"))))
701 (build-system haskell-build-system)
702 (home-page
703 "https://hackage.haskell.org/package/html")
704 (synopsis "HTML combinator library")
705 (description
706 "This package contains a combinator library for constructing HTML
707 documents.")
708 (license license:bsd-3)))
709
710 (define-public ghc-xhtml
711 (package
712 (name "ghc-xhtml")
713 (version "3000.2.1")
714 (source
715 (origin
716 (method url-fetch)
717 (uri (string-append
718 "https://hackage.haskell.org/package/xhtml/xhtml-"
719 version
720 ".tar.gz"))
721 (sha256
722 (base32
723 "1n6wgzxbj8xf0wf1il827qidphnffb5vzhwzqlxhh70c2y10f0ik"))))
724 (build-system haskell-build-system)
725 (home-page "https://github.com/haskell/xhtml")
726 (synopsis "XHTML combinator library")
727 (description
728 "This package provides combinators for producing XHTML 1.0, including the
729 Strict, Transitional and Frameset variants.")
730 (license license:bsd-3)))
731
732 (define-public ghc-blaze-html
733 (package
734 (name "ghc-blaze-html")
735 (version "0.9.0.1")
736 (source
737 (origin
738 (method url-fetch)
739 (uri (string-append "https://hackage.haskell.org/package/"
740 "blaze-html/blaze-html-"
741 version ".tar.gz"))
742 (sha256
743 (base32
744 "0r0acv47nh75bmf7kjyfvhcwz8f02rn9x0a1l80pzgyczfrsmkmf"))))
745 (build-system haskell-build-system)
746 (arguments
747 `(#:configure-flags (list "--allow-newer=QuickCheck"
748 "--allow-newer=HUnit")))
749 (inputs
750 `(("ghc-blaze-builder" ,ghc-blaze-builder)
751 ("ghc-text" ,ghc-text)
752 ("ghc-blaze-markup" ,ghc-blaze-markup)))
753 (native-inputs
754 `(("ghc-hunit" ,ghc-hunit)
755 ("ghc-quickcheck" ,ghc-quickcheck)
756 ("ghc-test-framework" ,ghc-test-framework)
757 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
758 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
759 (home-page "http://jaspervdj.be/blaze")
760 (synopsis "Fast HTML combinator library")
761 (description "This library provides HTML combinators for Haskell.")
762 (license license:bsd-3)))
763
764 (define-public ghc-aeson
765 (package
766 (name "ghc-aeson")
767 (version "1.2.4.0")
768 (source
769 (origin
770 (method url-fetch)
771 (uri (string-append
772 "https://hackage.haskell.org/package/aeson/aeson-"
773 version
774 ".tar.gz"))
775 (sha256
776 (base32
777 "16zwpd07cmhs58wwsqbhxy3b58gqw8w5nr7nf6lwi4nvznjdn09l"))))
778 (build-system haskell-build-system)
779 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
780 (inputs
781 `(("ghc-attoparsec" ,ghc-attoparsec)
782 ("ghc-base-compat" ,ghc-base-compat)
783 ("ghc-dlist" ,ghc-dlist)
784 ("ghc-hashable" ,ghc-hashable)
785 ("ghc-scientific" ,ghc-scientific)
786 ("ghc-tagged" ,ghc-tagged)
787 ("ghc-text" ,ghc-text)
788 ("ghc-th-abstraction" ,ghc-th-abstraction)
789 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
790 ("ghc-unordered-containers" ,ghc-unordered-containers)
791 ("ghc-uuid-types" ,ghc-uuid-types)
792 ("ghc-vector" ,ghc-vector)
793 ("ghc-hunit" ,ghc-hunit)
794 ("ghc-quickcheck" ,ghc-quickcheck)
795 ("ghc-integer-logarithms" ,ghc-integer-logarithms)
796 ("ghc-base-orphans" ,ghc-base-orphans)
797 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
798 ("ghc-generic-deriving" ,ghc-generic-deriving)
799 ("ghc-test-framework" ,ghc-test-framework)
800 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
801 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
802 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
803 ("ghc-hashable-time" ,ghc-hashable-time)))
804 (home-page "https://github.com/bos/aeson")
805 (synopsis "Fast JSON parsing and encoding")
806 (description "This package provides a JSON parsing and encoding library
807 for Haskell, optimized for ease of use and high performance. (A note on
808 naming: in Greek mythology, Aeson was the father of Jason.)")
809 (license license:bsd-3)))
810
811 (define-public ghc-aeson-for-pandoc-1
812 (package (inherit ghc-aeson)
813 (version "1.1.2.0")
814 (source
815 (origin
816 (method url-fetch)
817 (uri (string-append "https://hackage.haskell.org/package/aeson/aeson-"
818 version ".tar.gz"))
819 (sha256
820 (base32
821 "1zy5z8pzvh53qkjm0nm3f4rwqfqg3867ck8ncd6mrxpcyvxqqj1p"))))))
822
823 (define-public ghc-aeson-pretty
824 (package
825 (name "ghc-aeson-pretty")
826 (version "0.8.5")
827 (source (origin
828 (method url-fetch)
829 (uri (string-append
830 "https://hackage.haskell.org/package/aeson-pretty/aeson-pretty-"
831 version ".tar.gz"))
832 (sha256
833 (base32
834 "1yd98972srlbkn0f2jhrb3f443j9wnq2fnw5gbxjxzmkcinfh5yx"))))
835 (build-system haskell-build-system)
836 (inputs
837 `(("ghc-aeson" ,ghc-aeson)
838 ("ghc-base-compat" ,ghc-base-compat)
839 ("ghc-scientific" ,ghc-scientific)
840 ("ghc-vector" ,ghc-vector)
841 ("ghc-text" ,ghc-text)
842 ("ghc-unordered-containers" ,ghc-unordered-containers)
843 ("ghc-attoparsec" ,ghc-attoparsec)
844 ("ghc-cmdargs" ,ghc-cmdargs)))
845 (home-page "https://github.com/informatikr/aeson-pretty")
846 (synopsis "JSON pretty-printing library and command-line tool")
847 (description
848 "This package provides a JSON pretty-printing library compatible with aeson
849 as well as a command-line tool to improve readabilty of streams of JSON data.
850 The library provides the function @code{encodePretty}. It is a drop-in
851 replacement for aeson's @code{encode} function, producing JSON-ByteStrings for
852 human readers. The command-line tool reads JSON from stdin and writes
853 prettified JSON to stdout. It also offers a complementary \"compact\"-mode,
854 essentially the opposite of pretty-printing.")
855 (license license:bsd-3)))
856
857 (define-public ghc-aeson-qq
858 (package
859 (name "ghc-aeson-qq")
860 (version "0.8.2")
861 (source (origin
862 (method url-fetch)
863 (uri (string-append "https://hackage.haskell.org/package/"
864 "aeson-qq/aeson-qq-" version ".tar.gz"))
865 (sha256
866 (base32
867 "0ln13jqyfh5726hdrk1rad9a6cgrrj201plmwcfcpvq18v4m5ckd"))))
868 (build-system haskell-build-system)
869 (inputs
870 `(("ghc-base-compat" ,ghc-base-compat)
871 ("ghc-text" ,ghc-text)
872 ("ghc-attoparsec" ,ghc-attoparsec)
873 ("ghc-scientific" ,ghc-scientific)
874 ("ghc-vector" ,ghc-vector)
875 ("ghc-aeson" ,ghc-aeson)
876 ("ghc-parsec" ,ghc-parsec)
877 ("ghc-haskell-src-meta" ,ghc-haskell-src-meta)))
878 (native-inputs
879 `(("ghc-hspec" ,ghc-hspec)
880 ("hspec-discover" ,hspec-discover)))
881 (home-page "https://github.com/zalora/aeson-qq")
882 (synopsis "JSON quasiquoter for Haskell")
883 (description
884 "aeson-qq provides a JSON quasiquoter for Haskell. This package exposes
885 the function @code{aesonQQ} that compile-time converts a string representation
886 of a JSON value into a @code{Data.Aeson.Value}.")
887 (license license:expat)))
888
889 (define-public ghc-multipart
890 (package
891 (name "ghc-multipart")
892 (version "0.1.2")
893 (source
894 (origin
895 (method url-fetch)
896 (uri (string-append
897 "https://hackage.haskell.org/package/multipart/multipart-"
898 version
899 ".tar.gz"))
900 (sha256
901 (base32
902 "0g04jhyw1ib1s7c9bcldyyn4n90qd9x7dmvic4vgq57bgcqgnhz5"))))
903 (build-system haskell-build-system)
904 (inputs `(("ghc-parsec" ,ghc-parsec)))
905 (home-page
906 "http://www.github.com/silkapp/multipart")
907 (synopsis
908 "HTTP multipart library")
909 (description
910 "HTTP multipart split out of the cgi package, for Haskell.")
911 (license license:bsd-3)))
912
913 (define-public ghc-uri-encode
914 (package
915 (name "ghc-uri-encode")
916 (version "1.5.0.5")
917 (source
918 (origin
919 (method url-fetch)
920 (uri (string-append
921 "https://hackage.haskell.org/package/uri-encode/uri-encode-"
922 version ".tar.gz"))
923 (sha256
924 (base32
925 "11miwb5vvnn17m92ykz1pzg9x6s8fbpz3mmsyqs2s4b3mn55haz8"))))
926 (build-system haskell-build-system)
927 (inputs
928 `(("ghc-text" ,ghc-text)
929 ("ghc-utf8-string" ,ghc-utf8-string)
930 ("ghc-network-uri" ,ghc-network-uri)))
931 (home-page "https://hackage.haskell.org/package/uri-encode")
932 (synopsis "Unicode aware uri-encoding")
933 (description "Unicode aware uri-encoding for Haskell.")
934 (license license:bsd-3)))
935
936 (define-public ghc-path-pieces
937 (package
938 (name "ghc-path-pieces")
939 (version "0.2.1")
940 (source
941 (origin
942 (method url-fetch)
943 (uri (string-append "https://hackage.haskell.org/package/"
944 "path-pieces-" version "/"
945 "path-pieces-" version ".tar.gz"))
946 (sha256
947 (base32
948 "0vx3sivcsld76058925hym2j6hm3g71f0qjr7v59f1g2afgx82q8"))))
949 (build-system haskell-build-system)
950 (inputs `(("ghc-text" ,ghc-text)))
951 (native-inputs `(("ghc-hunit" ,ghc-hunit)
952 ("ghc-hspec" ,ghc-hspec)
953 ("ghc-quickcheck" ,ghc-quickcheck)))
954 (home-page "https://github.com/yesodweb/path-pieces")
955 (synopsis "Used in Yesod to automatically marshall data in the request path")
956 (description "This Haskell package provides two typeclasses for converting
957 Haskell data types to and from route pieces.")
958 (license license:bsd-3)))
959
960 (define-public ghc-skein
961 (package
962 (name "ghc-skein")
963 (version "1.0.9.4")
964 (source
965 (origin
966 (method url-fetch)
967 (uri (string-append "https://hackage.haskell.org/package/"
968 "skein-" version "/"
969 "skein-" version ".tar.gz"))
970 (sha256
971 (base32
972 "1jdqdk0rz2wnvw735clnj8jh0a9rkrbqjg7vk3w6wczdql6cm0pq"))))
973 (build-system haskell-build-system)
974 (inputs `(("ghc-cereal" ,ghc-cereal)
975 ("ghc-tagged" ,ghc-tagged)
976 ("ghc-crpto-api" ,ghc-crypto-api)))
977 (native-inputs `(("ghc-hspec" ,ghc-hspec)))
978 (home-page "https://github.com/yesodweb/path-pieces")
979 (synopsis "Skein family of cryptographic hash functions for Haskell")
980 (description "@uref{(http://www.skein-hash.info, Skein} is a family of
981 fast secure cryptographic hash functions designed by Niels Ferguson, Stefan
982 Lucks, Bruce Schneier, Doug Whiting, Mihir Bellare, Tadayoshi Kohno, Jon
983 Callas and Jesse Walker.
984
985 This Haskell package uses bindings to the optimized C implementation of Skein.")
986 (license license:bsd-3)))
987
988 (define-public ghc-clientsession
989 (package
990 (name "ghc-clientsession")
991 (version "0.9.1.2")
992 (source
993 (origin
994 (method url-fetch)
995 (uri (string-append "https://hackage.haskell.org/package/"
996 "clientsession-" version "/"
997 "clientsession-" version ".tar.gz"))
998 (sha256
999 (base32
1000 "0s6h4ykj16mpf7nlw2iqn2ji0p8g1fn5ni0s7yqaili6vv2as5ar"))))
1001 (build-system haskell-build-system)
1002 (inputs `(("ghc-cereal" ,ghc-cereal)
1003 ("ghc-tagged" ,ghc-tagged)
1004 ("ghc-crypto-api" ,ghc-crypto-api)
1005 ("ghc-skein" ,ghc-skein)
1006 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
1007 ("ghc-entropy" ,ghc-entropy)
1008 ("ghc-cprng-aes" ,ghc-cprng-aes)
1009 ("ghc-cipher-aes" ,ghc-cipher-aes)
1010 ("ghc-crypto-random" ,ghc-crypto-random)
1011 ("ghc-setenv" ,ghc-setenv)))
1012 (native-inputs `(("ghc-hunit" ,ghc-hunit)
1013 ("ghc-hspec" ,ghc-hspec)
1014 ("ghc-quickcheck" ,ghc-quickcheck)))
1015 (home-page "https://github.com/yesodweb/clientsession/tree/master")
1016 (synopsis "Haskell library for securely store session data in a
1017 client-side cookie")
1018 (description "This Haskell package achieves security through AES-CTR
1019 encryption and Skein-MAC-512-256 authentication. Uses Base64 encoding to
1020 avoid any issues with characters.")
1021 (license license:expat)))
1022
1023 (define-public ghc-yesod-core
1024 (package
1025 (name "ghc-yesod-core")
1026 (version "1.4.37")
1027 (source
1028 (origin
1029 (method url-fetch)
1030 (uri (string-append "https://hackage.haskell.org/package/"
1031 "yesod-core-" version "/"
1032 "yesod-core-" version ".tar.gz"))
1033 (sha256
1034 (base32
1035 "0ww8hl0cx2g58zrdx3j6d5m2xwhssbajdqws1xk6rzl7rpfm1b9j"))))
1036 (build-system haskell-build-system)
1037 (inputs `(("ghc-wai" ,ghc-wai)
1038 ("ghc-extra" ,ghc-extra)
1039 ("ghc-text" ,ghc-text)
1040 ("ghc-shakespeare" ,ghc-shakespeare)
1041 ("ghc-blaze-builder" ,ghc-blaze-builder)
1042 ("ghc-mtl" ,ghc-mtl)
1043 ("ghc-clientsession" ,ghc-clientsession)
1044 ("ghc-random" ,ghc-random)
1045 ("ghc-cereal" ,ghc-cereal)
1046 ("ghc-old-locale" ,ghc-old-locale)
1047 ("ghc-unordered-containers" ,ghc-unordered-containers)
1048 ("ghc-monad-control" ,ghc-monad-control)
1049 ("ghc-transformers-base" ,ghc-transformers-base)
1050 ("ghc-cookie" ,ghc-cookie)
1051 ("ghc-http-types" ,ghc-http-types)
1052 ("ghc-case-insensitive" ,ghc-case-insensitive)
1053 ("ghc-parsec" ,ghc-parsec)
1054 ("ghc-vector" ,ghc-vector)
1055 ("ghc-aeson" ,ghc-aeson)
1056 ("ghc-fast-logger" ,ghc-fast-logger)
1057 ("ghc-wai-logger" ,ghc-wai-logger)
1058 ("ghc-monad-logger" ,ghc-monad-logger)
1059 ("ghc-conduit" ,ghc-conduit)
1060 ("ghc-resourcet" ,ghc-resourcet)
1061 ("ghc-lifted-base" ,ghc-lifted-base)
1062 ("ghc-blaze-html" ,ghc-blaze-html)
1063 ("ghc-blaze-markup" ,ghc-blaze-markup)
1064 ("ghc-data-default" ,ghc-data-default)
1065 ("ghc-safe" ,ghc-safe)
1066 ("ghc-warp" ,ghc-warp)
1067 ("ghc-unix-compat" ,ghc-unix-compat)
1068 ("ghc-conduit-extra" ,ghc-conduit-extra)
1069 ("ghc-exceptions" ,ghc-exceptions)
1070 ("ghc-deepseq-generics" ,ghc-deepseq-generics)
1071 ("ghc-mwc-random" ,ghc-mwc-random)
1072 ("ghc-primitive" ,ghc-primitive)
1073 ("ghc-word8" ,ghc-word8)
1074 ("ghc-auto-update" ,ghc-auto-update)
1075 ("ghc-semigroups" ,ghc-semigroups)
1076 ("ghc-byteable" ,ghc-byteable)))
1077 (native-inputs `(("ghc-hspec" ,ghc-hspec)
1078 ("ghc-path-pieces" ,ghc-path-pieces)
1079 ("ghc-hunit" ,ghc-hunit)
1080 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
1081 ("ghc-quickcheck" ,ghc-quickcheck)
1082 ("ghc-network" ,ghc-network)
1083 ("ghc-async" ,ghc-async)
1084 ("ghc-streaming-commons" ,ghc-streaming-commons)
1085 ("ghc-wai-extra" ,ghc-wai-extra)))
1086 (home-page "https://www.yesodweb.com")
1087 (synopsis "Core package for the Yesod web framework")
1088 (description "This Haskell package provides all core functionality, for
1089 Yesod, on which other packages can be built. It provides dispatch, handler
1090 functions, widgets, etc.")
1091 (license license:expat)))
1092
1093 (define-public ghc-yesod-persistent
1094 (package
1095 (name "ghc-yesod-persistent")
1096 (version "1.4.3")
1097 (source
1098 (origin
1099 (method url-fetch)
1100 (uri (string-append "https://hackage.haskell.org/package/"
1101 "yesod-persistent-" version "/"
1102 "yesod-persistent-" version ".tar.gz"))
1103 (sha256
1104 (base32
1105 "0kiksw46c8ww9yiwl28pkrppx8d6fhsasr0hvmsliqbrp16likj8"))))
1106 (build-system haskell-build-system)
1107 (arguments `(#:tests? #f)) ; FIXME: hspec-discover not available in PATH.
1108 (inputs `(("ghc-yesod-core" ,ghc-yesod-core)
1109 ("ghc-persistent" ,ghc-persistent)
1110 ("ghc-persistent-template" ,ghc-persistent-template)
1111 ("ghc-blaze-builder" ,ghc-blaze-builder)
1112 ("ghc-conduit" ,ghc-conduit)
1113 ("ghc-resourcet" ,ghc-resourcet)
1114 ("ghc-resource-pool" ,ghc-resource-pool)))
1115 (native-inputs `(("ghc-hspec" ,ghc-hspec)
1116 ("ghc-wai-extra" ,ghc-wai-extra)
1117 ("ghc-yesod-core" ,ghc-yesod-core)
1118 ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
1119 ("ghc-text" ,ghc-text)))
1120 (home-page "http://www.yesodweb.com/")
1121 (synopsis "Helpers for using Persistent from Yesod")
1122 (description "This Haskell package provides helpers for using Persistent
1123 from Yesod.")
1124 (license license:expat)))
1125
1126 (define-public ghc-yesod-form
1127 (package
1128 (name "ghc-yesod-form")
1129 (version "1.4.16")
1130 (source
1131 (origin
1132 (method url-fetch)
1133 (uri (string-append
1134 "https://hackage.haskell.org/package/yesod-form/yesod-form-"
1135 version
1136 ".tar.gz"))
1137 (sha256
1138 (base32
1139 "0lij3m5vn8nvh6y88r1dhk03xmmjwmjzazm307nc2wvc5fmx9p2j"))))
1140 (build-system haskell-build-system)
1141 (inputs
1142 `(("ghc-yesod-core" ,ghc-yesod-core)
1143 ("ghc-yesod-persistent" ,ghc-yesod-persistent)
1144 ("ghc-shakespeare" ,ghc-shakespeare)
1145 ("ghc-persistent" ,ghc-persistent)
1146 ("ghc-data-default" ,ghc-data-default)
1147 ("ghc-xss-sanitize" ,ghc-xss-sanitize)
1148 ("ghc-blaze-builder" ,ghc-blaze-builder)
1149 ("ghc-email-validate" ,ghc-email-validate)
1150 ("ghc-text" ,ghc-text)
1151 ("ghc-wai" ,ghc-wai)
1152 ("ghc-blaze-html" ,ghc-blaze-html)
1153 ("ghc-blaze-markup" ,ghc-blaze-markup)
1154 ("ghc-attoparsec" ,ghc-attoparsec)
1155 ("ghc-byteable" ,ghc-byteable)
1156 ("ghc-aeson" ,ghc-aeson)
1157 ("ghc-resourcet" ,ghc-resourcet)
1158 ("ghc-semigroups" ,ghc-semigroups)
1159 ("ghc-network-uri" ,ghc-network-uri)
1160 ("ghc-hspec" ,ghc-hspec)))
1161 (home-page "https://www.yesodweb.com")
1162 (synopsis "Form handling support for Yesod Web Framework")
1163 (description "This Haskell package provies a set of basic form inputs such
1164 as text, number, time, checkbox, select, textarea, etc through the
1165 @code{Yesod.Form.Fields} module. Also, there is @code{Yesod.Form.Nic} module
1166 providing richtext field using Nic editor. ")
1167 (license license:expat)))
1168
1169 (define-public ghc-yesod
1170 (package
1171 (name "ghc-yesod")
1172 (version "1.4.5")
1173 (source
1174 (origin
1175 (method url-fetch)
1176 (uri (string-append
1177 "https://hackage.haskell.org/package/yesod/yesod-"
1178 version ".tar.gz"))
1179 (sha256
1180 (base32
1181 "1sg66nq8yaas2m5nqsdrxricvcizd1ik02zqk60sxh3wna08fz16"))))
1182 (build-system haskell-build-system)
1183 (inputs
1184 `(("ghc-yesod-core" ,ghc-yesod-core)
1185 ("ghc-yesod-persistent" ,ghc-yesod-persistent)
1186 ("ghc-yesod-form" ,ghc-yesod-form)
1187 ("ghc-monad-control" ,ghc-monad-control)
1188 ("ghc-wai" ,ghc-wai)
1189 ("ghc-wai-extra" ,ghc-wai-extra)
1190 ("ghc-warp" ,ghc-warp)
1191 ("ghc-blaze-html" ,ghc-blaze-html)
1192 ("ghc-blaze-markup" ,ghc-blaze-markup)
1193 ("ghc-aeson" ,ghc-aeson)
1194 ("ghc-data-default-class" ,ghc-data-default-class)
1195 ("ghc-unordered-containers" ,ghc-unordered-containers)
1196 ("ghc-yaml" ,ghc-yaml)
1197 ("ghc-text" ,ghc-text)
1198 ("ghc-monad-logger" ,ghc-monad-logger)
1199 ("ghc-fast-logger" ,ghc-fast-logger)
1200 ("ghc-conduit" ,ghc-conduit)
1201 ("ghc-conduit-extra" ,ghc-conduit-extra)
1202 ("ghc-resourcet" ,ghc-resourcet)
1203 ("ghc-shakespeare" ,ghc-shakespeare)
1204 ("ghc-streaming-commons" ,ghc-streaming-commons)
1205 ("ghc-wai-logger" ,ghc-wai-logger)
1206 ("ghc-semigroups" ,ghc-semigroups)))
1207 (home-page "https://www.yesodweb.com")
1208 (synopsis "Framework for creating type-safe, RESTful web applications")
1209 (description "The Haskell package package groups together the various
1210 Yesod related packages into one cohesive whole. This is the version of Yesod,
1211 whereas most of the core code lives in @code{ghc-yesod-core}.")
1212 (license license:expat)))