build-system/haskell: Generate Setup.hs if needed.
[jackhill/guix/guix.git] / gnu / packages / haskell.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016 Federico Beffa <beffa@fbengineering.ch>
3 ;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
4 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
5 ;;; Copyright © 2015, 2019 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2016, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
7 ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
8 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
10 ;;; Copyright © 2016, 2017 David Craven <david@craven.ch>
11 ;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
12 ;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
13 ;;; Copyright © 2017, 2018 Alex Vong <alexvong1995@gmail.com>
14 ;;; Copyright © 2017 rsiddharth <s@ricketyspace.net>
15 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
16 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
17 ;;; Copyright © 2018, 2019 Timothy Sample <samplet@ngyro.com>
18 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
19 ;;; Copyright © 2018, 2019 Gabriel Hondet <gabrielhondet@gmail.com>
20 ;;; Copyright © 2019 Robert Vollmert <rob@vllmrt.net>
21 ;;;
22 ;;; This file is part of GNU Guix.
23 ;;;
24 ;;; GNU Guix is free software; you can redistribute it and/or modify it
25 ;;; under the terms of the GNU General Public License as published by
26 ;;; the Free Software Foundation; either version 3 of the License, or (at
27 ;;; your option) any later version.
28 ;;;
29 ;;; GNU Guix is distributed in the hope that it will be useful, but
30 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 ;;; GNU General Public License for more details.
33 ;;;
34 ;;; You should have received a copy of the GNU General Public License
35 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
36
37 (define-module (gnu packages haskell)
38 #:use-module (gnu packages)
39 #:use-module (gnu packages base)
40 #:use-module (gnu packages bootstrap)
41 #:use-module (gnu packages check)
42 #:use-module (gnu packages compression)
43 #:use-module (gnu packages elf)
44 #:use-module (gnu packages gcc)
45 #:use-module (gnu packages ghostscript)
46 #:use-module (gnu packages gl)
47 #:use-module (gnu packages graphviz)
48 #:use-module (gnu packages gtk)
49 #:use-module (gnu packages haskell-check)
50 #:use-module (gnu packages haskell-crypto)
51 #:use-module (gnu packages haskell-web)
52 #:use-module (gnu packages libffi)
53 #:use-module (gnu packages linux)
54 #:use-module (gnu packages lisp)
55 #:use-module (gnu packages lua)
56 #:use-module (gnu packages maths)
57 #:use-module (gnu packages multiprecision)
58 #:use-module (gnu packages ncurses)
59 #:use-module (gnu packages pcre)
60 #:use-module (gnu packages perl)
61 #:use-module (gnu packages pkg-config)
62 #:use-module (gnu packages python)
63 #:use-module (gnu packages sdl)
64 #:use-module (gnu packages tls)
65 #:use-module (gnu packages xml)
66 #:use-module (gnu packages xorg)
67 #:use-module (guix build-system gnu)
68 #:use-module (guix build-system haskell)
69 #:use-module (guix download)
70 #:use-module (guix git-download)
71 #:use-module ((guix licenses) #:prefix license:)
72 #:use-module (guix packages)
73 #:use-module (guix utils)
74 #:use-module (ice-9 regex)
75 #:use-module ((srfi srfi-1) #:select (alist-delete)))
76
77 (define-public cl-yale-haskell
78 (let ((commit "85f94c72a16c5f70301dd8db04cde9de2d7dd270")
79 (revision "1"))
80 (package
81 (name "cl-yale-haskell")
82 (version (string-append "2.0.5-" revision "." (string-take commit 9)))
83 (source (origin
84 (method git-fetch)
85 (uri (git-reference
86 (url "https://git.elephly.net/software/yale-haskell.git")
87 (commit commit)))
88 (file-name (string-append "yale-haskell-" commit "-checkout"))
89 (sha256
90 (base32
91 "0bal3m6ryrjamz5p93bhs9rp5msk8k7lpcqr44wd7xs9b9k8w74g"))))
92 (build-system gnu-build-system)
93 (arguments
94 `(#:tests? #f ; no tests
95 ;; Stripping binaries leads to a broken executable lisp system image.
96 #:strip-binaries? #f
97 #:make-flags
98 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
99 #:phases
100 (modify-phases %standard-phases
101 (replace 'configure
102 (lambda _
103 (setenv "PRELUDE" "./progs/prelude")
104 (setenv "HASKELL_LIBRARY" "./progs/lib")
105 (setenv "PRELUDEBIN" "./progs/prelude/clisp")
106 (setenv "HASKELLPROG" "./bin/clisp-haskell")
107 #t)))))
108 (inputs
109 `(("clisp" ,clisp)))
110 (home-page "https://git.elephly.net/software/yale-haskell.git")
111 (synopsis "Port of the Yale Haskell system to CLISP")
112 (description "This package provides the Yale Haskell system running on
113 top of CLISP.")
114 (license license:bsd-4))))
115
116 (define ghc-bootstrap-x86_64-7.8.4
117 (origin
118 (method url-fetch)
119 (uri
120 "https://www.haskell.org/ghc/dist/7.8.4/ghc-7.8.4-x86_64-unknown-linux-deb7.tar.xz")
121 (sha256
122 (base32
123 "13azsl53xgj20mi1hj9x0xb32vvcvs6cpmvwx6znxhas7blh0bpn"))))
124
125 (define ghc-bootstrap-i686-7.8.4
126 (origin
127 (method url-fetch)
128 (uri
129 "https://www.haskell.org/ghc/dist/7.8.4/ghc-7.8.4-i386-unknown-linux-deb7.tar.xz")
130 (sha256
131 (base32
132 "0wj5s435j0zgww70bj1d3f6wvnnpzlxwvwcyh2qv4qjq5z8j64kg"))))
133
134 ;; 43 tests out of 3965 fail.
135 ;;
136 ;; Most of them do not appear to be serious:
137 ;;
138 ;; - some tests generate files referring to "/bin/sh" and "/bin/ls". I've not
139 ;; figured out how these references are generated.
140 ;;
141 ;; - Some tests allocate more memory than expected (ca. 3% above upper limit)
142 ;;
143 ;; - Some tests try to load unavailable libriries: Control.Concurrent.STM,
144 ;; Data.Vector, Control.Monad.State.
145 ;;
146 ;; - Test posix010 tries to check the existence of a user on the system:
147 ;; getUserEntryForName: does not exist (no such user)
148 (define-public ghc-7
149 (package
150 (name "ghc")
151 (version "7.10.2")
152 (source
153 (origin
154 (method url-fetch)
155 (uri (string-append "https://www.haskell.org/ghc/dist/"
156 version "/" name "-" version "-src.tar.xz"))
157 (sha256
158 (base32
159 "1x8m4rp2v7ydnrz6z9g8x7z3x3d3pxhv2pixy7i7hkbqbdsp7kal"))))
160 (build-system gnu-build-system)
161 (supported-systems '("i686-linux" "x86_64-linux"))
162 (outputs '("out" "doc"))
163 (inputs
164 `(("gmp" ,gmp)
165 ("ncurses" ,ncurses)
166 ("libffi" ,libffi)
167 ("ghc-testsuite"
168 ,(origin
169 (method url-fetch)
170 (uri (string-append
171 "https://www.haskell.org/ghc/dist/"
172 version "/" name "-" version "-testsuite.tar.xz"))
173 (sha256
174 (base32
175 "0qp9da9ar87zbyn6wjgacd2ic1vgzbi3cklxnhsmjqyafv9qaj4b"))))))
176 (native-inputs
177 `(("perl" ,perl)
178 ("python" ,python-2) ; for tests (fails with python-3)
179 ("ghostscript" ,ghostscript) ; for tests
180 ("patchelf" ,patchelf)
181 ;; GHC is built with GHC. Therefore we need bootstrap binaries.
182 ("ghc-binary"
183 ,(if (string-match "x86_64" (or (%current-target-system) (%current-system)))
184 ghc-bootstrap-x86_64-7.8.4
185 ghc-bootstrap-i686-7.8.4))))
186 (arguments
187 `(#:test-target "test"
188 ;; We get a smaller number of test failures by disabling parallel test
189 ;; execution.
190 #:parallel-tests? #f
191
192 ;; The DSOs use $ORIGIN to refer to each other, but (guix build
193 ;; gremlin) doesn't support it yet, so skip this phase.
194 #:validate-runpath? #f
195
196 ;; Don't pass --build=<triplet>, because the configure script
197 ;; auto-detects slightly different triplets for --host and --target and
198 ;; then complains that they don't match.
199 #:build #f
200
201 #:modules ((guix build gnu-build-system)
202 (guix build utils)
203 (guix build rpath)
204 (srfi srfi-26)
205 (srfi srfi-1))
206 #:imported-modules (,@%gnu-build-system-modules
207 (guix build rpath))
208 #:configure-flags
209 (list
210 (string-append "--with-gmp-libraries="
211 (assoc-ref %build-inputs "gmp") "/lib")
212 (string-append "--with-gmp-includes="
213 (assoc-ref %build-inputs "gmp") "/include")
214 "--with-system-libffi"
215 (string-append "--with-ffi-libraries="
216 (assoc-ref %build-inputs "libffi") "/lib")
217 (string-append "--with-ffi-includes="
218 (assoc-ref %build-inputs "libffi") "/include"))
219 ;; FIXME: The user-guide needs dblatex, docbook-xsl and docbook-utils.
220 ;; Currently we do not have the last one.
221 ;; #:make-flags
222 ;; (list "BUILD_DOCBOOK_HTML = YES")
223 #:phases
224 (let* ((ghc-bootstrap-path
225 (string-append (getcwd) "/" ,name "-" ,version "/ghc-bin"))
226 (ghc-bootstrap-prefix
227 (string-append ghc-bootstrap-path "/usr" )))
228 (alist-cons-after
229 'unpack-bin 'unpack-testsuite-and-fix-bins
230 (lambda* (#:key inputs outputs #:allow-other-keys)
231 (with-directory-excursion ".."
232 (copy-file (assoc-ref inputs "ghc-testsuite")
233 "ghc-testsuite.tar.xz")
234 (system* "tar" "xvf" "ghc-testsuite.tar.xz"))
235 (substitute*
236 (list "testsuite/timeout/Makefile"
237 "testsuite/timeout/timeout.py"
238 "testsuite/timeout/timeout.hs"
239 "testsuite/tests/rename/prog006/Setup.lhs"
240 "testsuite/tests/programs/life_space_leak/life.test"
241 "libraries/process/System/Process/Internals.hs"
242 "libraries/unix/cbits/execvpe.c")
243 (("/bin/sh") (which "sh"))
244 (("/bin/rm") "rm"))
245 #t)
246 (alist-cons-after
247 'unpack 'unpack-bin
248 (lambda* (#:key inputs outputs #:allow-other-keys)
249 (mkdir-p ghc-bootstrap-prefix)
250 (with-directory-excursion ghc-bootstrap-path
251 (copy-file (assoc-ref inputs "ghc-binary")
252 "ghc-bin.tar.xz")
253 (zero? (system* "tar" "xvf" "ghc-bin.tar.xz"))))
254 (alist-cons-before
255 'install-bin 'configure-bin
256 (lambda* (#:key inputs outputs #:allow-other-keys)
257 (let* ((binaries
258 (list
259 "./utils/ghc-pwd/dist-install/build/tmp/ghc-pwd"
260 "./utils/hpc/dist-install/build/tmp/hpc"
261 "./utils/haddock/dist/build/tmp/haddock"
262 "./utils/hsc2hs/dist-install/build/tmp/hsc2hs"
263 "./utils/runghc/dist-install/build/tmp/runghc"
264 "./utils/ghc-cabal/dist-install/build/tmp/ghc-cabal"
265 "./utils/hp2ps/dist/build/tmp/hp2ps"
266 "./utils/ghc-pkg/dist-install/build/tmp/ghc-pkg"
267 "./utils/unlit/dist/build/tmp/unlit"
268 "./ghc/stage2/build/tmp/ghc-stage2"))
269 (gmp (assoc-ref inputs "gmp"))
270 (gmp-lib (string-append gmp "/lib"))
271 (gmp-include (string-append gmp "/include"))
272 (ncurses-lib
273 (string-append (assoc-ref inputs "ncurses") "/lib"))
274 (ld-so (string-append (assoc-ref inputs "libc")
275 ,(glibc-dynamic-linker)))
276 (libtinfo-dir
277 (string-append ghc-bootstrap-prefix
278 "/lib/ghc-7.8.4/terminfo-0.4.0.0")))
279 (with-directory-excursion
280 (string-append ghc-bootstrap-path "/ghc-7.8.4")
281 (setenv "CONFIG_SHELL" (which "bash"))
282 (setenv "LD_LIBRARY_PATH" gmp-lib)
283 ;; The binaries have "/lib64/ld-linux-x86-64.so.2" hardcoded.
284 (for-each
285 (cut system* "patchelf" "--set-interpreter" ld-so <>)
286 binaries)
287 ;; The binaries include a reference to libtinfo.so.5 which
288 ;; is a subset of libncurses.so.5. We create a symlink in a
289 ;; directory included in the bootstrap binaries rpath.
290 (mkdir-p libtinfo-dir)
291 (symlink
292 (string-append ncurses-lib "/libncursesw.so."
293 ;; Extract "6.0" from "6.0-20170930" if a
294 ;; dash-separated version tag exists.
295 ,(let* ((v (package-version ncurses))
296 (d (or (string-index v #\-)
297 (string-length v))))
298 (version-major+minor (string-take v d))))
299 (string-append libtinfo-dir "/libtinfo.so.5"))
300
301 (setenv "PATH"
302 (string-append (getenv "PATH") ":"
303 ghc-bootstrap-prefix "/bin"))
304 (system*
305 (string-append (getcwd) "/configure")
306 (string-append "--prefix=" ghc-bootstrap-prefix)
307 (string-append "--with-gmp-libraries=" gmp-lib)
308 (string-append "--with-gmp-includes=" gmp-include)))))
309 (alist-cons-before
310 'configure 'install-bin
311 (lambda* (#:key inputs outputs #:allow-other-keys)
312 (with-directory-excursion
313 (string-append ghc-bootstrap-path "/ghc-7.8.4")
314 (zero? (system* "make" "install"))))
315 %standard-phases)))))))
316 (native-search-paths (list (search-path-specification
317 (variable "GHC_PACKAGE_PATH")
318 (files (list
319 (string-append "lib/ghc-" version)))
320 (file-pattern ".*\\.conf\\.d$")
321 (file-type 'directory))))
322 (home-page "https://www.haskell.org/ghc")
323 (synopsis "The Glasgow Haskell Compiler")
324 (description
325 "The Glasgow Haskell Compiler (GHC) is a state-of-the-art compiler and
326 interactive environment for the functional language Haskell.")
327 (license license:bsd-3)))
328
329 (define-public ghc-8.0
330 (package
331 (name "ghc")
332 (version "8.0.2")
333 (source
334 (origin
335 (method url-fetch)
336 (uri (string-append "https://www.haskell.org/ghc/dist/"
337 version "/" name "-" version "-src.tar.xz"))
338 (sha256
339 (base32 "1c8qc4fhkycynk4g1f9hvk53dj6a1vvqi6bklqznns6hw59m8qhi"))
340 (patches
341 (search-patches
342 "ghc-dont-pass-linker-flags-via-response-files.patch"
343 "ghc-8.0-fall-back-to-madv_dontneed.patch"))))
344 (build-system gnu-build-system)
345 (supported-systems '("i686-linux" "x86_64-linux"))
346 (outputs '("out" "doc"))
347 (inputs
348 `(("gmp" ,gmp)
349 ("ncurses" ,ncurses)
350 ("libffi" ,libffi)
351 ("ghc-testsuite"
352 ,(origin
353 (method url-fetch)
354 (uri (string-append
355 "https://www.haskell.org/ghc/dist/"
356 version "/" name "-" version "-testsuite.tar.xz"))
357 (sha256
358 (base32 "1wjc3x68l305bl1h1ijd3yhqp2vqj83lkp3kqbr94qmmkqlms8sj"))))))
359 (native-inputs
360 `(("perl" ,perl)
361 ("python" ,python-2) ; for tests
362 ("ghostscript" ,ghostscript) ; for tests
363 ;; GHC is built with GHC.
364 ("ghc-bootstrap" ,ghc-7)))
365 (arguments
366 `(#:test-target "test"
367 ;; We get a smaller number of test failures by disabling parallel test
368 ;; execution.
369 #:parallel-tests? #f
370
371 ;; The DSOs use $ORIGIN to refer to each other, but (guix build
372 ;; gremlin) doesn't support it yet, so skip this phase.
373 #:validate-runpath? #f
374
375 ;; Don't pass --build=<triplet>, because the configure script
376 ;; auto-detects slightly different triplets for --host and --target and
377 ;; then complains that they don't match.
378 #:build #f
379
380 #:configure-flags
381 (list
382 (string-append "--with-gmp-libraries="
383 (assoc-ref %build-inputs "gmp") "/lib")
384 (string-append "--with-gmp-includes="
385 (assoc-ref %build-inputs "gmp") "/include")
386 "--with-system-libffi"
387 (string-append "--with-ffi-libraries="
388 (assoc-ref %build-inputs "libffi") "/lib")
389 (string-append "--with-ffi-includes="
390 (assoc-ref %build-inputs "libffi") "/include")
391 (string-append "--with-curses-libraries="
392 (assoc-ref %build-inputs "ncurses") "/lib")
393 (string-append "--with-curses-includes="
394 (assoc-ref %build-inputs "ncurses") "/include"))
395 #:phases
396 (modify-phases %standard-phases
397 (add-after 'unpack 'unpack-testsuite
398 (lambda* (#:key inputs #:allow-other-keys)
399 (with-directory-excursion ".."
400 (copy-file (assoc-ref inputs "ghc-testsuite")
401 "ghc-testsuite.tar.xz")
402 (zero? (system* "tar" "xvf" "ghc-testsuite.tar.xz")))))
403 (add-before 'build 'fix-lib-paths
404 (lambda _
405 (substitute*
406 (list "libraries/process/System/Process/Posix.hs"
407 "libraries/process/tests/process001.hs"
408 "libraries/process/tests/process002.hs"
409 "libraries/unix/cbits/execvpe.c")
410 (("/bin/sh") (which "sh"))
411 (("/bin/ls") (which "ls")))
412 #t))
413 (add-before 'build 'fix-environment
414 (lambda _
415 (unsetenv "GHC_PACKAGE_PATH")
416 (setenv "CONFIG_SHELL" (which "bash"))
417 #t))
418 (add-before 'check 'fix-testsuite
419 (lambda _
420 (substitute*
421 (list "testsuite/timeout/Makefile"
422 "testsuite/timeout/timeout.py"
423 "testsuite/timeout/timeout.hs"
424 "testsuite/tests/programs/life_space_leak/life.test")
425 (("/bin/sh") (which "sh"))
426 (("/bin/rm") "rm"))
427 #t)))))
428 (native-search-paths (list (search-path-specification
429 (variable "GHC_PACKAGE_PATH")
430 (files (list
431 (string-append "lib/ghc-" version)))
432 (file-pattern ".*\\.conf\\.d$")
433 (file-type 'directory))))
434 (home-page "https://www.haskell.org/ghc")
435 (synopsis "The Glasgow Haskell Compiler")
436 (description
437 "The Glasgow Haskell Compiler (GHC) is a state-of-the-art compiler and
438 interactive environment for the functional language Haskell.")
439 (license license:bsd-3)))
440
441 (define-public ghc-8
442 (package (inherit ghc-8.0)
443 (name "ghc")
444 (version "8.4.3")
445 (source
446 (origin
447 (method url-fetch)
448 (uri (string-append "https://www.haskell.org/ghc/dist/"
449 version "/" name "-" version "-src.tar.xz"))
450 (sha256
451 (base32 "1mk046vb561j75saz05rghhbkps46ym5aci4264dwc2qk3dayixf"))))
452 (inputs
453 `(("gmp" ,gmp)
454 ("ncurses" ,ncurses)
455 ("libffi" ,libffi)
456 ("target-binutils" ,binutils)
457 ("target-gcc" ,gcc)
458 ("target-ld-wrapper" ,(make-ld-wrapper "ld-wrapper"
459 #:binutils binutils))))
460 (native-inputs
461 `(("perl" ,perl)
462 ("python" ,python) ; for tests
463 ("ghostscript" ,ghostscript) ; for tests
464 ;; GHC 8.4.3 is built with GHC 8.
465 ("ghc-bootstrap" ,ghc-8.0)
466 ("ghc-testsuite"
467 ,(origin
468 (method url-fetch)
469 (uri (string-append
470 "https://www.haskell.org/ghc/dist/"
471 version "/" name "-" version "-testsuite.tar.xz"))
472 (sha256
473 (base32
474 "1z55b1z0m3plqd2d1ks6w5wvx7igm7zsk3i4v7cms003z0as0hzz"))))))
475 (arguments
476 `(#:test-target "test"
477 ;; We get a smaller number of test failures by disabling parallel test
478 ;; execution.
479 #:parallel-tests? #f
480
481 ;; The DSOs use $ORIGIN to refer to each other, but (guix build
482 ;; gremlin) doesn't support it yet, so skip this phase.
483 #:validate-runpath? #f
484
485 ;; Don't pass --build=<triplet>, because the configure script
486 ;; auto-detects slightly different triplets for --host and --target and
487 ;; then complains that they don't match.
488 #:build #f
489
490 #:configure-flags
491 (list
492 (string-append "--with-gmp-libraries="
493 (assoc-ref %build-inputs "gmp") "/lib")
494 (string-append "--with-gmp-includes="
495 (assoc-ref %build-inputs "gmp") "/include")
496 "--with-system-libffi"
497 (string-append "--with-ffi-libraries="
498 (assoc-ref %build-inputs "libffi") "/lib")
499 (string-append "--with-ffi-includes="
500 (assoc-ref %build-inputs "libffi") "/include")
501 (string-append "--with-curses-libraries="
502 (assoc-ref %build-inputs "ncurses") "/lib")
503 (string-append "--with-curses-includes="
504 (assoc-ref %build-inputs "ncurses") "/include"))
505 #:phases
506 (modify-phases %standard-phases
507 (add-after 'unpack 'unpack-testsuite
508 (lambda* (#:key inputs #:allow-other-keys)
509 (invoke "tar" "xvf"
510 (assoc-ref inputs "ghc-testsuite")
511 "--strip-components=1")
512 #t))
513 ;; This phase patches the 'ghc-pkg' command so that it sorts the list
514 ;; of packages in the binary cache it generates.
515 (add-before 'build 'fix-ghc-pkg-nondeterminism
516 (lambda _
517 (substitute* "utils/ghc-pkg/Main.hs"
518 (("confs = map \\(path </>\\) \\$ filter \\(\".conf\" `isSuffixOf`\\) fs")
519 "confs = map (path </>) $ filter (\".conf\" `isSuffixOf`) (sort fs)"))
520 #t))
521 (add-after 'unpack-testsuite 'fix-shell-wrappers
522 (lambda _
523 (substitute* '("driver/ghci/ghc.mk"
524 "utils/mkdirhier/ghc.mk"
525 "rules/shell-wrapper.mk")
526 (("echo '#!/bin/sh'")
527 (format #f "echo '#!~a'" (which "sh"))))
528 #t))
529 ;; This is necessary because the configure system no longer uses
530 ;; “AC_PATH_” but “AC_CHECK_”, setting the variables to just the
531 ;; plain command names.
532 (add-before 'configure 'set-target-programs
533 (lambda* (#:key inputs #:allow-other-keys)
534 (let ((binutils (assoc-ref inputs "target-binutils"))
535 (gcc (assoc-ref inputs "target-gcc"))
536 (ld-wrapper (assoc-ref inputs "target-ld-wrapper")))
537 (setenv "CC" (string-append gcc "/bin/gcc"))
538 (setenv "CXX" (string-append gcc "/bin/g++"))
539 (setenv "LD" (string-append ld-wrapper "/bin/ld"))
540 (setenv "NM" (string-append binutils "/bin/nm"))
541 (setenv "RANLIB" (string-append binutils "/bin/ranlib"))
542 (setenv "STRIP" (string-append binutils "/bin/strip"))
543 ;; The 'ar' command does not follow the same pattern.
544 (setenv "fp_prog_ar" (string-append binutils "/bin/ar"))
545 #t)))
546 (add-before 'build 'fix-references
547 (lambda _
548 (substitute* '("testsuite/timeout/Makefile"
549 "testsuite/timeout/timeout.py"
550 "testsuite/timeout/timeout.hs"
551 "testsuite/tests/programs/life_space_leak/life.test"
552 ;; libraries
553 "libraries/process/System/Process/Posix.hs"
554 "libraries/process/tests/process001.hs"
555 "libraries/process/tests/process002.hs"
556 "libraries/unix/cbits/execvpe.c")
557 (("/bin/sh") (which "sh"))
558 (("/bin/ls") (which "ls"))
559 (("/bin/rm") "rm"))
560 #t))
561 (add-before 'build 'fix-environment
562 (lambda _
563 (unsetenv "GHC_PACKAGE_PATH")
564 (setenv "CONFIG_SHELL" (which "bash"))
565 #t)))))
566 (native-search-paths (list (search-path-specification
567 (variable "GHC_PACKAGE_PATH")
568 (files (list
569 (string-append "lib/ghc-" version)))
570 (file-pattern ".*\\.conf\\.d$")
571 (file-type 'directory))))))
572
573 (define-public ghc ghc-8)
574
575 (define-public ghc-hostname
576 (package
577 (name "ghc-hostname")
578 (version "1.0")
579 (source
580 (origin
581 (method url-fetch)
582 (uri (string-append "https://hackage.haskell.org/package/hostname/"
583 "hostname-" version ".tar.gz"))
584 (sha256
585 (base32
586 "0p6gm4328946qxc295zb6vhwhf07l1fma82vd0siylnsnsqxlhwv"))))
587 (build-system haskell-build-system)
588 (home-page "https://hackage.haskell.org/package/hostname")
589 (synopsis "Hostname in Haskell")
590 (description "Network.HostName is a simple package providing a means to
591 determine the hostname.")
592 (license license:bsd-3)))
593
594 (define-public ghc-convertible
595 (package
596 (name "ghc-convertible")
597 (version "1.1.1.0")
598 (source
599 (origin
600 (method url-fetch)
601 (uri (string-append "https://hackage.haskell.org/package/convertible/"
602 "convertible-" version ".tar.gz"))
603 (sha256
604 (base32
605 "0v18ap1mccnndgxmbfgyjdicg8jlss01bd5fq8a576dr0h4sgyg9"))))
606 (build-system haskell-build-system)
607 (inputs
608 `(("ghc-old-time" ,ghc-old-time)
609 ("ghc-old-locale" ,ghc-old-locale)
610 ("ghc-text" ,ghc-text)))
611 (home-page "https://hackage.haskell.org/package/convertible")
612 (synopsis "Typeclasses and instances for converting between types")
613 (description
614 "This package provides a typeclass with a single function that is
615 designed to help convert between different types: numeric values, dates and
616 times, and the like. The conversions perform bounds checking and return a
617 pure @code{Either} value. This means that you need not remember which specific
618 function performs the conversion you desire.")
619 (license license:bsd-3)))
620
621 (define-public ghc-double-conversion
622 (package
623 (name "ghc-double-conversion")
624 (version "2.0.2.0")
625 (source
626 (origin
627 (method url-fetch)
628 (uri (string-append "https://hackage.haskell.org/package/"
629 "double-conversion/double-conversion-"
630 version ".tar.gz"))
631 (sha256
632 (base32
633 "0sx2kc1gw72mjvd8vph8bbjw5whfxfv92rsdhjg1c0al75rf3ka4"))))
634 (build-system haskell-build-system)
635 (inputs `(("ghc-text" ,ghc-text)))
636 (native-inputs
637 `(("ghc-hunit" ,ghc-hunit)
638 ("ghc-test-framework" ,ghc-test-framework)
639 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
640 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
641 (home-page "https://github.com/bos/double-conversion")
642 (synopsis "Fast conversion between double precision floating point and text")
643 (description
644 "This package provides a library that performs fast, accurate conversion
645 between double precision floating point and text.")
646 (license license:bsd-3)))
647
648 (define-public ghc-libxml
649 (package
650 (name "ghc-libxml")
651 (version "0.1.1")
652 (source
653 (origin
654 (method url-fetch)
655 (uri (string-append "https://hackage.haskell.org/package/libxml/"
656 "libxml-" version ".tar.gz"))
657 (sha256
658 (base32
659 "01zvk86kg726lf2vnlr7dxiz7g3xwi5a4ak9gcfbwyhynkzjmsfi"))))
660 (build-system haskell-build-system)
661 (inputs
662 `(("libxml2" ,libxml2)))
663 (arguments
664 `(#:configure-flags
665 `(,(string-append "--extra-include-dirs="
666 (assoc-ref %build-inputs "libxml2")
667 "/include/libxml2"))))
668 (home-page "https://hackage.haskell.org/package/libxml")
669 (synopsis "Haskell bindings to libxml2")
670 (description
671 "This library provides minimal Haskell binding to libxml2.")
672 (license license:bsd-3)))
673
674 (define-public ghc-prelude-extras
675 (package
676 (name "ghc-prelude-extras")
677 (version "0.4.0.3")
678 (source
679 (origin
680 (method url-fetch)
681 (uri (string-append
682 "https://hackage.haskell.org/package/prelude-extras/prelude-extras-"
683 version
684 ".tar.gz"))
685 (sha256
686 (base32
687 "0xzqdf3nl2h0ra4gnslm1m1nsxlsgc0hh6ky3vn578vh11zhifq9"))))
688 (build-system haskell-build-system)
689 (home-page "https://github.com/ekmett/prelude-extras")
690 (synopsis "Higher order versions of Prelude classes")
691 (description "This library provides higher order versions of
692 @code{Prelude} classes to ease programming with polymorphic recursion and
693 reduce @code{UndecidableInstances}.")
694 (license license:bsd-3)))
695
696 (define-public ghc-data-default
697 (package
698 (name "ghc-data-default")
699 (version "0.7.1.1")
700 (source
701 (origin
702 (method url-fetch)
703 (uri (string-append
704 "https://hackage.haskell.org/package/data-default/data-default-"
705 version
706 ".tar.gz"))
707 (sha256
708 (base32 "04d5n8ybmcxba9qb6h389w9zfq1lvj81b82jh6maqp6pkhkmvydh"))))
709 (build-system haskell-build-system)
710 (inputs
711 `(("ghc-data-default-class"
712 ,ghc-data-default-class)
713 ("ghc-data-default-instances-base"
714 ,ghc-data-default-instances-base)
715 ("ghc-data-default-instances-containers"
716 ,ghc-data-default-instances-containers)
717 ("ghc-data-default-instances-dlist"
718 ,ghc-data-default-instances-dlist)
719 ("ghc-data-default-instances-old-locale"
720 ,ghc-data-default-instances-old-locale)))
721 (home-page "https://hackage.haskell.org/package/data-default")
722 (synopsis "Types with default values")
723 (description
724 "This package defines a class for types with a default value, and
725 provides instances for types from the base, containers, dlist and old-locale
726 packages.")
727 (license license:bsd-3)))
728
729 (define-public ghc-data-default-class
730 (package
731 (name "ghc-data-default-class")
732 (version "0.1.2.0")
733 (source
734 (origin
735 (method url-fetch)
736 (uri (string-append
737 "https://hackage.haskell.org/package/data-default-class/"
738 "data-default-class-" version ".tar.gz"))
739 (sha256
740 (base32 "0miyjz8d4jyvqf2vp60lyfbnflx6cj2k8apmm9ly1hq0y0iv80ag"))))
741 (build-system haskell-build-system)
742 (home-page "https://hackage.haskell.org/package/data-default-class")
743 (synopsis "Types with default values")
744 (description
745 "This package defines a class for types with default values.")
746 (license license:bsd-3)))
747
748 (define-public ghc-data-default-instances-base
749 (package
750 (name "ghc-data-default-instances-base")
751 (version "0.1.0.1")
752 (source
753 (origin
754 (method url-fetch)
755 (uri (string-append
756 "https://hackage.haskell.org/package/"
757 "data-default-instances-base/"
758 "data-default-instances-base-" version ".tar.gz"))
759 (sha256
760 (base32 "0ym1sw3ssdzzifxxhh76qlv8kkmb2iclc158incv1dklyr9y8kw4"))))
761 (build-system haskell-build-system)
762 (inputs
763 `(("ghc-data-default-class" ,ghc-data-default-class)))
764 (home-page "https://hackage.haskell.org/package/data-default-instances-base")
765 (synopsis "Default instances for types in base")
766 (description
767 "This package provides default instances for types from the base
768 package.")
769 (license license:bsd-3)))
770
771 (define-public ghc-data-default-instances-containers
772 (package
773 (name "ghc-data-default-instances-containers")
774 (version "0.0.1")
775 (source
776 (origin
777 (method url-fetch)
778 (uri (string-append
779 "https://hackage.haskell.org/package/"
780 "data-default-instances-containers/"
781 "data-default-instances-containers-" version ".tar.gz"))
782 (sha256
783 (base32 "06h8xka031w752a7cjlzghvr8adqbl95xj9z5zc1b62w02phfpm5"))))
784 (build-system haskell-build-system)
785 (inputs
786 `(("ghc-data-default-class" ,ghc-data-default-class)))
787 (home-page "https://hackage.haskell.org/package/data-default-instances-containers")
788 (synopsis "Default instances for types in containers")
789 (description "Provides default instances for types from the containers
790 package.")
791 (license license:bsd-3)))
792
793 (define-public ghc-data-default-instances-dlist
794 (package
795 (name "ghc-data-default-instances-dlist")
796 (version "0.0.1")
797 (source
798 (origin
799 (method url-fetch)
800 (uri (string-append
801 "https://hackage.haskell.org/package/"
802 "data-default-instances-dlist/"
803 "data-default-instances-dlist-" version ".tar.gz"))
804 (sha256
805 (base32 "0narkdqiprhgayjiawrr4390h4rq4pl2pb6mvixbv2phrc8kfs3x"))))
806 (build-system haskell-build-system)
807 (inputs
808 `(("ghc-data-default-class" ,ghc-data-default-class)
809 ("ghc-dlist" ,ghc-dlist)))
810 (home-page "https://hackage.haskell.org/package/data-default-instances-dlist")
811 (synopsis "Default instances for types in dlist")
812 (description "Provides default instances for types from the dlist
813 package.")
814 (license license:bsd-3)))
815
816 (define-public ghc-code-page
817 (package
818 (name "ghc-code-page")
819 (version "0.1.3")
820 (source
821 (origin
822 (method url-fetch)
823 (uri (string-append
824 "https://hackage.haskell.org/package/code-page/code-page-"
825 version ".tar.gz"))
826 (sha256
827 (base32
828 "1491frk4jx6dlhifky9dvcxbsbcfssrz979a5hp5zn061rh8cp76"))))
829 (build-system haskell-build-system)
830 (home-page "https://github.com/RyanGlScott/code-page")
831 (synopsis "Windows code page library for Haskell")
832 (description "A cross-platform library with functions for adjusting
833 code pages on Windows. On all other operating systems, the library does
834 nothing.")
835 (license license:bsd-3)))
836
837 (define-public ghc-libffi
838 (package
839 (name "ghc-libffi")
840 (version "0.1")
841 (source
842 (origin
843 (method url-fetch)
844 (uri (string-append "https://hackage.haskell.org/package/"
845 "libffi/libffi-" version ".tar.gz"))
846 (sha256
847 (base32
848 "0g7jnhng3j7z5517aaqga0144aamibsbpgm3yynwyfzkq1kp0f28"))))
849 (build-system haskell-build-system)
850 (native-inputs `(("pkg-config" ,pkg-config)))
851 (inputs `(("libffi" ,libffi)))
852 (home-page "http://hackage.haskell.org/package/libffi")
853 (synopsis "Haskell binding to libffi")
854 (description
855 "A binding to libffi, allowing C functions of types only known at runtime
856 to be called from Haskell.")
857 (license license:bsd-3)))
858
859 (define-public ghc-newtype-generics
860 (package
861 (name "ghc-newtype-generics")
862 (version "0.5.3")
863 (source
864 (origin
865 (method url-fetch)
866 (uri (string-append "https://hackage.haskell.org/package/"
867 "newtype-generics/newtype-generics-"
868 version ".tar.gz"))
869 (sha256
870 (base32
871 "0igyisw2djg19v9vkna1rwf47k97mvkvk4bbkmswznvbm00z15gj"))))
872 (build-system haskell-build-system)
873 (native-inputs
874 `(("ghc-hspec" ,ghc-hspec)
875 ("hspec-discover" ,hspec-discover)))
876 (home-page "http://github.com/sjakobi/newtype-generics")
877 (synopsis "Typeclass and set of functions for working with newtypes")
878 (description "The @code{Newtype} typeclass represents the packing and
879 unpacking of a newtype, and allows you to operate under that newtype with
880 functions such as @code{ala}. Generics support was added in version 0.4,
881 making this package a full replacement for the original newtype package,
882 and an alternative to newtype-th.")
883 (license license:bsd-3)))
884
885 (define-public ghc-memotrie
886 (package
887 (name "ghc-memotrie")
888 (version "0.6.9")
889 (source
890 (origin
891 (method url-fetch)
892 (uri (string-append
893 "https://hackage.haskell.org/package/MemoTrie/MemoTrie-"
894 version
895 ".tar.gz"))
896 (sha256
897 (base32
898 "157p0pi6rrq74a35mq6zkkycv4ah7xhkbrcmnkb9xf7pznw4aq0x"))))
899 (build-system haskell-build-system)
900 (inputs
901 `(("ghc-newtype-generics" ,ghc-newtype-generics)))
902 (home-page "https://github.com/conal/MemoTrie")
903 (synopsis "Trie-based memo functions")
904 (description "This package provides a functional library for creating
905 efficient memo functions using tries.")
906 (license license:bsd-3)))
907
908 (define-public ghc-tree-diff
909 (package
910 (name "ghc-tree-diff")
911 (version "0.0.1")
912 (source
913 (origin
914 (method url-fetch)
915 (uri (string-append
916 "https://hackage.haskell.org/package/tree-diff/tree-diff-"
917 version
918 ".tar.gz"))
919 (sha256
920 (base32
921 "049v44c520jy3icxlnrvbdblh3mjmvd7m6qmkzxbzkf02x63xqmz"))))
922 (build-system haskell-build-system)
923 (arguments
924 `(#:cabal-revision
925 ("4" "1rqxxyj6hqllahs11693g855cxz8mgnb490s7j1ksd300i5xgjsp")
926 #:phases
927 (modify-phases %standard-phases
928 (add-before 'configure 'update-constraints
929 (lambda _
930 (substitute* "tree-diff.cabal"
931 (("trifecta >=1\\.7\\.1\\.1 && <1\\.8")
932 "trifecta >=1.7.1.1 && <=2")))))))
933 (inputs
934 `(("ghc-aeson" ,ghc-aeson)
935 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
936 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
937 ("ghc-base-compat" ,ghc-base-compat)
938 ("ghc-generics-sop" ,ghc-generics-sop)
939 ("ghc-hashable" ,ghc-hashable)
940 ("ghc-memotrie" ,ghc-memotrie)
941 ("ghc-parsec" ,ghc-parsec)
942 ("ghc-parsers" ,ghc-parsers)
943 ("ghc-quickcheck" ,ghc-quickcheck)
944 ("ghc-scientific" ,ghc-scientific)
945 ("ghc-tagged" ,ghc-tagged)
946 ("ghc-text" ,ghc-text)
947 ("ghc-unordered-containers" ,ghc-unordered-containers)
948 ("ghc-uuid-types" ,ghc-uuid-types)
949 ("ghc-vector" ,ghc-vector)))
950 (native-inputs
951 `(("ghc-base-compat" ,ghc-base-compat)
952 ("ghc-quickcheck" ,ghc-quickcheck)
953 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
954 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
955 ("ghc-parsec" ,ghc-parsec)
956 ("ghc-trifecta" ,ghc-trifecta)
957 ("ghc-tasty" ,ghc-tasty)
958 ("ghc-tasty-golden" ,ghc-tasty-golden)
959 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
960 (home-page "https://github.com/phadej/tree-diff")
961 (synopsis "Compute difference between (expression) trees")
962 (description "This Haskell library provides a function for computing
963 the difference between (expression) trees. It also provides a way to
964 compute the difference between arbitrary abstract datatypes (ADTs) using
965 @code{Generics}-derivable helpers.")
966 (license license:bsd-3)))
967
968 (define-public ghc-haddock-library
969 (package
970 (name "ghc-haddock-library")
971 (version "1.5.0.1")
972 (source
973 (origin
974 (method url-fetch)
975 (uri (string-append
976 "https://hackage.haskell.org/package/haddock-library/haddock-library-"
977 version
978 ".tar.gz"))
979 (sha256
980 (base32
981 "1cmbg8l5xrwpliclwy3l057raypjqy0hsg1h1743ahaj8gq10b7z"))
982 (patches (search-patches
983 "ghc-haddock-library-unbundle.patch"))
984 (modules '((guix build utils)))
985 (snippet '(begin
986 (delete-file-recursively "vendor")
987 #t))))
988 (build-system haskell-build-system)
989 (arguments
990 `(#:phases
991 (modify-phases %standard-phases
992 (add-before 'configure 'relax-test-suite-dependencies
993 (lambda _
994 (substitute* "haddock-library.cabal"
995 (("base-compat\\s*\\^>= 0\\.9\\.3") "base-compat")
996 (("hspec\\s*\\^>= 2\\.4\\.4") "hspec"))))
997 ;; The release tarball does not contain the "fixtures/examples"
998 ;; directory, which is required for testing. In the upstream
999 ;; repository, the directory exists and is populated. Here, we
1000 ;; create an empty directory to placate the tests.
1001 (add-before 'check 'add-examples-directory
1002 (lambda _
1003 (mkdir "fixtures/examples")
1004 #t)))))
1005 (native-inputs
1006 `(("ghc-base-compat" ,ghc-base-compat)
1007 ("ghc-hspec" ,ghc-hspec)
1008 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
1009 ("ghc-quickcheck" ,ghc-quickcheck)
1010 ("ghc-tree-diff" ,ghc-tree-diff)
1011 ("hspec-discover" ,hspec-discover)))
1012 (home-page "https://www.haskell.org/haddock/")
1013 (synopsis "Library exposing some functionality of Haddock")
1014 (description
1015 "Haddock is a documentation-generation tool for Haskell libraries. These
1016 modules expose some functionality of it without pulling in the GHC dependency.
1017 Please note that the API is likely to change so specify upper bounds in your
1018 project if you can't release often. For interacting with Haddock itself, see
1019 the ‘haddock’ package.")
1020 (license license:bsd-3)))
1021
1022 (define-public ghc-haddock-api
1023 (package
1024 (name "ghc-haddock-api")
1025 (version "2.19.0.1")
1026 (source
1027 (origin
1028 (method url-fetch)
1029 (uri (string-append
1030 "https://hackage.haskell.org/package/haddock-api/haddock-api-"
1031 version
1032 ".tar.gz"))
1033 (sha256
1034 (base32
1035 "0c6i7sljp7myz25d90gyw68a90i5jcrkajkxcciikp2hjirfaas3"))))
1036 (build-system haskell-build-system)
1037 (arguments
1038 `(#:phases
1039 (modify-phases %standard-phases
1040 (add-before 'configure 'update-constraints
1041 (lambda _
1042 (substitute* "haddock-api.cabal"
1043 (("Cabal \\^>= 2\\.0\\.0")
1044 "Cabal ^>= 2.2.0")
1045 (("hspec \\^>= 2\\.4\\.4")
1046 "hspec >= 2.4.4 && < 2.6")))))))
1047 (inputs
1048 `(("ghc-paths" ,ghc-paths)
1049 ("ghc-haddock-library" ,ghc-haddock-library)))
1050 (native-inputs
1051 `(("ghc-quickcheck" ,ghc-quickcheck)
1052 ("ghc-hspec" ,ghc-hspec)
1053 ("hspec-discover" ,hspec-discover)))
1054 (home-page "https://www.haskell.org/haddock/")
1055 (synopsis "API for documentation-generation tool Haddock")
1056 (description "This package provides an API to Haddock, the
1057 documentation-generation tool for Haskell libraries.")
1058 (license license:bsd-3)))
1059
1060 (define-public ghc-haddock-test
1061 (package
1062 (name "ghc-haddock-test")
1063 (version "0.0.1")
1064 (source
1065 (origin
1066 (method url-fetch)
1067 (uri (string-append "https://hackage.haskell.org/package/"
1068 "haddock-test/haddock-test-"
1069 version ".tar.gz"))
1070 (sha256
1071 (base32
1072 "1ax8fnfrwx66csj952f3virxzapipan9da7z5l1zc12nqkifbs7w"))))
1073 (build-system haskell-build-system)
1074 (inputs
1075 `(("ghc-xml" ,ghc-xml)
1076 ("ghc-syb" ,ghc-syb)))
1077 (home-page "http://www.haskell.org/haddock/")
1078 (synopsis "Test utilities for Haddock")
1079 (description "This package provides test utilities for Haddock.")
1080 (license license:bsd-3)))
1081
1082 (define-public ghc-haddock
1083 (package
1084 (name "ghc-haddock")
1085 (version "2.19.0.1")
1086 (source
1087 (origin
1088 (method url-fetch)
1089 (uri (string-append
1090 "https://hackage.haskell.org/package/haddock/haddock-"
1091 version
1092 ".tar.gz"))
1093 (sha256
1094 (base32
1095 "1g1j9j0hf2yhyyh0gwz6bzbvfvliqz9x8a8hnkmwghm7w3xa6sb7"))))
1096 (build-system haskell-build-system)
1097 (arguments
1098 `(#:phases
1099 (modify-phases %standard-phases
1100 ;; There are four test suites that require the ghc-haddock-test
1101 ;; package, which no longer builds with GHC 8.4.3. This phase
1102 ;; removes these four test suites from the Cabal file, so that we
1103 ;; do not need ghc-haddock-test as an input.
1104 (add-before 'configure 'remove-haddock-test-test-suites
1105 (lambda _
1106 (use-modules (ice-9 rdelim))
1107 (with-atomic-file-replacement "haddock.cabal"
1108 (lambda (in out)
1109 (let loop ((line (read-line in 'concat)) (deleting? #f))
1110 (cond
1111 ((eof-object? line) #t)
1112 ((string-every char-set:whitespace line)
1113 (unless deleting? (display line out))
1114 (loop (read-line in 'concat) #f))
1115 ((member line '("test-suite html-test\n"
1116 "test-suite hypsrc-test\n"
1117 "test-suite latex-test\n"
1118 "test-suite hoogle-test\n"))
1119 (loop (read-line in 'concat) #t))
1120 (else
1121 (unless deleting? (display line out))
1122 (loop (read-line in 'concat) deleting?)))))))))))
1123 (inputs `(("ghc-haddock-api" ,ghc-haddock-api)))
1124 (native-inputs
1125 `(("ghc-hspec" ,ghc-hspec)))
1126 (home-page "https://www.haskell.org/haddock/")
1127 (synopsis
1128 "Documentation-generation tool for Haskell libraries")
1129 (description
1130 "Haddock is a documentation-generation tool for Haskell libraries.")
1131 (license license:bsd-3)))
1132
1133 (define-public ghc-simple-reflect
1134 (package
1135 (name "ghc-simple-reflect")
1136 (version "0.3.3")
1137 (source
1138 (origin
1139 (method url-fetch)
1140 (uri (string-append
1141 "https://hackage.haskell.org/package/simple-reflect/simple-reflect-"
1142 version
1143 ".tar.gz"))
1144 (sha256
1145 (base32
1146 "0ayvrx5cm8n6db21jiyjmk5h93pw7cz1707hih09hlhk9jh5x0h7"))))
1147 (build-system haskell-build-system)
1148 (home-page
1149 "https://twanvl.nl/blog/haskell/simple-reflection-of-expressions")
1150 (synopsis
1151 "Simple reflection of expressions containing variables")
1152 (description
1153 "This package allows simple reflection of expressions containing
1154 variables. Reflection here means that a Haskell expression is turned into a
1155 string. The primary aim of this package is teaching and understanding; there
1156 are no options for manipulating the reflected expressions beyond showing
1157 them.")
1158 (license license:bsd-3)))
1159
1160 (define-public ghc-haskell-src
1161 (package
1162 (name "ghc-haskell-src")
1163 (version "1.0.3.0")
1164 (source
1165 (origin
1166 (method url-fetch)
1167 (uri (string-append
1168 "https://hackage.haskell.org/package/haskell-src/haskell-src-"
1169 version
1170 ".tar.gz"))
1171 (sha256
1172 (base32
1173 "1g4dj1f0j68bhn4ixfac63wjzy6gsp6kwgxryb1k5nl3i0g99d5l"))))
1174 (build-system haskell-build-system)
1175 (inputs
1176 `(("ghc-happy" ,ghc-happy)
1177 ("ghc-syb" ,ghc-syb)))
1178 (home-page
1179 "https://hackage.haskell.org/package/haskell-src")
1180 (synopsis
1181 "Support for manipulating Haskell source code")
1182 (description
1183 "The @code{haskell-src} package provides support for manipulating Haskell
1184 source code. The package provides a lexer, parser and pretty-printer, and a
1185 definition of a Haskell abstract syntax tree (AST). Common uses of this
1186 package are to parse or generate Haskell 98 code.")
1187 (license license:bsd-3)))
1188
1189 (define-public ghc-alex
1190 (package
1191 (name "ghc-alex")
1192 (version "3.2.4")
1193 (source
1194 (origin
1195 (method url-fetch)
1196 (uri (string-append
1197 "https://hackage.haskell.org/package/alex/alex-"
1198 version
1199 ".tar.gz"))
1200 (sha256
1201 (base32
1202 "0cpjixgsr0b2x4s6hz4aa6gnmjw9i7xd9nlfi8m37zqlidq4v3nm"))))
1203 (build-system haskell-build-system)
1204 (arguments
1205 `(#:phases
1206 (modify-phases %standard-phases
1207 (add-before 'check 'set-check-variables
1208 (lambda _
1209 (setenv "PATH" (string-append (getcwd) "/dist/build/alex:"
1210 (getenv "PATH")))
1211 (setenv "alex_datadir" (string-append (getcwd) "/data"))
1212 #t)))))
1213 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
1214 (native-inputs
1215 `(("which" ,which)))
1216 (home-page "https://www.haskell.org/alex/")
1217 (synopsis
1218 "Tool for generating lexical analysers in Haskell")
1219 (description
1220 "Alex is a tool for generating lexical analysers in Haskell. It takes a
1221 description of tokens based on regular expressions and generates a Haskell
1222 module containing code for scanning text efficiently. It is similar to the
1223 tool lex or flex for C/C++.")
1224 (license license:bsd-3)))
1225
1226 (define-public ghc-cgi
1227 (package
1228 (name "ghc-cgi")
1229 (version "3001.3.0.2")
1230 (source
1231 (origin
1232 (method url-fetch)
1233 (uri (string-append
1234 "https://hackage.haskell.org/package/cgi/cgi-"
1235 version
1236 ".tar.gz"))
1237 (sha256
1238 (base32
1239 "1hbpplss1m4rdpm4ibip6fpimlhssqa14fl338kl2jbc463i64cj"))))
1240 (build-system haskell-build-system)
1241 (arguments
1242 `(#:phases
1243 (modify-phases %standard-phases
1244 (add-before 'configure 'update-constraints
1245 (lambda _
1246 (substitute* "cgi.cabal"
1247 (("exceptions < 0\\.9")
1248 "exceptions < 0.11")
1249 (("time >= 1\\.5 && < 1\\.7")
1250 "time >= 1.5 && < 1.9")
1251 (("doctest >= 0\\.8 && < 0\\.12")
1252 "doctest >= 0.8 && < 0.17")
1253 (("QuickCheck >= 2\\.8\\.1 && < 2\\.10")
1254 "QuickCheck >= 2.8.1 && < 2.12")))))))
1255 (inputs
1256 `(("ghc-parsec" ,ghc-parsec)
1257 ("ghc-exceptions" ,ghc-exceptions)
1258 ("ghc-multipart" ,ghc-multipart)
1259 ("ghc-network-uri" ,ghc-network-uri)
1260 ("ghc-network" ,ghc-network)))
1261 (native-inputs
1262 `(("ghc-doctest" ,ghc-doctest)
1263 ("ghc-quickcheck" ,ghc-quickcheck)))
1264 (home-page
1265 "https://github.com/cheecheeo/haskell-cgi")
1266 (synopsis "Library for writing CGI programs")
1267 (description
1268 "This is a Haskell library for writing CGI programs.")
1269 (license license:bsd-3)))
1270
1271 (define-public ghc-cmdargs
1272 (package
1273 (name "ghc-cmdargs")
1274 (version "0.10.20")
1275 (source
1276 (origin
1277 (method url-fetch)
1278 (uri (string-append
1279 "https://hackage.haskell.org/package/cmdargs/cmdargs-"
1280 version ".tar.gz"))
1281 (sha256
1282 (base32
1283 "0cbkmgrcnwgigg6z88y3c09gm7g6dwm7gzbgr53h8k1xik29s9hf"))))
1284 (build-system haskell-build-system)
1285 (home-page
1286 "http://community.haskell.org/~ndm/cmdargs/")
1287 (synopsis "Command line argument processing")
1288 (description
1289 "This library provides an easy way to define command line parsers.")
1290 (license license:bsd-3)))
1291
1292 (define-public ghc-concatenative
1293 (package
1294 (name "ghc-concatenative")
1295 (version "1.0.1")
1296 (source (origin
1297 (method url-fetch)
1298 (uri (string-append
1299 "https://hackage.haskell.org/package/concatenative/concatenative-"
1300 version ".tar.gz"))
1301 (sha256
1302 (base32
1303 "05xwqvcdnk8bsyj698ab9jxpa1nk23pf3m7wi9mwmw0q8n99fngd"))))
1304 (build-system haskell-build-system)
1305 (home-page
1306 "https://patch-tag.com/r/salazar/concatenative/snapshot/current/content/pretty")
1307 (synopsis "Library for postfix control flow")
1308 (description
1309 "Concatenative gives Haskell Factor-style combinators and arrows for
1310 postfix notation. For more information on stack based languages, see
1311 @uref{https://concatenative.org}.")
1312 (license license:bsd-3)))
1313
1314 (define-public ghc-happy
1315 (package
1316 (name "ghc-happy")
1317 (version "1.19.9")
1318 (source
1319 (origin
1320 (method url-fetch)
1321 (uri (string-append
1322 "https://hackage.haskell.org/package/happy/happy-"
1323 version
1324 ".tar.gz"))
1325 (sha256
1326 (base32
1327 "138xpxdb7x62lpmgmb6b3v3vgdqqvqn4273jaap3mjmc2gla709y"))))
1328 (build-system haskell-build-system)
1329 (arguments
1330 `(#:phases
1331 (modify-phases %standard-phases
1332 (add-after 'unpack 'skip-test-issue93
1333 (lambda _
1334 ;; Tests run out of memory on a system with 2GB of available RAM,
1335 ;; in 'issue93.a.hs' and 'issue93.n.hs'.
1336 (substitute* "tests/Makefile"
1337 ((" issue93.y ") " "))
1338 #t)))))
1339 (home-page "https://hackage.haskell.org/package/happy")
1340 (synopsis "Parser generator for Haskell")
1341 (description "Happy is a parser generator for Haskell. Given a grammar
1342 specification in BNF, Happy generates Haskell code to parse the grammar.
1343 Happy works in a similar way to the yacc tool for C.")
1344 (license license:bsd-3)))
1345
1346 (define-public ghc-haskell-lexer
1347 (package
1348 (name "ghc-haskell-lexer")
1349 (version "1.0.2")
1350 (source
1351 (origin
1352 (method url-fetch)
1353 (uri (string-append
1354 "https://hackage.haskell.org/package/haskell-lexer/haskell-lexer-"
1355 version ".tar.gz"))
1356 (sha256
1357 (base32 "1wyxd8x33x4v5vxyzkhm610pl86gbkc8y439092fr1735q9g7kfq"))))
1358 (build-system haskell-build-system)
1359 (home-page "http://hackage.haskell.org/package/haskell-lexer")
1360 (synopsis "Fully compliant Haskell 98 lexer")
1361 (description
1362 "This package provides a fully compliant Haskell 98 lexer.")
1363 (license license:bsd-3)))
1364
1365 (define-public ghc-pretty-show
1366 (package
1367 (name "ghc-pretty-show")
1368 (version "1.7")
1369 (source
1370 (origin
1371 (method url-fetch)
1372 (uri (string-append "https://hackage.haskell.org/package/pretty-show/"
1373 "pretty-show-" version ".tar.gz"))
1374 (sha256
1375 (base32
1376 "0br7pkxqqqhby2j2v1g847lgqsrasx56g1jw3dhmjh4flzs6warq"))))
1377 (build-system haskell-build-system)
1378 (inputs
1379 `(("ghc-haskell-lexer" ,ghc-haskell-lexer)
1380 ("ghc-happy" ,ghc-happy)))
1381 (home-page "http://wiki.github.com/yav/pretty-show")
1382 (synopsis "Tools for working with derived `Show` instances")
1383 (description
1384 "This package provides a library and an executable for working with
1385 derived @code{Show} instances. By using the library, derived @code{Show}
1386 instances can be parsed into a generic data structure. The @code{ppsh} tool
1387 uses the library to produce human-readable versions of @code{Show} instances,
1388 which can be quite handy for debugging Haskell programs. We can also render
1389 complex generic values into an interactive Html page, for easier
1390 examination.")
1391 (license license:expat)))
1392
1393 (define-public ghc-haskell-src-exts
1394 (package
1395 (name "ghc-haskell-src-exts")
1396 (version "1.20.2")
1397 (source
1398 (origin
1399 (method url-fetch)
1400 (uri (string-append
1401 "https://hackage.haskell.org/package/haskell-src-exts/haskell-src-exts-"
1402 version
1403 ".tar.gz"))
1404 (sha256
1405 (base32
1406 "1sm3z4v1p5yffg01ldgavz71s3bvfhjfa13k428rk14bpkl8crlz"))))
1407 (build-system haskell-build-system)
1408 (inputs
1409 `(("cpphs" ,cpphs)
1410 ("ghc-happy" ,ghc-happy)
1411 ("ghc-pretty-show" ,ghc-pretty-show)))
1412 (native-inputs
1413 `(("ghc-smallcheck" ,ghc-smallcheck)
1414 ("ghc-tasty" ,ghc-tasty)
1415 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
1416 ("ghc-tasty-golden" ,ghc-tasty-golden)))
1417 (home-page "https://github.com/haskell-suite/haskell-src-exts")
1418 (synopsis "Library for manipulating Haskell source")
1419 (description "Haskell-Source with Extensions (HSE, haskell-src-exts) is an
1420 extension of the standard @code{haskell-src} package, and handles most
1421 registered syntactic extensions to Haskell. All extensions implemented in GHC
1422 are supported. Apart from these standard extensions, it also handles regular
1423 patterns as per the HaRP extension as well as HSX-style embedded XML syntax.")
1424 (license license:bsd-3)))
1425
1426 (define-public ghc-haskell-src-exts-util
1427 (package
1428 (name "ghc-haskell-src-exts-util")
1429 (version "0.2.3")
1430 (source
1431 (origin
1432 (method url-fetch)
1433 (uri (string-append "https://hackage.haskell.org/package/"
1434 "haskell-src-exts-util/haskell-src-exts-util-"
1435 version ".tar.gz"))
1436 (sha256
1437 (base32
1438 "1803718paq89f8pdck4mb88hv2k1ah9lxzq0lgjgwi9n88ryycz8"))))
1439 (build-system haskell-build-system)
1440 (inputs
1441 `(("ghc-data-default" ,ghc-data-default)
1442 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
1443 ("ghc-semigroups" ,ghc-semigroups)
1444 ("ghc-uniplate" ,ghc-uniplate)))
1445 (home-page "https://github.com/pepeiborra/haskell-src-exts-util")
1446 (synopsis "Helper functions for working with haskell-src-exts trees")
1447 (description
1448 "This package provides helper functions for working with
1449 @code{haskell-src-exts} trees.")
1450 (license license:bsd-3)))
1451
1452 (define-public ghc-refact
1453 (package
1454 (name "ghc-refact")
1455 (version "0.3.0.2")
1456 (source
1457 (origin
1458 (method url-fetch)
1459 (uri (string-append "https://hackage.haskell.org/package/"
1460 "refact/refact-"
1461 version ".tar.gz"))
1462 (sha256
1463 (base32
1464 "0v0zxcx29b8jxs2kgy9csykqcp8kzhdvyylw2xfwmj4pfxr2kl0a"))))
1465 (build-system haskell-build-system)
1466 (home-page "http://hackage.haskell.org/package/refact")
1467 (synopsis "Specify refactorings to perform with apply-refact")
1468 (description
1469 "This library provides a datatype which can be interpreted by
1470 @code{apply-refact}. It exists as a separate library so that applications can
1471 specify refactorings without depending on GHC.")
1472 (license license:bsd-3)))
1473
1474 (define-public hlint
1475 (package
1476 (name "hlint")
1477 (version "2.1.10")
1478 (source
1479 (origin
1480 (method url-fetch)
1481 (uri (string-append
1482 "https://hackage.haskell.org/package/" name
1483 "/" name "-" version ".tar.gz"))
1484 (sha256
1485 (base32
1486 "19as2m9g75cr6n1agzvsij0cvqhb0wbjlk31w4y5d5mns87dki0w"))))
1487 (build-system haskell-build-system)
1488 (inputs
1489 `(("cpphs" ,cpphs)
1490 ("ghc-unordered-containers" ,ghc-unordered-containers)
1491 ("ghc-yaml" ,ghc-yaml)
1492 ("ghc-vector" ,ghc-vector)
1493 ("ghc-text" ,ghc-text)
1494 ("ghc-data-default" ,ghc-data-default)
1495 ("ghc-cmdargs" ,ghc-cmdargs)
1496 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
1497 ("ghc-haskell-src-exts-util" ,ghc-haskell-src-exts-util)
1498 ("ghc-uniplate" ,ghc-uniplate)
1499 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
1500 ("ghc-extra" ,ghc-extra)
1501 ("ghc-refact" ,ghc-refact)
1502 ("ghc-aeson" ,ghc-aeson)
1503 ("hscolour" ,hscolour)))
1504 (home-page "http://community.haskell.org/~ndm/hlint/")
1505 (synopsis "Suggest improvements for Haskell source code")
1506 (description "HLint reads Haskell programs and suggests changes that
1507 hopefully make them easier to read. HLint also makes it easy to disable
1508 unwanted suggestions, and to add your own custom suggestions.")
1509 (license license:bsd-3)))
1510
1511 (define-public ghc-resourcet
1512 (package
1513 (name "ghc-resourcet")
1514 (version "1.2.1")
1515 (source
1516 (origin
1517 (method url-fetch)
1518 (uri (string-append "https://hackage.haskell.org/package/resourcet/"
1519 "resourcet-" version ".tar.gz"))
1520 (sha256
1521 (base32
1522 "0rzjzh34s36ssign7akqjnwnjxf11c3511wk7ky0xxy0dqmc2rg7"))))
1523 (build-system haskell-build-system)
1524 (inputs
1525 `(("ghc-transformers-base" ,ghc-transformers-base)
1526 ("ghc-monad-control" ,ghc-monad-control)
1527 ("ghc-transformers-compat" ,ghc-transformers-compat)
1528 ("ghc-mmorph" ,ghc-mmorph)
1529 ("ghc-exceptions" ,ghc-exceptions)
1530 ("ghc-unliftio-core" ,ghc-unliftio-core)))
1531 (native-inputs
1532 `(("ghc-lifted-base" ,ghc-lifted-base)
1533 ("ghc-hspec" ,ghc-hspec)))
1534 (home-page "https://github.com/snoyberg/conduit")
1535 (synopsis "Deterministic allocation and freeing of scarce resources")
1536 (description "ResourceT is a monad transformer which creates a region of
1537 code where you can safely allocate resources.")
1538 (license license:bsd-3)))
1539
1540 (define-public ghc-objectname
1541 (package
1542 (name "ghc-objectname")
1543 (version "1.1.0.1")
1544 (source
1545 (origin
1546 (method url-fetch)
1547 (uri (string-append
1548 "https://hackage.haskell.org/package/ObjectName/ObjectName-"
1549 version
1550 ".tar.gz"))
1551 (sha256
1552 (base32
1553 "046jm94rmm46cicd31pl54vdvfjvhd9ffbfycy2lxzc0fliyznvj"))))
1554 (build-system haskell-build-system)
1555 (home-page "https://hackage.haskell.org/package/ObjectName")
1556 (synopsis "Helper library for Haskell OpenGL")
1557 (description "This tiny package contains the class ObjectName, which
1558 corresponds to the general notion of explicitly handled identifiers for API
1559 objects, e.g. a texture object name in OpenGL or a buffer object name in
1560 OpenAL.")
1561 (license license:bsd-3)))
1562
1563 (define-public ghc-sdl
1564 (package
1565 (name "ghc-sdl")
1566 (version "0.6.7.0")
1567 (source
1568 (origin
1569 (method url-fetch)
1570 (uri (string-append
1571 "https://hackage.haskell.org/package/SDL/SDL-"
1572 version
1573 ".tar.gz"))
1574 (sha256
1575 (base32
1576 "00y67v80a8l09i3k76z09lg25kw72ivl09nag8ckdlk4a0cfnzfq"))))
1577 (build-system haskell-build-system)
1578 (inputs
1579 `(("sdl" ,sdl)))
1580 (home-page "https://hackage.haskell.org/package/SDL")
1581 (synopsis "LibSDL for Haskell")
1582 (description "Simple DirectMedia Layer (libSDL) is a cross-platform
1583 multimedia library designed to provide low level access to audio, keyboard,
1584 mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used
1585 by MPEG playback software, emulators, and many popular games, including the
1586 award winning Linux port of \"Civilization: Call To Power.\"")
1587 (license license:bsd-3)))
1588
1589 (define-public ghc-sdl-mixer
1590 (package
1591 (name "ghc-sdl-mixer")
1592 (version "0.6.3.0")
1593 (source
1594 (origin
1595 (method url-fetch)
1596 (uri (string-append
1597 "https://hackage.haskell.org/package/SDL-mixer/SDL-mixer-"
1598 version
1599 ".tar.gz"))
1600 (sha256
1601 (base32
1602 "0k26hqgdh789ka3mv4dsk6rin6x6vwcs6hjmnsqq7j3mnrh1342r"))))
1603 (build-system haskell-build-system)
1604 (arguments
1605 `(#:configure-flags
1606 (let* ((sdl-mixer (assoc-ref %build-inputs "sdl-mixer"))
1607 (sdl-mixer-include (string-append sdl-mixer "/include/SDL")))
1608 (list (string-append "--extra-include-dirs=" sdl-mixer-include)))))
1609 (inputs
1610 `(("ghc-sdl" ,ghc-sdl)
1611 ("sdl-mixer" ,sdl-mixer)))
1612 (home-page "https://hackage.haskell.org/package/SDL-mixer")
1613 (synopsis "Haskell bindings to libSDL_mixer")
1614 (description "SDL_mixer is a sample multi-channel audio mixer library. It
1615 supports any number of simultaneously playing channels of 16 bit stereo audio,
1616 plus a single channel of music, mixed by the popular MikMod MOD, Timidity
1617 MIDI, Ogg Vorbis, and SMPEG MP3 libraries.")
1618 (license license:bsd-3)))
1619
1620 (define-public ghc-sdl-image
1621 (package
1622 (name "ghc-sdl-image")
1623 (version "0.6.2.0")
1624 (source
1625 (origin
1626 (method url-fetch)
1627 (uri (string-append
1628 "https://hackage.haskell.org/package/SDL-image/SDL-image-"
1629 version
1630 ".tar.gz"))
1631 (sha256
1632 (base32
1633 "1gxwrvswgwjw6g7ym52gik22l9l3ljy592phv97jdmcf3gi6qcg1"))))
1634 (build-system haskell-build-system)
1635 (arguments
1636 `(#:configure-flags
1637 (let* ((sdl-image (assoc-ref %build-inputs "sdl-image"))
1638 (sdl-image-include (string-append sdl-image "/include/SDL")))
1639 (list (string-append "--extra-include-dirs=" sdl-image-include)))))
1640 (inputs
1641 `(("ghc-sdl" ,ghc-sdl)
1642 ("sdl-image" ,sdl-image)))
1643 (home-page "https://hackage.haskell.org/package/SDL-image")
1644 (synopsis "Haskell bindings to libSDL_image")
1645 (description "SDL_image is an image file loading library. It loads images
1646 as SDL surfaces, and supports the following formats: BMP, GIF, JPEG, LBM, PCX,
1647 PNG, PNM, TGA, TIFF, XCF, XPM, XV.")
1648 (license license:bsd-3)))
1649
1650 (define-public ghc-half
1651 (package
1652 (name "ghc-half")
1653 (version "0.3")
1654 (source
1655 (origin
1656 (method url-fetch)
1657 (uri (string-append
1658 "https://hackage.haskell.org/package/half/half-"
1659 version ".tar.gz"))
1660 (sha256
1661 (base32
1662 "14r0nx8hm5fic9gz0ybjjw4kyc758zfgvhhwvzsshpx5caq6zch6"))))
1663 (build-system haskell-build-system)
1664 (native-inputs
1665 `(("ghc-hspec" ,ghc-hspec)
1666 ("ghc-quickcheck" ,ghc-quickcheck)))
1667 (home-page "https://github.com/ekmett/half")
1668 (synopsis "Half-precision floating-point computations")
1669 (description "This library provides a half-precision floating-point
1670 computation library for Haskell.")
1671 (license license:bsd-3)))
1672
1673 (define-public ghc-fixed
1674 (package
1675 (name "ghc-fixed")
1676 (version "0.2.1.1")
1677 (source
1678 (origin
1679 (method url-fetch)
1680 (uri (string-append "https://hackage.haskell.org/package/fixed/fixed-"
1681 version ".tar.gz"))
1682 (sha256
1683 (base32
1684 "1qhmwx8iqshns0crmr9d2f8hm65jxbcp3dvv0c39v34ra7if3a94"))))
1685 (build-system haskell-build-system)
1686 (home-page "https://github.com/ekmett/fixed")
1687 (synopsis "Signed 15.16 precision fixed point arithmetic")
1688 (description
1689 "This package provides functions for signed 15.16 precision fixed point
1690 arithmetic.")
1691 (license license:bsd-3)))
1692
1693 (define-public ghc-openglraw
1694 (package
1695 (name "ghc-openglraw")
1696 (version "3.3.1.0")
1697 (source
1698 (origin
1699 (method url-fetch)
1700 (uri (string-append
1701 "https://hackage.haskell.org/package/OpenGLRaw/OpenGLRaw-"
1702 version
1703 ".tar.gz"))
1704 (sha256
1705 (base32
1706 "1x8w3x308jldj2c1xqcq3a3sc2jc06pdpgqkgjsmixi1skv4a1vb"))))
1707 (build-system haskell-build-system)
1708 (inputs
1709 `(("ghc-half" ,ghc-half)
1710 ("ghc-fixed" ,ghc-fixed)
1711 ("glu" ,glu)
1712 ("ghc-text" ,ghc-text)))
1713 (home-page "https://www.haskell.org/haskellwiki/Opengl")
1714 (synopsis "Raw Haskell bindings for the OpenGL graphics system")
1715 (description "OpenGLRaw is a raw Haskell binding for the OpenGL 4.5
1716 graphics system and lots of OpenGL extensions. It is basically a 1:1 mapping
1717 of OpenGL's C API, intended as a basis for a nicer interface. OpenGLRaw
1718 offers access to all necessary functions, tokens and types plus a general
1719 facility for loading extension entries. The module hierarchy closely mirrors
1720 the naming structure of the OpenGL extensions, making it easy to find the
1721 right module to import. All API entries are loaded dynamically, so no special
1722 C header files are needed for building this package. If an API entry is not
1723 found at runtime, a userError is thrown.")
1724 (license license:bsd-3)))
1725
1726 (define-public ghc-glut
1727 (package
1728 (name "ghc-glut")
1729 (version "2.7.0.14")
1730 (source
1731 (origin
1732 (method url-fetch)
1733 (uri (string-append
1734 "https://hackage.haskell.org/package/GLUT/GLUT-"
1735 version
1736 ".tar.gz"))
1737 (sha256
1738 (base32
1739 "01i162fly4q1751fp60lgkzlb8kr0qqbvmxj74zc6skb19qggy2w"))))
1740 (build-system haskell-build-system)
1741 (inputs
1742 `(("ghc-statevar" ,ghc-statevar)
1743 ("ghc-opengl" ,ghc-opengl)
1744 ("ghc-openglraw" ,ghc-openglraw)
1745 ("freeglut" ,freeglut)))
1746 (home-page "https://www.haskell.org/haskellwiki/Opengl")
1747 (synopsis "Haskell bindings for the OpenGL Utility Toolkit")
1748 (description "This library provides Haskell bindings for the OpenGL
1749 Utility Toolkit, a window system-independent toolkit for writing OpenGL
1750 programs.")
1751 (license license:bsd-3)))
1752
1753 (define-public ghc-gluraw
1754 (package
1755 (name "ghc-gluraw")
1756 (version "2.0.0.4")
1757 (source
1758 (origin
1759 (method url-fetch)
1760 (uri (string-append
1761 "https://hackage.haskell.org/package/GLURaw/GLURaw-"
1762 version
1763 ".tar.gz"))
1764 (sha256
1765 (base32
1766 "1i2xi35n5z0d372px9mh6cyhgg1m0cfaiy3fnspkf6kbn9fgsqxq"))))
1767 (build-system haskell-build-system)
1768 (inputs
1769 `(("ghc-openglraw" ,ghc-openglraw)))
1770 (home-page "https://www.haskell.org/haskellwiki/Opengl")
1771 (synopsis "Raw Haskell bindings GLU")
1772 (description "GLURaw is a raw Haskell binding for the GLU 1.3 OpenGL
1773 utility library. It is basically a 1:1 mapping of GLU's C API, intended as a
1774 basis for a nicer interface.")
1775 (license license:bsd-3)))
1776
1777 (define-public ghc-opengl
1778 (package
1779 (name "ghc-opengl")
1780 (version "3.0.2.2")
1781 (source
1782 (origin
1783 (method url-fetch)
1784 (uri (string-append
1785 "https://hackage.haskell.org/package/OpenGL/OpenGL-"
1786 version
1787 ".tar.gz"))
1788 (sha256
1789 (base32
1790 "19vxwvx2n8zq2klj176l25n2b64ybp0b8mhm4p46gvpcivz41fjc"))))
1791 (build-system haskell-build-system)
1792 (inputs
1793 `(("ghc-text" ,ghc-text)
1794 ("ghc-objectname" ,ghc-objectname)
1795 ("ghc-gluraw" ,ghc-gluraw)
1796 ("ghc-statevar" ,ghc-statevar)
1797 ("ghc-openglraw" ,ghc-openglraw)))
1798 (home-page "https://www.haskell.org/haskellwiki/Opengl")
1799 (synopsis "Haskell bindings for the OpenGL graphics system")
1800 (description "This package provides Haskell bindings for the OpenGL
1801 graphics system (GL, version 4.5) and its accompanying utility library (GLU,
1802 version 1.3).")
1803 (license license:bsd-3)))
1804
1805 (define-public ghc-streaming-commons
1806 (package
1807 (name "ghc-streaming-commons")
1808 (version "0.2.1.1")
1809 (source
1810 (origin
1811 (method url-fetch)
1812 (uri (string-append "https://hackage.haskell.org/package/"
1813 "streaming-commons/streaming-commons-"
1814 version ".tar.gz"))
1815 (sha256
1816 (base32
1817 "1lmyx3wkjsayhy5yilzvy0kf8qwmycwlk26r1d8f3cxbfhkr7s52"))))
1818 (build-system haskell-build-system)
1819 (inputs
1820 `(("ghc-async" ,ghc-async)
1821 ("ghc-blaze-builder" ,ghc-blaze-builder)
1822 ("ghc-network" ,ghc-network)
1823 ("ghc-random" ,ghc-random)
1824 ("ghc-stm" ,ghc-stm)
1825 ("ghc-text" ,ghc-text)
1826 ("ghc-zlib" ,ghc-zlib)))
1827 (native-inputs
1828 `(("ghc-quickcheck" ,ghc-quickcheck)
1829 ("ghc-hspec" ,ghc-hspec)
1830 ("hspec-discover" ,hspec-discover)))
1831 (home-page "https://hackage.haskell.org/package/streaming-commons")
1832 (synopsis "Conduit and pipes needed by some streaming data libraries")
1833 (description "This package provides low-dependency functionality commonly
1834 needed by various Haskell streaming data libraries, such as @code{conduit} and
1835 @code{pipe}s.")
1836 (license license:expat)))
1837
1838 (define-public cpphs
1839 (package
1840 (name "cpphs")
1841 (version "1.20.8")
1842 (source
1843 (origin
1844 (method url-fetch)
1845 (uri (string-append
1846 "https://hackage.haskell.org/package/" name "/"
1847 name "-" version ".tar.gz"))
1848 (sha256
1849 (base32
1850 "1bh524asqhk9v1s0wvipl0hgn7l63iy3js867yv0z3h5v2kn8vg5"))))
1851 (build-system haskell-build-system)
1852 (inputs
1853 `(("ghc-polyparse" ,ghc-polyparse)
1854 ("ghc-old-locale" ,ghc-old-locale)
1855 ("ghc-old-time" ,ghc-old-time)))
1856 (home-page "http://projects.haskell.org/cpphs/")
1857 (synopsis "Liberalised re-implementation of cpp, the C pre-processor")
1858 (description "Cpphs is a re-implementation of the C pre-processor that is
1859 both more compatible with Haskell, and itself written in Haskell so that it
1860 can be distributed with compilers. This version of the C pre-processor is
1861 pretty-much feature-complete and compatible with traditional (K&R)
1862 pre-processors. Additional features include: a plain-text mode; an option to
1863 unlit literate code files; and an option to turn off macro-expansion.")
1864 (license (list license:lgpl2.1+ license:gpl3+))))
1865
1866 (define-public ghc-reflection
1867 (package
1868 (name "ghc-reflection")
1869 (version "2.1.4")
1870 (source
1871 (origin
1872 (method url-fetch)
1873 (uri (string-append
1874 "https://hackage.haskell.org/package/reflection/reflection-"
1875 version
1876 ".tar.gz"))
1877 (sha256
1878 (base32
1879 "0kf4a5ijw6jfnfibjcrpdy9vzh1n6v2pxia8dhyyqdissiwc8bzj"))))
1880 (build-system haskell-build-system)
1881 (inputs `(("ghc-tagged" ,ghc-tagged)))
1882 (home-page "https://github.com/ekmett/reflection")
1883 (synopsis "Reify arbitrary terms into types that can be reflected back
1884 into terms")
1885 (description "This package addresses the 'configuration problem' which is
1886 propagating configurations that are available at run-time, allowing multiple
1887 configurations to coexist without resorting to mutable global variables or
1888 @code{System.IO.Unsafe.unsafePerformIO}.")
1889 (license license:bsd-3)))
1890
1891 (define-public ghc-old-locale
1892 (package
1893 (name "ghc-old-locale")
1894 (version "1.0.0.7")
1895 (source
1896 (origin
1897 (method url-fetch)
1898 (uri (string-append
1899 "https://hackage.haskell.org/package/old-locale/old-locale-"
1900 version
1901 ".tar.gz"))
1902 (sha256
1903 (base32 "0l3viphiszvz5wqzg7a45zp40grwlab941q5ay29iyw8p3v8pbyv"))))
1904 (build-system haskell-build-system)
1905 (arguments
1906 `(#:cabal-revision
1907 ("2" "04b9vn007hlvsrx4ksd3r8r3kbyaj2kvwxchdrmd4370qzi8p6gs")))
1908 (home-page "https://hackage.haskell.org/package/old-locale")
1909 (synopsis "Adapt to locale conventions")
1910 (description
1911 "This package provides the ability to adapt to locale conventions such as
1912 date and time formats.")
1913 (license license:bsd-3)))
1914
1915 (define-public ghc-old-time
1916 (package
1917 (name "ghc-old-time")
1918 (version "1.1.0.3")
1919 (source
1920 (origin
1921 (method url-fetch)
1922 (uri (string-append
1923 "https://hackage.haskell.org/package/old-time/old-time-"
1924 version
1925 ".tar.gz"))
1926 (sha256
1927 (base32
1928 "1h9b26s3kfh2k0ih4383w90ibji6n0iwamxp6rfp2lbq1y5ibjqw"))))
1929 (build-system haskell-build-system)
1930 (arguments
1931 `(#:cabal-revision
1932 ("2" "1j6ln1dkvhdvnwl33bp0xf9lhc4sybqk0aw42p8cq81xwwzbn7y9")))
1933 (inputs
1934 `(("ghc-old-locale" ,ghc-old-locale)))
1935 (home-page "https://hackage.haskell.org/package/old-time")
1936 (synopsis "Time compatibility library for Haskell")
1937 (description "Old-time is a package for backwards compatibility with the
1938 old @code{time} library. For new projects, the newer
1939 @uref{https://hackage.haskell.org/package/time, time library} is recommended.")
1940 (license license:bsd-3)))
1941
1942 (define-public ghc-data-default-instances-old-locale
1943 (package
1944 (name "ghc-data-default-instances-old-locale")
1945 (version "0.0.1")
1946 (source
1947 (origin
1948 (method url-fetch)
1949 (uri (string-append
1950 "https://hackage.haskell.org/package/"
1951 "data-default-instances-old-locale/"
1952 "data-default-instances-old-locale-" version ".tar.gz"))
1953 (sha256
1954 (base32 "00h81i5phib741yj517p8mbnc48myvfj8axzsw44k34m48lv1lv0"))))
1955 (build-system haskell-build-system)
1956 (inputs
1957 `(("ghc-data-default-class" ,ghc-data-default-class)
1958 ("ghc-old-locale" ,ghc-old-locale)))
1959 (home-page
1960 "https://hackage.haskell.org/package/data-default-instances-old-locale")
1961 (synopsis "Default instances for types in old-locale")
1962 (description "Provides Default instances for types from the old-locale
1963 package.")
1964 (license license:bsd-3)))
1965
1966 (define-public ghc-dlist
1967 (package
1968 (name "ghc-dlist")
1969 (version "0.8.0.4")
1970 (source
1971 (origin
1972 (method url-fetch)
1973 (uri (string-append
1974 "https://hackage.haskell.org/package/dlist/dlist-"
1975 version
1976 ".tar.gz"))
1977 (sha256
1978 (base32 "0yirrh0s6acjy9hhvf5fqg2d6q5y6gm9xs04v6w1imndh1xqdwdc"))))
1979 (build-system haskell-build-system)
1980 (inputs
1981 `(("ghc-quickcheck" ,ghc-quickcheck)))
1982 (home-page "https://github.com/spl/dlist")
1983 (synopsis "Difference lists")
1984 (description
1985 "Difference lists are a list-like type supporting O(1) append. This is
1986 particularly useful for efficient logging and pretty printing (e.g. with the
1987 Writer monad), where list append quickly becomes too expensive.")
1988 (license license:bsd-3)))
1989
1990 (define-public ghc-extensible-exceptions
1991 (package
1992 (name "ghc-extensible-exceptions")
1993 (version "0.1.1.4")
1994 (source
1995 (origin
1996 (method url-fetch)
1997 (uri (string-append "https://hackage.haskell.org/package/"
1998 "extensible-exceptions/extensible-exceptions-"
1999 version ".tar.gz"))
2000 (sha256
2001 (base32 "1273nqws9ij1rp1bsq5jc7k2jxpqa0svawdbim05lf302y0firbc"))))
2002 (build-system haskell-build-system)
2003 (home-page "https://hackage.haskell.org/package/extensible-exceptions")
2004 (synopsis "Extensible exceptions for Haskell")
2005 (description
2006 "This package provides extensible exceptions for both new and old
2007 versions of GHC (i.e., < 6.10).")
2008 (license license:bsd-3)))
2009
2010 (define-public ghc-echo
2011 (package
2012 (name "ghc-echo")
2013 (version "0.1.3")
2014 (source
2015 (origin
2016 (method url-fetch)
2017 (uri (string-append
2018 "https://hackage.haskell.org/package/echo/echo-"
2019 version ".tar.gz"))
2020 (sha256
2021 (base32
2022 "1vw5ykpwhr39wc0hhcgq3r8dh59zq6ib4zxbz1qd2wl21wqhfkvh"))))
2023 (build-system haskell-build-system)
2024 (arguments
2025 `(#:cabal-revision
2026 ("1" "0br8wfiybcw5hand4imiw0i5hacdmrax1dv8g95f35gazffbx42l")))
2027 (home-page "https://github.com/RyanGlScott/echo")
2028 (synopsis "Echo terminal input portably")
2029 (description "The @code{base} library exposes the @code{hGetEcho} and
2030 @code{hSetEcho} functions for querying and setting echo status, but
2031 unfortunately, neither function works with MinTTY consoles on Windows.
2032 This library provides an alternative interface which works with both
2033 MinTTY and other consoles.")
2034 (license license:bsd-3)))
2035
2036 (define-public ghc-hackage-security
2037 (package
2038 (name "ghc-hackage-security")
2039 (version "0.5.3.0")
2040 (source
2041 (origin
2042 (method url-fetch)
2043 (uri (string-append "https://hackage.haskell.org/package/"
2044 "hackage-security/hackage-security-"
2045 version ".tar.gz"))
2046 (sha256
2047 (base32
2048 "08bwawc7ramgdh54vcly2m9pvfchp0ahhs8117jajni6x4bnx66v"))))
2049 (build-system haskell-build-system)
2050 (arguments
2051 `(#:tests? #f)) ; Tests fail because of framework updates.
2052 (inputs
2053 `(("ghc-base16-bytestring" ,ghc-base16-bytestring)
2054 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
2055 ("ghc-cryptohash-sha256" ,ghc-cryptohash-sha256)
2056 ("ghc-ed25519" ,ghc-ed25519)
2057 ("ghc-network" ,ghc-network)
2058 ("ghc-network-uri" ,ghc-network-uri)
2059 ("ghc-parsec" ,ghc-parsec)
2060 ("ghc-tar" ,ghc-tar)
2061 ("ghc-zlib" ,ghc-zlib)))
2062 (native-inputs
2063 `(("ghc-network-uri" ,ghc-network-uri)
2064 ("ghc-quickcheck" ,ghc-quickcheck)
2065 ("ghc-tar" ,ghc-tar)
2066 ("ghc-tasty" ,ghc-tasty)
2067 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
2068 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
2069 ("ghc-temporary" ,ghc-temporary)
2070 ("ghc-zlib" ,ghc-zlib)))
2071 (home-page "https://github.com/haskell/hackage-security")
2072 (synopsis "Hackage security library")
2073 (description "This Hackage security library provides both server and
2074 client utilities for securing @uref{http://hackage.haskell.org/, the
2075 Hackage package server}. It is based on
2076 @uref{http://theupdateframework.com/, The Update Framework}, a set of
2077 recommendations developed by security researchers at various universities
2078 in the US as well as developers on the @uref{https://www.torproject.org/,
2079 Tor project}.")
2080 (license license:bsd-3)))
2081
2082 (define-public ghc-resolv
2083 (package
2084 (name "ghc-resolv")
2085 (version "0.1.1.1")
2086 (source
2087 (origin
2088 (method url-fetch)
2089 (uri (string-append
2090 "https://hackage.haskell.org/package/resolv/resolv-"
2091 version ".tar.gz"))
2092 (sha256
2093 (base32
2094 "0wh7wj56l3f2bylz563g5g04a4nydj8acv60hpwa7k3mn792xca9"))))
2095 (build-system haskell-build-system)
2096 (arguments
2097 `(#:cabal-revision
2098 ("1" "15ay4n3x8c09cb3h4z1nan84yd3n9zpgvi6h114hk98bq10k8mma")
2099 #:tests? #f)) ; The required test frameworks are too old.
2100 (inputs
2101 `(("ghc-base16-bytestring" ,ghc-base16-bytestring)))
2102 (home-page "https://github.com/haskell/hackage-security")
2103 (synopsis "Domain Name Service (DNS) lookup via @code{libresolv}")
2104 (description "This package implements an API for accessing the
2105 @uref{https://tools.ietf.org/html/rfc1035, Domain Name Service (DNS)}
2106 resolver service via the standard @code{libresolv} system library (whose
2107 API is often available directly via the standard @code{libc} C library) on
2108 Unix systems.")
2109 (license license:gpl3)))
2110
2111 (define-public cabal-install
2112 (package
2113 (name "cabal-install")
2114 (version "2.2.0.0")
2115 (source
2116 (origin
2117 (method url-fetch)
2118 (uri (string-append
2119 "https://hackage.haskell.org/package/cabal-install/cabal-install-"
2120 version
2121 ".tar.gz"))
2122 (sha256
2123 (base32 "1nd3ch7qr4dpfxhgkcq2lnhvszx2kjgnn1kwb44vk9y5jgfs4mn8"))))
2124 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
2125 (build-system haskell-build-system)
2126 (inputs
2127 `(("ghc-async" ,ghc-async)
2128 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
2129 ("ghc-cryptohash-sha256" ,ghc-cryptohash-sha256)
2130 ("ghc-echo" ,ghc-echo)
2131 ("ghc-edit-distance" ,ghc-edit-distance)
2132 ("ghc-hackage-security" ,ghc-hackage-security)
2133 ("ghc-hashable" ,ghc-hashable)
2134 ("ghc-http" ,ghc-http)
2135 ("ghc-network-uri" ,ghc-network-uri)
2136 ("ghc-network" ,ghc-network)
2137 ("ghc-random" ,ghc-random)
2138 ("ghc-resolv" ,ghc-resolv)
2139 ("ghc-stm" ,ghc-stm)
2140 ("ghc-tar" ,ghc-tar)
2141 ("ghc-zlib" ,ghc-zlib)))
2142 (home-page "https://www.haskell.org/cabal/")
2143 (synopsis "Command-line interface for Cabal and Hackage")
2144 (description
2145 "The cabal command-line program simplifies the process of managing
2146 Haskell software by automating the fetching, configuration, compilation and
2147 installation of Haskell libraries and programs.")
2148 (license license:bsd-3)))
2149
2150 (define-public cabal-doctest
2151 (package
2152 (name "cabal-doctest")
2153 (version "1.0.6")
2154 (source
2155 (origin
2156 (method url-fetch)
2157 (uri (string-append "https://hackage.haskell.org/package/"
2158 "cabal-doctest/cabal-doctest-"
2159 version ".tar.gz"))
2160 (sha256
2161 (base32
2162 "0bgd4jdmzxq5y465r4sf4jv2ix73yvblnr4c9wyazazafddamjny"))))
2163 (build-system haskell-build-system)
2164 (arguments
2165 `(#:cabal-revision
2166 ("1" "1bk85avgc93yvcggwbk01fy8nvg6753wgmaanhkry0hz55h7mpld")))
2167 (home-page "https://github.com/phadej/cabal-doctest")
2168 (synopsis "Setup.hs helper for running doctests")
2169 (description
2170 "To properly work, the @code{doctest} package needs plenty of
2171 configuration. This library provides the common bits for writing custom
2172 @file{Setup.hs} files.")
2173 (license license:bsd-3)))
2174
2175 (define-public ghc-parsec-numbers
2176 (package
2177 (name "ghc-parsec-numbers")
2178 (version "0.1.0")
2179 (source
2180 (origin
2181 (method url-fetch)
2182 (uri (string-append "https://hackage.haskell.org/package/"
2183 "parsec-numbers/parsec-numbers-" version ".tar.gz"))
2184 (sha256
2185 (base32 "1gzy4v3r02kvdxvgg1nj83mmb6aph2v4ilf9c7y6nbvi2x49l0bp"))))
2186 (build-system haskell-build-system)
2187 (inputs
2188 `(("ghc-parsec" ,ghc-parsec)))
2189 (home-page "https://hackage.haskell.org/package/parsec-numbers")
2190 (synopsis "Utilities for parsing numbers from strings")
2191 (description
2192 "This package provides the number parsers without the need to use a large
2193 (and unportable) token parser.")
2194 (license license:bsd-3)))
2195
2196 (define-public ghc-paths
2197 (package
2198 (name "ghc-paths")
2199 (version "0.1.0.9")
2200 (outputs '("out" "doc"))
2201 (source
2202 (origin
2203 (method url-fetch)
2204 (uri (string-append
2205 "https://hackage.haskell.org/package/ghc-paths/ghc-paths-"
2206 version
2207 ".tar.gz"))
2208 (sha256
2209 (base32
2210 "0ibrr1dxa35xx20cpp8jzgfak1rdmy344dfwq4vlq013c6w8z9mg"))))
2211 (build-system haskell-build-system)
2212 (home-page "https://github.com/simonmar/ghc-paths")
2213 (synopsis
2214 "Knowledge of GHC's installation directories")
2215 (description
2216 "Knowledge of GHC's installation directories.")
2217 (license license:bsd-3)))
2218
2219 (define-public ghc-utf8-string
2220 (package
2221 (name "ghc-utf8-string")
2222 (version "1.0.1.1")
2223 (source
2224 (origin
2225 (method url-fetch)
2226 (uri (string-append
2227 "https://hackage.haskell.org/package/utf8-string/utf8-string-"
2228 version
2229 ".tar.gz"))
2230 (sha256
2231 (base32 "0h7imvxkahiy8pzr8cpsimifdfvv18lizrb33k6mnq70rcx9w2zv"))))
2232 (build-system haskell-build-system)
2233 (arguments
2234 `(#:cabal-revision
2235 ("3" "02vhj5gykkqa2dyn7s6gn8is1b5fdn9xcqqvlls268g7cpv6rk38")))
2236 (home-page "https://github.com/glguy/utf8-string/")
2237 (synopsis "Support for reading and writing UTF8 Strings")
2238 (description
2239 "A UTF8 layer for Strings. The utf8-string package provides operations
2240 for encoding UTF8 strings to Word8 lists and back, and for reading and writing
2241 UTF8 without truncation.")
2242 (license license:bsd-3)))
2243
2244 (define-public ghc-setenv
2245 (package
2246 (name "ghc-setenv")
2247 (version "0.1.1.3")
2248 (source
2249 (origin
2250 (method url-fetch)
2251 (uri (string-append
2252 "https://hackage.haskell.org/package/setenv/setenv-"
2253 version
2254 ".tar.gz"))
2255 (sha256
2256 (base32
2257 "0cnbgrvb9byyahb37zlqrj05rj25v190crgcw8wmlgf0mwwxyn73"))))
2258 (build-system haskell-build-system)
2259 (home-page "https://hackage.haskell.org/package/setenv")
2260 (synopsis "Library for setting environment variables")
2261 (description "This package provides a Haskell library for setting
2262 environment variables.")
2263 (license license:expat)))
2264
2265 (define-public ghc-setlocale
2266 (package
2267 (name "ghc-setlocale")
2268 (version "1.0.0.8")
2269 (source (origin
2270 (method url-fetch)
2271 (uri (string-append
2272 "https://hackage.haskell.org/package/setlocale-"
2273 version "/setlocale-" version ".tar.gz"))
2274 (sha256
2275 (base32
2276 "0sdrsmkhw08483d73ysgm2926fdbhii61br03lqpqw0lfzj4ilbd"))))
2277 (build-system haskell-build-system)
2278 (home-page "https://hackage.haskell.org/package/setlocale")
2279 (synopsis "Haskell bindings to setlocale")
2280 (description "This package provides Haskell bindings to the
2281 @code{setlocale} C function.")
2282 (license license:bsd-3)))
2283
2284 (define-public ghc-x11
2285 (package
2286 (name "ghc-x11")
2287 (version "1.9")
2288 (source
2289 (origin
2290 (method url-fetch)
2291 (uri (string-append "https://hackage.haskell.org/package/X11/"
2292 "X11-" version ".tar.gz"))
2293 (sha256
2294 (base32 "1f8dy6ckkyvpcv7zlniyv01cqjb9lgqscm8pml58cvwc7n38w4qh"))))
2295 (build-system haskell-build-system)
2296 (inputs
2297 `(("libx11" ,libx11)
2298 ("libxrandr" ,libxrandr)
2299 ("libxinerama" ,libxinerama)
2300 ("libxscrnsaver" ,libxscrnsaver)
2301 ("ghc-data-default" ,ghc-data-default)))
2302 (home-page "https://github.com/haskell-pkg-janitors/X11")
2303 (synopsis "Bindings to the X11 graphics library")
2304 (description
2305 "This package provides Haskell bindings to the X11 graphics library. The
2306 bindings are a direct translation of the C bindings.")
2307 (license license:bsd-3)))
2308
2309 (define-public ghc-x11-xft
2310 (package
2311 (name "ghc-x11-xft")
2312 (version "0.3.1")
2313 (source
2314 (origin
2315 (method url-fetch)
2316 (uri (string-append "https://hackage.haskell.org/package/X11-xft/"
2317 "X11-xft-" version ".tar.gz"))
2318 (sha256
2319 (base32 "1lgqb0s2qfwwgbvwxhjbi23rbwamzdi0l0slfr20c3jpcbp3zfjf"))))
2320 (inputs
2321 `(("ghc-x11" ,ghc-x11)
2322 ("ghc-utf8-string" ,ghc-utf8-string)
2323 ("libx11" ,libx11)
2324 ("libxft" ,libxft)
2325 ("xorgproto" ,xorgproto)))
2326 (native-inputs
2327 `(("pkg-config" ,pkg-config)))
2328 (build-system haskell-build-system)
2329 (home-page "https://hackage.haskell.org/package/X11-xft")
2330 (synopsis "Bindings to Xft")
2331 (description
2332 "Bindings to the Xft, X Free Type interface library, and some Xrender
2333 parts.")
2334 (license license:lgpl2.1)))
2335
2336 (define-public ghc-stringbuilder
2337 (package
2338 (name "ghc-stringbuilder")
2339 (version "0.5.1")
2340 (source
2341 (origin
2342 (method url-fetch)
2343 (uri (string-append
2344 "https://hackage.haskell.org/package/stringbuilder/stringbuilder-"
2345 version
2346 ".tar.gz"))
2347 (sha256
2348 (base32
2349 "1fh3csx1wcssn8xyvl4ip4aprh9l4qyz2kk8mgjvqvc0vb2bsy6q"))))
2350 (build-system haskell-build-system)
2351 (arguments `(#:tests? #f)) ; FIXME: circular dependencies with tests
2352 ; enabled
2353 (home-page "https://hackage.haskell.org/package/stringbuilder")
2354 (synopsis "Writer monad for multi-line string literals")
2355 (description "This package provides a writer monad for multi-line string
2356 literals.")
2357 (license license:expat)))
2358
2359 (define-public ghc-zlib
2360 (package
2361 (name "ghc-zlib")
2362 (version "0.6.2")
2363 (outputs '("out" "doc"))
2364 (source
2365 (origin
2366 (method url-fetch)
2367 (uri (string-append
2368 "https://hackage.haskell.org/package/zlib/zlib-"
2369 version
2370 ".tar.gz"))
2371 (sha256
2372 (base32
2373 "1vbzf0awb6zb456xf48za1kl22018646cfzq4frvxgb9ay97vk0d"))))
2374 (build-system haskell-build-system)
2375 (arguments
2376 `(#:phases
2377 (modify-phases %standard-phases
2378 (add-before 'configure 'strip-test-framework-constraints
2379 (lambda _
2380 (substitute* "zlib.cabal"
2381 (("tasty >= 0\\.8 && < 0\\.12") "tasty")
2382 (("tasty-hunit >= 0\\.8 && < 0\\.10") "tasty-hunit")
2383 (("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
2384 (inputs `(("zlib" ,zlib)))
2385 (native-inputs
2386 `(("ghc-quickcheck" ,ghc-quickcheck)
2387 ("ghc-tasty" ,ghc-tasty)
2388 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
2389 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
2390 (home-page "https://hackage.haskell.org/package/zlib")
2391 (synopsis
2392 "Compression and decompression in the gzip and zlib formats")
2393 (description
2394 "This package provides a pure interface for compressing and decompressing
2395 streams of data represented as lazy @code{ByteString}s. It uses the zlib C
2396 library so it has high performance. It supports the @code{zlib}, @code{gzip}
2397 and @code{raw} compression formats. It provides a convenient high level API
2398 suitable for most tasks and for the few cases where more control is needed it
2399 provides access to the full zlib feature set.")
2400 (license license:bsd-3)))
2401
2402 (define-public ghc-stm
2403 (package
2404 (name "ghc-stm")
2405 (version "2.4.5.0")
2406 (outputs '("out" "doc"))
2407 (source
2408 (origin
2409 (method url-fetch)
2410 (uri (string-append
2411 "https://hackage.haskell.org/package/stm/stm-"
2412 version
2413 ".tar.gz"))
2414 (sha256
2415 (base32
2416 "19sr11a0hqikhvf561b38phz6k3zg9s157a0f5ffvghk7wcdpmri"))))
2417 (build-system haskell-build-system)
2418 (home-page "https://hackage.haskell.org/package/stm")
2419 (synopsis "Software Transactional Memory")
2420 (description
2421 "Software Transactional Memory, or STM, is an abstraction for concurrent
2422 communication. The main benefits of STM are composability and modularity.
2423 That is, using STM you can write concurrent abstractions that can be easily
2424 composed with any other abstraction built using STM, without exposing the
2425 details of how your abstraction ensures safety. This is typically not the
2426 case with other forms of concurrent communication, such as locks or
2427 @code{MVar}s.")
2428 (license license:bsd-3)))
2429
2430 (define-public ghc-parallel
2431 (package
2432 (name "ghc-parallel")
2433 (version "3.2.2.0")
2434 (outputs '("out" "doc"))
2435 (source
2436 (origin
2437 (method url-fetch)
2438 (uri (string-append
2439 "https://hackage.haskell.org/package/parallel/parallel-"
2440 version
2441 ".tar.gz"))
2442 (sha256
2443 (base32
2444 "1xkfi96w6yfpppd0nw1rnszdxmvifwzm699ilv6332ra3akm610p"))))
2445 (build-system haskell-build-system)
2446 (home-page "https://hackage.haskell.org/package/parallel")
2447 (synopsis "Parallel programming library")
2448 (description
2449 "This package provides a library for parallel programming.")
2450 (license license:bsd-3)))
2451
2452 (define-public ghc-safesemaphore
2453 (package
2454 (name "ghc-safesemaphore")
2455 (version "0.10.1")
2456 (source
2457 (origin
2458 (method url-fetch)
2459 (uri (string-append "https://hackage.haskell.org/package/"
2460 "SafeSemaphore/SafeSemaphore-" version ".tar.gz"))
2461 (sha256
2462 (base32
2463 "0rpg9j6fy70i0b9dkrip9d6wim0nac0snp7qzbhykjkqlcvvgr91"))))
2464 (build-system haskell-build-system)
2465 (inputs
2466 `(("ghc-stm" ,ghc-stm)))
2467 (native-inputs
2468 `(("ghc-hunit" ,ghc-hunit)))
2469 (home-page "https://github.com/ChrisKuklewicz/SafeSemaphore")
2470 (synopsis "Exception safe semaphores")
2471 (description "This library provides exception safe semaphores that can be
2472 used in place of @code{QSem}, @code{QSemN}, and @code{SampleVar}, all of which
2473 are not exception safe and can be broken by @code{killThread}.")
2474 (license license:bsd-3)))
2475
2476 (define-public ghc-text
2477 (package
2478 (name "ghc-text")
2479 (version "1.2.3.0")
2480 (outputs '("out" "doc"))
2481 (source
2482 (origin
2483 (method url-fetch)
2484 (uri (string-append
2485 "https://hackage.haskell.org/package/text/text-"
2486 version
2487 ".tar.gz"))
2488 (sha256
2489 (base32
2490 "06iir7q99rnffzxi8gagn8w1k9m49368sbidgz634fv1gxib3q10"))))
2491 (build-system haskell-build-system)
2492 ;; The test dependencies depend on ghc-text: ghc-test-framework -> ghc-xml -> ghc-text
2493 (arguments `(#:tests? #f))
2494 (inputs
2495 `(("ghc-random" ,ghc-random)))
2496 (home-page "https://github.com/bos/text")
2497 (synopsis "Efficient packed Unicode text type library")
2498 (description
2499 "An efficient packed, immutable Unicode text type (both strict and
2500 lazy), with a powerful loop fusion optimization framework.
2501
2502 The @code{Text} type represents Unicode character strings, in a time and
2503 space-efficient manner. This package provides text processing
2504 capabilities that are optimized for performance critical use, both
2505 in terms of large data quantities and high speed.")
2506 (license license:bsd-3)))
2507
2508 (define-public ghc-text-binary
2509 (package
2510 (name "ghc-text-binary")
2511 (version "0.2.1.1")
2512 (source
2513 (origin
2514 (method url-fetch)
2515 (uri (string-append "https://hackage.haskell.org/package/"
2516 "text-binary/text-binary-"
2517 version ".tar.gz"))
2518 (sha256
2519 (base32
2520 "18gl10pwg3qwsk0za3c70j4n6a9129wwf1b7d3a461h816yv55xn"))))
2521 (build-system haskell-build-system)
2522 (inputs `(("ghc-text" ,ghc-text)))
2523 (home-page "https://github.com/kawu/text-binary")
2524 (synopsis "Binary instances for text types")
2525 (description
2526 "This package provides a compatibility layer providing @code{Binary}
2527 instances for strict and lazy text types for versions older than 1.2.1 of the
2528 text package.")
2529 (license license:bsd-2)))
2530
2531 (define-public ghc-strict
2532 (package
2533 (name "ghc-strict")
2534 (version "0.3.2")
2535 (source
2536 (origin
2537 (method url-fetch)
2538 (uri (string-append "https://hackage.haskell.org/package/strict/strict-"
2539 version ".tar.gz"))
2540 (sha256
2541 (base32 "08cjajqz9h47fkq98mlf3rc8n5ghbmnmgn8pfsl3bdldjdkmmlrc"))))
2542 (build-system haskell-build-system)
2543 (home-page "https://hackage.haskell.org/package/strict")
2544 (synopsis "Strict data types and String IO")
2545 (description
2546 "This package provides strict versions of some standard Haskell data
2547 types, such as pairs, @code{Maybe} and @code{Either}. It also contains strict
2548 IO operations.")
2549 (license license:bsd-3)))
2550
2551 (define-public ghc-hashable
2552 (package
2553 (name "ghc-hashable")
2554 (version "1.2.7.0")
2555 (outputs '("out" "doc"))
2556 (source
2557 (origin
2558 (method url-fetch)
2559 (uri (string-append
2560 "https://hackage.haskell.org/package/hashable/hashable-"
2561 version
2562 ".tar.gz"))
2563 (sha256
2564 (base32
2565 "1gra8gq3kb7b2sd845h55yxlrfqx3ii004c6vjhga8v0b30fzdgc"))))
2566 (build-system haskell-build-system)
2567 (inputs
2568 `(("ghc-text" ,ghc-text)
2569 ("ghc-random" ,ghc-random)))
2570 (native-inputs
2571 `(("ghc-test-framework" ,ghc-test-framework)
2572 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
2573 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
2574 ("ghc-hunit" ,ghc-hunit)
2575 ("ghc-quickcheck" ,ghc-quickcheck)))
2576 (home-page "https://github.com/tibbe/hashable")
2577 (synopsis "Class for types that can be converted to a hash value")
2578 (description
2579 "This package defines a class, @code{Hashable}, for types that can be
2580 converted to a hash value. This class exists for the benefit of hashing-based
2581 data structures. The package provides instances for basic types and a way to
2582 combine hash values.")
2583 (license license:bsd-3)))
2584
2585 (define-public ghc-hashable-bootstrap
2586 (package
2587 (inherit ghc-hashable)
2588 (name "ghc-hashable-bootstrap")
2589 (arguments `(#:tests? #f))
2590 (native-inputs '())
2591 (properties '((hidden? #t)))))
2592
2593 (define-public ghc-hashable-time
2594 (package
2595 (name "ghc-hashable-time")
2596 (version "0.2.0.1")
2597 (source
2598 (origin
2599 (method url-fetch)
2600 (uri (string-append
2601 "https://hackage.haskell.org/package/hashable-time/hashable-time-"
2602 version
2603 ".tar.gz"))
2604 (sha256
2605 (base32
2606 "0k932nyd08l3xxbh2g3n76py2f4kd9yw4s5a065vjz0xp6wjnxdm"))))
2607 (build-system haskell-build-system)
2608 (arguments
2609 `(#:cabal-revision
2610 ("1" "0rv40xkg3gj8jnqsry1gq3f5s5la6d5arg8fzkirnwdpcgha1as6")))
2611 (inputs `(("ghc-hashable" ,ghc-hashable)))
2612 (home-page "http://hackage.haskell.org/package/hashable-time")
2613 (synopsis "Hashable instances for Data.Time")
2614 (description
2615 "This package provides @code{Hashable} instances for types in
2616 @code{Data.Time}.")
2617 (license license:bsd-3)))
2618
2619 (define-public ghc-data-hash
2620 (package
2621 (name "ghc-data-hash")
2622 (version "0.2.0.1")
2623 (source
2624 (origin
2625 (method url-fetch)
2626 (uri (string-append "https://hackage.haskell.org/package/data-hash"
2627 "/data-hash-" version ".tar.gz"))
2628 (sha256
2629 (base32 "1ghbqvc48gf9p8wiy71hdpaj7by3b9cw6wgwi3qqz8iw054xs5wi"))))
2630 (build-system haskell-build-system)
2631 (inputs
2632 `(("ghc-quickcheck" ,ghc-quickcheck)
2633 ("ghc-test-framework" ,ghc-test-framework)
2634 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
2635 (home-page "https://hackage.haskell.org/package/data-hash")
2636 (synopsis "Combinators for building fast hashing functions")
2637 (description
2638 "This package provides combinators for building fast hashing functions.
2639 It includes hashing functions for all basic Haskell98 types.")
2640 (license license:bsd-3)))
2641
2642 (define-public ghc-murmur-hash
2643 (package
2644 (name "ghc-murmur-hash")
2645 (version "0.1.0.9")
2646 (source
2647 (origin
2648 (method url-fetch)
2649 (uri (string-append "https://hackage.haskell.org/package/murmur-hash"
2650 "/murmur-hash-" version ".tar.gz"))
2651 (sha256
2652 (base32 "1bb58kfnzvx3mpc0rc0dhqc1fk36nm8prd6gvf20gk6lxaadpfc9"))))
2653 (build-system haskell-build-system)
2654 (home-page "https://github.com/nominolo/murmur-hash")
2655 (synopsis "MurmurHash2 implementation for Haskell")
2656 (description
2657 "This package provides an implementation of MurmurHash2, a good, fast,
2658 general-purpose, non-cryptographic hashing function. See
2659 @url{https://sites.google.com/site/murmurhash/} for details. This
2660 implementation is pure Haskell, so it might be a bit slower than a C FFI
2661 binding.")
2662 (license license:bsd-3)))
2663
2664 (define-public ghc-random
2665 (package
2666 (name "ghc-random")
2667 (version "1.1")
2668 (outputs '("out" "doc"))
2669 (source
2670 (origin
2671 (method url-fetch)
2672 (uri (string-append
2673 "https://hackage.haskell.org/package/random/random-"
2674 version
2675 ".tar.gz"))
2676 (sha256
2677 (base32 "0nis3lbkp8vfx8pkr6v7b7kr5m334bzb0fk9vxqklnp2aw8a865p"))))
2678 (build-system haskell-build-system)
2679 (home-page "https://hackage.haskell.org/package/random")
2680 (synopsis "Random number library")
2681 (description "This package provides a basic random number generation
2682 library, including the ability to split random number generators.")
2683 (license license:bsd-3)))
2684
2685 (define-public ghc-primitive
2686 (package
2687 (name "ghc-primitive")
2688 (version "0.6.3.0")
2689 (outputs '("out" "doc"))
2690 (source
2691 (origin
2692 (method url-fetch)
2693 (uri (string-append
2694 "https://hackage.haskell.org/package/primitive/primitive-"
2695 version
2696 ".tar.gz"))
2697 (sha256
2698 (base32
2699 "0mcmbnj08wd6zfwn7xk6zf5hy5zwbla5v78pw0dpymqg9s0gzpnd"))))
2700 (build-system haskell-build-system)
2701 (home-page
2702 "https://github.com/haskell/primitive")
2703 (synopsis "Primitive memory-related operations")
2704 (description
2705 "This package provides various primitive memory-related operations.")
2706 (license license:bsd-3)))
2707
2708 (define-public ghc-tf-random
2709 (package
2710 (name "ghc-tf-random")
2711 (version "0.5")
2712 (outputs '("out" "doc"))
2713 (source
2714 (origin
2715 (method url-fetch)
2716 (uri (string-append
2717 "https://hackage.haskell.org/package/tf-random/tf-random-"
2718 version
2719 ".tar.gz"))
2720 (sha256
2721 (base32 "0445r2nns6009fmq0xbfpyv7jpzwv0snccjdg7hwj4xk4z0cwc1f"))))
2722 (build-system haskell-build-system)
2723 (inputs
2724 `(("ghc-primitive" ,ghc-primitive)
2725 ("ghc-random" ,ghc-random)))
2726 (home-page "https://hackage.haskell.org/package/tf-random")
2727 (synopsis "High-quality splittable pseudorandom number generator")
2728 (description "This package contains an implementation of a high-quality
2729 splittable pseudorandom number generator. The generator is based on a
2730 cryptographic hash function built on top of the ThreeFish block cipher. See
2731 the paper \"Splittable Pseudorandom Number Generators Using Cryptographic
2732 Hashing\" by Claessen, Pałka for details and the rationale of the design.")
2733 (license license:bsd-3)))
2734
2735 (define-public ghc-transformers-base
2736 (package
2737 (name "ghc-transformers-base")
2738 (version "0.4.5.2")
2739 (source
2740 (origin
2741 (method url-fetch)
2742 (uri (string-append
2743 "https://hackage.haskell.org/package/transformers-base/transformers-base-"
2744 version
2745 ".tar.gz"))
2746 (sha256
2747 (base32
2748 "1s256bi0yh0x2hp2gwd30f3mg1cv53zz397dv1yhfsnfzmihrj6h"))))
2749 (build-system haskell-build-system)
2750 (inputs
2751 `(("ghc-stm" ,ghc-stm)
2752 ("ghc-transformers-compat" ,ghc-transformers-compat)))
2753 (home-page
2754 "https://hackage.haskell.org/package/transformers-compat")
2755 (synopsis
2756 "Backported transformer library")
2757 (description
2758 "Backported versions of types that were added to transformers in
2759 transformers 0.3 and 0.4 for users who need strict transformers 0.2 or 0.3
2760 compatibility to run on old versions of the platform.")
2761 (license license:bsd-3)))
2762
2763 (define-public ghc-transformers-compat
2764 (package
2765 (name "ghc-transformers-compat")
2766 (version "0.6.2")
2767 (source
2768 (origin
2769 (method url-fetch)
2770 (uri (string-append
2771 "https://hackage.haskell.org/package/transformers-compat"
2772 "/transformers-compat-" version ".tar.gz"))
2773 (sha256
2774 (base32
2775 "1gp4a8kvniwgm8947ghb4iwv4b7wd6ry4kvv4nfnym4agf5j41nw"))))
2776 (build-system haskell-build-system)
2777 (home-page "https://github.com/ekmett/transformers-compat/")
2778 (synopsis "Small compatibility shim between transformers 0.3 and 0.4")
2779 (description "This package includes backported versions of types that were
2780 added to transformers in transformers 0.3 and 0.4 for users who need strict
2781 transformers 0.2 or 0.3 compatibility to run on old versions of the platform,
2782 but also need those types.")
2783 (license license:bsd-3)))
2784
2785 (define-public ghc-unix-time
2786 (package
2787 (name "ghc-unix-time")
2788 (version "0.3.8")
2789 (source
2790 (origin
2791 (method url-fetch)
2792 (uri (string-append
2793 "https://hackage.haskell.org/package/unix-time/unix-time-"
2794 version
2795 ".tar.gz"))
2796 (sha256
2797 (base32
2798 "051slgpid5cxiaw203ky0ql3823h28fcjs08axkzd4265wrvv8fw"))))
2799 (build-system haskell-build-system)
2800 (arguments
2801 `(#:tests? #f)) ; FIXME: Test fails with "System.Time not found". This
2802 ; is weird, that should be provided by GHC 7.10.2.
2803 (inputs
2804 `(("ghc-old-time" ,ghc-old-time)
2805 ("ghc-old-locale" ,ghc-old-locale)))
2806 (home-page "https://hackage.haskell.org/package/unix-time")
2807 (synopsis "Unix time parser/formatter and utilities")
2808 (description "This library provides fast parsing and formatting utilities
2809 for Unix time in Haskell.")
2810 (license license:bsd-3)))
2811
2812 (define-public ghc-unix-compat
2813 (package
2814 (name "ghc-unix-compat")
2815 (version "0.5.1")
2816 (source
2817 (origin
2818 (method url-fetch)
2819 (uri (string-append
2820 "https://hackage.haskell.org/package/unix-compat/unix-compat-"
2821 version
2822 ".tar.gz"))
2823 (sha256
2824 (base32
2825 "0llwl7rp63fy2ychwdclz1afj45pbin5pfl01dvn6rwhvmwhr7d3"))))
2826 (build-system haskell-build-system)
2827 (home-page
2828 "https://github.com/jystic/unix-compat")
2829 (synopsis "Portable POSIX-compatibility layer")
2830 (description
2831 "This package provides portable implementations of parts of the unix
2832 package. This package re-exports the unix package when available. When it
2833 isn't available, portable implementations are used.")
2834 (license license:bsd-3)))
2835
2836 (define-public ghc-indents
2837 (package
2838 (name "ghc-indents")
2839 (version "0.5.0.0")
2840 (source (origin
2841 (method url-fetch)
2842 (uri (string-append
2843 "https://hackage.haskell.org/package/indents/indents-"
2844 version ".tar.gz"))
2845 (sha256
2846 (base32
2847 "1ly3v41jacc6lrsvg4j3m5a6zs90gr8dyif5m6bf34hj1k5cgg0n"))))
2848 (build-system haskell-build-system)
2849 ;; This package needs an older version of tasty.
2850 (arguments '(#:tests? #f))
2851 (inputs
2852 `(("ghc-parsec" ,ghc-parsec)
2853 ("ghc-concatenative" ,ghc-concatenative)))
2854 (native-inputs
2855 `(("ghc-tasty" ,ghc-tasty)
2856 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
2857 (home-page "http://patch-tag.com/r/salazar/indents")
2858 (synopsis "Indentation sensitive parser-combinators for parsec")
2859 (description
2860 "This library provides functions for use in parsing indentation sensitive
2861 contexts. It parses blocks of lines all indented to the same level as well as
2862 lines continued at an indented level below.")
2863 (license license:bsd-3)))
2864
2865 (define-public ghc-iproute
2866 (package
2867 (name "ghc-iproute")
2868 (version "1.7.5")
2869 (source
2870 (origin
2871 (method url-fetch)
2872 (uri (string-append
2873 "https://hackage.haskell.org/package/iproute/iproute-"
2874 version
2875 ".tar.gz"))
2876 (sha256
2877 (base32
2878 "1vw1nm3s8vz1hqnjnqd3wh5rr4q3m2r4izn5ynhf93h9185qwqzd"))))
2879 (build-system haskell-build-system)
2880 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find System.ByteOrder,
2881 ; exported by ghc-byteorder. Doctest issue.
2882 (inputs
2883 `(("ghc-appar" ,ghc-appar)
2884 ("ghc-byteorder" ,ghc-byteorder)
2885 ("ghc-network" ,ghc-network)
2886 ("ghc-safe" ,ghc-safe)))
2887 (home-page "https://www.mew.org/~kazu/proj/iproute/")
2888 (synopsis "IP routing table")
2889 (description "IP Routing Table is a tree of IP ranges to search one of
2890 them on the longest match base. It is a kind of TRIE with one way branching
2891 removed. Both IPv4 and IPv6 are supported.")
2892 (license license:bsd-3)))
2893
2894 (define-public ghc-iwlib
2895 (package
2896 (name "ghc-iwlib")
2897 (version "0.1.0")
2898 (source
2899 (origin
2900 (method url-fetch)
2901 (uri (string-append "https://hackage.haskell.org/package/iwlib/iwlib-"
2902 version ".tar.gz"))
2903 (sha256
2904 (base32 "0khmfwql4vwj55idsxmhjhrbqzfir3g9wm5lmpvnf77mm95cfpdz"))))
2905 (build-system haskell-build-system)
2906 (inputs
2907 `(("wireless-tools" ,wireless-tools)))
2908 (home-page "https://github.com/jaor/iwlib")
2909 (synopsis "Haskell binding to the iw wireless networking library")
2910 (description
2911 "IWlib is a thin Haskell binding to the iw C library. It provides
2912 information about the current wireless network connections, and adapters on
2913 supported systems.")
2914 (license license:bsd-3)))
2915
2916 (define-public ghc-regex-base
2917 (package
2918 (name "ghc-regex-base")
2919 (version "0.93.2")
2920 (source
2921 (origin
2922 (method url-fetch)
2923 (uri (string-append
2924 "https://hackage.haskell.org/package/regex-base/regex-base-"
2925 version
2926 ".tar.gz"))
2927 (sha256
2928 (base32
2929 "0y1j4h2pg12c853nzmczs263di7xkkmlnsq5dlp5wgbgl49mgp10"))))
2930 (build-system haskell-build-system)
2931 (home-page
2932 "https://sourceforge.net/projects/lazy-regex")
2933 (synopsis "Replaces/Enhances Text.Regex")
2934 (description "@code{Text.Regex.Base} provides the interface API for
2935 regex-posix, regex-pcre, regex-parsec, regex-tdfa, regex-dfa.")
2936 (license license:bsd-3)))
2937
2938 (define-public ghc-regex-posix
2939 (package
2940 (name "ghc-regex-posix")
2941 (version "0.95.2")
2942 (source
2943 (origin
2944 (method url-fetch)
2945 (uri (string-append
2946 "https://hackage.haskell.org/package/regex-posix/regex-posix-"
2947 version
2948 ".tar.gz"))
2949 (sha256
2950 (base32
2951 "0gkhzhj8nvfn1ija31c7xnl6p0gadwii9ihyp219ck2arlhrj0an"))))
2952 (build-system haskell-build-system)
2953 (inputs
2954 `(("ghc-regex-base" ,ghc-regex-base)))
2955 (home-page "https://sourceforge.net/projects/lazy-regex")
2956 (synopsis "POSIX regular expressions for Haskell")
2957 (description "This library provides the POSIX regex backend used by the
2958 Haskell library @code{regex-base}.")
2959 (license license:bsd-3)))
2960
2961 (define-public ghc-regex-compat
2962 (package
2963 (name "ghc-regex-compat")
2964 (version "0.95.1")
2965 (source
2966 (origin
2967 (method url-fetch)
2968 (uri (string-append
2969 "https://hackage.haskell.org/package/regex-compat/regex-compat-"
2970 version
2971 ".tar.gz"))
2972 (sha256
2973 (base32
2974 "0fwmima3f04p9y4h3c23493n1xj629ia2dxaisqm6rynljjv2z6m"))))
2975 (build-system haskell-build-system)
2976 (inputs
2977 `(("ghc-regex-base" ,ghc-regex-base)
2978 ("ghc-regex-posix" ,ghc-regex-posix)))
2979 (home-page "https://sourceforge.net/projects/lazy-regex")
2980 (synopsis "Replaces/Enhances Text.Regex")
2981 (description "This library provides one module layer over
2982 @code{regex-posix} to replace @code{Text.Regex}.")
2983 (license license:bsd-3)))
2984
2985 (define-public ghc-regex-tdfa-rc
2986 (package
2987 (name "ghc-regex-tdfa-rc")
2988 (version "1.1.8.3")
2989 (source
2990 (origin
2991 (method url-fetch)
2992 (uri (string-append
2993 "https://hackage.haskell.org/package/regex-tdfa-rc/regex-tdfa-rc-"
2994 version
2995 ".tar.gz"))
2996 (sha256
2997 (base32
2998 "1vi11i23gkkjg6193ak90g55akj69bhahy542frkwb68haky4pp3"))))
2999 (build-system haskell-build-system)
3000 (inputs
3001 `(("ghc-regex-base" ,ghc-regex-base)
3002 ("ghc-parsec" ,ghc-parsec)))
3003 (home-page
3004 "https://hackage.haskell.org/package/regex-tdfa")
3005 (synopsis "Tagged DFA regex engine for Haskell")
3006 (description "A new all-Haskell \"tagged\" DFA regex engine, inspired by
3007 @code{libtre} (fork by Roman Cheplyaka).")
3008 (license license:bsd-3)))
3009
3010 (define-public ghc-regex-tdfa-text
3011 (package
3012 (name "ghc-regex-tdfa-text")
3013 (version "1.0.0.3")
3014 (source
3015 (origin
3016 (method url-fetch)
3017 (uri (string-append
3018 "https://hackage.haskell.org/package/regex-tdfa-text/"
3019 "regex-tdfa-text-" version ".tar.gz"))
3020 (sha256
3021 (base32
3022 "0090g6lgbdm9lywpqm2d3724nnnh24nx3vnlqr96qc2w486pmmrq"))))
3023 (build-system haskell-build-system)
3024 (inputs
3025 `(("ghc-text" ,ghc-text)
3026 ("ghc-regex-base" ,ghc-regex-base)
3027 ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
3028 (home-page
3029 "http://hackage.haskell.org/package/regex-tdfa-text")
3030 (synopsis "Text interface for regex-tdfa")
3031 (description
3032 "This provides an extra text interface for regex-tdfa.")
3033 (license license:bsd-3)))
3034
3035 (define-public ghc-regex
3036 (package
3037 (name "ghc-regex")
3038 (version "1.0.1.3")
3039 (source
3040 (origin
3041 (method url-fetch)
3042 (uri (string-append "https://hackage.haskell.org/package/regex/"
3043 "regex-" version ".tar.gz"))
3044 (sha256
3045 (base32
3046 "1sjkpkgv4phy5b5v2lr89x4vx4dh44pj0sbvlsp6n86w9v6v4jwb"))))
3047 (build-system haskell-build-system)
3048 (arguments
3049 `(#:phases
3050 (modify-phases %standard-phases
3051 (add-after 'unpack 'relax-dependencies
3052 (lambda _
3053 (substitute* "regex.cabal"
3054 (("base-compat.*>=.*0.6.*")
3055 "base-compat >= 0.6\n")
3056 (("template-haskell.*>=.*2.7.*")
3057 "template-haskell >= 2.7\n"))
3058 #t)))))
3059 (inputs
3060 `(("ghc-base-compat" ,ghc-base-compat)
3061 ("ghc-hashable" ,ghc-hashable)
3062 ("ghc-regex-base" ,ghc-regex-base)
3063 ("ghc-regex-pcre-builtin" ,ghc-regex-pcre-builtin)
3064 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
3065 ("ghc-regex-tdfa-text" ,ghc-regex-tdfa-text)
3066 ("ghc-text" ,ghc-text)
3067 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
3068 ("ghc-unordered-containers" ,ghc-unordered-containers)
3069 ("ghc-utf8-string" ,ghc-utf8-string)))
3070 (home-page "http://regex.uk")
3071 (synopsis "Toolkit for regex-base")
3072 (description
3073 "This package provides a regular expression toolkit for @code{regex-base}
3074 with compile-time checking of regular expression syntax, data types for
3075 matches and captures, a text replacement toolkit, portable options, high-level
3076 AWK-like tools for building text processing apps, regular expression macros
3077 with parsers and test bench, comprehensive documentation, tutorials and
3078 copious examples.")
3079 (license license:bsd-3)))
3080
3081 (define-public ghc-parsers
3082 (package
3083 (name "ghc-parsers")
3084 (version "0.12.9")
3085 (source
3086 (origin
3087 (method url-fetch)
3088 (uri (string-append
3089 "https://hackage.haskell.org/package/parsers/parsers-"
3090 version
3091 ".tar.gz"))
3092 (sha256
3093 (base32
3094 "1r05sc1mcglk8w596kq9a1brfn9c2vll8lq16j07ln0vsz4jzrc1"))))
3095 (build-system haskell-build-system)
3096 (arguments `(#:tests? #f)) ; FIXME: Test fails with "cannot satisfy
3097 ; -package attoparsec-0.13.0.1"
3098 (inputs
3099 `(("ghc-base-orphans" ,ghc-base-orphans)
3100 ("ghc-attoparsec" ,ghc-attoparsec)
3101 ("ghc-parsec" ,ghc-parsec)
3102 ("ghc-scientific" ,ghc-scientific)
3103 ("ghc-charset" ,ghc-charset)
3104 ("ghc-text" ,ghc-text)
3105 ("ghc-unordered-containers" ,ghc-unordered-containers)))
3106 (home-page "https://github.com/ekmett/parsers/")
3107 (synopsis "Parsing combinators")
3108 (description "This library provides convenient combinators for working
3109 with and building parsing combinator libraries. Given a few simple instances,
3110 you get access to a large number of canned definitions. Instances exist for
3111 the parsers provided by @code{parsec}, @code{attoparsec} and @code{base}'s
3112 @code{Text.Read}.")
3113 (license license:bsd-3)))
3114
3115 (define-public ghc-trifecta
3116 (package
3117 (name "ghc-trifecta")
3118 (version "2")
3119 (source (origin
3120 (method url-fetch)
3121 (uri (string-append
3122 "https://hackage.haskell.org/package/trifecta/"
3123 "trifecta-" version ".tar.gz"))
3124 (sha256
3125 (base32
3126 "0hznd8i65s81xy13i2qc7cvipw3lfb2yhkv53apbdsh6sbljz5sk"))))
3127 (build-system haskell-build-system)
3128 (inputs
3129 `(("ghc-reducers" ,ghc-reducers)
3130 ("ghc-semigroups" ,ghc-semigroups)
3131 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
3132 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
3133 ("ghc-blaze-builder" ,ghc-blaze-builder)
3134 ("ghc-blaze-html" ,ghc-blaze-html)
3135 ("ghc-blaze-markup" ,ghc-blaze-markup)
3136 ("ghc-charset" ,ghc-charset)
3137 ("ghc-comonad" ,ghc-comonad)
3138 ("ghc-fingertree" ,ghc-fingertree)
3139 ("ghc-hashable" ,ghc-hashable)
3140 ("ghc-lens" ,ghc-lens)
3141 ("ghc-parsers" ,ghc-parsers)
3142 ("ghc-profunctors" ,ghc-profunctors)
3143 ("ghc-unordered-containers" ,ghc-unordered-containers)
3144 ("ghc-utf8-string" ,ghc-utf8-string)))
3145 (native-inputs
3146 `(("cabal-doctest" ,cabal-doctest)
3147 ("ghc-doctest" ,ghc-doctest)
3148 ("ghc-quickcheck" ,ghc-quickcheck)))
3149 (home-page "https://github.com/ekmett/trifecta/")
3150 (synopsis "Parser combinator library with convenient diagnostics")
3151 (description "Trifecta is a modern parser combinator library for Haskell,
3152 with slicing and Clang-style colored diagnostics.")
3153 (license license:bsd-3)))
3154
3155 (define-public ghc-time-locale-compat
3156 (package
3157 (name "ghc-time-locale-compat")
3158 (version "0.1.1.5")
3159 (source
3160 (origin
3161 (method url-fetch)
3162 (uri (string-append "https://hackage.haskell.org/package/"
3163 "time-locale-compat/time-locale-compat-"
3164 version ".tar.gz"))
3165 (sha256
3166 (base32
3167 "0b2hmj8wwrfkndwzgm11qr496ca2ahwdxcj3m0ii91bxvrk1bzq7"))))
3168 (build-system haskell-build-system)
3169 (inputs `(("ghc-old-locale" ,ghc-old-locale)))
3170 (home-page "https://github.com/khibino/haskell-time-locale-compat")
3171 (synopsis "Compatibility of TimeLocale between old-locale and time-1.5")
3172 (description "This package contains a wrapped name module for
3173 @code{TimeLocale}.")
3174 (license license:bsd-3)))
3175
3176 (define-public ghc-attoparsec
3177 (package
3178 (name "ghc-attoparsec")
3179 (version "0.13.2.2")
3180 (source
3181 (origin
3182 (method url-fetch)
3183 (uri (string-append
3184 "https://hackage.haskell.org/package/attoparsec/attoparsec-"
3185 version
3186 ".tar.gz"))
3187 (sha256
3188 (base32
3189 "0j6qcwd146yzlkc9mcvzvnixsyl65n2a68l28322q5v9p4g4g4yx"))))
3190 (build-system haskell-build-system)
3191 (arguments
3192 `(#:phases
3193 (modify-phases %standard-phases
3194 (add-after 'unpack 'patch-for-newer-quickcheck
3195 (lambda _
3196 (substitute* "attoparsec.cabal"
3197 (("QuickCheck >= 2\\.7 && < 2\\.10")
3198 "QuickCheck >= 2.7 && < 2.12"))
3199 ;; This test fails because of the newer QuickCheck:
3200 ;; <https://github.com/bos/attoparsec/issues/134>.
3201 (substitute* "tests/QC/ByteString.hs"
3202 ((", testProperty \"satisfyWith\" satisfyWith")
3203 "")))))))
3204 (inputs
3205 `(("ghc-scientific" ,ghc-scientific)
3206 ("ghc-text" ,ghc-text)))
3207 (native-inputs
3208 `(("ghc-tasty" ,ghc-tasty)
3209 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
3210 ("ghc-quickcheck" ,ghc-quickcheck)
3211 ("ghc-quickcheck-unicode" ,ghc-quickcheck-unicode)
3212 ("ghc-vector" ,ghc-vector)))
3213 (home-page "https://github.com/bos/attoparsec")
3214 (synopsis "Fast combinator parsing for bytestrings and text")
3215 (description "This library provides a fast parser combinator library,
3216 aimed particularly at dealing efficiently with network protocols and
3217 complicated text/binary file formats.")
3218 (license license:bsd-3)))
3219
3220 (define-public ghc-attoparsec-bootstrap
3221 (package
3222 (inherit ghc-attoparsec)
3223 (name "ghc-attoparsec-bootstrap")
3224 (arguments `(#:tests? #f))
3225 (inputs
3226 `(("ghc-scientific" ,ghc-scientific-bootstrap)
3227 ("ghc-text" ,ghc-text)))
3228 (native-inputs '())
3229 (properties '(hidden? #t))))
3230
3231 (define-public ghc-zip-archive
3232 (package
3233 (name "ghc-zip-archive")
3234 (version "0.3.3")
3235 (source
3236 (origin
3237 (method url-fetch)
3238 (uri (string-append
3239 "https://hackage.haskell.org/package/zip-archive/zip-archive-"
3240 version
3241 ".tar.gz"))
3242 (sha256
3243 (base32
3244 "0kf8xyac168bng8a0za2jwrbss7a4ralvci9g54hnvl0gkkxx2lq"))))
3245 (build-system haskell-build-system)
3246 (inputs
3247 `(("ghc-digest" ,ghc-digest)
3248 ("ghc-temporary" ,ghc-temporary)
3249 ("ghc-text" ,ghc-text)
3250 ("ghc-zlib" ,ghc-zlib)))
3251 (native-inputs
3252 `(("ghc-hunit" ,ghc-hunit)
3253 ("unzip" ,unzip)))
3254 (home-page "https://hackage.haskell.org/package/zip-archive")
3255 (synopsis "Zip archive library for Haskell")
3256 (description "The zip-archive library provides functions for creating,
3257 modifying, and extracting files from zip archives in Haskell.")
3258 (license license:bsd-3)))
3259
3260 (define-public ghc-distributive
3261 (package
3262 (name "ghc-distributive")
3263 (version "0.5.3")
3264 (source
3265 (origin
3266 (method url-fetch)
3267 (uri (string-append
3268 "https://hackage.haskell.org/package/distributive/distributive-"
3269 version
3270 ".tar.gz"))
3271 (sha256
3272 (base32
3273 "0y566r97sfyvhsmd4yxiz4ns2mqgwf5bdbp56wgxl6wlkidq0wwi"))))
3274 (build-system haskell-build-system)
3275 (arguments
3276 `(#:cabal-revision
3277 ("6" "06bd38rf31yrvvy989r44pm0id3dsxwcp6nxg7wk6ccj3n2b8rzk")))
3278 (inputs
3279 `(("ghc-tagged" ,ghc-tagged)
3280 ("ghc-base-orphans" ,ghc-base-orphans)
3281 ("ghc-transformers-compat" ,ghc-transformers-compat)
3282 ("ghc-semigroups" ,ghc-semigroups)
3283 ("ghc-generic-deriving" ,ghc-generic-deriving)))
3284 (native-inputs
3285 `(("cabal-doctest" ,cabal-doctest)
3286 ("ghc-doctest" ,ghc-doctest)
3287 ("ghc-hspec" ,ghc-hspec)
3288 ("hspec-discover" ,hspec-discover)))
3289 (home-page "https://github.com/ekmett/distributive/")
3290 (synopsis "Distributive functors for Haskell")
3291 (description "This package provides distributive functors for Haskell.
3292 Dual to @code{Traversable}.")
3293 (license license:bsd-3)))
3294
3295 (define-public ghc-cereal
3296 (package
3297 (name "ghc-cereal")
3298 (version "0.5.7.0")
3299 (source
3300 (origin
3301 (method url-fetch)
3302 (uri (string-append
3303 "https://hackage.haskell.org/package/cereal/cereal-"
3304 version
3305 ".tar.gz"))
3306 (sha256
3307 (base32
3308 "1j7imh2mzqcljld7sx0av69699955rpy3hzivi5723i6a9nszgbs"))))
3309 (build-system haskell-build-system)
3310 (native-inputs
3311 `(("ghc-quickcheck" ,ghc-quickcheck)
3312 ("ghc-fail" ,ghc-fail)
3313 ("ghc-test-framework" ,ghc-test-framework)
3314 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
3315 (home-page "https://hackage.haskell.org/package/cereal")
3316 (synopsis "Binary serialization library")
3317 (description "This package provides a binary serialization library,
3318 similar to @code{binary}, that introduces an @code{isolate} primitive for
3319 parser isolation, and labeled blocks for better error messages.")
3320 (license license:bsd-3)))
3321
3322 (define-public ghc-comonad
3323 (package
3324 (name "ghc-comonad")
3325 (version "5.0.4")
3326 (source
3327 (origin
3328 (method url-fetch)
3329 (uri (string-append
3330 "https://hackage.haskell.org/package/comonad/comonad-"
3331 version
3332 ".tar.gz"))
3333 (sha256
3334 (base32
3335 "09g870c4flp4k3fgbibsd0mmfjani1qcpbcl685v8x89kxzrva3q"))))
3336 (build-system haskell-build-system)
3337 (native-inputs
3338 `(("cabal-doctest" ,cabal-doctest)
3339 ("ghc-doctest" ,ghc-doctest)))
3340 (inputs
3341 `(("ghc-contravariant" ,ghc-contravariant)
3342 ("ghc-distributive" ,ghc-distributive)
3343 ("ghc-semigroups" ,ghc-semigroups)
3344 ("ghc-tagged" ,ghc-tagged)
3345 ("ghc-transformers-compat" ,ghc-transformers-compat)))
3346 (home-page "https://github.com/ekmett/comonad/")
3347 (synopsis "Comonads for Haskell")
3348 (description "This library provides @code{Comonad}s for Haskell.")
3349 (license license:bsd-3)))
3350
3351 (define-public hscolour
3352 (package
3353 (name "hscolour")
3354 (version "1.24.4")
3355 (source
3356 (origin
3357 (method url-fetch)
3358 (uri (string-append
3359 "https://hackage.haskell.org/package/hscolour/hscolour-"
3360 version
3361 ".tar.gz"))
3362 (sha256
3363 (base32
3364 "079jwph4bwllfp03yfr26s5zc6m6kw3nhb1cggrifh99haq34cr4"))))
3365 (build-system haskell-build-system)
3366 (home-page "https://hackage.haskell.org/package/hscolour")
3367 (synopsis "Script to colourise Haskell code")
3368 (description "HSColour is a small Haskell script to colourise Haskell
3369 code. It currently has six output formats: ANSI terminal codes (optionally
3370 XTerm-256colour codes), HTML 3.2 with font tags, HTML 4.01 with CSS, HTML 4.01
3371 with CSS and mouseover annotations, XHTML 1.0 with inline CSS styling, LaTeX,
3372 and mIRC chat codes.")
3373 (license license:bsd-3)))
3374
3375 (define-public ghc-polyparse
3376 (package
3377 (name "ghc-polyparse")
3378 (version "1.12")
3379 (source
3380 (origin
3381 (method url-fetch)
3382 (uri (string-append
3383 "https://hackage.haskell.org/package/polyparse/polyparse-"
3384 version
3385 ".tar.gz"))
3386 (sha256
3387 (base32
3388 "05dya1vdvq29hkhkdlsglzhw7bdn51rvs1javs0q75nf99c66k7m"))))
3389 (build-system haskell-build-system)
3390 (inputs
3391 `(("ghc-text" ,ghc-text)))
3392 (home-page
3393 "http://code.haskell.org/~malcolm/polyparse/")
3394 (synopsis
3395 "Alternative parser combinator libraries")
3396 (description
3397 "This package provides a variety of alternative parser combinator
3398 libraries, including the original HuttonMeijer set. The Poly sets have
3399 features like good error reporting, arbitrary token type, running state, lazy
3400 parsing, and so on. Finally, Text.Parse is a proposed replacement for the
3401 standard Read class, for better deserialisation of Haskell values from
3402 Strings.")
3403 (license license:lgpl2.1)))
3404
3405 (define-public ghc-extra
3406 (package
3407 (name "ghc-extra")
3408 (version "1.6.9")
3409 (source
3410 (origin
3411 (method url-fetch)
3412 (uri (string-append
3413 "https://hackage.haskell.org/package/extra/extra-"
3414 version
3415 ".tar.gz"))
3416 (sha256
3417 (base32
3418 "0xxcpb00pgwi9cmy6a7ghh6rblxry42p8pz5ssfgj20fs1xwzj1b"))))
3419 (build-system haskell-build-system)
3420 (inputs
3421 `(("ghc-clock" ,ghc-clock)
3422 ("ghc-quickcheck" ,ghc-quickcheck)))
3423 (home-page "https://github.com/ndmitchell/extra")
3424 (synopsis "Extra Haskell functions")
3425 (description "This library provides extra functions for the standard
3426 Haskell libraries. Most functions are simple additions, filling out missing
3427 functionality. A few functions are available in later versions of GHC, but
3428 this package makes them available back to GHC 7.2.")
3429 (license license:bsd-3)))
3430
3431 (define-public ghc-profunctors
3432 (package
3433 (name "ghc-profunctors")
3434 (version "5.2.2")
3435 (source
3436 (origin
3437 (method url-fetch)
3438 (uri (string-append
3439 "https://hackage.haskell.org/package/profunctors/profunctors-"
3440 version
3441 ".tar.gz"))
3442 (sha256
3443 (base32
3444 "0s1pwjidbn761xk43pmzyvn99hm3psdifjd78ylki7f97aiyd0g9"))))
3445 (build-system haskell-build-system)
3446 (arguments
3447 `(#:cabal-revision
3448 ("2" "1ywlg9z8nlhd2avgb8c6gbkv8zyk7hvc25926bafyg0m0k8y1amq")))
3449 (inputs
3450 `(("ghc-base-orphans" ,ghc-base-orphans)
3451 ("ghc-bifunctors" ,ghc-bifunctors)
3452 ("ghc-comonad" ,ghc-comonad)
3453 ("ghc-contravariant" ,ghc-contravariant)
3454 ("ghc-distributive" ,ghc-distributive)
3455 ("ghc-semigroups" ,ghc-semigroups)
3456 ("ghc-tagged" ,ghc-tagged)))
3457 (home-page "https://github.com/ekmett/profunctors/")
3458 (synopsis "Profunctors for Haskell")
3459 (description "This library provides profunctors for Haskell.")
3460 (license license:bsd-3)))
3461
3462 (define-public ghc-reducers
3463 (package
3464 (name "ghc-reducers")
3465 (version "3.12.3")
3466 (source
3467 (origin
3468 (method url-fetch)
3469 (uri (string-append
3470 "https://hackage.haskell.org/package/reducers/reducers-"
3471 version
3472 ".tar.gz"))
3473 (sha256
3474 (base32
3475 "09wf8pl9ycglcv6qj5ba26gkg2s5iy81hsx9xp0q8na0cwvp71ki"))))
3476 (build-system haskell-build-system)
3477 (inputs
3478 `(("ghc-fingertree" ,ghc-fingertree)
3479 ("ghc-hashable" ,ghc-hashable)
3480 ("ghc-text" ,ghc-text)
3481 ("ghc-unordered-containers" ,ghc-unordered-containers)
3482 ("ghc-semigroupoids" ,ghc-semigroupoids)
3483 ("ghc-semigroups" ,ghc-semigroups)))
3484 (home-page "https://github.com/ekmett/reducers/")
3485 (synopsis "Semigroups, specialized containers and a general map/reduce framework")
3486 (description "This library provides various semigroups, specialized
3487 containers and a general map/reduce framework for Haskell.")
3488 (license license:bsd-3)))
3489
3490 (define-public ghc-appar
3491 (package
3492 (name "ghc-appar")
3493 (version "0.1.4")
3494 (source
3495 (origin
3496 (method url-fetch)
3497 (uri (string-append
3498 "https://hackage.haskell.org/package/appar/appar-"
3499 version
3500 ".tar.gz"))
3501 (sha256
3502 (base32
3503 "09jb9ij78fdkz2qk66rw99q19qnm504dpv0yq0pjsl6xwjmndsjq"))))
3504 (build-system haskell-build-system)
3505 (home-page
3506 "https://hackage.haskell.org/package/appar")
3507 (synopsis "Simple applicative parser")
3508 (description "This package provides a simple applicative parser in Parsec
3509 style.")
3510 (license license:bsd-3)))
3511
3512 (define-public ghc-safe
3513 (package
3514 (name "ghc-safe")
3515 (version "0.3.17")
3516 (source
3517 (origin
3518 (method url-fetch)
3519 (uri (string-append
3520 "https://hackage.haskell.org/package/safe/safe-"
3521 version
3522 ".tar.gz"))
3523 (sha256
3524 (base32
3525 "0p3yaf5slvyz1cyy51jq64c5rlp8yzwim8iy2dlnk42if4gc9ibr"))))
3526 (build-system haskell-build-system)
3527 (native-inputs
3528 `(("ghc-quickcheck" ,ghc-quickcheck)))
3529 (home-page "https://github.com/ndmitchell/safe#readme")
3530 (synopsis "Library of safe (exception free) functions")
3531 (description "This library provides wrappers around @code{Prelude} and
3532 @code{Data.List} functions, such as @code{head} and @code{!!}, that can throw
3533 exceptions.")
3534 (license license:bsd-3)))
3535
3536 (define-public ghc-generic-deriving
3537 (package
3538 (name "ghc-generic-deriving")
3539 (version "1.12.2")
3540 (source
3541 (origin
3542 (method url-fetch)
3543 (uri (string-append
3544 "https://hackage.haskell.org/package/generic-deriving/generic-deriving-"
3545 version
3546 ".tar.gz"))
3547 (sha256
3548 (base32
3549 "1i7d6cpj9yhaqb79zays3nqchhaacacjz9bkc0zlwj73y5gvi22n"))))
3550 (build-system haskell-build-system)
3551 (inputs
3552 `(("ghc-th-abstraction" ,ghc-th-abstraction)))
3553 (native-inputs
3554 `(("ghc-hspec" ,ghc-hspec)
3555 ("hspec-discover" ,hspec-discover)))
3556 (home-page "https://hackage.haskell.org/package/generic-deriving")
3557 (synopsis "Generalise the deriving mechanism to arbitrary classes")
3558 (description "This package provides functionality for generalising the
3559 deriving mechanism in Haskell to arbitrary classes.")
3560 (license license:bsd-3)))
3561
3562 (define-public ghc-pcre-light
3563 (package
3564 (name "ghc-pcre-light")
3565 (version "0.4.0.4")
3566 (source
3567 (origin
3568 (method url-fetch)
3569 (uri (string-append
3570 "https://hackage.haskell.org/package/pcre-light/pcre-light-"
3571 version
3572 ".tar.gz"))
3573 (sha256
3574 (base32
3575 "0xcyi1fivwg7a92mch5bcqzmrfxzqj42rmb3m8kgs61x4qwpxj82"))))
3576 (build-system haskell-build-system)
3577 (inputs
3578 `(("pcre" ,pcre)))
3579 (native-inputs
3580 `(("pkg-config" ,pkg-config)))
3581 (home-page "https://github.com/Daniel-Diaz/pcre-light")
3582 (synopsis "Haskell library for Perl 5 compatible regular expressions")
3583 (description "This package provides a small, efficient, and portable regex
3584 library for Perl 5 compatible regular expressions. The PCRE library is a set
3585 of functions that implement regular expression pattern matching using the same
3586 syntax and semantics as Perl 5.")
3587 (license license:bsd-3)))
3588
3589 (define-public ghc-logict
3590 (package
3591 (name "ghc-logict")
3592 (version "0.6.0.2")
3593 (source
3594 (origin
3595 (method url-fetch)
3596 (uri (string-append
3597 "https://hackage.haskell.org/package/logict/logict-"
3598 version
3599 ".tar.gz"))
3600 (sha256
3601 (base32
3602 "07hnirv6snnym2r7iijlfz00b60jpy2856zvqxh989q0in7bd0hi"))))
3603 (build-system haskell-build-system)
3604 (home-page "http://code.haskell.org/~dolio/")
3605 (synopsis "Backtracking logic-programming monad")
3606 (description "This library provides a continuation-based, backtracking,
3607 logic programming monad. An adaptation of the two-continuation implementation
3608 found in the paper \"Backtracking, Interleaving, and Terminating Monad
3609 Transformers\" available @uref{http://okmij.org/ftp/papers/LogicT.pdf,
3610 online}.")
3611 (license license:bsd-3)))
3612
3613 (define-public ghc-xml
3614 (package
3615 (name "ghc-xml")
3616 (version "1.3.14")
3617 (source
3618 (origin
3619 (method url-fetch)
3620 (uri (string-append
3621 "https://hackage.haskell.org/package/xml/xml-"
3622 version
3623 ".tar.gz"))
3624 (sha256
3625 (base32
3626 "0g814lj7vaxvib2g3r734221k80k7ap9czv9hinifn8syals3l9j"))))
3627 (build-system haskell-build-system)
3628 (inputs
3629 `(("ghc-text" ,ghc-text)))
3630 (home-page "http://code.galois.com")
3631 (synopsis "Simple XML library for Haskell")
3632 (description "This package provides a simple XML library for Haskell.")
3633 (license license:bsd-3)))
3634
3635 (define-public ghc-feed
3636 (package
3637 (name "ghc-feed")
3638 (version "1.0.0.0")
3639 (source
3640 (origin
3641 (method url-fetch)
3642 (uri (string-append "https://hackage.haskell.org/package/"
3643 "feed/feed-" version ".tar.gz"))
3644 (sha256
3645 (base32
3646 "05rgg7x1984mgfhkmz792xj8lhwjgznixhygzr8blf517lns2nck"))))
3647 (build-system haskell-build-system)
3648 (arguments
3649 `(#:cabal-revision
3650 ("4" "0baavcavm3ywykcr9cm07aqr7sna98jba2n68lyn3kany8ri214d")))
3651 (inputs
3652 `(("ghc-base-compat" ,ghc-base-compat)
3653 ("ghc-old-locale" ,ghc-old-locale)
3654 ("ghc-old-time" ,ghc-old-time)
3655 ("ghc-safe" ,ghc-safe)
3656 ("ghc-text" ,ghc-text)
3657 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
3658 ("ghc-utf8-string" ,ghc-utf8-string)
3659 ("ghc-xml-conduit" ,ghc-xml-conduit)
3660 ("ghc-xml-types" ,ghc-xml-types)))
3661 (native-inputs
3662 `(("ghc-hunit" ,ghc-hunit)
3663 ("ghc-test-framework" ,ghc-test-framework)
3664 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
3665 (home-page "https://github.com/bergmark/feed")
3666 (synopsis "Haskell package for handling various syndication formats")
3667 (description "This Haskell package includes tools for generating and
3668 consuming feeds in both RSS (Really Simple Syndication) and Atom format.")
3669 (license license:bsd-3)))
3670
3671 (define-public ghc-exceptions
3672 (package
3673 (name "ghc-exceptions")
3674 (version "0.10.0")
3675 (source
3676 (origin
3677 (method url-fetch)
3678 (uri (string-append
3679 "https://hackage.haskell.org/package/exceptions/exceptions-"
3680 version
3681 ".tar.gz"))
3682 (sha256
3683 (base32
3684 "1ms9zansv0pwzwdjncvx4kf18lnkjy2p61hvjhvxmjx5bqp93p8y"))))
3685 (build-system haskell-build-system)
3686 (native-inputs
3687 `(("ghc-quickcheck" ,ghc-quickcheck)
3688 ("ghc-test-framework" ,ghc-test-framework)
3689 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
3690 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
3691 (inputs
3692 `(("ghc-stm" ,ghc-stm)
3693 ("ghc-transformers-compat" ,ghc-transformers-compat)))
3694 (home-page "https://github.com/ekmett/exceptions/")
3695 (synopsis "Extensible optionally-pure exceptions")
3696 (description "This library provides extensible optionally-pure exceptions
3697 for Haskell.")
3698 (license license:bsd-3)))
3699
3700 (define-public ghc-temporary
3701 (package
3702 (name "ghc-temporary")
3703 (version "1.3")
3704 (source
3705 (origin
3706 (method url-fetch)
3707 (uri (string-append
3708 "https://hackage.haskell.org/package/temporary/temporary-"
3709 version
3710 ".tar.gz"))
3711 (sha256
3712 (base32
3713 "144qhwfwg37l3k313raf4ssiz16jbgwlm1nf4flgqpsbd69jji4c"))))
3714 (build-system haskell-build-system)
3715 (inputs
3716 `(("ghc-exceptions" ,ghc-exceptions)
3717 ("ghc-random" ,ghc-random)))
3718 (native-inputs
3719 `(("ghc-base-compat" ,ghc-base-compat)
3720 ("ghc-tasty" ,ghc-tasty)
3721 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
3722 (home-page "https://www.github.com/batterseapower/temporary")
3723 (synopsis "Temporary file and directory support")
3724 (description "The functions for creating temporary files and directories
3725 in the Haskelll base library are quite limited. This library just repackages
3726 the Cabal implementations of its own temporary file and folder functions so
3727 that you can use them without linking against Cabal or depending on it being
3728 installed.")
3729 (license license:bsd-3)))
3730
3731 (define-public ghc-temporary-rc
3732 (package
3733 (name "ghc-temporary-rc")
3734 (version "1.2.0.3")
3735 (source
3736 (origin
3737 (method url-fetch)
3738 (uri (string-append
3739 "https://hackage.haskell.org/package/temporary-rc/temporary-rc-"
3740 version
3741 ".tar.gz"))
3742 (sha256
3743 (base32
3744 "1nqih0qks439k3pr5kmbbc8rjdw730slrxlflqb27fbxbzb8skqs"))))
3745 (build-system haskell-build-system)
3746 (inputs `(("ghc-exceptions" ,ghc-exceptions)))
3747 (home-page
3748 "https://www.github.com/feuerbach/temporary")
3749 (synopsis
3750 "Portable temporary file and directory support")
3751 (description
3752 "The functions for creating temporary files and directories in the base
3753 library are quite limited. The unixutils package contains some good ones, but
3754 they aren't portable to Windows. This library just repackages the Cabal
3755 implementations of its own temporary file and folder functions so that you can
3756 use them without linking against Cabal or depending on it being installed.
3757 This is a better maintained fork of the \"temporary\" package.")
3758 (license license:bsd-3)))
3759
3760 (define-public ghc-smallcheck
3761 (package
3762 (name "ghc-smallcheck")
3763 (version "1.1.5")
3764 (source
3765 (origin
3766 (method url-fetch)
3767 (uri (string-append
3768 "https://hackage.haskell.org/package/smallcheck/smallcheck-"
3769 version
3770 ".tar.gz"))
3771 (sha256
3772 (base32
3773 "195fj7w3v03d1y1nm2ylavzrwxjcdbq0lb6zsw1dwyx5jmwfc84h"))))
3774 (build-system haskell-build-system)
3775 (inputs
3776 `(("ghc-logict" ,ghc-logict)))
3777 (home-page
3778 "https://github.com/feuerbach/smallcheck")
3779 (synopsis "Property-based testing library")
3780 (description "SmallCheck is a testing library that allows to verify
3781 properties for all test cases up to some depth. The test cases are generated
3782 automatically by SmallCheck.")
3783 (license license:bsd-3)))
3784
3785 (define-public ghc-silently
3786 (package
3787 (name "ghc-silently")
3788 (version "1.2.5")
3789 (source
3790 (origin
3791 (method url-fetch)
3792 (uri (string-append
3793 "https://hackage.haskell.org/package/silently/silently-"
3794 version
3795 ".tar.gz"))
3796 (sha256
3797 (base32
3798 "0f9qm3f7y0hpxn6mddhhg51mm1r134qkvd2kr8r6192ka1ijbxnf"))))
3799 (build-system haskell-build-system)
3800 (arguments `(#:tests? #f)) ;; circular dependency with nanospec
3801 ;; (inputs
3802 ;; `(("ghc-temporary" ,ghc-temporary)))
3803 (home-page "https://github.com/hspec/silently")
3804 (synopsis "Prevent writing to stdout")
3805 (description "This package provides functions to prevent or capture
3806 writing to stdout and other handles.")
3807 (license license:bsd-3)))
3808
3809 (define-public ghc-case-insensitive
3810 (package
3811 (name "ghc-case-insensitive")
3812 (version "1.2.0.11")
3813 (outputs '("out" "doc"))
3814 (source
3815 (origin
3816 (method url-fetch)
3817 (uri (string-append
3818 "https://hackage.haskell.org/package/case-insensitive/case-insensitive-"
3819 version
3820 ".tar.gz"))
3821 (sha256
3822 (base32
3823 "1qrpxfirsxckg7jv28f5ah2qc8lh95hp7rnqkbqs1ahcwlbnvkm7"))))
3824 (build-system haskell-build-system)
3825 ;; these inputs are necessary to use this library
3826 (inputs
3827 `(("ghc-text" ,ghc-text)
3828 ("ghc-hashable" ,ghc-hashable)))
3829 (arguments
3830 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
3831 (home-page
3832 "https://github.com/basvandijk/case-insensitive")
3833 (synopsis "Case insensitive string comparison")
3834 (description
3835 "The module @code{Data.CaseInsensitive} provides the @code{CI} type
3836 constructor which can be parameterised by a string-like type like:
3837 @code{String}, @code{ByteString}, @code{Text}, etc. Comparisons of values of
3838 the resulting type will be insensitive to cases.")
3839 (license license:bsd-3)))
3840
3841 (define-public ghc-syb
3842 (package
3843 (name "ghc-syb")
3844 (version "0.7")
3845 (outputs '("out" "doc"))
3846 (source
3847 (origin
3848 (method url-fetch)
3849 (uri (string-append
3850 "https://hackage.haskell.org/package/syb/syb-"
3851 version
3852 ".tar.gz"))
3853 (sha256
3854 (base32
3855 "1da2zz7gqm4xbkx5vpd74dayx1svaxyl145fl14mq15lbb77sxdq"))))
3856 (build-system haskell-build-system)
3857 (inputs
3858 `(("ghc-hunit" ,ghc-hunit)))
3859 (home-page
3860 "http://www.cs.uu.nl/wiki/GenericProgramming/SYB")
3861 (synopsis "Scrap Your Boilerplate")
3862 (description "This package contains the generics system described in the
3863 /Scrap Your Boilerplate/ papers (see
3864 @uref{http://www.cs.uu.nl/wiki/GenericProgramming/SYB, the website}). It
3865 defines the @code{Data} class of types permitting folding and unfolding of
3866 constructor applications, instances of this class for primitive types, and a
3867 variety of traversals.")
3868 (license license:bsd-3)))
3869
3870 (define-public ghc-fgl
3871 (package
3872 (name "ghc-fgl")
3873 (version "5.6.0.0")
3874 (outputs '("out" "doc"))
3875 (source
3876 (origin
3877 (method url-fetch)
3878 (uri (string-append
3879 "https://hackage.haskell.org/package/fgl/fgl-"
3880 version
3881 ".tar.gz"))
3882 (sha256
3883 (base32
3884 "1i6cp4b3w7sjk7y1dq3fh6bci2sm5h3lnbbaw9ln19nwncg2wwll"))))
3885 (build-system haskell-build-system)
3886 (arguments
3887 `(#:phases
3888 (modify-phases %standard-phases
3889 (add-before 'configure 'update-constraints
3890 (lambda _
3891 (substitute* "fgl.cabal"
3892 (("QuickCheck >= 2\\.8 && < 2\\.10")
3893 "QuickCheck >= 2.8 && < 2.12")
3894 (("hspec >= 2\\.1 && < 2\\.5")
3895 "hspec >= 2.1 && < 2.6")))))))
3896 (inputs
3897 `(("ghc-hspec" ,ghc-hspec)
3898 ("ghc-quickcheck" ,ghc-quickcheck)))
3899 (home-page "https://web.engr.oregonstate.edu/~erwig/fgl/haskell")
3900 (synopsis
3901 "Martin Erwig's Functional Graph Library")
3902 (description "The functional graph library, FGL, is a collection of type
3903 and function definitions to address graph problems. The basis of the library
3904 is an inductive definition of graphs in the style of algebraic data types that
3905 encourages inductive, recursive definitions of graph algorithms.")
3906 (license license:bsd-3)))
3907
3908 (define-public ghc-chasingbottoms
3909 (package
3910 (name "ghc-chasingbottoms")
3911 (version "1.3.1.4")
3912 (source
3913 (origin
3914 (method url-fetch)
3915 (uri (string-append "https://hackage.haskell.org/package/ChasingBottoms/"
3916 "ChasingBottoms-" version ".tar.gz"))
3917 (sha256
3918 (base32
3919 "06cynx6hcbfpky7qq3b3mjjgwbnaxkwin3znbwq4b9ikiw0ng633"))))
3920 (build-system haskell-build-system)
3921 (inputs
3922 `(("ghc-quickcheck" ,ghc-quickcheck)
3923 ("ghc-random" ,ghc-random)
3924 ("ghc-syb" ,ghc-syb)))
3925 (home-page "https://hackage.haskell.org/package/ChasingBottoms")
3926 (synopsis "Testing of partial and infinite values in Haskell")
3927 (description
3928 ;; FIXME: There should be a @comma{} in the uref text, but it is not
3929 ;; rendered properly.
3930 "This is a library for testing code involving bottoms or infinite values.
3931 For the underlying theory and a larger example involving use of QuickCheck,
3932 see the article
3933 @uref{http://www.cse.chalmers.se/~nad/publications/danielsson-jansson-mpc2004.html,
3934 \"Chasing Bottoms A Case Study in Program Verification in the Presence of
3935 Partial and Infinite Values\"}.")
3936 (license license:expat)))
3937
3938 (define-public ghc-unordered-containers
3939 (package
3940 (name "ghc-unordered-containers")
3941 (version "0.2.9.0")
3942 (outputs '("out" "doc"))
3943 (source
3944 (origin
3945 (method url-fetch)
3946 (uri (string-append
3947 "https://hackage.haskell.org/package/unordered-containers"
3948 "/unordered-containers-" version ".tar.gz"))
3949 (sha256
3950 (base32
3951 "0l4264p0av12cc6i8gls13q8y27x12z2ar4x34n3x59y99fcnc37"))))
3952 (build-system haskell-build-system)
3953 (inputs
3954 `(("ghc-chasingbottoms" ,ghc-chasingbottoms)
3955 ("ghc-hunit" ,ghc-hunit)
3956 ("ghc-quickcheck" ,ghc-quickcheck)
3957 ("ghc-test-framework" ,ghc-test-framework)
3958 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
3959 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
3960 ("ghc-hashable" ,ghc-hashable)))
3961 (home-page
3962 "https://github.com/tibbe/unordered-containers")
3963 (synopsis
3964 "Efficient hashing-based container types")
3965 (description
3966 "Efficient hashing-based container types. The containers have been
3967 optimized for performance critical use, both in terms of large data quantities
3968 and high speed.")
3969 (license license:bsd-3)))
3970
3971 (define-public ghc-unordered-containers-bootstrap
3972 (package
3973 (inherit ghc-unordered-containers)
3974 (name "ghc-unordered-containers-bootstrap")
3975 (arguments `(#:tests? #f))
3976 (inputs
3977 `(("ghc-hashable" ,ghc-hashable-bootstrap)))
3978 (properties '(hidden? #t))))
3979
3980 (define-public ghc-uniplate
3981 (package
3982 (name "ghc-uniplate")
3983 (version "1.6.12")
3984 (source
3985 (origin
3986 (method url-fetch)
3987 (uri (string-append
3988 "https://hackage.haskell.org/package/uniplate/uniplate-"
3989 version
3990 ".tar.gz"))
3991 (sha256
3992 (base32
3993 "1dx8f9aw27fz8kw0ad1nm6355w5rdl7bjvb427v2bsgnng30pipw"))))
3994 (build-system haskell-build-system)
3995 (inputs
3996 `(("ghc-syb" ,ghc-syb)
3997 ("ghc-hashable" ,ghc-hashable)
3998 ("ghc-unordered-containers" ,ghc-unordered-containers)))
3999 (home-page "http://community.haskell.org/~ndm/uniplate/")
4000 (synopsis "Simple, concise and fast generic operations")
4001 (description "Uniplate is a library for writing simple and concise generic
4002 operations. Uniplate has similar goals to the original Scrap Your Boilerplate
4003 work, but is substantially simpler and faster.")
4004 (license license:bsd-3)))
4005
4006 (define-public ghc-base64-bytestring
4007 (package
4008 (name "ghc-base64-bytestring")
4009 (version "1.0.0.2")
4010 (source
4011 (origin
4012 (method url-fetch)
4013 (uri (string-append
4014 "https://hackage.haskell.org/package/base64-bytestring/base64-bytestring-"
4015 version
4016 ".tar.gz"))
4017 (sha256
4018 (base32 "13305brzlac24pifiqd5a2z10c6k6amhpdy9cc0z5ryrkgnm8dhr"))))
4019 (build-system haskell-build-system)
4020 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
4021 (home-page "https://github.com/bos/base64-bytestring")
4022 (synopsis "Base64 encoding and decoding for ByteStrings")
4023 (description "This library provides fast base64 encoding and decoding for
4024 Haskell @code{ByteString}s.")
4025 (license license:bsd-3)))
4026
4027 (define-public ghc-annotated-wl-pprint
4028 (package
4029 (name "ghc-annotated-wl-pprint")
4030 (version "0.7.0")
4031 (source
4032 (origin
4033 (method url-fetch)
4034 (uri (string-append
4035 "https://hackage.haskell.org/package/annotated-wl-pprint"
4036 "/annotated-wl-pprint-" version
4037 ".tar.gz"))
4038 (sha256
4039 (base32
4040 "061xfz6qany3wf95csl8dcik2pz22cn8iv1qchhm16isw5zjs9hc"))))
4041 (build-system haskell-build-system)
4042 (home-page
4043 "https://github.com/david-christiansen/annotated-wl-pprint")
4044 (synopsis
4045 "The Wadler/Leijen Pretty Printer, with annotation support")
4046 (description "This is a modified version of wl-pprint, which was based on
4047 Wadler's paper \"A Prettier Printer\". This version allows the library user
4048 to annotate the text with semantic information, which can later be rendered in
4049 a variety of ways.")
4050 (license license:bsd-3)))
4051
4052 (define-public ghc-wl-pprint
4053 (package
4054 (name "ghc-wl-pprint")
4055 (version "1.2.1")
4056 (source (origin
4057 (method url-fetch)
4058 (uri (string-append
4059 "https://hackage.haskell.org/package/wl-pprint/wl-pprint-"
4060 version ".tar.gz"))
4061 (sha256
4062 (base32
4063 "0kn7y8pdrv8f87zhd5mifcl8fy3b2zvnzmzwhdqhxxlyzwiq6z0c"))))
4064 (build-system haskell-build-system)
4065 (home-page "https://hackage.haskell.org/package/wl-pprint")
4066 (synopsis "Wadler/Leijen pretty printer")
4067 (description
4068 "This is a pretty printing library based on Wadler's paper @i{A Prettier
4069 Printer}. This version allows the library user to declare overlapping
4070 instances of the @code{Pretty} class.")
4071 (license license:bsd-3)))
4072
4073 (define-public ghc-ansi-wl-pprint
4074 (package
4075 (name "ghc-ansi-wl-pprint")
4076 (version "0.6.8.2")
4077 (source
4078 (origin
4079 (method url-fetch)
4080 (uri (string-append "https://hackage.haskell.org/package/"
4081 "ansi-wl-pprint/ansi-wl-pprint-"
4082 version ".tar.gz"))
4083 (sha256
4084 (base32
4085 "0gnb4mkqryv08vncxnj0bzwcnd749613yw3cxfzw6y3nsldp4c56"))))
4086 (build-system haskell-build-system)
4087 (inputs
4088 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)))
4089 (home-page "https://github.com/ekmett/ansi-wl-pprint")
4090 (synopsis "Wadler/Leijen Pretty Printer for colored ANSI terminal output")
4091 (description "This is a pretty printing library based on Wadler's paper
4092 \"A Prettier Printer\". It has been enhanced with support for ANSI terminal
4093 colored output using the ansi-terminal package.")
4094 (license license:bsd-3)))
4095
4096 (define-public ghc-split
4097 (package
4098 (name "ghc-split")
4099 (version "0.2.3.3")
4100 (outputs '("out" "doc"))
4101 (source
4102 (origin
4103 (method url-fetch)
4104 (uri (string-append
4105 "https://hackage.haskell.org/package/split/split-"
4106 version
4107 ".tar.gz"))
4108 (sha256
4109 (base32
4110 "04qlmkcyklznl03gsjg95b4nzb6i96gdapqg60rny9szgi7ngk8x"))))
4111 (build-system haskell-build-system)
4112 (native-inputs
4113 `(("ghc-quickcheck" ,ghc-quickcheck)))
4114 (home-page "https://hackage.haskell.org/package/split")
4115 (synopsis "Combinator library for splitting lists")
4116 (description "This package provides a collection of Haskell functions for
4117 splitting lists into parts, akin to the @code{split} function found in several
4118 mainstream languages.")
4119 (license license:bsd-3)))
4120
4121 (define-public ghc-parsec
4122 (package
4123 (name "ghc-parsec")
4124 (version "3.1.13.0")
4125 (outputs '("out" "doc"))
4126 (source
4127 (origin
4128 (method url-fetch)
4129 (uri (string-append
4130 "https://hackage.haskell.org/package/parsec/parsec-"
4131 version
4132 ".tar.gz"))
4133 (sha256
4134 (base32 "1wc09pyn70p8z6llink10c8pqbh6ikyk554911yfwxv1g91swqbq"))))
4135 (build-system haskell-build-system)
4136 (native-inputs
4137 `(("ghc-hunit" ,ghc-hunit)))
4138 (inputs
4139 `(("ghc-text" ,ghc-text)))
4140 (arguments
4141 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
4142 (home-page
4143 "https://github.com/aslatter/parsec")
4144 (synopsis "Monadic parser combinators")
4145 (description "Parsec is a parser library. It is simple, safe, well
4146 documented, has extensive libraries, good error messages, and is fast. It is
4147 defined as a monad transformer that can be stacked on arbitrary monads, and it
4148 is also parametric in the input stream type.")
4149 (license license:bsd-3)))
4150
4151 (define-public ghc-parser-combinators
4152 (package
4153 (name "ghc-parser-combinators")
4154 (version "1.0.0")
4155 (source
4156 (origin
4157 (method url-fetch)
4158 (uri (string-append "https://hackage.haskell.org/package/"
4159 "parser-combinators/parser-combinators-"
4160 version ".tar.gz"))
4161 (sha256
4162 (base32
4163 "1pwfdsklqwvaynwpdzmx1bs35mp6dpsyaqdnzxnqcrxwf5h8sk75"))))
4164 (build-system haskell-build-system)
4165 (home-page "https://github.com/mrkkrp/parser-combinators")
4166 (synopsis "Commonly useful parser combinators")
4167 (description
4168 "This is a lightweight package providing commonly useful parser
4169 combinators.")
4170 (license license:bsd-3)))
4171
4172 (define-public ghc-megaparsec
4173 (package
4174 (name "ghc-megaparsec")
4175 (version "6.5.0")
4176 (source
4177 (origin
4178 (method url-fetch)
4179 (uri (string-append "https://hackage.haskell.org/package/"
4180 "megaparsec/megaparsec-"
4181 version ".tar.gz"))
4182 (sha256
4183 (base32
4184 "12iggy7qpf8x93jm64zf0g215xwy779bqyfyjk2bhmxqqr1yzgdy"))))
4185 (build-system haskell-build-system)
4186 (arguments
4187 `(#:cabal-revision
4188 ("4" "0ij3asi5vwlhbgwsy6nhli9a0qb7926mg809fsgyl1rnhs9fvpx1")))
4189 (inputs
4190 `(("ghc-case-insensitive" ,ghc-case-insensitive)
4191 ("ghc-parser-combinators" ,ghc-parser-combinators)
4192 ("ghc-scientific" ,ghc-scientific)
4193 ("ghc-text" ,ghc-text)))
4194 (native-inputs
4195 `(("ghc-quickcheck" ,ghc-quickcheck)
4196 ("ghc-hspec" ,ghc-hspec)
4197 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
4198 ("hspec-discover" ,hspec-discover)))
4199 (home-page "https://github.com/mrkkrp/megaparsec")
4200 (synopsis "Monadic parser combinators")
4201 (description
4202 "This is an industrial-strength monadic parser combinator library.
4203 Megaparsec is a feature-rich package that strikes a nice balance between
4204 speed, flexibility, and quality of parse errors.")
4205 (license license:bsd-2)))
4206
4207 (define-public ghc-vector
4208 (package
4209 (name "ghc-vector")
4210 (version "0.12.0.1")
4211 (outputs '("out" "doc"))
4212 (source
4213 (origin
4214 (method url-fetch)
4215 (uri (string-append
4216 "https://hackage.haskell.org/package/vector/vector-"
4217 version
4218 ".tar.gz"))
4219 (sha256
4220 (base32
4221 "0yrx2ypiaxahvaz84af5bi855hd3107kxkbqc8km29nsp5wyw05i"))))
4222 (build-system haskell-build-system)
4223 ;; FIXME: To simplify upgrading all Haskell packages, we leave the tests
4224 ;; disabled for now.
4225 (arguments
4226 `(#:cabal-revision
4227 ("3" "0y5rh8k710i2a3p1h2rghvr5cfg78p5h0kbfi7ifxqqf6pzlyr1x")
4228 #:tests? #f))
4229 (inputs
4230 `(("ghc-primitive" ,ghc-primitive)
4231 ("ghc-random" ,ghc-random)
4232 ("ghc-quickcheck" ,ghc-quickcheck)
4233 ;; ("ghc-hunit" ,ghc-hunit)
4234 ;; ("ghc-test-framework" ,ghc-test-framework)
4235 ;; ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
4236 ;; ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
4237 ))
4238 (home-page "https://github.com/haskell/vector")
4239 (synopsis "Efficient Arrays")
4240 (description "This library provides an efficient implementation of
4241 Int-indexed arrays (both mutable and immutable), with a powerful loop
4242 optimisation framework.")
4243 (license license:bsd-3)))
4244
4245 (define-public ghc-vector-binary-instances
4246 (package
4247 (name "ghc-vector-binary-instances")
4248 (version "0.2.4")
4249 (source
4250 (origin
4251 (method url-fetch)
4252 (uri (string-append
4253 "https://hackage.haskell.org/package/"
4254 "vector-binary-instances/vector-binary-instances-"
4255 version ".tar.gz"))
4256 (sha256
4257 (base32
4258 "1y236jb72iab9ska1mc48z6yb0xgwmj45laaqdyjxksd84z7hbrb"))))
4259 (build-system haskell-build-system)
4260 (arguments
4261 `(#:cabal-revision
4262 ("1" "196frl4akhfk7xf1nxzn8lmq99dxhzhsimanswn9yy7ym8zhki4i")))
4263 (inputs
4264 `(("ghc-vector" ,ghc-vector)))
4265 (native-inputs
4266 `(("ghc-tasty" ,ghc-tasty)
4267 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
4268 (home-page "https://github.com/bos/vector-binary-instances")
4269 (synopsis "Instances of Data.Binary and Data.Serialize for vector")
4270 (description "This library provides instances of @code{Binary} for the
4271 types defined in the @code{vector} package, making it easy to serialize
4272 vectors to and from disk. We use the generic interface to vectors, so all
4273 vector types are supported. Specific instances are provided for unboxed,
4274 boxed and storable vectors.")
4275 (license license:bsd-3)))
4276
4277 (define-public ghc-bloomfilter
4278 (package
4279 (name "ghc-bloomfilter")
4280 (version "2.0.1.0")
4281 (source
4282 (origin
4283 (method url-fetch)
4284 (uri (string-append "https://hackage.haskell.org/package/"
4285 "bloomfilter/bloomfilter-" version ".tar.gz"))
4286 (sha256
4287 (base32
4288 "03vrmncg1c10a2wcg5skq30m1yiknn7nwxz2gblyyfaxglshspkc"))))
4289 (build-system haskell-build-system)
4290 (native-inputs
4291 `(("ghc-quickcheck" ,ghc-quickcheck)
4292 ("ghc-random" ,ghc-random)
4293 ("ghc-test-framework" ,ghc-test-framework)
4294 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
4295 (home-page "https://github.com/bos/bloomfilter")
4296 (synopsis "Pure and impure Bloom filter implementations")
4297 (description "This package provides both mutable and immutable Bloom
4298 filter data types, along with a family of hash functions and an easy-to-use
4299 interface.")
4300 (license license:bsd-3)))
4301
4302 (define-public ghc-network
4303 (package
4304 (name "ghc-network")
4305 (version "2.6.3.6")
4306 (outputs '("out" "doc"))
4307 (source
4308 (origin
4309 (method url-fetch)
4310 (uri (string-append
4311 "https://hackage.haskell.org/package/network/network-"
4312 version
4313 ".tar.gz"))
4314 (sha256
4315 (base32
4316 "198mam7ahny48p9fajznbqq16a8ya2gw0xm3gnm1si1rmc4hdplv"))))
4317 (build-system haskell-build-system)
4318 ;; The regression tests depend on an unpublished module.
4319 (arguments `(#:tests? #f))
4320 (native-inputs
4321 `(("ghc-hunit" ,ghc-hunit)
4322 ("ghc-doctest" ,ghc-doctest)
4323 ("ghc-test-framework" ,ghc-test-framework)
4324 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
4325 (home-page "https://github.com/haskell/network")
4326 (synopsis "Low-level networking interface")
4327 (description
4328 "This package provides a low-level networking interface.")
4329 (license license:bsd-3)))
4330
4331 (define-public ghc-network-uri
4332 (package
4333 (name "ghc-network-uri")
4334 (version "2.6.1.0")
4335 (outputs '("out" "doc"))
4336 (source
4337 (origin
4338 (method url-fetch)
4339 (uri (string-append
4340 "https://hackage.haskell.org/package/network-uri/network-uri-"
4341 version
4342 ".tar.gz"))
4343 (sha256
4344 (base32
4345 "1w27zkvn39kjr9lmw9421y8w43h572ycsfafsb7kyvr3a4ihlgj2"))))
4346 (build-system haskell-build-system)
4347 (arguments
4348 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
4349 (native-inputs
4350 `(("ghc-hunit" ,ghc-hunit)))
4351 (inputs
4352 `(("ghc-parsec" ,ghc-parsec)
4353 ("ghc-network" ,ghc-network)))
4354 (home-page
4355 "https://github.com/haskell/network-uri")
4356 (synopsis "Library for URI manipulation")
4357 (description "This package provides an URI manipulation interface. In
4358 @code{network-2.6} the @code{Network.URI} module was split off from the
4359 @code{network} package into this package.")
4360 (license license:bsd-3)))
4361
4362 (define-public ghc-ansi-terminal
4363 (package
4364 (name "ghc-ansi-terminal")
4365 (version "0.8.0.4")
4366 (source
4367 (origin
4368 (method url-fetch)
4369 (uri (string-append
4370 "https://hackage.haskell.org/package/ansi-terminal/ansi-terminal-"
4371 version
4372 ".tar.gz"))
4373 (sha256
4374 (base32
4375 "0428gq8m3fdnb7ldcsyk97qcch76hcxbgh2666p6f76fs2qbhg7b"))))
4376 (build-system haskell-build-system)
4377 (inputs
4378 `(("ghc-colour" ,ghc-colour)))
4379 (home-page "https://github.com/feuerbach/ansi-terminal")
4380 (synopsis "ANSI terminal support for Haskell")
4381 (description "This package provides ANSI terminal support for Haskell. It
4382 allows cursor movement, screen clearing, color output showing or hiding the
4383 cursor, and changing the title.")
4384 (license license:bsd-3)))
4385
4386 (define-public ghc-vault
4387 (package
4388 (name "ghc-vault")
4389 (version "0.3.1.2")
4390 (source
4391 (origin
4392 (method url-fetch)
4393 (uri (string-append
4394 "https://hackage.haskell.org/package/vault/vault-"
4395 version
4396 ".tar.gz"))
4397 (sha256
4398 (base32
4399 "072mbrihsdsb8c6xvg6lvk0rqjgvxvi8qkg4n6wwym5hq0pfa04y"))))
4400 (build-system haskell-build-system)
4401 (inputs
4402 `(("ghc-unordered-containers" ,ghc-unordered-containers)
4403 ("ghc-hashable" ,ghc-hashable)
4404 ("ghc-semigroupoids" ,ghc-semigroupoids)))
4405 (home-page
4406 "https://github.com/HeinrichApfelmus/vault")
4407 (synopsis "Persistent store for arbitrary values")
4408 (description "This package provides vaults for Haskell. A vault is a
4409 persistent store for values of arbitrary types. It's like having first-class
4410 access to the storage space behind @code{IORefs}. The data structure is
4411 analogous to a bank vault, where you can access different bank boxes with
4412 different keys; hence the name. Also provided is a @code{locker} type,
4413 representing a store for a single element.")
4414 (license license:bsd-3)))
4415
4416 (define-public ghc-edisonapi
4417 (package
4418 (name "ghc-edisonapi")
4419 (version "1.3.1")
4420 (source
4421 (origin
4422 (method url-fetch)
4423 (uri (string-append "https://hackage.haskell.org/package/EdisonAPI"
4424 "/EdisonAPI-" version ".tar.gz"))
4425 (sha256
4426 (base32 "0vmmlsj8ggbpwx6fkf5fvb6jp0zpx6iba6b28m80lllr2p8bi8wm"))))
4427 (build-system haskell-build-system)
4428 (home-page "http://rwd.rdockins.name/edison/home/")
4429 (synopsis "Library of efficient, purely-functional data structures (API)")
4430 (description
4431 "Edison is a library of purely functional data structures written by
4432 Chris Okasaki. It is named after Thomas Alva Edison and for the mnemonic
4433 value EDiSon (Efficient Data Structures). Edison provides several families of
4434 abstractions, each with multiple implementations. The main abstractions
4435 provided by Edison are: Sequences such as stacks, queues, and dequeues;
4436 Collections such as sets, bags and heaps; and Associative Collections such as
4437 finite maps and priority queues where the priority and element are distinct.")
4438 (license license:expat)))
4439
4440 (define-public ghc-edisoncore
4441 (package
4442 (name "ghc-edisoncore")
4443 (version "1.3.2.1")
4444 (source
4445 (origin
4446 (method url-fetch)
4447 (uri (string-append "https://hackage.haskell.org/package/EdisonCore"
4448 "/EdisonCore-" version ".tar.gz"))
4449 (sha256
4450 (base32 "0fgj5iwiv3v2gdgx7kjcr15dcs4x1kvmjspp3p99wyhh0x6h3ikk"))))
4451 (build-system haskell-build-system)
4452 (inputs
4453 `(("ghc-quickcheck" ,ghc-quickcheck)
4454 ("ghc-edisonapi" ,ghc-edisonapi)))
4455 (home-page "http://rwd.rdockins.name/edison/home/")
4456 (synopsis "Library of efficient, purely-functional data structures")
4457 (description
4458 "This package provides the core Edison data structure implementations,
4459 including multiple sequence, set, bag, and finite map concrete implementations
4460 with various performance characteristics.")
4461 (license license:expat)))
4462
4463 (define-public ghc-mmorph
4464 (package
4465 (name "ghc-mmorph")
4466 (version "1.1.2")
4467 (source
4468 (origin
4469 (method url-fetch)
4470 (uri (string-append
4471 "https://hackage.haskell.org/package/mmorph/mmorph-"
4472 version
4473 ".tar.gz"))
4474 (sha256
4475 (base32
4476 "1gjz1ib968lqybma7my1n19qq6cdj6a7nskrlnwy4jy9jrwzs2n9"))))
4477 (build-system haskell-build-system)
4478 (inputs
4479 `(("ghc-transformers-compat" ,ghc-transformers-compat)))
4480 (home-page "https://hackage.haskell.org/package/mmorph")
4481 (synopsis "Monad morphisms")
4482 (description
4483 "This library provides monad morphism utilities, most commonly used for
4484 manipulating monad transformer stacks.")
4485 (license license:bsd-3)))
4486
4487 (define-public ghc-ifelse
4488 (package
4489 (name "ghc-ifelse")
4490 (version "0.85")
4491 (source
4492 (origin
4493 (method url-fetch)
4494 (uri (string-append "https://hackage.haskell.org/package/"
4495 "IfElse/IfElse-" version ".tar.gz"))
4496 (sha256
4497 (base32
4498 "1kfx1bwfjczj93a8yqz1n8snqiq5655qgzwv1lrycry8wb1vzlwa"))))
4499 (build-system haskell-build-system)
4500 (home-page "http://hackage.haskell.org/package/IfElse")
4501 (synopsis "Monadic control flow with anaphoric variants")
4502 (description "This library provides functions for control flow inside of
4503 monads with anaphoric variants on @code{if} and @code{when} and a C-like
4504 @code{switch} function.")
4505 (license license:bsd-3)))
4506
4507 (define-public ghc-monad-control
4508 (package
4509 (name "ghc-monad-control")
4510 (version "1.0.2.3")
4511 (source
4512 (origin
4513 (method url-fetch)
4514 (uri (string-append
4515 "https://hackage.haskell.org/package/monad-control"
4516 "/monad-control-" version ".tar.gz"))
4517 (sha256
4518 (base32
4519 "1c92833gr6cadidjdp8mlznkpp8lyxl0w3y7d19y8yi3klc3843c"))))
4520 (build-system haskell-build-system)
4521 (inputs
4522 `(("ghc-stm" ,ghc-stm)
4523 ("ghc-transformers-base" ,ghc-transformers-base)
4524 ("ghc-transformers-compat" ,ghc-transformers-compat)))
4525 (home-page "https://github.com/basvandijk/monad-control")
4526 (synopsis "Monad transformers to lift control operations like exception
4527 catching")
4528 (description "This package defines the type class @code{MonadBaseControl},
4529 a subset of @code{MonadBase} into which generic control operations such as
4530 @code{catch} can be lifted from @code{IO} or any other base monad.")
4531 (license license:bsd-3)))
4532
4533 (define-public ghc-fail
4534 (package
4535 (name "ghc-fail")
4536 (version "4.9.0.0")
4537 (source
4538 (origin
4539 (method url-fetch)
4540 (uri (string-append "https://hackage.haskell.org/package/fail/fail-"
4541 version ".tar.gz"))
4542 (sha256
4543 (base32 "18nlj6xvnggy61gwbyrpmvbdkq928wv0wx2zcsljb52kbhddnp3d"))))
4544 (build-system haskell-build-system)
4545 (arguments `(#:haddock? #f)) ; Package contains no documentation.
4546 (home-page "https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail")
4547 (synopsis "Forward-compatible MonadFail class")
4548 (description
4549 "This package contains the @code{Control.Monad.Fail} module providing the
4550 @uref{https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail, MonadFail}
4551 class that became available in
4552 @uref{https://hackage.haskell.org/package/base-4.9.0.0, base-4.9.0.0} for
4553 older @code{base} package versions. This package turns into an empty package
4554 when used with GHC versions which already provide the
4555 @code{Control.Monad.Fail} module.")
4556 (license license:bsd-3)))
4557
4558 (define-public ghc-monadplus
4559 (package
4560 (name "ghc-monadplus")
4561 (version "1.4.2")
4562 (source
4563 (origin
4564 (method url-fetch)
4565 (uri (string-append "https://hackage.haskell.org/package/monadplus"
4566 "/monadplus-" version ".tar.gz"))
4567 (sha256
4568 (base32 "15b5320wdpmdp5slpphnc1x4rhjch3igw245dp2jxbqyvchdavin"))))
4569 (build-system haskell-build-system)
4570 (home-page "https://hackage.haskell.org/package/monadplus")
4571 (synopsis "Filtering and folding over arbitrary MonadPlus instances")
4572 (description
4573 "This package generalizes many common stream operations such as
4574 @code{filter}, @code{catMaybes} etc, enabling filtering and folding over
4575 arbitrary @code{MonadPlus} instances.")
4576 (license license:bsd-3)))
4577
4578 (define-public ghc-byteorder
4579 (package
4580 (name "ghc-byteorder")
4581 (version "1.0.4")
4582 (source
4583 (origin
4584 (method url-fetch)
4585 (uri (string-append
4586 "https://hackage.haskell.org/package/byteorder/byteorder-"
4587 version
4588 ".tar.gz"))
4589 (sha256
4590 (base32
4591 "06995paxbxk8lldvarqpb3ygcjbg4v8dk4scib1rjzwlhssvn85x"))))
4592 (build-system haskell-build-system)
4593 (home-page
4594 "http://community.haskell.org/~aslatter/code/byteorder")
4595 (synopsis
4596 "Exposes the native endianness of the system")
4597 (description
4598 "This package is for working with the native byte-ordering of the
4599 system.")
4600 (license license:bsd-3)))
4601
4602 (define-public ghc-base-compat
4603 (package
4604 (name "ghc-base-compat")
4605 (version "0.10.4")
4606 (source
4607 (origin
4608 (method url-fetch)
4609 (uri (string-append
4610 "https://hackage.haskell.org/package/base-compat/base-compat-"
4611 version
4612 ".tar.gz"))
4613 (sha256
4614 (base32
4615 "0ksp990gxs731mq19rzbxrbs43nazfljjc8krlx5bjqblw3kfs8d"))))
4616 (build-system haskell-build-system)
4617 (native-inputs
4618 `(("ghc-quickcheck" ,ghc-quickcheck)
4619 ("ghc-hspec" ,ghc-hspec)
4620 ("hspec-discover" ,hspec-discover)))
4621 (home-page "https://hackage.haskell.org/package/base-compat")
4622 (synopsis "Haskell compiler compatibility library")
4623 (description "This library provides functions available in later versions
4624 of base to a wider range of compilers, without requiring the use of CPP
4625 pragmas in your code.")
4626 (license license:bsd-3)))
4627
4628 (define-public ghc-blaze-builder
4629 (package
4630 (name "ghc-blaze-builder")
4631 (version "0.4.1.0")
4632 (source
4633 (origin
4634 (method url-fetch)
4635 (uri (string-append
4636 "https://hackage.haskell.org/package/blaze-builder/blaze-builder-"
4637 version
4638 ".tar.gz"))
4639 (sha256
4640 (base32
4641 "05681dih2d8s96an945wkbwl05w8ddbcfx8n3r3ck79ydyb8pz4i"))))
4642 (build-system haskell-build-system)
4643 (arguments `(#:tests? #f)) ; FIXME: Missing test libraries.
4644 (inputs
4645 `(("ghc-text" ,ghc-text)
4646 ("ghc-utf8-string" ,ghc-utf8-string)))
4647 (home-page "https://github.com/lpsmith/blaze-builder")
4648 (synopsis "Efficient buffered output")
4649 (description "This library provides an implementation of the older
4650 @code{blaze-builder} interface in terms of the new builder that shipped with
4651 @code{bytestring-0.10.4.0}. This implementation is mostly intended as a
4652 bridge to the new builder, so that code that uses the old interface can
4653 interoperate with code that uses the new implementation.")
4654 (license license:bsd-3)))
4655
4656 (define-public ghc-blaze-markup
4657 (package
4658 (name "ghc-blaze-markup")
4659 (version "0.8.2.1")
4660 (source
4661 (origin
4662 (method url-fetch)
4663 (uri (string-append "https://hackage.haskell.org/package/"
4664 "blaze-markup/blaze-markup-"
4665 version ".tar.gz"))
4666 (sha256
4667 (base32
4668 "0ih1c3qahkdgzbqihdhny5s313l2m66fbb88w8jbx7yz56y7rawh"))))
4669 (build-system haskell-build-system)
4670 (arguments
4671 `(#:phases
4672 (modify-phases %standard-phases
4673 (add-before 'configure 'update-constraints
4674 (lambda _
4675 (substitute* "blaze-markup.cabal"
4676 (("tasty >= 1\\.0 && < 1\\.1")
4677 "tasty >= 1.0 && < 1.2")))))))
4678 (inputs
4679 `(("ghc-blaze-builder" ,ghc-blaze-builder)
4680 ("ghc-text" ,ghc-text)))
4681 (native-inputs
4682 `(("ghc-hunit" ,ghc-hunit)
4683 ("ghc-quickcheck" ,ghc-quickcheck)
4684 ("ghc-tasty" ,ghc-tasty)
4685 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
4686 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
4687 (home-page "https://jaspervdj.be/blaze")
4688 (synopsis "Fast markup combinator library for Haskell")
4689 (description "This library provides core modules of a markup combinator
4690 library for Haskell.")
4691 (license license:bsd-3)))
4692
4693 (define-public ghc-easy-file
4694 (package
4695 (name "ghc-easy-file")
4696 (version "0.2.2")
4697 (source
4698 (origin
4699 (method url-fetch)
4700 (uri (string-append
4701 "https://hackage.haskell.org/package/easy-file/easy-file-"
4702 version
4703 ".tar.gz"))
4704 (sha256
4705 (base32
4706 "0zmlcz723051qpn8l8vi51c5rx1blwrw4094jcshkmj8p9r2xxaj"))))
4707 (build-system haskell-build-system)
4708 (home-page
4709 "https://github.com/kazu-yamamoto/easy-file")
4710 (synopsis "File handling library for Haskell")
4711 (description "This library provides file handling utilities for Haskell.")
4712 (license license:bsd-3)))
4713
4714 (define-public ghc-async
4715 (package
4716 (name "ghc-async")
4717 (version "2.2.1")
4718 (source
4719 (origin
4720 (method url-fetch)
4721 (uri (string-append
4722 "https://hackage.haskell.org/package/async/async-"
4723 version
4724 ".tar.gz"))
4725 (sha256
4726 (base32
4727 "09whscli1q5z7lzyq9rfk0bq1ydplh6pjmc6qv0x668k5818c2wg"))))
4728 (build-system haskell-build-system)
4729 (inputs
4730 `(("ghc-stm" ,ghc-stm)
4731 ("ghc-hashable" ,ghc-hashable)
4732 ("ghc-hunit" ,ghc-hunit)
4733 ("ghc-test-framework" ,ghc-test-framework)
4734 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
4735 (home-page "https://github.com/simonmar/async")
4736 (synopsis "Library to run IO operations asynchronously")
4737 (description "Async provides a library to run IO operations
4738 asynchronously, and wait for their results. It is a higher-level interface
4739 over threads in Haskell, in which @code{Async a} is a concurrent thread that
4740 will eventually deliver a value of type @code{a}.")
4741 (license license:bsd-3)))
4742
4743 (define-public ghc-fingertree
4744 (package
4745 (name "ghc-fingertree")
4746 (version "0.1.4.1")
4747 (source
4748 (origin
4749 (method url-fetch)
4750 (uri (string-append
4751 "https://hackage.haskell.org/package/fingertree/fingertree-"
4752 version ".tar.gz"))
4753 (sha256
4754 (base32
4755 "192fyzv0pn1437wdpqg1l80rswkk4rw3w61r4bq7dhv354bdqy4p"))))
4756 (build-system haskell-build-system)
4757 (native-inputs
4758 `(("ghc-hunit" ,ghc-hunit)
4759 ("ghc-quickcheck" ,ghc-quickcheck)
4760 ("ghc-test-framework" ,ghc-test-framework)
4761 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
4762 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
4763 (home-page "https://hackage.haskell.org/package/fingertree")
4764 (synopsis "Generic finger-tree structure")
4765 (description "This library provides finger trees, a general sequence
4766 representation with arbitrary annotations, for use as a base for
4767 implementations of various collection types. It includes examples, as
4768 described in section 4 of Ralf Hinze and Ross Paterson, \"Finger trees: a
4769 simple general-purpose data structure\".")
4770 (license license:bsd-3)))
4771
4772 (define-public ghc-optparse-applicative
4773 (package
4774 (name "ghc-optparse-applicative")
4775 (version "0.14.2.0")
4776 (source
4777 (origin
4778 (method url-fetch)
4779 (uri (string-append
4780 "https://hackage.haskell.org/package/optparse-applicative"
4781 "/optparse-applicative-" version ".tar.gz"))
4782 (sha256
4783 (base32
4784 "0c3z1mvynlyv1garjbdmdd3npm40dabgm75js4r07cf766c1wd71"))))
4785 (build-system haskell-build-system)
4786 (inputs
4787 `(("ghc-transformers-compat" ,ghc-transformers-compat)
4788 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)))
4789 (native-inputs
4790 `(("ghc-quickcheck" ,ghc-quickcheck)))
4791 (home-page "https://github.com/pcapriotti/optparse-applicative")
4792 (synopsis "Utilities and combinators for parsing command line options")
4793 (description "This package provides utilities and combinators for parsing
4794 command line options in Haskell.")
4795 (license license:bsd-3)))
4796
4797 (define-public ghc-base-orphans
4798 (package
4799 (name "ghc-base-orphans")
4800 (version "0.7")
4801 (source
4802 (origin
4803 (method url-fetch)
4804 (uri (string-append
4805 "https://hackage.haskell.org/package/base-orphans/base-orphans-"
4806 version
4807 ".tar.gz"))
4808 (sha256
4809 (base32
4810 "057f9npnqk71ccfh95djfkpd54dzazphj06grwxa3fyhwcwxrb8a"))))
4811 (build-system haskell-build-system)
4812 (native-inputs
4813 `(("ghc-quickcheck" ,ghc-quickcheck)
4814 ("ghc-hspec" ,ghc-hspec)
4815 ("hspec-discover" ,hspec-discover)))
4816 (home-page "https://hackage.haskell.org/package/base-orphans")
4817 (synopsis "Orphan instances for backwards compatibility")
4818 (description "This package defines orphan instances that mimic instances
4819 available in later versions of base to a wider (older) range of compilers.")
4820 (license license:bsd-3)))
4821
4822 (define-public ghc-auto-update
4823 (package
4824 (name "ghc-auto-update")
4825 (version "0.1.4")
4826 (source
4827 (origin
4828 (method url-fetch)
4829 (uri (string-append
4830 "https://hackage.haskell.org/package/auto-update/auto-update-"
4831 version
4832 ".tar.gz"))
4833 (sha256
4834 (base32
4835 "09dlh2alsx2mw5kvj931yhbj0aw7jmly2cm9xbscm2sf098w35jy"))))
4836 (build-system haskell-build-system)
4837 (home-page "https://github.com/yesodweb/wai")
4838 (synopsis "Efficiently run periodic, on-demand actions")
4839 (description "This library provides mechanisms to efficiently run
4840 periodic, on-demand actions in Haskell.")
4841 (license license:expat)))
4842
4843 (define-public ghc-tagged
4844 (package
4845 (name "ghc-tagged")
4846 (version "0.8.5")
4847 (source
4848 (origin
4849 (method url-fetch)
4850 (uri (string-append
4851 "https://hackage.haskell.org/package/tagged/tagged-"
4852 version
4853 ".tar.gz"))
4854 (sha256
4855 (base32
4856 "16cdzh0bw16nvjnyyy5j9s60malhz4nnazw96vxb0xzdap4m2z74"))))
4857 (build-system haskell-build-system)
4858 (arguments
4859 `(#:cabal-revision
4860 ("2" "0r2knfcq0b4s652vlvlnfwxlc2mkc2ra9kl8bp4zdn1awmfy0ia5")))
4861 (inputs
4862 `(("ghc-transformers-compat" ,ghc-transformers-compat)))
4863 (home-page "https://hackage.haskell.org/package/tagged")
4864 (synopsis "Haskell phantom types to avoid passing dummy arguments")
4865 (description "This library provides phantom types for Haskell 98, to avoid
4866 having to unsafely pass dummy arguments.")
4867 (license license:bsd-3)))
4868
4869 (define-public ghc-unbounded-delays
4870 (package
4871 (name "ghc-unbounded-delays")
4872 (version "0.1.1.0")
4873 (source
4874 (origin
4875 (method url-fetch)
4876 (uri (string-append
4877 "https://hackage.haskell.org/package/unbounded-delays/unbounded-delays-"
4878 version
4879 ".tar.gz"))
4880 (sha256
4881 (base32
4882 "1ir9fghbrc214c97bwafk5ck6cacxz1pdnq4i18p604d1b8zg9wa"))))
4883 (build-system haskell-build-system)
4884 (home-page "https://github.com/basvandijk/unbounded-delays")
4885 (synopsis "Unbounded thread delays and timeouts")
4886 (description "The @code{threadDelay} and @code{timeout} functions from the
4887 Haskell base library use the bounded @code{Int} type for specifying the delay
4888 or timeout period. This package provides alternative functions which use the
4889 unbounded @code{Integer} type.")
4890 (license license:bsd-3)))
4891
4892 (define-public ghc-clock
4893 (package
4894 (name "ghc-clock")
4895 (version "0.7.2")
4896 (source
4897 (origin
4898 (method url-fetch)
4899 (uri (string-append
4900 "https://hackage.haskell.org/package/"
4901 "clock/"
4902 "clock-" version ".tar.gz"))
4903 (sha256
4904 (base32 "07v91s20halsqjmziqb1sqjp2sjpckl9by7y28aaklwqi2bh2rl8"))))
4905 (build-system haskell-build-system)
4906 (inputs
4907 `(("ghc-tasty" ,ghc-tasty)
4908 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
4909 (home-page "https://hackage.haskell.org/package/clock")
4910 (synopsis "High-resolution clock for Haskell")
4911 (description "A package for convenient access to high-resolution clock and
4912 timer functions of different operating systems via a unified API.")
4913 (license license:bsd-3)))
4914
4915 (define-public ghc-charset
4916 (package
4917 (name "ghc-charset")
4918 (version "0.3.7.1")
4919 (source
4920 (origin
4921 (method url-fetch)
4922 (uri (string-append
4923 "https://hackage.haskell.org/package/charset/charset-"
4924 version
4925 ".tar.gz"))
4926 (sha256
4927 (base32
4928 "1gn0m96qpjww8hpp2g1as5yy0wcwy4iq73h3kz6g0yxxhcl5sh9x"))))
4929 (build-system haskell-build-system)
4930 (inputs
4931 `(("ghc-semigroups" ,ghc-semigroups)
4932 ("ghc-unordered-containers" ,ghc-unordered-containers)))
4933 (home-page "https://github.com/ekmett/charset")
4934 (synopsis "Fast unicode character sets for Haskell")
4935 (description "This package provides fast unicode character sets for
4936 Haskell, based on complemented PATRICIA tries.")
4937 (license license:bsd-3)))
4938
4939 (define-public ghc-bytestring-builder
4940 (package
4941 (name "ghc-bytestring-builder")
4942 (version "0.10.8.1.0")
4943 (source
4944 (origin
4945 (method url-fetch)
4946 (uri (string-append
4947 "https://hackage.haskell.org/package/bytestring-builder"
4948 "/bytestring-builder-" version ".tar.gz"))
4949 (sha256
4950 (base32
4951 "1hnvjac28y44yn78c9vdp1zvrknvlw98ky3g4n5vivr16rvh8x3d"))))
4952 (build-system haskell-build-system)
4953 (arguments `(#:haddock? #f)) ; Package contains no documentation.
4954 (home-page "https://hackage.haskell.org/package/bytestring-builder")
4955 (synopsis "The new bytestring builder, packaged outside of GHC")
4956 (description "This package provides the bytestring builder that is
4957 debuting in bytestring-0.10.4.0, which should be shipping with GHC 7.8.
4958 Compatibility package for older packages.")
4959 (license license:bsd-3)))
4960
4961 (define-public ghc-nats
4962 (package
4963 (name "ghc-nats")
4964 (version "1.1.2")
4965 (source
4966 (origin
4967 (method url-fetch)
4968 (uri (string-append
4969 "https://hackage.haskell.org/package/nats/nats-"
4970 version
4971 ".tar.gz"))
4972 (sha256
4973 (base32
4974 "1v40drmhixck3pz3mdfghamh73l4rp71mzcviipv1y8jhrfxilmr"))))
4975 (build-system haskell-build-system)
4976 (arguments `(#:haddock? #f))
4977 (inputs
4978 `(("ghc-hashable" ,ghc-hashable)))
4979 (home-page "https://hackage.haskell.org/package/nats")
4980 (synopsis "Natural numbers")
4981 (description "This library provides the natural numbers for Haskell.")
4982 (license license:bsd-3)))
4983
4984 (define-public ghc-nats-bootstrap
4985 (package
4986 (inherit ghc-nats)
4987 (name "ghc-nats-bootstrap")
4988 (inputs
4989 `(("ghc-hashable" ,ghc-hashable-bootstrap)))
4990 (properties '((hidden? #t)))))
4991
4992 (define-public ghc-void
4993 (package
4994 (name "ghc-void")
4995 (version "0.7.2")
4996 (source
4997 (origin
4998 (method url-fetch)
4999 (uri (string-append
5000 "https://hackage.haskell.org/package/void/void-"
5001 version
5002 ".tar.gz"))
5003 (sha256
5004 (base32
5005 "0aygw0yb1h3yhmfl3bkwh5d3h0l4mmsxz7j53vdm6jryl1kgxzyk"))))
5006 (build-system haskell-build-system)
5007 (inputs
5008 `(("ghc-semigroups" ,ghc-semigroups)
5009 ("ghc-hashable" ,ghc-hashable)))
5010 (home-page "https://github.com/ekmett/void")
5011 (synopsis
5012 "Logically uninhabited data type")
5013 (description
5014 "A Haskell 98 logically uninhabited data type, used to indicate that a
5015 given term should not exist.")
5016 (license license:bsd-3)))
5017
5018 (define-public ghc-invariant
5019 (package
5020 (name "ghc-invariant")
5021 (version "0.5.1")
5022 (source
5023 (origin
5024 (method url-fetch)
5025 (uri (string-append
5026 "https://hackage.haskell.org/package/invariant/invariant-"
5027 version ".tar.gz"))
5028 (sha256
5029 (base32
5030 "0aqj7z55632qdg45074kgn9qfdxzb0a2f8lgjzr0l0i4mm2rr37b"))))
5031 (build-system haskell-build-system)
5032 (inputs
5033 `(("ghc-bifunctors" ,ghc-bifunctors)
5034 ("ghc-comonad" ,ghc-comonad)
5035 ("ghc-contravariant" ,ghc-contravariant)
5036 ("ghc-profunctors" ,ghc-profunctors)
5037 ("ghc-semigroups" ,ghc-semigroups)
5038 ("ghc-statevar" ,ghc-statevar)
5039 ("ghc-stm" ,ghc-stm)
5040 ("ghc-tagged" ,ghc-tagged)
5041 ("ghc-th-abstraction" ,ghc-th-abstraction)
5042 ("ghc-transformers-compat" ,ghc-transformers-compat)
5043 ("ghc-unordered-containers" ,ghc-unordered-containers)))
5044 (native-inputs
5045 `(("ghc-hspec" ,ghc-hspec)
5046 ("ghc-quickcheck" ,ghc-quickcheck)
5047 ("hspec-discover" ,hspec-discover)))
5048 (home-page "https://github.com/nfrisby/invariant-functors")
5049 (synopsis "Haskell98 invariant functors")
5050 (description "Haskell98 invariant functors (also known as exponential
5051 functors). For more information, see Edward Kmett's article
5052 @uref{http://comonad.com/reader/2008/rotten-bananas/, Rotten Bananas}.")
5053 (license license:bsd-2)))
5054
5055 (define-public ghc-kan-extensions
5056 (package
5057 (name "ghc-kan-extensions")
5058 (version "5.2")
5059 (source
5060 (origin
5061 (method url-fetch)
5062 (uri (string-append
5063 "https://hackage.haskell.org/package/kan-extensions/kan-extensions-"
5064 version
5065 ".tar.gz"))
5066 (sha256
5067 (base32
5068 "1lyvyiwwh962j2nnnsqzlvp5zq6z8p3spvhmji99cjvldxc7wwkb"))))
5069 (build-system haskell-build-system)
5070 (inputs
5071 `(("ghc-adjunctions" ,ghc-adjunctions)
5072 ("ghc-comonad" ,ghc-comonad)
5073 ("ghc-contravariant" ,ghc-contravariant)
5074 ("ghc-distributive" ,ghc-distributive)
5075 ("ghc-free" ,ghc-free)
5076 ("ghc-invariant" ,ghc-invariant)
5077 ("ghc-semigroupoids" ,ghc-semigroupoids)
5078 ("ghc-tagged" ,ghc-tagged)
5079 ("ghc-transformers-compat" ,ghc-transformers-compat)))
5080 (home-page "https://github.com/ekmett/kan-extensions/")
5081 (synopsis "Kan extensions library")
5082 (description "This library provides Kan extensions, Kan lifts, various
5083 forms of the Yoneda lemma, and (co)density (co)monads for Haskell.")
5084 (license license:bsd-3)))
5085
5086 (define-public ghc-call-stack
5087 (package
5088 (name "ghc-call-stack")
5089 (version "0.1.0")
5090 (source
5091 (origin
5092 (method url-fetch)
5093 (uri (string-append "https://hackage.haskell.org/package/"
5094 "call-stack/call-stack-"
5095 version ".tar.gz"))
5096 (sha256
5097 (base32
5098 "1qmihf5jafmc79sk52l6gpx75f5bnla2lp62kh3p34x3j84mwpzj"))))
5099 (build-system haskell-build-system)
5100 (inputs `(("ghc-nanospec" ,ghc-nanospec)))
5101 (home-page "https://github.com/sol/call-stack#readme")
5102 (synopsis "Use GHC call-stacks in a backward compatible way")
5103 (description "This package provides a compatibility layer for using GHC
5104 call stacks with different versions of the compiler.")
5105 (license license:expat)))
5106
5107 ;; This is used as an input to ghc-hunit. We cannot use ghc-call-stack there,
5108 ;; because it depends on ghc-nanospec, which depends on ghc-hunit.
5109 (define-public ghc-call-stack-boot
5110 (hidden-package
5111 (package
5112 (inherit ghc-call-stack)
5113 (arguments '(#:tests? #f))
5114 (inputs '()))))
5115
5116 (define-public ghc-statevar
5117 (package
5118 (name "ghc-statevar")
5119 (version "1.1.1.1")
5120 (source
5121 (origin
5122 (method url-fetch)
5123 (uri (string-append
5124 "https://hackage.haskell.org/package/StateVar/StateVar-"
5125 version
5126 ".tar.gz"))
5127 (sha256
5128 (base32
5129 "08r2iw0gdmfs4f6wraaq19vfmkjdbics3dbhw39y7mdjd98kcr7b"))))
5130 (build-system haskell-build-system)
5131 (inputs
5132 `(("ghc-stm" ,ghc-stm)))
5133 (home-page "https://hackage.haskell.org/package/StateVar")
5134 (synopsis "State variables for Haskell")
5135 (description "This package provides state variables, which are references
5136 in the @code{IO} monad, like @code{IORef}s or parts of the OpenGL state.")
5137 (license license:bsd-3)))
5138
5139 (define-public ghc-lens
5140 (package
5141 (name "ghc-lens")
5142 (version "4.16.1")
5143 (source
5144 (origin
5145 (method url-fetch)
5146 (uri (string-append "https://hackage.haskell.org/package/lens/lens-"
5147 version ".tar.gz"))
5148 (sha256
5149 (base32
5150 "1im4drhbydbawd6i0jsrzpqihnmx4ywpkg7yg94ddwsw3mxwkgpm"))))
5151 (build-system haskell-build-system)
5152 (arguments
5153 `(#:cabal-revision
5154 ("2" "11h83lj5mba4grhz1qx3irz10ysm9c3k7k6i6xv2cr60q8xin3ri")))
5155 (inputs
5156 `(("ghc-base-orphans" ,ghc-base-orphans)
5157 ("ghc-bifunctors" ,ghc-bifunctors)
5158 ("ghc-distributive" ,ghc-distributive)
5159 ("ghc-exceptions" ,ghc-exceptions)
5160 ("ghc-free" ,ghc-free)
5161 ("ghc-kan-extensions" ,ghc-kan-extensions)
5162 ("ghc-parallel" ,ghc-parallel)
5163 ("ghc-reflection" ,ghc-reflection)
5164 ("ghc-semigroupoids" ,ghc-semigroupoids)
5165 ("ghc-vector" ,ghc-vector)
5166 ("ghc-call-stack" ,ghc-call-stack)
5167 ("ghc-comonad" ,ghc-comonad)
5168 ("ghc-contravariant" ,ghc-contravariant)
5169 ("ghc-hashable" ,ghc-hashable)
5170 ("ghc-profunctors" ,ghc-profunctors)
5171 ("ghc-semigroups" ,ghc-semigroups)
5172 ("ghc-tagged" ,ghc-tagged)
5173 ("ghc-text" ,ghc-text)
5174 ("ghc-transformers-compat" ,ghc-transformers-compat)
5175 ("ghc-unordered-containers" ,ghc-unordered-containers)
5176 ("ghc-void" ,ghc-void)
5177 ("ghc-generic-deriving" ,ghc-generic-deriving)
5178 ("ghc-nats" ,ghc-nats)
5179 ("ghc-simple-reflect" ,ghc-simple-reflect)
5180 ("hlint" ,hlint)))
5181 (native-inputs
5182 `(("cabal-doctest" ,cabal-doctest)
5183 ("ghc-doctest" ,ghc-doctest)
5184 ("ghc-hunit" ,ghc-hunit)
5185 ("ghc-test-framework" ,ghc-test-framework)
5186 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
5187 ("ghc-test-framework-th" ,ghc-test-framework-th)
5188 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
5189 ("ghc-quickcheck" ,ghc-quickcheck)))
5190 (home-page "https://github.com/ekmett/lens/")
5191 (synopsis "Lenses, Folds and Traversals")
5192 (description "This library provides @code{Control.Lens}. The combinators
5193 in @code{Control.Lens} provide a highly generic toolbox for composing families
5194 of getters, folds, isomorphisms, traversals, setters and lenses and their
5195 indexed variants.")
5196 (license license:bsd-3)))
5197
5198 (define-public ghc-cheapskate
5199 (package
5200 (name "ghc-cheapskate")
5201 (version "0.1.1")
5202 (source
5203 (origin
5204 (method url-fetch)
5205 (uri (string-append
5206 "https://hackage.haskell.org/package/cheapskate/cheapskate-"
5207 version
5208 ".tar.gz"))
5209 (sha256
5210 (base32
5211 "1hiqi7h76shjzs2zj0j8g6wnq2hbiq1hmfafdazr97fba2zl2432"))))
5212 (build-system haskell-build-system)
5213 (inputs
5214 `(("ghc-text" ,ghc-text)
5215 ("ghc-blaze-html" ,ghc-blaze-html)
5216 ("ghc-xss-sanitize" ,ghc-xss-sanitize)
5217 ("ghc-data-default" ,ghc-data-default)
5218 ("ghc-syb" ,ghc-syb)
5219 ("ghc-uniplate" ,ghc-uniplate)))
5220 (home-page "https://github.com/jgm/cheapskate")
5221 (synopsis "Experimental markdown processor")
5222 (description "Cheapskate is an experimental Markdown processor in pure
5223 Haskell. It aims to process Markdown efficiently and in the most forgiving
5224 possible way. It is designed to deal with any input, including garbage, with
5225 linear performance. Output is sanitized by default for protection against
5226 cross-site scripting (@dfn{XSS}) attacks.")
5227 (license license:bsd-3)))
5228
5229 (define-public ghc-bifunctors
5230 (package
5231 (name "ghc-bifunctors")
5232 (version "5.5.3")
5233 (source
5234 (origin
5235 (method url-fetch)
5236 (uri (string-append
5237 "https://hackage.haskell.org/package/bifunctors/bifunctors-"
5238 version
5239 ".tar.gz"))
5240 (sha256
5241 (base32
5242 "1jn9rxg643xnlhrknmjz88nblcpsr45xwjkwwnn5nxpasa7m4d6l"))))
5243 (build-system haskell-build-system)
5244 (inputs
5245 `(("ghc-base-orphans" ,ghc-base-orphans)
5246 ("ghc-comonad" ,ghc-comonad)
5247 ("ghc-th-abstraction" ,ghc-th-abstraction)
5248 ("ghc-transformers-compat" ,ghc-transformers-compat)
5249 ("ghc-tagged" ,ghc-tagged)
5250 ("ghc-semigroups" ,ghc-semigroups)))
5251 (native-inputs
5252 `(("ghc-hspec" ,ghc-hspec)
5253 ("hspec-discover" ,hspec-discover)
5254 ("ghc-quickcheck" ,ghc-quickcheck)))
5255 (home-page "https://github.com/ekmett/bifunctors/")
5256 (synopsis "Bifunctors for Haskell")
5257 (description "This package provides bifunctors for Haskell.")
5258 (license license:bsd-3)))
5259
5260 (define-public ghc-semigroupoids
5261 (package
5262 (name "ghc-semigroupoids")
5263 (version "5.2.2")
5264 (source
5265 (origin
5266 (method url-fetch)
5267 (uri (string-append
5268 "https://hackage.haskell.org/package/semigroupoids/semigroupoids-"
5269 version
5270 ".tar.gz"))
5271 (sha256
5272 (base32
5273 "17i96y4iqj8clcs090lf6k0ij3j16nj14vsfwz0mm9nd6i4gbpp4"))))
5274 (build-system haskell-build-system)
5275 (arguments
5276 `(#:cabal-revision
5277 ("4" "0pqfrxzypjq6z8lgdkzq4vhcyqkpk5326hny0r6snpc3gm78r4ij")))
5278 (inputs
5279 `(("ghc-base-orphans" ,ghc-base-orphans)
5280 ("ghc-transformers-compat" ,ghc-transformers-compat)
5281 ("ghc-bifunctors" ,ghc-bifunctors)
5282 ("ghc-comonad" ,ghc-comonad)
5283 ("ghc-contravariant" ,ghc-contravariant)
5284 ("ghc-distributive" ,ghc-distributive)
5285 ("ghc-hashable" ,ghc-hashable)
5286 ("ghc-semigroups" ,ghc-semigroups)
5287 ("ghc-tagged" ,ghc-tagged)
5288 ("ghc-unordered-containers" ,ghc-unordered-containers)))
5289 (native-inputs
5290 `(("cabal-doctest" ,cabal-doctest)
5291 ("ghc-doctest" ,ghc-doctest)))
5292 (home-page "https://github.com/ekmett/semigroupoids")
5293 (synopsis "Semigroupoids operations for Haskell")
5294 (description "This library provides a wide array of (semi)groupoids and
5295 operations for working with them. A @code{Semigroupoid} is a @code{Category}
5296 without the requirement of identity arrows for every object in the category.
5297 A @code{Category} is any @code{Semigroupoid} for which the Yoneda lemma holds.
5298 Finally, to work with these weaker structures it is beneficial to have
5299 containers that can provide stronger guarantees about their contents, so
5300 versions of @code{Traversable} and @code{Foldable} that can be folded with
5301 just a @code{Semigroup} are added.")
5302 (license license:bsd-3)))
5303
5304 (define-public ghc-contravariant
5305 (package
5306 (name "ghc-contravariant")
5307 (version "1.4.1")
5308 (source
5309 (origin
5310 (method url-fetch)
5311 (uri (string-append
5312 "https://hackage.haskell.org/package/contravariant/contravariant-"
5313 version
5314 ".tar.gz"))
5315 (sha256
5316 (base32
5317 "1vfhk8c5cxmmakx7rflap1ipkx5q0j5vnlrcz7yz6y53kxhksgf9"))))
5318 (build-system haskell-build-system)
5319 (inputs
5320 `(("ghc-void" ,ghc-void)
5321 ("ghc-transformers-compat" ,ghc-transformers-compat)
5322 ("ghc-statevar" ,ghc-statevar)
5323 ("ghc-semigroups" ,ghc-semigroups)))
5324 (home-page
5325 "https://github.com/ekmett/contravariant/")
5326 (synopsis "Contravariant functors")
5327 (description "Contravariant functors for Haskell.")
5328 (license license:bsd-3)))
5329
5330 (define-public ghc-semigroups
5331 (package
5332 (name "ghc-semigroups")
5333 (version "0.18.5")
5334 (source
5335 (origin
5336 (method url-fetch)
5337 (uri (string-append
5338 "https://hackage.haskell.org/package/semigroups/semigroups-"
5339 version
5340 ".tar.gz"))
5341 (sha256
5342 (base32
5343 "17g29h62g1k51ghhvzkw72zksjgi6vs6bfipkj81pqw1dsprcamb"))))
5344 (build-system haskell-build-system)
5345 (inputs
5346 `(("ghc-nats" ,ghc-nats)
5347 ("ghc-tagged" ,ghc-tagged)
5348 ("ghc-unordered-containers" ,ghc-unordered-containers)
5349 ("ghc-text" ,ghc-text)
5350 ("ghc-hashable" ,ghc-hashable)))
5351 (home-page "https://github.com/ekmett/semigroups/")
5352 (synopsis "Semigroup operations for Haskell")
5353 (description "This package provides semigroups for Haskell. In
5354 mathematics, a semigroup is an algebraic structure consisting of a set
5355 together with an associative binary operation. A semigroup generalizes a
5356 monoid in that there might not exist an identity element. It
5357 also (originally) generalized a group (a monoid with all inverses) to a type
5358 where every element did not have to have an inverse, thus the name
5359 semigroup.")
5360 (license license:bsd-3)))
5361
5362 (define-public ghc-semigroups-bootstrap
5363 (package
5364 (inherit ghc-semigroups)
5365 (name "ghc-semigroups-bootstrap")
5366 (inputs
5367 `(("ghc-nats" ,ghc-nats-bootstrap)
5368 ("ghc-tagged" ,ghc-tagged)
5369 ("ghc-unordered-containers" ,ghc-unordered-containers-bootstrap)
5370 ("ghc-text" ,ghc-text)
5371 ("ghc-hashable" ,ghc-hashable-bootstrap)))
5372 (properties '(hidden? #t))))
5373
5374 (define-public ghc-free
5375 (package
5376 (name "ghc-free")
5377 (version "5.0.2")
5378 (source
5379 (origin
5380 (method url-fetch)
5381 (uri (string-append
5382 "https://hackage.haskell.org/package/free/free-"
5383 version
5384 ".tar.gz"))
5385 (sha256
5386 (base32
5387 "15m3n9vhz7z3kzv1w3wlfa3x8jp4cbrkwmrcjr7jlx39iqffn1gg"))))
5388 (build-system haskell-build-system)
5389 (inputs
5390 `(("ghc-prelude-extras" ,ghc-prelude-extras)
5391 ("ghc-profunctors" ,ghc-profunctors)
5392 ("ghc-exceptions" ,ghc-exceptions)
5393 ("ghc-bifunctors" ,ghc-bifunctors)
5394 ("ghc-comonad" ,ghc-comonad)
5395 ("ghc-distributive" ,ghc-distributive)
5396 ("ghc-semigroupoids" ,ghc-semigroupoids)
5397 ("ghc-semigroups" ,ghc-semigroups)
5398 ("ghc-transformers-base" ,ghc-transformers-base)
5399 ("ghc-transformers-compat" ,ghc-transformers-compat)))
5400 (home-page "https://github.com/ekmett/free/")
5401 (synopsis "Unrestricted monads for Haskell")
5402 (description "This library provides free monads, which are useful for many
5403 tree-like structures and domain specific languages. If @code{f} is a
5404 @code{Functor} then the free @code{Monad} on @code{f} is the type of trees
5405 whose nodes are labeled with the constructors of @code{f}. The word \"free\"
5406 is used in the sense of \"unrestricted\" rather than \"zero-cost\": @code{Free
5407 f} makes no constraining assumptions beyond those given by @code{f} and the
5408 definition of @code{Monad}.")
5409 (license license:bsd-3)))
5410
5411 (define-public ghc-adjunctions
5412 (package
5413 (name "ghc-adjunctions")
5414 (version "4.4")
5415 (source
5416 (origin
5417 (method url-fetch)
5418 (uri (string-append
5419 "https://hackage.haskell.org/package/adjunctions/adjunctions-"
5420 version
5421 ".tar.gz"))
5422 (sha256
5423 (base32
5424 "1sbal7cbhm12crfnfhkk322jnzgx7lhw3jzq0p463bipagsjwz2h"))))
5425 (build-system haskell-build-system)
5426 (inputs
5427 `(("ghc-profunctors" ,ghc-profunctors)
5428 ("ghc-comonad" ,ghc-comonad)
5429 ("ghc-contravariant" ,ghc-contravariant)
5430 ("ghc-distributive" ,ghc-distributive)
5431 ("ghc-free" ,ghc-free)
5432 ("ghc-tagged" ,ghc-tagged)
5433 ("ghc-semigroupoids" ,ghc-semigroupoids)
5434 ("ghc-semigroups" ,ghc-semigroups)
5435 ("ghc-transformers-compat" ,ghc-transformers-compat)
5436 ("ghc-void" ,ghc-void)))
5437 (native-inputs
5438 `(("ghc-generic-deriving" ,ghc-generic-deriving)
5439 ("ghc-hspec" ,ghc-hspec)
5440 ("hspec-discover" ,hspec-discover)))
5441 (home-page "https://github.com/ekmett/adjunctions/")
5442 (synopsis "Adjunctions and representable functors")
5443 (description "This library provides adjunctions and representable functors
5444 for Haskell.")
5445 (license license:bsd-3)))
5446
5447 (define-public ghc-equivalence
5448 (package
5449 (name "ghc-equivalence")
5450 (version "0.3.2")
5451 (source
5452 (origin
5453 (method url-fetch)
5454 (uri (string-append "https://hackage.haskell.org/package/equivalence"
5455 "/equivalence-" version ".tar.gz"))
5456 (sha256
5457 (base32 "0a85bdyyvjqs5z4kfhhf758210k9gi9dv42ik66a3jl0z7aix8kx"))))
5458 (build-system haskell-build-system)
5459 (inputs
5460 `(("ghc-stmonadtrans" ,ghc-stmonadtrans)
5461 ("ghc-transformers-compat" ,ghc-transformers-compat)
5462 ("ghc-quickcheck" ,ghc-quickcheck)
5463 ("ghc-test-framework" ,ghc-test-framework)
5464 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
5465 (home-page "https://github.com/pa-ba/equivalence")
5466 (synopsis "Maintaining an equivalence relation implemented as union-find")
5467 (description
5468 "This is an implementation of Tarjan's Union-Find algorithm (Robert E.@:
5469 Tarjan. \"Efficiency of a Good But Not Linear Set Union Algorithm\",JACM
5470 22(2), 1975) in order to maintain an equivalence relation. This
5471 implementation is a port of the @code{union-find} package using the @code{ST}
5472 monad transformer (instead of the IO monad).")
5473 (license license:bsd-3)))
5474
5475 (define-public ghc-fast-logger
5476 (package
5477 (name "ghc-fast-logger")
5478 (version "2.4.11")
5479 (source
5480 (origin
5481 (method url-fetch)
5482 (uri (string-append
5483 "https://hackage.haskell.org/package/fast-logger/fast-logger-"
5484 version
5485 ".tar.gz"))
5486 (sha256
5487 (base32
5488 "1ad2vq4nifdxshqk9yrmghqizhkgybfz134kpr6padglb2mxxrdv"))))
5489 (build-system haskell-build-system)
5490 (inputs
5491 `(("ghc-auto-update" ,ghc-auto-update)
5492 ("ghc-easy-file" ,ghc-easy-file)
5493 ("ghc-text" ,ghc-text)
5494 ("ghc-unix-time" ,ghc-unix-time)))
5495 (native-inputs
5496 `(("hspec-discover" ,hspec-discover)
5497 ("ghc-hspec" ,ghc-hspec)))
5498 (home-page "https://hackage.haskell.org/package/fast-logger")
5499 (synopsis "Fast logging system")
5500 (description "This library provides a fast logging system for Haskell.")
5501 (license license:bsd-3)))
5502
5503 (define-public ghc-doctest
5504 (package
5505 (name "ghc-doctest")
5506 (version "0.16.0")
5507 (source
5508 (origin
5509 (method url-fetch)
5510 (uri (string-append
5511 "https://hackage.haskell.org/package/doctest/doctest-"
5512 version
5513 ".tar.gz"))
5514 (sha256
5515 (base32
5516 "0hkccch65s3kp0b36h7bqhilnpi4bx8kngncm7ma9vbd3dwacjdv"))))
5517 (build-system haskell-build-system)
5518 (arguments `(#:tests? #f)) ; FIXME: missing test framework
5519 (inputs
5520 `(("ghc-syb" ,ghc-syb)
5521 ("ghc-paths" ,ghc-paths)
5522 ("ghc-base-compat" ,ghc-base-compat)
5523 ("ghc-code-page" ,ghc-code-page)
5524 ("ghc-hunit" ,ghc-hunit)
5525 ("ghc-hspec" ,ghc-hspec)
5526 ("ghc-quickcheck" ,ghc-quickcheck)
5527 ("ghc-stringbuilder" ,ghc-stringbuilder)
5528 ("ghc-silently" ,ghc-silently)
5529 ("ghc-setenv" ,ghc-setenv)))
5530 (home-page
5531 "https://github.com/sol/doctest#readme")
5532 (synopsis "Test interactive Haskell examples")
5533 (description "The doctest program checks examples in source code comments.
5534 It is modeled after doctest for Python, see
5535 @uref{https://docs.python.org/library/doctest.html, the Doctest website}.")
5536 (license license:expat)))
5537
5538 (define-public ghc-lifted-base
5539 (package
5540 (name "ghc-lifted-base")
5541 (version "0.2.3.12")
5542 (source
5543 (origin
5544 (method url-fetch)
5545 (uri (string-append
5546 "https://hackage.haskell.org/package/lifted-base/lifted-base-"
5547 version
5548 ".tar.gz"))
5549 (sha256
5550 (base32
5551 "1i8p8d3rkdh21bhgjjh32vd7qqjr7jq7p59qds0aw2kmargsjd61"))))
5552 (build-system haskell-build-system)
5553 (arguments `(#:tests? #f)) ; FIXME: Missing testing libraries.
5554 (inputs
5555 `(("ghc-transformers-base" ,ghc-transformers-base)
5556 ("ghc-monad-control" ,ghc-monad-control)
5557 ("ghc-transformers-compat" ,ghc-transformers-compat)
5558 ("ghc-hunit" ,ghc-hunit)))
5559 (home-page "https://github.com/basvandijk/lifted-base")
5560 (synopsis "Lifted IO operations from the base library")
5561 (description "Lifted-base exports IO operations from the @code{base}
5562 library lifted to any instance of @code{MonadBase} or @code{MonadBaseControl}.
5563 Note that not all modules from @code{base} are converted yet. The package
5564 includes a copy of the @code{monad-peel} test suite written by Anders
5565 Kaseorg.")
5566 (license license:bsd-3)))
5567
5568 (define-public ghc-word8
5569 (package
5570 (name "ghc-word8")
5571 (version "0.1.3")
5572 (source
5573 (origin
5574 (method url-fetch)
5575 (uri (string-append
5576 "https://hackage.haskell.org/package/word8/word8-"
5577 version
5578 ".tar.gz"))
5579 (sha256
5580 (base32
5581 "12jx7f13d2h1djq4fh4dyrab61sm49mj1w61j3rzp2vjfm696c16"))))
5582 (build-system haskell-build-system)
5583 (native-inputs
5584 `(("ghc-hspec" ,ghc-hspec)
5585 ("hspec-discover" ,hspec-discover)))
5586 (home-page "https://hackage.haskell.org/package/word8")
5587 (synopsis "Word8 library for Haskell")
5588 (description "Word8 library to be used with @code{Data.ByteString}.")
5589 (license license:bsd-3)))
5590
5591 (define-public ghc-stringsearch
5592 (package
5593 (name "ghc-stringsearch")
5594 (version "0.3.6.6")
5595 (source
5596 (origin
5597 (method url-fetch)
5598 (uri (string-append
5599 "https://hackage.haskell.org/package/stringsearch/stringsearch-"
5600 version
5601 ".tar.gz"))
5602 (sha256
5603 (base32
5604 "0jpy9xjcjdbpi3wk6mg7xwd7wfi2mma70p97v1ij5i8bj9qijpr9"))))
5605 (build-system haskell-build-system)
5606 (home-page "https://bitbucket.org/dafis/stringsearch")
5607 (synopsis "Fast searching, splitting and replacing of ByteStrings")
5608 (description "This package provides several functions to quickly search
5609 for substrings in strict or lazy @code{ByteStrings}. It also provides
5610 functions for breaking or splitting on substrings and replacing all
5611 occurrences of a substring (the first in case of overlaps) with another.")
5612 (license license:bsd-3)))
5613
5614 (define-public ghc-integer-logarithms
5615 (package
5616 (name "ghc-integer-logarithms")
5617 (version "1.0.2.1")
5618 (source
5619 (origin
5620 (method url-fetch)
5621 (uri (string-append "https://hackage.haskell.org/package/"
5622 "integer-logarithms/integer-logarithms-"
5623 version ".tar.gz"))
5624 (sha256
5625 (base32
5626 "1wj8kgjg5bn2yrs4zh9qfjv85cx6w998j9pi39yrbv305944mb9j"))))
5627 (build-system haskell-build-system)
5628 (arguments
5629 `(#:phases
5630 (modify-phases %standard-phases
5631 (add-before 'configure 'update-constraints
5632 (lambda _
5633 (substitute* "integer-logarithms.cabal"
5634 (("tasty >= 0\\.10 && < 1\\.1")
5635 "tasty >= 0.10 && < 1.2")))))))
5636 (native-inputs
5637 `(("ghc-quickcheck" ,ghc-quickcheck)
5638 ("ghc-smallcheck" ,ghc-smallcheck)
5639 ("ghc-tasty" ,ghc-tasty)
5640 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
5641 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
5642 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)))
5643 (home-page "https://github.com/Bodigrim/integer-logarithms")
5644 (synopsis "Integer logarithms")
5645 (description
5646 "This package provides the following modules:
5647 @code{Math.NumberTheory.Logarithms} and
5648 @code{Math.NumberTheory.Powers.Integer} from the @code{arithmoi} package,
5649 @code{GHC.Integer.Logarithms.Compat} and
5650 @code{Math.NumberTheory.Power.Natural}, as well as some additional functions
5651 in migrated modules.")
5652 (license license:expat)))
5653
5654 (define-public ghc-integer-logarithms-bootstrap
5655 (package
5656 (inherit ghc-integer-logarithms)
5657 (name "ghc-integer-logarithms-bootstrap")
5658 (arguments `(#:tests? #f))
5659 (native-inputs '())
5660 (properties '(hidden? #t))))
5661
5662 (define-public ghc-scientific
5663 (package
5664 (name "ghc-scientific")
5665 (version "0.3.6.2")
5666 (source
5667 (origin
5668 (method url-fetch)
5669 (uri (string-append
5670 "https://hackage.haskell.org/package/scientific/scientific-"
5671 version
5672 ".tar.gz"))
5673 (sha256
5674 (base32
5675 "03ql2f0ac8bsl524idy9xxa3kxisb2sj3avflzw580j5hzy0m397"))))
5676 (build-system haskell-build-system)
5677 (inputs
5678 `(("ghc-integer-logarithms" ,ghc-integer-logarithms)
5679 ("ghc-text" ,ghc-text)
5680 ("ghc-hashable" ,ghc-hashable)
5681 ("ghc-primitive" ,ghc-primitive)))
5682 (native-inputs
5683 `(("ghc-tasty" ,ghc-tasty)
5684 ("ghc-tasty-ant-xml" ,ghc-tasty-ant-xml)
5685 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
5686 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
5687 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
5688 ("ghc-smallcheck" ,ghc-smallcheck)
5689 ("ghc-quickcheck" ,ghc-quickcheck)))
5690 (home-page "https://github.com/basvandijk/scientific")
5691 (synopsis "Numbers represented using scientific notation")
5692 (description "This package provides @code{Data.Scientific}, which provides
5693 the number type @code{Scientific}. Scientific numbers are arbitrary precision
5694 and space efficient. They are represented using
5695 @uref{https://en.wikipedia.org/wiki/Scientific_notation, scientific
5696 notation}.")
5697 (license license:bsd-3)))
5698
5699 (define-public ghc-scientific-bootstrap
5700 (package
5701 (inherit ghc-scientific)
5702 (name "ghc-scientific-bootstrap")
5703 (arguments `(#:tests? #f))
5704 (inputs
5705 `(("ghc-integer-logarithms" ,ghc-integer-logarithms-bootstrap)
5706 ("ghc-text" ,ghc-text)
5707 ("ghc-hashable" ,ghc-hashable)
5708 ("ghc-primitive" ,ghc-primitive)))
5709 (native-inputs '())
5710 (properties '(hidden? #t))))
5711
5712 (define-public ghc-boxes
5713 (package
5714 (name "ghc-boxes")
5715 (version "0.1.5")
5716 (source
5717 (origin
5718 (method url-fetch)
5719 (uri (string-append "https://hackage.haskell.org/package/boxes/boxes-"
5720 version ".tar.gz"))
5721 (sha256
5722 (base32 "1hsnmw95i58d4bkpxby3ddsj1cawypw4mdyb18m393s5i8p7iq9q"))))
5723 (build-system haskell-build-system)
5724 (inputs
5725 `(("ghc-split" ,ghc-split)
5726 ("ghc-quickcheck" ,ghc-quickcheck)))
5727 (home-page "https://hackage.haskell.org/package/boxes")
5728 (synopsis "2D text pretty-printing library")
5729 (description
5730 "Boxes is a pretty-printing library for laying out text in two dimensions,
5731 using a simple box model.")
5732 (license license:bsd-3)))
5733
5734 (define-public ghc-deepseq-generics
5735 (package
5736 (name "ghc-deepseq-generics")
5737 (version "0.2.0.0")
5738 (source (origin
5739 (method url-fetch)
5740 (uri (string-append "https://hackage.haskell.org/package/"
5741 "deepseq-generics/deepseq-generics-"
5742 version ".tar.gz"))
5743 (sha256
5744 (base32
5745 "17bwghc15mc9pchfd1w46jh2p3wzc86aj6a537wqwxn08rayzcxh"))))
5746 (build-system haskell-build-system)
5747 (arguments
5748 `(#:cabal-revision
5749 ("2" "1pnidf8w8x0w5fsqgv8hhrw07slmhxwy5x4fikgk0bd6k76aqicb")))
5750 (native-inputs
5751 `(("ghc-hunit" ,ghc-hunit)
5752 ("ghc-test-framework" ,ghc-test-framework)
5753 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
5754 (home-page "https://github.com/hvr/deepseq-generics")
5755 (synopsis "Generic RNF implementation")
5756 (description
5757 "This package provides a @code{GHC.Generics}-based
5758 @code{Control.DeepSeq.Generics.genericRnf} function which can be used for
5759 providing an @code{rnf} implementation.")
5760 (license license:bsd-3)))
5761
5762 (define-public ghc-string-qq
5763 (package
5764 (name "ghc-string-qq")
5765 (version "0.0.2")
5766 (source
5767 (origin
5768 (method url-fetch)
5769 (uri (string-append
5770 "https://hackage.haskell.org/package/string-qq/string-qq-"
5771 version
5772 ".tar.gz"))
5773 (sha256
5774 (base32
5775 "0662m3i5xrdrr95w829bszkhp88mj9iy1zya54vk2sl5hz9wlmwp"))))
5776 (build-system haskell-build-system)
5777 (home-page "http://hackage.haskell.org/package/string-qq")
5778 (synopsis
5779 "QuasiQuoter for non-interpolated strings, texts and bytestrings.")
5780 (description
5781 "This package provides a quasiquoter for non-interpolated strings, texts
5782 and bytestrings.")
5783 (license license:public-domain)))
5784
5785 (define-public ghc-pandoc-types
5786 (package
5787 (name "ghc-pandoc-types")
5788 (version "1.17.5.1")
5789 (source (origin
5790 (method url-fetch)
5791 (uri (string-append "https://hackage.haskell.org/package/"
5792 "pandoc-types/pandoc-types-"
5793 version ".tar.gz"))
5794 (sha256
5795 (base32
5796 "1q6v2bynij724fv347mhqxdscwifzrx5jb9mq80608qf638fn717"))))
5797 (build-system haskell-build-system)
5798 (inputs
5799 `(("ghc-syb" ,ghc-syb)
5800 ("ghc-aeson" ,ghc-aeson)
5801 ("ghc-string-qq" ,ghc-string-qq)))
5802 (native-inputs
5803 `(("ghc-quickcheck" ,ghc-quickcheck)
5804 ("ghc-test-framework" ,ghc-test-framework)
5805 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
5806 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
5807 ("ghc-hunit" ,ghc-hunit)))
5808 (home-page "http://johnmacfarlane.net/pandoc")
5809 (synopsis "Types for representing a structured document")
5810 (description
5811 "This module defines the @code{Pandoc} data structure, which is used by
5812 pandoc to represent structured documents. It also provides functions for
5813 building up, manipulating and serialising @code{Pandoc} structures.")
5814 (license license:bsd-3)))
5815
5816 (define-public ghc-texmath
5817 (package
5818 (name "ghc-texmath")
5819 (version "0.11.0.1")
5820 (source (origin
5821 (method url-fetch)
5822 (uri (string-append "https://hackage.haskell.org/package/"
5823 "texmath/texmath-" version ".tar.gz"))
5824 (sha256
5825 (base32
5826 "11dc09hfnyfsz20ch2c867w0zdgjkzq41506lm61i3dk87ngdisf"))))
5827 (build-system haskell-build-system)
5828 (inputs
5829 `(("ghc-syb" ,ghc-syb)
5830 ("ghc-network-uri" ,ghc-network-uri)
5831 ("ghc-split" ,ghc-split)
5832 ("ghc-temporary" ,ghc-temporary)
5833 ("ghc-utf8-string" ,ghc-utf8-string)
5834 ("ghc-xml" ,ghc-xml)
5835 ("ghc-parsec" ,ghc-parsec)
5836 ("ghc-pandoc-types" ,ghc-pandoc-types)))
5837 (home-page "https://github.com/jgm/texmath")
5838 (synopsis "Conversion between formats used to represent mathematics")
5839 (description
5840 "The texmath library provides functions to read and write TeX math,
5841 presentation MathML, and OMML (Office Math Markup Language, used in Microsoft
5842 Office). Support is also included for converting math formats to pandoc's
5843 native format (allowing conversion, via pandoc, to a variety of different
5844 markup formats). The TeX reader supports basic LaTeX and AMS extensions, and
5845 it can parse and apply LaTeX macros.")
5846 (license license:gpl2+)))
5847
5848 (define-public ghc-regex-pcre-builtin
5849 (package
5850 (name "ghc-regex-pcre-builtin")
5851 (version "0.94.4.8.8.35")
5852 (source (origin
5853 (method url-fetch)
5854 (uri (string-append "https://hackage.haskell.org/package/"
5855 "regex-pcre-builtin/regex-pcre-builtin-"
5856 version ".tar.gz"))
5857 (sha256
5858 (base32
5859 "0y7as9wqlkykpipka2cfdhmcnin345q01pp0wsva8fwmvsavdl8b"))))
5860 (build-system haskell-build-system)
5861 (inputs
5862 `(("ghc-regex-base" ,ghc-regex-base)))
5863 (home-page "https://hackage.haskell.org/package/regex-pcre")
5864 (synopsis "Enhancement of the builtin Text.Regex library")
5865 (description
5866 "This package is an enhancement of the @code{Text.Regex} library,
5867 providing the PCRE backend to accompany regex-base, with bundled code from
5868 @url{https://www.pcre.org}.")
5869 (license license:bsd-3)))
5870
5871 (define-public ghc-diff
5872 (package
5873 (name "ghc-diff")
5874 (version "0.3.4")
5875 (source (origin
5876 (method url-fetch)
5877 (uri (string-append "https://hackage.haskell.org/package/"
5878 "Diff/Diff-" version ".tar.gz"))
5879 (sha256
5880 (base32
5881 "0bqcdvhxx8dmqc3793m6axg813wv9ldz2j37f1wygbbrbbndmdvp"))))
5882 (build-system haskell-build-system)
5883 (native-inputs
5884 `(("ghc-quickcheck" ,ghc-quickcheck)
5885 ("ghc-test-framework" ,ghc-test-framework)
5886 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
5887 (home-page "https://hub.darcs.net/sterlingclover/Diff")
5888 (synopsis "O(ND) diff algorithm in Haskell")
5889 (description
5890 "This package provides an implementation of the standard diff algorithm,
5891 and utilities for pretty printing.")
5892 (license license:bsd-3)))
5893
5894 (define-public ghc-highlighting-kate
5895 (package
5896 (name "ghc-highlighting-kate")
5897 (version "0.6.4")
5898 (source (origin
5899 (method url-fetch)
5900 (uri (string-append "https://hackage.haskell.org/package/"
5901 "highlighting-kate/highlighting-kate-"
5902 version ".tar.gz"))
5903 (sha256
5904 (base32
5905 "1bqv00gfmrsf0jjr4qf3lhshvfkyzmhbi3pjb6mafbnsyn2k7f6q"))))
5906 (build-system haskell-build-system)
5907 (inputs
5908 `(("ghc-diff" ,ghc-diff)
5909 ("ghc-regex-pcre-builtin" ,ghc-regex-pcre-builtin)))
5910 (native-inputs
5911 `(("ghc-parsec" ,ghc-parsec)
5912 ("ghc-blaze-html" ,ghc-blaze-html)
5913 ("ghc-utf8-string" ,ghc-utf8-string)))
5914 (home-page "https://github.com/jgm/highlighting-kate")
5915 (synopsis "Syntax highlighting library")
5916 (description
5917 "Highlighting-kate is a syntax highlighting library with support for
5918 nearly one hundred languages. The syntax parsers are automatically generated
5919 from @uref{https://kate-editor.org/, Kate syntax descriptions}, so any syntax
5920 supported by Kate can be added. An (optional) command-line program is
5921 provided, along with a utility for generating new parsers from Kate XML syntax
5922 descriptions.")
5923 (license license:gpl2+)))
5924
5925 (define-public ghc-cmark
5926 (package
5927 (name "ghc-cmark")
5928 (version "0.5.6")
5929 (source (origin
5930 (method url-fetch)
5931 ;; XXX As of version 0.5.6, this package bundles libcmark 0.28.0.
5932 ;; See cbits/cmark_version.h.
5933 (uri (string-append "https://hackage.haskell.org/package/"
5934 "cmark/cmark-" version ".tar.gz"))
5935 (sha256
5936 (base32
5937 "1c1j3a8b9qx5zk9myqm3gap8ymz7fipwrdmyfsq9wkkdr9x4np45"))))
5938 (build-system haskell-build-system)
5939 (inputs
5940 `(("ghc-text" ,ghc-text)))
5941 (native-inputs
5942 `(("ghc-hunit" ,ghc-hunit)))
5943 (home-page "https://github.com/jgm/commonmark-hs")
5944 (synopsis "Fast, accurate CommonMark (Markdown) parser and renderer")
5945 (description
5946 "This package provides Haskell bindings for
5947 @uref{https://github.com/jgm/cmark, libcmark}, the reference parser for
5948 CommonMark, a fully specified variant of Markdown. It includes bundled libcmark
5949 sources, and does not require prior installation of the C library.")
5950 (license license:bsd-3)))
5951
5952 (define-public ghc-cmark-gfm
5953 (package
5954 (name "ghc-cmark-gfm")
5955 (version "0.1.5")
5956 (source
5957 (origin
5958 (method url-fetch)
5959 (uri (string-append "https://hackage.haskell.org/package/"
5960 "cmark-gfm/cmark-gfm-"
5961 version ".tar.gz"))
5962 (sha256
5963 (base32
5964 "13b0mqks5c1q989slgsa3ixr5vvkfyic4ynzgv00kgl5qrs7hqk7"))))
5965 (build-system haskell-build-system)
5966 (inputs
5967 `(("ghc-text" ,ghc-text)))
5968 (native-inputs
5969 `(("ghc-hunit" ,ghc-hunit)))
5970 (home-page "https://github.com/kivikakk/cmark-gfm-hs")
5971 (synopsis
5972 "Fast, accurate GitHub Flavored Markdown parser and renderer")
5973 (description
5974 "This package provides Haskell bindings for libcmark-gfm, the reference
5975 parser for GitHub Flavored Markdown, a fully specified variant of Markdown.
5976 It includes sources for libcmark-gfm and does not require prior installation
5977 of the C library.")
5978 (license license:bsd-3)))
5979
5980 (define-public ghc-executable-path
5981 (package
5982 (name "ghc-executable-path")
5983 (version "0.0.3.1")
5984 (source (origin
5985 (method url-fetch)
5986 (uri (string-append "https://hackage.haskell.org/package/"
5987 "executable-path/executable-path-"
5988 version ".tar.gz"))
5989 (sha256
5990 (base32
5991 "0vxwmnsvx13cawcyhbyljkds0l1vr996ijldycx7nj0asjv45iww"))))
5992 (build-system haskell-build-system)
5993 (home-page "https://hackage.haskell.org/package/executable-path")
5994 (synopsis "Find out the full path of the executable")
5995 (description
5996 "The documentation of @code{System.Environment.getProgName} says that
5997 \"However, this is hard-to-impossible to implement on some non-Unix OSes, so
5998 instead, for maximum portability, we just return the leafname of the program
5999 as invoked.\" This library tries to provide the missing path.")
6000 (license license:public-domain)))
6001
6002 (define-public ghc-enclosed-exceptions
6003 (package
6004 (name "ghc-enclosed-exceptions")
6005 (version "1.0.3")
6006 (source (origin
6007 (method url-fetch)
6008 (uri (string-append "https://hackage.haskell.org/package/"
6009 "enclosed-exceptions/enclosed-exceptions-"
6010 version ".tar.gz"))
6011 (sha256
6012 (base32
6013 "1fghjj7nkiddrf03ks8brjpr5x25yi9fs7xg6adbi4mc2gqr6vdg"))))
6014 (build-system haskell-build-system)
6015 ;; FIXME: one of the tests blocks forever:
6016 ;; "thread blocked indefinitely in an MVar operation"
6017 (arguments '(#:tests? #f))
6018 (inputs
6019 `(("ghc-lifted-base" ,ghc-lifted-base)
6020 ("ghc-monad-control" ,ghc-monad-control)
6021 ("ghc-async" ,ghc-async)
6022 ("ghc-transformers-base" ,ghc-transformers-base)))
6023 (native-inputs
6024 `(("ghc-hspec" ,ghc-hspec)
6025 ("ghc-quickcheck" ,ghc-quickcheck)))
6026 (home-page "https://github.com/jcristovao/enclosed-exceptions")
6027 (synopsis "Catch all exceptions from within an enclosed computation")
6028 (description
6029 "This library implements a technique to catch all exceptions raised
6030 within an enclosed computation, while remaining responsive to (external)
6031 asynchronous exceptions.")
6032 (license license:expat)))
6033
6034 (define-public ghc-packedstring
6035 (package
6036 (name "ghc-packedstring")
6037 (version "0.1.0.1")
6038 (source (origin
6039 (method url-fetch)
6040 (uri (string-append "https://hackage.haskell.org/package/"
6041 "packedstring/packedstring-"
6042 version ".tar.gz"))
6043 (sha256
6044 (base32
6045 "1x78pzzdlnpcmh9p37rlf8m5cxf3yqm2alf3whl4zpr9w25r0qj8"))))
6046 (build-system haskell-build-system)
6047 (arguments
6048 `(#:phases
6049 (modify-phases %standard-phases
6050 (add-after 'unpack 'enable-extension
6051 (lambda _
6052 ;; This package won't compile without the StandaloneDeriving
6053 ;; extension.
6054 (substitute* "packedstring.cabal"
6055 (("CPP") "CPP, StandaloneDeriving"))
6056 #t)))))
6057 (home-page "https://hackage.haskell.org/package/packedstring")
6058 (synopsis "Library for packed strings")
6059 (description
6060 "This deprecated library provides an implementation of packed strings.")
6061 (license license:bsd-3)))
6062
6063 (define-public ghc-th-abstraction
6064 (package
6065 (name "ghc-th-abstraction")
6066 (version "0.2.8.0")
6067 (source
6068 (origin
6069 (method url-fetch)
6070 (uri (string-append "https://hackage.haskell.org/package/"
6071 "th-abstraction/th-abstraction-"
6072 version ".tar.gz"))
6073 (sha256
6074 (base32
6075 "0n17w4q2ykd0nica4sck2wng6md56rfad8x0icl0l8vnzb9nn4ya"))))
6076 (build-system haskell-build-system)
6077 (home-page "https://github.com/glguy/th-abstraction")
6078 (synopsis "Nicer interface for reified information about data types")
6079 (description
6080 "This package normalizes variations in the interface for inspecting
6081 datatype information via Template Haskell so that packages and support a
6082 single, easier to use informational datatype while supporting many versions of
6083 Template Haskell.")
6084 (license license:isc)))
6085
6086 (define-public ghc-th-lift
6087 (package
6088 (name "ghc-th-lift")
6089 (version "0.7.11")
6090 (source (origin
6091 (method url-fetch)
6092 (uri (string-append "https://hackage.haskell.org/package/"
6093 "th-lift/th-lift-" version ".tar.gz"))
6094 (sha256
6095 (base32
6096 "131360zxb0hazbqwbkk6ab2p77jkxr79bwwm618mrwrwkm3x2g6m"))))
6097 (build-system haskell-build-system)
6098 (inputs
6099 `(("ghc-th-abstraction" ,ghc-th-abstraction)))
6100 (home-page "https://github.com/mboes/th-lift")
6101 (synopsis "Derive Template Haskell's Lift class for datatypes")
6102 (description
6103 "This is a Haskell library to derive Template Haskell's Lift class for
6104 datatypes.")
6105 (license license:bsd-3)))
6106
6107 (define-public ghc-th-lift-instances
6108 (package
6109 (name "ghc-th-lift-instances")
6110 (version "0.1.11")
6111 (source
6112 (origin
6113 (method url-fetch)
6114 (uri (string-append "https://hackage.haskell.org/package/"
6115 "th-lift-instances/th-lift-instances-"
6116 version ".tar.gz"))
6117 (sha256
6118 (base32
6119 "1f56cp6ckcalld5jchv0kxpjkwcsixd7smd0g7r8cg67ppx6m90x"))))
6120 (build-system haskell-build-system)
6121 (inputs
6122 `(("ghc-th-lift" ,ghc-th-lift)
6123 ("ghc-vector" ,ghc-vector)
6124 ("ghc-text" ,ghc-text)
6125 ("ghc-quickcheck" ,ghc-quickcheck)))
6126 (home-page "https://github.com/bennofs/th-lift-instances/")
6127 (synopsis "Lift instances for template-haskell for common data types.")
6128 (description "Most data types in the Haskell platform do not have Lift
6129 instances. This package provides orphan instances for @code{containers},
6130 @code{text}, @code{bytestring} and @code{vector}.")
6131 (license license:bsd-3)))
6132
6133 (define-public ghc-th-expand-syns
6134 (package
6135 (name "ghc-th-expand-syns")
6136 (version "0.4.4.0")
6137 (source (origin
6138 (method url-fetch)
6139 (uri (string-append "https://hackage.haskell.org/package/"
6140 "th-expand-syns/th-expand-syns-"
6141 version ".tar.gz"))
6142 (sha256
6143 (base32
6144 "01prlvh3py5hq5ccjidfyp9ixq2zd88dkbsidyjrpkja6v8m43yc"))))
6145 (build-system haskell-build-system)
6146 (inputs
6147 `(("ghc-syb" ,ghc-syb)))
6148 (home-page "https://hackage.haskell.org/package/th-expand-syns")
6149 (synopsis "Expands type synonyms in Template Haskell ASTs")
6150 (description
6151 "This package enables users to expand type synonyms in Template Haskell
6152 @dfn{abstract syntax trees} (ASTs).")
6153 (license license:bsd-3)))
6154
6155 (define-public ghc-th-reify-many
6156 (package
6157 (name "ghc-th-reify-many")
6158 (version "0.1.8")
6159 (source (origin
6160 (method url-fetch)
6161 (uri (string-append "https://hackage.haskell.org/package/"
6162 "th-reify-many/th-reify-many-"
6163 version ".tar.gz"))
6164 (sha256
6165 (base32
6166 "0hzy6hvhvcd6i60vx5cp2b7ggmnnjh9rx4h8bm8xw4grglcaxjnf"))))
6167 (build-system haskell-build-system)
6168 (inputs
6169 `(("ghc-safe" ,ghc-safe)
6170 ("ghc-th-expand-syns" ,ghc-th-expand-syns)))
6171 (home-page "https://github.com/mgsloan/th-reify-many")
6172 (synopsis "Recurseively reify template haskell datatype info")
6173 (description
6174 "th-reify-many provides functions for recursively reifying top level
6175 declarations. The main intended use case is for enumerating the names of
6176 datatypes reachable from an initial datatype, and passing these names to some
6177 function which generates instances.")
6178 (license license:bsd-3)))
6179
6180 (define-public ghc-th-orphans
6181 (package
6182 (name "ghc-th-orphans")
6183 (version "0.13.6")
6184 (source (origin
6185 (method url-fetch)
6186 (uri (string-append "https://hackage.haskell.org/package/"
6187 "th-orphans/th-orphans-" version ".tar.gz"))
6188 (sha256
6189 (base32
6190 "0sfl3pn9kq9da3ji3lsgzgzy82vz6yvsg80dmakc1jvk7awycibp"))))
6191 (build-system haskell-build-system)
6192 (inputs
6193 `(("ghc-th-lift" ,ghc-th-lift)
6194 ("ghc-th-lift-instances" ,ghc-th-lift-instances)
6195 ("ghc-th-reify-many" ,ghc-th-reify-many)
6196 ("ghc-generic-deriving" ,ghc-generic-deriving)))
6197 (native-inputs
6198 `(("ghc-hspec" ,ghc-hspec)))
6199 (home-page "https://hackage.haskell.org/package/th-orphans")
6200 (synopsis "Orphan instances for TH datatypes")
6201 (description
6202 "This package provides orphan instances for Template Haskell datatypes. In particular,
6203 instances for @code{Ord} and @code{Lift}, as well as a few missing @code{Show}
6204 and @code{Eq} instances. These instances used to live in the haskell-src-meta
6205 package, and that's where the version number started.")
6206 (license license:bsd-3)))
6207
6208 (define-public ghc-geniplate-mirror
6209 (package
6210 (name "ghc-geniplate-mirror")
6211 (version "0.7.6")
6212 (source
6213 (origin
6214 (method url-fetch)
6215 (uri (string-append "https://hackage.haskell.org/package"
6216 "/geniplate-mirror"
6217 "/geniplate-mirror-" version ".tar.gz"))
6218 (sha256
6219 (base32 "1y0m0bw5zpm1y1y6d9qmxj3swl8j8hlw1shxbr5awycf6k884ssb"))))
6220 (build-system haskell-build-system)
6221 (home-page "https://github.com/danr/geniplate")
6222 (synopsis "Use Template Haskell to generate Uniplate-like functions")
6223 (description
6224 "Use Template Haskell to generate Uniplate-like functions. This is a
6225 maintained mirror of the @uref{https://hackage.haskell.org/package/geniplate,
6226 geniplate} package, written by Lennart Augustsson.")
6227 (license license:bsd-3)))
6228
6229 (define-public ghc-gitrev
6230 (package
6231 (name "ghc-gitrev")
6232 (version "1.3.1")
6233 (source
6234 (origin
6235 (method url-fetch)
6236 (uri (string-append "https://hackage.haskell.org/package/gitrev/gitrev-"
6237 version ".tar.gz"))
6238 (sha256
6239 (base32 "0cl3lfm6k1h8fxp2vxa6ihfp4v8igkz9h35iwyq2frzm4kdn96d8"))))
6240 (build-system haskell-build-system)
6241 (inputs `(("ghc-base-compat" ,ghc-base-compat)))
6242 (home-page "https://github.com/acfoltzer/gitrev")
6243 (synopsis "Compile git revision info into Haskell projects")
6244 (description
6245 "This package provides some handy Template Haskell splices for including
6246 the current git hash and branch in the code of your project. This is useful
6247 for including in panic messages, @command{--version} output, or diagnostic
6248 info for more informative bug reports.")
6249 (license license:bsd-3)))
6250
6251 (define-public ghc-haskell-src-meta
6252 (package
6253 (name "ghc-haskell-src-meta")
6254 (version "0.8.0.3")
6255 (source (origin
6256 (method url-fetch)
6257 (uri (string-append "https://hackage.haskell.org/package/"
6258 "haskell-src-meta/haskell-src-meta-"
6259 version ".tar.gz"))
6260 (sha256
6261 (base32
6262 "08jq156zv4m0fjq6712n99c1jwxnpa6kj6sq8ch0r1l0a1ay6ww4"))))
6263 (build-system haskell-build-system)
6264 (inputs
6265 `(("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
6266 ("ghc-syb" ,ghc-syb)
6267 ("ghc-th-orphans" ,ghc-th-orphans)))
6268 (native-inputs
6269 `(("ghc-hunit" ,ghc-hunit)
6270 ("ghc-test-framework" ,ghc-test-framework)
6271 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
6272 (home-page "https://hackage.haskell.org/package/haskell-src-meta")
6273 (synopsis "Parse source to template-haskell abstract syntax")
6274 (description
6275 "This package provides tools to parse Haskell sources to the
6276 template-haskell abstract syntax.")
6277 (license license:bsd-3)))
6278
6279 (define-public ghc-conduit
6280 (package
6281 (name "ghc-conduit")
6282 (version "1.3.0.3")
6283 (source (origin
6284 (method url-fetch)
6285 (uri (string-append "https://hackage.haskell.org/package/"
6286 "conduit/conduit-" version ".tar.gz"))
6287 (sha256
6288 (base32
6289 "1sangm0qqi9dzlq95746a3kl14k8b09592a423shxjf2a0b1yx5v"))))
6290 (build-system haskell-build-system)
6291 (inputs
6292 `(("ghc-exceptions" ,ghc-exceptions)
6293 ("ghc-lifted-base" ,ghc-lifted-base)
6294 ("ghc-mono-traversable" ,ghc-mono-traversable)
6295 ("ghc-mmorph" ,ghc-mmorph)
6296 ("ghc-resourcet" ,ghc-resourcet)
6297 ("ghc-silently" ,ghc-silently)
6298 ("ghc-transformers-base" ,ghc-transformers-base)
6299 ("ghc-unliftio" ,ghc-unliftio)
6300 ("ghc-unliftio-core" ,ghc-unliftio-core)
6301 ("ghc-vector" ,ghc-vector)
6302 ("ghc-void" ,ghc-void)))
6303 (native-inputs
6304 `(("ghc-quickcheck" ,ghc-quickcheck)
6305 ("ghc-hspec" ,ghc-hspec)
6306 ("ghc-safe" ,ghc-safe)
6307 ("ghc-split" ,ghc-split)))
6308 (home-page "https://github.com/snoyberg/conduit")
6309 (synopsis "Streaming data library ")
6310 (description
6311 "The conduit package is a solution to the streaming data problem,
6312 allowing for production, transformation, and consumption of streams of data
6313 in constant memory. It is an alternative to lazy I/O which guarantees
6314 deterministic resource handling, and fits in the same general solution
6315 space as enumerator/iteratee and pipes.")
6316 (license license:expat)))
6317
6318 (define-public ghc-logging-facade
6319 (package
6320 (name "ghc-logging-facade")
6321 (version "0.3.0")
6322 (source (origin
6323 (method url-fetch)
6324 (uri (string-append "https://hackage.haskell.org/package/"
6325 "logging-facade/logging-facade-"
6326 version ".tar.gz"))
6327 (sha256
6328 (base32
6329 "0d0lwxxgd16is9aw6v3ps4r9prv3dj8xscmm45fvzq3nicjiawcf"))))
6330 (build-system haskell-build-system)
6331 (native-inputs
6332 `(("ghc-hspec" ,ghc-hspec)
6333 ("hspec-discover" ,hspec-discover)))
6334 (home-page "https://hackage.haskell.org/package/logging-facade")
6335 (synopsis "Simple logging abstraction that allows multiple back-ends")
6336 (description
6337 "This package provides a simple logging abstraction that allows multiple
6338 back-ends.")
6339 (license license:expat)))
6340
6341 (define-public ghc-mockery
6342 (package
6343 (name "ghc-mockery")
6344 (version "0.3.5")
6345 (source (origin
6346 (method url-fetch)
6347 (uri (string-append "https://hackage.haskell.org/package/"
6348 "mockery/mockery-" version ".tar.gz"))
6349 (sha256
6350 (base32
6351 "09ypgm3z69gq8mj6y66ss58kbjnk15r8frwcwbqcfbfksfnfv8dp"))))
6352 (build-system haskell-build-system)
6353 (inputs
6354 `(("ghc-temporary" ,ghc-temporary)
6355 ("ghc-logging-facade" ,ghc-logging-facade)
6356 ("ghc-base-compat" ,ghc-base-compat)))
6357 (native-inputs
6358 `(("ghc-hspec" ,ghc-hspec)
6359 ("hspec-discover" ,hspec-discover)))
6360 (home-page "https://hackage.haskell.org/package/mockery")
6361 (synopsis "Support functions for automated testing")
6362 (description
6363 "The mockery package provides support functions for automated testing.")
6364 (license license:expat)))
6365
6366 (define-public ghc-yaml
6367 (package
6368 (name "ghc-yaml")
6369 (version "0.8.32")
6370 (source (origin
6371 (method url-fetch)
6372 (uri (string-append "https://hackage.haskell.org/package/"
6373 "yaml/yaml-" version ".tar.gz"))
6374 (sha256
6375 (base32
6376 "0cbsyh4ilvjzq1q7pxls43k6pdqxg1l85xzibcwpbvmlvrizh86w"))))
6377 (build-system haskell-build-system)
6378 (inputs
6379 `(("ghc-conduit" ,ghc-conduit)
6380 ("ghc-resourcet" ,ghc-resourcet)
6381 ("ghc-aeson" ,ghc-aeson)
6382 ("ghc-unordered-containers" ,ghc-unordered-containers)
6383 ("ghc-vector" ,ghc-vector)
6384 ("ghc-text" ,ghc-text)
6385 ("ghc-attoparsec" ,ghc-attoparsec)
6386 ("ghc-scientific" ,ghc-scientific)
6387 ("ghc-semigroups" ,ghc-semigroups)
6388 ("ghc-temporary" ,ghc-temporary)
6389 ("ghc-enclosed-exceptions" ,ghc-enclosed-exceptions)
6390 ("ghc-base-compat" ,ghc-base-compat)))
6391 (native-inputs
6392 `(("ghc-hspec" ,ghc-hspec)
6393 ("ghc-hunit" ,ghc-hunit)
6394 ("hspec-discover" ,hspec-discover)
6395 ("ghc-mockery" ,ghc-mockery)))
6396 (home-page "https://github.com/snoyberg/yaml/")
6397 (synopsis "Parsing and rendering YAML documents")
6398 (description
6399 "This package provides a library to parse and render YAML documents.")
6400 (license license:bsd-3)))
6401
6402 (define-public ghc-filemanip
6403 (package
6404 (name "ghc-filemanip")
6405 (version "0.3.6.3")
6406 (source (origin
6407 (method url-fetch)
6408 (uri (string-append "https://hackage.haskell.org/package/"
6409 "filemanip/filemanip-" version ".tar.gz"))
6410 (sha256
6411 (base32
6412 "0ilqr8jv41zxcj5qyicg29m8s30b9v70x6f9h2h2rw5ap8bxldl8"))))
6413 (build-system haskell-build-system)
6414 (inputs
6415 `(("ghc-unix-compat" ,ghc-unix-compat)))
6416 (home-page "https://github.com/bos/filemanip")
6417 (synopsis "File and directory manipulation for Haskell")
6418 (description
6419 "This package provides a Haskell library for working with files and
6420 directories. It includes code for pattern matching, finding files, modifying
6421 file contents, and more.")
6422 (license license:bsd-3)))
6423
6424 (define-public ghc-mmap
6425 (package
6426 (name "ghc-mmap")
6427 (version "0.5.9")
6428 (source (origin
6429 (method url-fetch)
6430 (uri (string-append "https://hackage.haskell.org/package/"
6431 "mmap/mmap-" version ".tar.gz"))
6432 (sha256
6433 (base32
6434 "1y5mk3yf4b8r6rzmlx1xqn4skaigrqnv08sqq0v7r3nbw42bpz2q"))))
6435 (build-system haskell-build-system)
6436 (home-page "https://hackage.haskell.org/package/mmap")
6437 (synopsis "Memory mapped files for Haskell")
6438 (description
6439 "This library provides a wrapper to @code{mmap}, allowing files or
6440 devices to be lazily loaded into memory as strict or lazy @code{ByteStrings},
6441 @code{ForeignPtrs} or plain @code{Ptrs}, using the virtual memory subsystem to
6442 do on-demand loading.")
6443 (license license:bsd-3)))
6444
6445 (define-public ghc-juicypixels
6446 (package
6447 (name "ghc-juicypixels")
6448 (version "3.2.9.5")
6449 (source (origin
6450 (method url-fetch)
6451 (uri (string-append "https://hackage.haskell.org/package/"
6452 "JuicyPixels/JuicyPixels-"
6453 version ".tar.gz"))
6454 (sha256
6455 (base32
6456 "0mf3ihr0xy2wc2wzb9a17g0n3p60x7pvm8akwpvhdy8klvs6r744"))))
6457 (build-system haskell-build-system)
6458 (inputs
6459 `(("ghc-zlib" ,ghc-zlib)
6460 ("ghc-vector" ,ghc-vector)
6461 ("ghc-primitive" ,ghc-primitive)
6462 ("ghc-mmap" ,ghc-mmap)))
6463 (home-page "https://github.com/Twinside/Juicy.Pixels")
6464 (synopsis "Picture loading and serialization library")
6465 (description
6466 "This library can load and store images in PNG, Bitmap, JPEG, Radiance,
6467 TIFF and GIF formats.")
6468 (license license:bsd-3)))
6469
6470 (define-public ghc-hslua
6471 (package
6472 (name "ghc-hslua")
6473 (version "0.9.5.2")
6474 (source (origin
6475 (method url-fetch)
6476 (uri (string-append "https://hackage.haskell.org/package/"
6477 "hslua/hslua-" version ".tar.gz"))
6478 (sha256
6479 (base32
6480 "1rdvv01p214zfjh6fcqjjgqwi8y42wad6cqzhlcv5gvclzw2ck8f"))))
6481 (build-system haskell-build-system)
6482 (arguments
6483 `(#:configure-flags '("-fsystem-lua")))
6484 (inputs
6485 `(("lua" ,lua)
6486 ("ghc-exceptions" ,ghc-exceptions)
6487 ("ghc-fail" ,ghc-fail)
6488 ("ghc-text" ,ghc-text)))
6489 (native-inputs
6490 `(("ghc-tasty" ,ghc-tasty)
6491 ("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)
6492 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
6493 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
6494 ("ghc-quickcheck" ,ghc-quickcheck)
6495 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)))
6496 (home-page "https://hackage.haskell.org/package/hslua")
6497 (synopsis "Lua language interpreter embedding in Haskell")
6498 (description
6499 "The Scripting.Lua module is a wrapper of the Lua language interpreter as
6500 described in @url{https://www.lua.org/}.")
6501 (license license:expat)))
6502
6503 (define-public ghc-hslua-module-text
6504 (package
6505 (name "ghc-hslua-module-text")
6506 (version "0.1.2.1")
6507 (source
6508 (origin
6509 (method url-fetch)
6510 (uri (string-append "https://hackage.haskell.org/package/"
6511 "hslua-module-text/hslua-module-text-"
6512 version ".tar.gz"))
6513 (sha256
6514 (base32
6515 "0bcfpb1dhnxp0gr376ai4w7vczr9zrjl1r3r6w7kcxivfkwq9cxf"))))
6516 (build-system haskell-build-system)
6517 (arguments
6518 `(#:cabal-revision
6519 ("1" "0vajlsd7y6pwa08635q0cx8z5c1c55bk7fvavw7g2vmyvxqjzx6n")))
6520 (inputs
6521 `(("ghc-hslua" ,ghc-hslua)
6522 ("ghc-text" ,ghc-text)))
6523 (native-inputs
6524 `(("ghc-tasty" ,ghc-tasty)
6525 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
6526 (home-page "https://github.com/hslua/hslua-module-text")
6527 (synopsis "Lua module for text")
6528 (description
6529 "This package provides a UTF-8 aware subset of Lua's @code{string} module
6530 for Haskell. The functions provided by this module are @code{upper},
6531 @code{lower}, @code{len}, @code{reverse}, and @code{sub}.")
6532 (license license:expat)))
6533
6534 (define-public ghc-byteable
6535 (package
6536 (name "ghc-byteable")
6537 (version "0.1.1")
6538 (source (origin
6539 (method url-fetch)
6540 (uri (string-append "https://hackage.haskell.org/package/"
6541 "byteable/byteable-" version ".tar.gz"))
6542 (sha256
6543 (base32
6544 "1qizg0kxxjqnd3cbrjhhidk5pbbciz0pb3z5kzikjjxnnnhk8fr4"))))
6545 (build-system haskell-build-system)
6546 (home-page "https://github.com/vincenthz/hs-byteable")
6547 (synopsis "Type class for sequence of bytes")
6548 (description
6549 "This package provides an abstract class to manipulate sequence of bytes.
6550 The use case of this class is abstracting manipulation of types that are just
6551 wrapping a bytestring with stronger and more meaniful name.")
6552 (license license:bsd-3)))
6553
6554 (define-public ghc-hourglass
6555 (package
6556 (name "ghc-hourglass")
6557 (version "0.2.12")
6558 (source (origin
6559 (method url-fetch)
6560 (uri (string-append "https://hackage.haskell.org/package/"
6561 "hourglass/hourglass-" version ".tar.gz"))
6562 (sha256
6563 (base32
6564 "0jnay5j13vpz6i1rkaj3j0d9v8jfpri499xn3l7wd01f81f5ncs4"))))
6565 (build-system haskell-build-system)
6566 (inputs
6567 `(("ghc-old-locale" ,ghc-old-locale)))
6568 (native-inputs
6569 `(("ghc-tasty" ,ghc-tasty)
6570 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
6571 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
6572 (home-page "https://github.com/vincenthz/hs-hourglass")
6573 (synopsis "Simple time-related library for Haskell")
6574 (description
6575 "This is a simple time library providing a simple but powerful and
6576 performant API. The backbone of the library are the @code{Timeable} and
6577 @code{Time} type classes. Each @code{Timeable} instances can be converted to
6578 a type that has a @code{Time} instances, and thus are different
6579 representations of current time.")
6580 (license license:bsd-3)))
6581
6582 (define-public ghc-edit-distance
6583 (package
6584 (name "ghc-edit-distance")
6585 (version "0.2.2.1")
6586 (source
6587 (origin
6588 (method url-fetch)
6589 (uri (string-append "https://hackage.haskell.org/package/edit-distance"
6590 "/edit-distance-" version ".tar.gz"))
6591 (sha256
6592 (base32 "0jkca97zyv23yyilp3jydcrzxqhyk27swhzh82llvban5zp8b21y"))))
6593 (build-system haskell-build-system)
6594 (arguments
6595 `(#:phases
6596 (modify-phases %standard-phases
6597 (add-before 'configure 'update-constraints
6598 (lambda _
6599 (substitute* "edit-distance.cabal"
6600 (("QuickCheck >= 2\\.4 && <2\\.9")
6601 "QuickCheck >= 2.4 && < 2.12")))))))
6602 (inputs
6603 `(("ghc-random" ,ghc-random)
6604 ("ghc-test-framework" ,ghc-test-framework)
6605 ("ghc-quickcheck" ,ghc-quickcheck)
6606 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
6607 (home-page "https://github.com/phadej/edit-distance")
6608 (synopsis "Levenshtein and restricted Damerau-Levenshtein edit distances")
6609 (description
6610 "This package provides optimized functions to determine the edit
6611 distances for fuzzy matching, including Levenshtein and restricted
6612 Damerau-Levenshtein algorithms.")
6613 (license license:bsd-3)))
6614
6615 (define-public ghc-memory
6616 (package
6617 (name "ghc-memory")
6618 (version "0.14.16")
6619 (source (origin
6620 (method url-fetch)
6621 (uri (string-append "https://hackage.haskell.org/package/"
6622 "memory/memory-" version ".tar.gz"))
6623 (sha256
6624 (base32
6625 "03rbszi5d4z9rlbfv8ydrl1xf84xsh8z57g07f7j9qccn9587c3v"))))
6626 (build-system haskell-build-system)
6627 (inputs
6628 `(("ghc-basement" ,ghc-basement)
6629 ("ghc-foundation" ,ghc-foundation)))
6630 (native-inputs
6631 `(("ghc-tasty" ,ghc-tasty)
6632 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
6633 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
6634 (home-page "https://github.com/vincenthz/hs-memory")
6635 (synopsis "Memory abstractions for Haskell")
6636 (description
6637 "This package provides memory abstractions, such as chunk of memory,
6638 polymorphic byte array management and manipulation functions. It contains a
6639 polymorphic byte array abstraction and functions similar to strict ByteString,
6640 different type of byte array abstraction, raw memory IO operations (memory
6641 set, memory copy, ..) and more")
6642 (license license:bsd-3)))
6643
6644 (define-public ghc-socks
6645 (package
6646 (name "ghc-socks")
6647 (version "0.5.6")
6648 (source (origin
6649 (method url-fetch)
6650 (uri (string-append "https://hackage.haskell.org/package/"
6651 "socks/socks-" version ".tar.gz"))
6652 (sha256
6653 (base32
6654 "0f44qy74i0n6ll3jym0a2ipafkpw1h67amcpqmj8iq95h21wsqzs"))))
6655 (build-system haskell-build-system)
6656 (inputs
6657 `(("ghc-cereal" ,ghc-cereal)
6658 ("ghc-network" ,ghc-network)))
6659 (home-page "https://github.com/vincenthz/hs-socks")
6660 (synopsis "SOCKS proxy (version 5) implementation")
6661 (description
6662 "This library provides a SOCKS proxy (version 5) implementation.")
6663 (license license:bsd-3)))
6664
6665 (define-public ghc-connection
6666 (package
6667 (name "ghc-connection")
6668 (version "0.2.8")
6669 (source (origin
6670 (method url-fetch)
6671 (uri (string-append "https://hackage.haskell.org/package/"
6672 "connection/connection-"
6673 version ".tar.gz"))
6674 (sha256
6675 (base32
6676 "1swkb9w5vx9ph7x55y51dc0srj2z27nd9ibgn8c0qcl6hx7g9cbh"))))
6677 (build-system haskell-build-system)
6678 (inputs
6679 `(("ghc-byteable" ,ghc-byteable)
6680 ("ghc-data-default-class" ,ghc-data-default-class)
6681 ("ghc-network" ,ghc-network)
6682 ("ghc-tls" ,ghc-tls)
6683 ("ghc-socks" ,ghc-socks)
6684 ("ghc-x509" ,ghc-x509)
6685 ("ghc-x509-store" ,ghc-x509-store)
6686 ("ghc-x509-system" ,ghc-x509-system)
6687 ("ghc-x509-validation" ,ghc-x509-validation)))
6688 (home-page "https://github.com/vincenthz/hs-connection")
6689 (synopsis "Simple and easy network connections API")
6690 (description
6691 "This package provides a simple network library for all your connection
6692 needs. It provides a very simple API to create sockets to a destination with
6693 the choice of SSL/TLS, and SOCKS.")
6694 (license license:bsd-3)))
6695
6696 (define-public ghc-skylighting-core
6697 (package
6698 (name "ghc-skylighting-core")
6699 (version "0.7.2")
6700 (source (origin
6701 (method url-fetch)
6702 (uri (string-append "https://hackage.haskell.org/package/"
6703 "skylighting-core/skylighting-core-"
6704 version ".tar.gz"))
6705 (sha256
6706 (base32
6707 "066fwmwsd7xcvwlinfk2izlzq0xp8697i6lnbgsbl71jdybyackq"))))
6708 (build-system haskell-build-system)
6709 (inputs
6710 `(("ghc-aeson" ,ghc-aeson)
6711 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
6712 ("ghc-attoparsec" ,ghc-attoparsec)
6713 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
6714 ("ghc-blaze-html" ,ghc-blaze-html)
6715 ("ghc-case-insensitive" ,ghc-case-insensitive)
6716 ("ghc-colour" ,ghc-colour)
6717 ("ghc-hxt" ,ghc-hxt)
6718 ("ghc-regex-pcre-builtin" ,ghc-regex-pcre-builtin)
6719 ("ghc-safe" ,ghc-safe)
6720 ("ghc-text" ,ghc-text)
6721 ("ghc-utf8-string" ,ghc-utf8-string)))
6722 (native-inputs
6723 `(("ghc-diff" ,ghc-diff)
6724 ("ghc-hunit" ,ghc-hunit)
6725 ("ghc-pretty-show" ,ghc-pretty-show)
6726 ("ghc-quickcheck" ,ghc-quickcheck)
6727 ("ghc-tasty" ,ghc-tasty)
6728 ("ghc-tasty-golden" ,ghc-tasty-golden)
6729 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
6730 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
6731 (home-page "https://github.com/jgm/skylighting")
6732 (synopsis "Syntax highlighting library")
6733 (description "Skylighting is a syntax highlighting library with support
6734 for over one hundred languages. It derives its tokenizers from XML syntax
6735 definitions used by KDE's @code{KSyntaxHighlighting} framework, so any syntax
6736 supported by that framework can be added. An optional command-line program is
6737 provided. Skylighting is intended to be the successor to highlighting-kate.")
6738 (license license:gpl2)))
6739
6740 (define-public ghc-skylighting
6741 (package
6742 (inherit ghc-skylighting-core)
6743 (name "ghc-skylighting")
6744 (version "0.7.2")
6745 (source (origin
6746 (method url-fetch)
6747 (uri (string-append "https://hackage.haskell.org/package/skylighting-"
6748 version "/skylighting-" version ".tar.gz"))
6749 (sha256
6750 (base32
6751 "1rh3z1a7a4clvksdw1qlpmhxqkfahwypi70k91whgfamzsqpxdch"))))
6752 (inputs
6753 `(("ghc-skylighting-core" ,ghc-skylighting-core)
6754 ,@(package-inputs ghc-skylighting-core)))))
6755
6756 (define-public ghc-doctemplates
6757 (package
6758 (name "ghc-doctemplates")
6759 (version "0.2.2.1")
6760 (source
6761 (origin
6762 (method url-fetch)
6763 (uri (string-append "https://hackage.haskell.org/package/"
6764 "doctemplates/doctemplates-"
6765 version ".tar.gz"))
6766 (sha256
6767 (base32
6768 "1gyckfg3kgvzhxw14i7iwrw0crygvsp86sy53bbr1yn7bxbgn33b"))))
6769 (build-system haskell-build-system)
6770 (inputs
6771 `(("ghc-aeson" ,ghc-aeson)
6772 ("ghc-blaze-markup" ,ghc-blaze-markup)
6773 ("ghc-blaze-html" ,ghc-blaze-html)
6774 ("ghc-text" ,ghc-text)
6775 ("ghc-vector" ,ghc-vector)
6776 ("ghc-parsec" ,ghc-parsec)
6777 ("ghc-unordered-containers" ,ghc-unordered-containers)
6778 ("ghc-scientific" ,ghc-scientific)))
6779 (native-inputs
6780 `(("ghc-hspec" ,ghc-hspec)))
6781 (home-page "https://github.com/jgm/doctemplates#readme")
6782 (synopsis "Pandoc-style document templates")
6783 (description
6784 "This package provides a simple text templating system used by pandoc.")
6785 (license license:bsd-3)))
6786
6787 (define-public ghc-pandoc
6788 (package
6789 (name "ghc-pandoc")
6790 (version "2.2.1")
6791 (source
6792 (origin
6793 (method url-fetch)
6794 (uri (string-append "https://hackage.haskell.org/package/pandoc/pandoc-"
6795 version ".tar.gz"))
6796 (sha256
6797 (base32
6798 "1dqin92w513l7whg5wdgrngnxsj5mb8gppfvn7kjgyv2pdgpy0zy"))))
6799 (build-system haskell-build-system)
6800 (arguments
6801 `(#:phases
6802 (modify-phases %standard-phases
6803 (add-before 'configure 'update-constraints
6804 (lambda _
6805 (substitute* "pandoc.cabal"
6806 (("tasty >= 0\\.11 && < 1\\.1")
6807 "tasty >= 0.11 && < 1.1.1"))))
6808 (add-before 'configure 'patch-tests
6809 (lambda _
6810 ;; These tests fail benignly and have been adjusted upstream:
6811 ;; <https://github.com/commercialhaskell/stackage/issues/3719>.
6812 (substitute* "test/Tests/Old.hs"
6813 (("lhsWriterTests \"html\"") "[]")))))))
6814 (inputs
6815 `(("ghc-aeson" ,ghc-aeson)
6816 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
6817 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
6818 ("ghc-blaze-html" ,ghc-blaze-html)
6819 ("ghc-blaze-markup" ,ghc-blaze-markup)
6820 ("ghc-cmark-gfm" ,ghc-cmark-gfm)
6821 ("ghc-data-default" ,ghc-data-default)
6822 ("ghc-deepseq-generics" ,ghc-deepseq-generics)
6823 ("ghc-diff" ,ghc-diff)
6824 ("ghc-doctemplates" ,ghc-doctemplates)
6825 ("ghc-executable-path" ,ghc-executable-path)
6826 ("ghc-glob" ,ghc-glob)
6827 ("ghc-haddock-library" ,ghc-haddock-library)
6828 ("ghc-hslua" ,ghc-hslua)
6829 ("ghc-hslua-module-text" ,ghc-hslua-module-text)
6830 ("ghc-http" ,ghc-http)
6831 ("ghc-http-client" ,ghc-http-client)
6832 ("ghc-http-client-tls" ,ghc-http-client-tls)
6833 ("ghc-http-types" ,ghc-http-types)
6834 ("ghc-juicypixels" ,ghc-juicypixels)
6835 ("ghc-network" ,ghc-network)
6836 ("ghc-network-uri" ,ghc-network-uri)
6837 ("ghc-old-locale" ,ghc-old-locale)
6838 ("ghc-pandoc-types" ,ghc-pandoc-types)
6839 ("ghc-parsec" ,ghc-parsec)
6840 ("ghc-random" ,ghc-random)
6841 ("ghc-scientific" ,ghc-scientific)
6842 ("ghc-sha" ,ghc-sha)
6843 ("ghc-skylighting" ,ghc-skylighting)
6844 ("ghc-split" ,ghc-split)
6845 ("ghc-syb" ,ghc-syb)
6846 ("ghc-tagsoup" ,ghc-tagsoup)
6847 ("ghc-temporary" ,ghc-temporary)
6848 ("ghc-texmath" ,ghc-texmath)
6849 ("ghc-text" ,ghc-text)
6850 ("ghc-unordered-containers" ,ghc-unordered-containers)
6851 ("ghc-vector" ,ghc-vector)
6852 ("ghc-xml" ,ghc-xml)
6853 ("ghc-yaml" ,ghc-yaml)
6854 ("ghc-zip-archive" ,ghc-zip-archive)
6855 ("ghc-zlib" ,ghc-zlib)))
6856 (native-inputs
6857 `(("ghc-tasty" ,ghc-tasty)
6858 ("ghc-tasty-golden" ,ghc-tasty-golden)
6859 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
6860 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
6861 ("ghc-quickcheck" ,ghc-quickcheck)
6862 ("ghc-hunit" ,ghc-hunit)))
6863 (home-page "https://pandoc.org")
6864 (synopsis "Conversion between markup formats")
6865 (description
6866 "Pandoc is a Haskell library for converting from one markup format to
6867 another, and a command-line tool that uses this library. It can read and
6868 write Markdown and (subsets of) other formats, such as HTML, reStructuredText,
6869 LaTeX, DocBook, and many more.
6870
6871 Pandoc extends standard Markdown syntax with footnotes, embedded LaTeX,
6872 definition lists, tables, and other features. A compatibility mode is
6873 provided for those who need a drop-in replacement for Markdown.pl.")
6874 (license license:gpl2+)))
6875
6876 (define-public ghc-hs-bibutils
6877 (package
6878 (name "ghc-hs-bibutils")
6879 (version "6.6.0.0")
6880 (source
6881 (origin
6882 (method url-fetch)
6883 (uri (string-append
6884 "https://hackage.haskell.org/package/hs-bibutils/hs-bibutils-"
6885 version ".tar.gz"))
6886 (sha256
6887 (base32
6888 "0n2sz2zl4naspryd49ii858qkjp2lapns5a2gr8zm6vvn5sh1f0l"))))
6889 (build-system haskell-build-system)
6890 (inputs `(("ghc-syb" ,ghc-syb)))
6891 (home-page "https://hackage.haskell.org/package/hs-bibutils")
6892 (synopsis "Haskell bindings to bibutils")
6893 (description
6894 "This package provides Haskell bindings to @code{bibutils}, a library
6895 that interconverts between various bibliography formats using a common
6896 MODS-format XML intermediate.")
6897 (license license:gpl2+)))
6898
6899 (define-public ghc-rfc5051
6900 (package
6901 (name "ghc-rfc5051")
6902 (version "0.1.0.3")
6903 (source
6904 (origin
6905 (method url-fetch)
6906 (uri (string-append "https://hackage.haskell.org/package/rfc5051/"
6907 "rfc5051-" version ".tar.gz"))
6908 (sha256
6909 (base32
6910 "0av4c3qvwbkbzrjrrg601ay9pds7wscqqp2lc2z78mv2lllap3g3"))))
6911 (build-system haskell-build-system)
6912 (home-page "https://hackage.haskell.org/package/rfc5051")
6913 (synopsis "Simple unicode collation as per RFC5051")
6914 (description
6915 "This library implements @code{unicode-casemap}, the simple, non
6916 locale-sensitive unicode collation algorithm described in RFC 5051. Proper
6917 unicode collation can be done using @code{text-icu}, but that is a big
6918 dependency that depends on a large C library, and @code{rfc5051} might be
6919 better for some purposes.")
6920 (license license:bsd-3)))
6921
6922 (define-public ghc-typed-process
6923 (package
6924 (name "ghc-typed-process")
6925 (version "0.2.3.0")
6926 (source
6927 (origin
6928 (method url-fetch)
6929 (uri (string-append "https://hackage.haskell.org/package/"
6930 "typed-process/typed-process-"
6931 version ".tar.gz"))
6932 (sha256
6933 (base32
6934 "0j36vrc9w841m5qbwqra1lwiznx31xfnhin1sm8x2c2739csbpn0"))))
6935 (build-system haskell-build-system)
6936 (inputs
6937 `(("ghc-async" ,ghc-async)
6938 ("ghc-stm" ,ghc-stm)))
6939 (native-inputs
6940 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
6941 ("ghc-hspec" ,ghc-hspec)
6942 ("hspec-discover" ,hspec-discover)
6943 ("ghc-temporary" ,ghc-temporary)))
6944 (home-page "https://haskell-lang.org/library/typed-process")
6945 (synopsis "Run external processes with strong typing of streams")
6946 (description
6947 "This library provides the ability to launch and interact with external
6948 processes. It wraps around the @code{process} library, and intends to improve
6949 upon it.")
6950 (license license:expat)))
6951
6952 (define-public ghc-conduit-extra
6953 (package
6954 (name "ghc-conduit-extra")
6955 (version "1.3.1.1")
6956 (source
6957 (origin
6958 (method url-fetch)
6959 (uri (string-append "https://hackage.haskell.org/package/"
6960 "conduit-extra/conduit-extra-"
6961 version ".tar.gz"))
6962 (sha256
6963 (base32
6964 "0jaj350vv6mbb26gdwcqz4gwzfzrjydv5pis2da49wz1npbakcfw"))))
6965 (build-system haskell-build-system)
6966 (inputs
6967 `(("ghc-conduit" ,ghc-conduit)
6968 ("ghc-exceptions" ,ghc-exceptions)
6969 ("ghc-monad-control" ,ghc-monad-control)
6970 ("ghc-text" ,ghc-text)
6971 ("ghc-transformers-base" ,ghc-transformers-base)
6972 ("ghc-typed-process" ,ghc-typed-process)
6973 ("ghc-async" ,ghc-async)
6974 ("ghc-attoparsec" ,ghc-attoparsec)
6975 ("ghc-blaze-builder" ,ghc-blaze-builder)
6976 ("ghc-network" ,ghc-network)
6977 ("ghc-primitive" ,ghc-primitive)
6978 ("ghc-resourcet" ,ghc-resourcet)
6979 ("ghc-stm" ,ghc-stm)
6980 ("ghc-streaming-commons" ,ghc-streaming-commons)
6981 ("ghc-hspec" ,ghc-hspec)
6982 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
6983 ("ghc-quickcheck" ,ghc-quickcheck)))
6984 (native-inputs
6985 `(("hspec-discover" ,hspec-discover)))
6986 (home-page "https://github.com/snoyberg/conduit")
6987 (synopsis "Conduit adapters for common libraries")
6988 (description
6989 "The @code{conduit} package itself maintains relative small dependencies.
6990 The purpose of this package is to collect commonly used utility functions
6991 wrapping other library dependencies, without depending on heavier-weight
6992 dependencies. The basic idea is that this package should only depend on
6993 @code{haskell-platform} packages and @code{conduit}.")
6994 (license license:expat)))
6995
6996 (define-public ghc-xml-types
6997 (package
6998 (name "ghc-xml-types")
6999 (version "0.3.6")
7000 (source
7001 (origin
7002 (method url-fetch)
7003 (uri (string-append "https://hackage.haskell.org/package/xml-types/"
7004 "xml-types-" version ".tar.gz"))
7005 (sha256
7006 (base32
7007 "1jgqxsa9p2q3h6nymbfmvhldqrqlwrhrzmwadlyc0li50x0d8dwr"))))
7008 (build-system haskell-build-system)
7009 (inputs `(("ghc-text" ,ghc-text)))
7010 (home-page "https://john-millikin.com/software/haskell-xml/")
7011 (synopsis "Basic types for representing XML")
7012 (description "This package provides basic types for representing XML
7013 documents.")
7014 (license license:expat)))
7015
7016 (define-public ghc-xml-conduit
7017 (package
7018 (name "ghc-xml-conduit")
7019 (version "1.8.0.1")
7020 (source
7021 (origin
7022 (method url-fetch)
7023 (uri (string-append "https://hackage.haskell.org/package/xml-conduit/"
7024 "xml-conduit-" version ".tar.gz"))
7025 (sha256
7026 (base32
7027 "177gmyigxql1pn3ncz0r8annwv5cbxnihbgrrg1dhm4gmc9jy2wq"))))
7028 (build-system haskell-build-system)
7029 (inputs
7030 `(("ghc-conduit" ,ghc-conduit)
7031 ("ghc-conduit-extra" ,ghc-conduit-extra)
7032 ("ghc-doctest" ,ghc-doctest)
7033 ("ghc-resourcet" ,ghc-resourcet)
7034 ("ghc-text" ,ghc-text)
7035 ("ghc-xml-types" ,ghc-xml-types)
7036 ("ghc-attoparsec" ,ghc-attoparsec)
7037 ("ghc-data-default-class" ,ghc-data-default-class)
7038 ("ghc-blaze-markup" ,ghc-blaze-markup)
7039 ("ghc-blaze-html" ,ghc-blaze-html)
7040 ("ghc-monad-control" ,ghc-monad-control)
7041 ("ghc-hspec" ,ghc-hspec)
7042 ("ghc-hunit" ,ghc-hunit)))
7043 (home-page "https://github.com/snoyberg/xml")
7044 (synopsis "Utilities for dealing with XML with the conduit package")
7045 (description
7046 "This package provides pure-Haskell utilities for dealing with XML with
7047 the @code{conduit} package.")
7048 (license license:expat)))
7049
7050 (define-public ghc-pandoc-citeproc
7051 (package
7052 (name "ghc-pandoc-citeproc")
7053 (version "0.14.3.1")
7054 (source
7055 (origin
7056 (method url-fetch)
7057 (uri (string-append "https://hackage.haskell.org/package/"
7058 "pandoc-citeproc/pandoc-citeproc-"
7059 version ".tar.gz"))
7060 (sha256
7061 (base32
7062 "0yj6rckwsc9vig40cm15ry0j3d01xpk04qma9n4byhal6v4b5h22"))))
7063 (build-system haskell-build-system)
7064 (arguments
7065 `(#:phases
7066 (modify-phases %standard-phases
7067 ;; Many YAML tests (44) are failing do to changes in ghc-yaml:
7068 ;; <https://github.com/jgm/pandoc-citeproc/issues/342>.
7069 (add-before 'configure 'patch-tests
7070 (lambda _
7071 (substitute* "tests/test-pandoc-citeproc.hs"
7072 (("let allTests = citeprocTests \\+\\+ biblio2yamlTests")
7073 "let allTests = citeprocTests"))))
7074 ;; Tests need to be run after installation.
7075 (delete 'check)
7076 (add-after 'install 'post-install-check
7077 (assoc-ref %standard-phases 'check)))))
7078 (inputs
7079 `(("ghc-pandoc-types" ,ghc-pandoc-types)
7080 ("ghc-pandoc" ,ghc-pandoc)
7081 ("ghc-tagsoup" ,ghc-tagsoup)
7082 ("ghc-aeson" ,ghc-aeson)
7083 ("ghc-text" ,ghc-text)
7084 ("ghc-vector" ,ghc-vector)
7085 ("ghc-xml-conduit" ,ghc-xml-conduit)
7086 ("ghc-unordered-containers" ,ghc-unordered-containers)
7087 ("ghc-data-default" ,ghc-data-default)
7088 ("ghc-setenv" ,ghc-setenv)
7089 ("ghc-split" ,ghc-split)
7090 ("ghc-yaml" ,ghc-yaml)
7091 ("ghc-hs-bibutils" ,ghc-hs-bibutils)
7092 ("ghc-rfc5051" ,ghc-rfc5051)
7093 ("ghc-syb" ,ghc-syb)
7094 ("ghc-parsec" ,ghc-parsec)
7095 ("ghc-old-locale" ,ghc-old-locale)
7096 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
7097 ("ghc-attoparsec" ,ghc-attoparsec)
7098 ("ghc-temporary" ,ghc-temporary)))
7099 (home-page "https://github.com/jgm/pandoc-citeproc")
7100 (synopsis "Library for using pandoc with citeproc")
7101 (description
7102 "The @code{pandoc-citeproc} library exports functions for using the
7103 citeproc system with pandoc. It relies on @code{citeproc-hs}, a library for
7104 rendering bibliographic reference citations into a variety of styles using a
7105 macro language called @dfn{Citation Style Language} (CSL). This package also
7106 contains an executable @code{pandoc-citeproc}, which works as a pandoc filter,
7107 and also has a mode for converting bibliographic databases a YAML format
7108 suitable for inclusion in pandoc YAML metadata.")
7109 (license license:bsd-3)))
7110
7111 (define-public ghc-union-find
7112 (package
7113 (name "ghc-union-find")
7114 (version "0.2")
7115 (source (origin
7116 (method url-fetch)
7117 (uri (string-append
7118 "https://hackage.haskell.org/package/union-find/union-find-"
7119 version ".tar.gz"))
7120 (sha256
7121 (base32
7122 "1v7hj42j9w6jlzi56jg8rh4p58gfs1c5dx30wd1qqvn0p0mnihp6"))))
7123 (build-system haskell-build-system)
7124 (home-page "https://github.com/nominolo/union-find")
7125 (synopsis "Efficient union and equivalence testing of sets")
7126 (description
7127 "The Union/Find algorithm implements these operations in (effectively)
7128 constant-time:
7129 @enumerate
7130 @item Check whether two elements are in the same equivalence class.
7131 @item Create a union of two equivalence classes.
7132 @item Look up the descriptor of the equivalence class.
7133 @end enumerate\n")
7134 (license license:bsd-3)))
7135
7136 (define-public ghc-base16-bytestring
7137 (package
7138 (name "ghc-base16-bytestring")
7139 (version "0.1.1.6")
7140 (source
7141 (origin
7142 (method url-fetch)
7143 (uri (string-append
7144 "https://hackage.haskell.org/package/base16-bytestring/"
7145 "base16-bytestring-" version ".tar.gz"))
7146 (sha256
7147 (base32
7148 "0jf40m3yijqw6wd1rwwvviww46fasphaay9m9rgqyhf5aahnbzjs"))))
7149 (build-system haskell-build-system)
7150 (home-page "https://github.com/bos/base16-bytestring")
7151 (synopsis "Fast base16 (hex) encoding and decoding for ByteStrings")
7152 (description
7153 "This package provides a Haskell library for working with base16-encoded
7154 data quickly and efficiently, using the ByteString type.")
7155 (license license:bsd-3)))
7156
7157 (define-public ghc-data-ordlist
7158 (package
7159 (name "ghc-data-ordlist")
7160 (version "0.4.7.0")
7161 (source
7162 (origin
7163 (method url-fetch)
7164 (uri (string-append
7165 "https://hackage.haskell.org/package/data-ordlist/data-ordlist-"
7166 version ".tar.gz"))
7167 (sha256
7168 (base32
7169 "03a9ix1fcx08viwv2jg5ndw1qbkydyyrmjvqr9wasmcik9x1wv3g"))))
7170 (build-system haskell-build-system)
7171 (home-page "https://hackage.haskell.org/package/data-ordlist")
7172 (synopsis "Set and bag operations on ordered lists")
7173 (description
7174 "This module provides set and multiset operations on ordered lists.")
7175 (license license:bsd-3)))
7176
7177 (define-public ghc-regex-applicative
7178 (package
7179 (name "ghc-regex-applicative")
7180 (version "0.3.3")
7181 (source
7182 (origin
7183 (method url-fetch)
7184 (uri (string-append
7185 "https://hackage.haskell.org/package/regex-applicative/"
7186 "regex-applicative-" version ".tar.gz"))
7187 (sha256
7188 (base32
7189 "1riv7jqf26lbv4rm54sd6mrx8xdh4dvh4xbzymzdfdw13k6a4nb6"))))
7190 (build-system haskell-build-system)
7191 (inputs
7192 `(("ghc-smallcheck" ,ghc-smallcheck)
7193 ("ghc-tasty" ,ghc-tasty)
7194 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
7195 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
7196 (home-page "https://github.com/feuerbach/regex-applicative")
7197 (synopsis "Regex-based parsing with applicative interface")
7198 (description
7199 "@code{regex-applicative} is a Haskell library for parsing using
7200 regular expressions. Parsers can be built using Applicative interface.")
7201 (license license:expat)))
7202
7203 (define-public ghc-regex-tdfa
7204 (package
7205 (name "ghc-regex-tdfa")
7206 (version "1.2.3.1")
7207 (source
7208 (origin
7209 (method url-fetch)
7210 (uri (string-append
7211 "https://hackage.haskell.org/package/regex-tdfa/regex-tdfa-"
7212 version ".tar.gz"))
7213 (sha256
7214 (base32
7215 "0l7ajnh4hpgggf2a1r9dg0hx2fy679vd2kada5y7r02hy3nfxala"))))
7216 (build-system haskell-build-system)
7217 (inputs
7218 `(("ghc-parsec" ,ghc-parsec)
7219 ("ghc-regex-base" ,ghc-regex-base)))
7220 (home-page "https://github.com/ChrisKuklewicz/regex-tdfa")
7221 (synopsis "POSIX extended regular expressions in Haskell.")
7222 (description
7223 "Regex-tdfa is a pure Haskell regular expression library implementing POSIX
7224 extended regular expressions. It is a \"tagged\" DFA regex engine. It is
7225 inspired by libtre.")
7226 (license license:bsd-3)))
7227
7228 (define-public ghc-regex-compat-tdfa
7229 (package
7230 (name "ghc-regex-compat-tdfa")
7231 (version "0.95.1.4")
7232 (source
7233 (origin
7234 (method url-fetch)
7235 (uri (string-append
7236 "https://hackage.haskell.org/package/regex-compat-tdfa/regex-compat-tdfa-"
7237 version ".tar.gz"))
7238 (sha256
7239 (base32
7240 "1p90fn90yhp7fvljjdqjp41cszidcfz4pw7fwvzyx4739b98x8sg"))))
7241 (build-system haskell-build-system)
7242 (inputs
7243 `(("ghc-regex-base" ,ghc-regex-base)
7244 ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
7245 (home-page "https://hub.darcs.net/shelarcy/regex-compat-tdfa")
7246 (synopsis "Unicode Support version of Text.Regex, using regex-tdfa")
7247 (description
7248 "One module layer over @code{regex-tdfa} to replace @code{Text.Regex}.
7249 @code{regex-compat} can't use Unicode characters correctly because of using regex-posix.
7250 This is not good for Unicode users. This modified regex-compat uses regex-tdfa to solve
7251 this problem.")
7252 (license license:bsd-3)))
7253
7254 (define-public ghc-sandi
7255 (package
7256 (name "ghc-sandi")
7257 (version "0.4.2")
7258 (source
7259 (origin
7260 (method url-fetch)
7261 (uri (string-append
7262 "https://hackage.haskell.org/package/sandi/sandi-"
7263 version ".tar.gz"))
7264 (sha256
7265 (base32
7266 "0dvkpk91n9kz2ha04rvp231ra9sgd1ilyc1qkzf9l03iir7zrh9b"))))
7267 (build-system haskell-build-system)
7268 (inputs
7269 `(("ghc-stringsearch" ,ghc-stringsearch)
7270 ("ghc-conduit" ,ghc-conduit)
7271 ("ghc-exceptions" ,ghc-exceptions)
7272 ("ghc-hunit" ,ghc-hunit)
7273 ("ghc-tasty" ,ghc-tasty)
7274 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7275 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
7276 ("ghc-tasty-th" ,ghc-tasty-th)))
7277 (home-page "https://hackage.haskell.org/package/sandi")
7278 (synopsis "Data encoding library")
7279 (description "Reasonably fast data encoding library.")
7280 (license license:bsd-3)))
7281
7282 (define-public ghc-bytestring-handle
7283 (package
7284 (name "ghc-bytestring-handle")
7285 (version "0.1.0.6")
7286 (source
7287 (origin
7288 (method url-fetch)
7289 (uri (string-append
7290 "https://hackage.haskell.org/package/bytestring-handle/bytestring-handle-"
7291 version ".tar.gz"))
7292 (sha256
7293 (base32
7294 "18f17aja1ivhr3zyg2cccn2m03hdn5jf5410dndkhf12gvgiqs7y"))))
7295 (build-system haskell-build-system)
7296 (arguments
7297 `(#:phases
7298 (modify-phases %standard-phases
7299 (add-before 'configure 'update-constraints
7300 (lambda _
7301 (substitute* "bytestring-handle.cabal"
7302 (("QuickCheck >= 2\\.1\\.2 && < 2\\.11")
7303 "QuickCheck >= 2.1.2 && < 2.12")
7304 (("base >= 4\\.2 && < 4\\.11")
7305 "base >= 4.2 && < 4.12")))))))
7306 (inputs
7307 `(("ghc-hunit" ,ghc-hunit)
7308 ("ghc-quickcheck" ,ghc-quickcheck)
7309 ("ghc-test-framework" ,ghc-test-framework)
7310 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
7311 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
7312 (home-page "https://hub.darcs.net/ganesh/bytestring-handle")
7313 (synopsis "ByteString-backed Handles")
7314 (description "ByteString-backed Handles") ; There is no description
7315 (license license:bsd-3)))
7316
7317 (define-public ghc-tar
7318 (package
7319 (name "ghc-tar")
7320 (version "0.5.1.0")
7321 (source
7322 (origin
7323 (method url-fetch)
7324 (uri (string-append
7325 "https://hackage.haskell.org/package/tar/tar-"
7326 version ".tar.gz"))
7327 (sha256
7328 (base32
7329 "0s2brvaxg5fki2jdkccmnpssiy6a3wjh24p6a3dkkdvjcixnk7f8"))))
7330 (build-system haskell-build-system)
7331 ;; FIXME: 2/24 tests fail.
7332 (arguments `(#:tests? #f))
7333 (inputs
7334 `(("ghc-bytestring-handle" ,ghc-bytestring-handle)
7335 ("ghc-quickcheck" ,ghc-quickcheck)
7336 ("ghc-tasty" ,ghc-tasty)
7337 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
7338 (home-page "https://hackage.haskell.org/package/tar")
7339 (synopsis "Reading, writing and manipulating \".tar\" archive files")
7340 (description
7341 "This library is for working with \\\"@.tar@\\\" archive files.
7342 It can read and write a range of common variations of the tar archive format
7343 including V7, POSIX USTAR and GNU formats. It provides support for packing and
7344 unpacking portable archives. This makes it suitable for distribution but not
7345 backup because details like file ownership and exact permissions are not
7346 preserved. It also provides features for random access to archive content using
7347 an index.")
7348 (license license:bsd-3)))
7349
7350 (define-public ghc-stmonadtrans
7351 (package
7352 (name "ghc-stmonadtrans")
7353 (version "0.4.3")
7354 (source
7355 (origin
7356 (method url-fetch)
7357 (uri (string-append "https://hackage.haskell.org/package/STMonadTrans"
7358 "/STMonadTrans-" version ".tar.gz"))
7359 (sha256
7360 (base32 "1nr26fnmi5fdjc6d00w13kjhmfyvb5b837d0006w4dj0yxndaksp"))))
7361 (build-system haskell-build-system)
7362 (home-page "https://hackage.haskell.org/package/STMonadTrans")
7363 (synopsis "Monad transformer version of the ST monad")
7364 (description
7365 "This package provides a monad transformer version of the @code{ST} monad
7366 for strict state threads.")
7367 (license license:bsd-3)))
7368
7369 (define-public ghc-findbin
7370 (package
7371 (name "ghc-findbin")
7372 (version "0.0.5")
7373 (source
7374 (origin
7375 (method url-fetch)
7376 (uri (string-append
7377 "https://hackage.haskell.org/package/FindBin/FindBin-"
7378 version ".tar.gz"))
7379 (sha256
7380 (base32
7381 "197xvn05yysmibm1p5wzxfa256lvpbknr5d1l2ws6g40w1kpk717"))))
7382 (build-system haskell-build-system)
7383 (home-page "https://github.com/audreyt/findbin")
7384 (synopsis "Get the absolute path of the running program")
7385 (description
7386 "This module locates the full directory of the running program, to allow
7387 the use of paths relative to it. FindBin supports invocation of Haskell
7388 programs via \"ghci\", via \"runhaskell/runghc\", as well as compiled as
7389 an executable.")
7390 (license license:bsd-3)))
7391
7392 (define-public ghc-patience
7393 (package
7394 (name "ghc-patience")
7395 (version "0.1.1")
7396 (source
7397 (origin
7398 (method url-fetch)
7399 (uri (string-append
7400 "https://hackage.haskell.org/package/patience/patience-"
7401 version ".tar.gz"))
7402 (sha256
7403 (base32
7404 "0qyv20gqy9pb1acy700ahv70lc6vprcwb26cc7fcpcs4scsc7irm"))))
7405 (build-system haskell-build-system)
7406 (home-page "https://hackage.haskell.org/package/patience")
7407 (synopsis "Patience diff and longest increasing subsequence")
7408 (description
7409 "This library implements the 'patience diff' algorithm, as well as the
7410 patience algorithm for the longest increasing subsequence problem.
7411 Patience diff computes the difference between two lists, for example the lines
7412 of two versions of a source file. It provides a good balance between
7413 performance, nice output for humans, and simplicity of implementation.")
7414 (license license:bsd-3)))
7415
7416 (define-public ghc-monads-tf
7417 (package
7418 (name "ghc-monads-tf")
7419 (version "0.1.0.3")
7420 (source
7421 (origin
7422 (method url-fetch)
7423 (uri (string-append
7424 "https://hackage.haskell.org/package/monads-tf/monads-tf-"
7425 version ".tar.gz"))
7426 (sha256
7427 (base32
7428 "1wdhskwa6dw8qljbvwpyxj8ca6y95q2np7z4y4q6bpf4anmd5794"))))
7429 (build-system haskell-build-system)
7430 (home-page "https://hackage.haskell.org/package/monads-tf")
7431 (synopsis "Monad classes, using type families")
7432 (description
7433 "Monad classes using type families, with instances for various monad transformers,
7434 inspired by the paper 'Functional Programming with Overloading and Higher-Order
7435 Polymorphism', by Mark P Jones. This package is almost a compatible replacement for
7436 the @code{mtl-tf} package.")
7437 (license license:bsd-3)))
7438
7439 (define-public ghc-colour
7440 (package
7441 (name "ghc-colour")
7442 (version "2.3.4")
7443 (source
7444 (origin
7445 (method url-fetch)
7446 (uri (string-append
7447 "https://hackage.haskell.org/package/colour/colour-"
7448 version ".tar.gz"))
7449 (sha256
7450 (base32
7451 "1sy51nz096sv91nxqk6yk7b92b5a40axv9183xakvki2nc09yhqg"))))
7452 (arguments
7453 ;; The tests for this package have the following dependency cycle:
7454 ;; ghc-test-framework -> ghc-ansi-terminal -> ghc-colour.
7455 `(#:tests? #f))
7456 (build-system haskell-build-system)
7457 (home-page "https://www.haskell.org/haskellwiki/Colour")
7458 (synopsis "Model for human colour perception")
7459 (description
7460 "This package provides a data type for colours and transparency.
7461 Colours can be blended and composed. Various colour spaces are
7462 supported. A module of colour names (\"Data.Colour.Names\") is provided.")
7463 (license license:expat)))
7464
7465 (define-public ghc-wl-pprint-text
7466 (package
7467 (name "ghc-wl-pprint-text")
7468 (version "1.2.0.0")
7469 (source
7470 (origin
7471 (method url-fetch)
7472 (uri (string-append
7473 "https://hackage.haskell.org/package/wl-pprint-text/wl-pprint-text-"
7474 version ".tar.gz"))
7475 (sha256
7476 (base32
7477 "0g3w92rad6x5appfb22rbzcas2ix2h0hy91sdxhq8a4a5cnlrpa0"))))
7478 (build-system haskell-build-system)
7479 (inputs
7480 `(("ghc-base-compat" ,ghc-base-compat)
7481 ("ghc-text" ,ghc-text)))
7482 (home-page "https://hackage.haskell.org/package/wl-pprint-text")
7483 (synopsis "Wadler/Leijen Pretty Printer for Text values")
7484 (description
7485 "A clone of wl-pprint for use with the text library.")
7486 (license license:bsd-3)))
7487
7488 (define-public ghc-fgl-arbitrary
7489 (package
7490 (name "ghc-fgl-arbitrary")
7491 (version "0.2.0.3")
7492 (source
7493 (origin
7494 (method url-fetch)
7495 (uri (string-append
7496 "https://hackage.haskell.org/package/fgl-arbitrary/fgl-arbitrary-"
7497 version ".tar.gz"))
7498 (sha256
7499 (base32
7500 "0ln1szgfy8fa78l3issq4fx3aqnnd54w3cb4wssrfi48vd5rkfjm"))))
7501 (build-system haskell-build-system)
7502 (arguments
7503 `(#:phases
7504 (modify-phases %standard-phases
7505 (add-before 'configure 'update-constraints
7506 (lambda _
7507 (substitute* "fgl-arbitrary.cabal"
7508 (("QuickCheck >= 2\\.3 && < 2\\.10")
7509 "QuickCheck >= 2.3 && < 2.12")
7510 (("hspec >= 2\\.1 && < 2\\.5")
7511 "hspec >= 2.1 && < 2.6")))))))
7512 (inputs
7513 `(("ghc-fgl" ,ghc-fgl)
7514 ("ghc-quickcheck" ,ghc-quickcheck)
7515 ("ghc-hspec" ,ghc-hspec)))
7516 (home-page "https://hackage.haskell.org/package/fgl-arbitrary")
7517 (synopsis "QuickCheck support for fgl")
7518 (description
7519 "Provides Arbitrary instances for fgl graphs to avoid adding a
7520 QuickCheck dependency for fgl whilst still making the instances
7521 available to others. Also available are non-fgl-specific functions
7522 for generating graph-like data structures.")
7523 (license license:bsd-3)))
7524
7525 (define-public ghc-graphviz
7526 (package
7527 (name "ghc-graphviz")
7528 (version "2999.20.0.2")
7529 (source (origin
7530 (method url-fetch)
7531 (uri (string-append "https://hackage.haskell.org/package/"
7532 "graphviz/graphviz-" version ".tar.gz"))
7533 (sha256
7534 (base32
7535 "0kj7ap0gnliviq2p8lscw1m06capnsa90vpvcys24nqy5nw2wrp7"))))
7536 (build-system haskell-build-system)
7537 (inputs
7538 `(("ghc-quickcheck" ,ghc-quickcheck)
7539 ("ghc-colour" ,ghc-colour)
7540 ("ghc-dlist" ,ghc-dlist)
7541 ("ghc-fgl" ,ghc-fgl)
7542 ("ghc-fgl-arbitrary" ,ghc-fgl-arbitrary)
7543 ("ghc-polyparse" ,ghc-polyparse)
7544 ("ghc-temporary" ,ghc-temporary)
7545 ("ghc-text" ,ghc-text)
7546 ("ghc-wl-pprint-text" ,ghc-wl-pprint-text)))
7547 (native-inputs
7548 `(("ghc-hspec" ,ghc-hspec)
7549 ("graphviz" ,graphviz)
7550 ("hspec-discover" ,hspec-discover)))
7551 (home-page "https://hackage.haskell.org/package/graphviz")
7552 (synopsis "Bindings to Graphviz for graph visualisation")
7553 (description
7554 "This library provides bindings for the Dot language used by
7555 the @uref{https://graphviz.org/, Graphviz} suite of programs for
7556 visualising graphs, as well as functions to call those programs.
7557 Main features of the graphviz library include:
7558
7559 @enumerate
7560 @item Almost complete coverage of all Graphviz attributes and syntax
7561 @item Support for specifying clusters
7562 @item The ability to use a custom node type
7563 @item Functions for running a Graphviz layout tool with all specified output types
7564 @item Generate and parse Dot code with two options: strict and liberal
7565 @item Functions to convert FGL graphs and other graph-like data structures
7566 @item Round-trip support for passing an FGL graph through Graphviz to augment node
7567 and edge labels with positional information, etc.
7568 @end enumerate\n")
7569 (license license:bsd-3)))
7570
7571 (define-public ghc-constraints
7572 (package
7573 (name "ghc-constraints")
7574 (version "0.10.1")
7575 (source
7576 (origin
7577 (method url-fetch)
7578 (uri (string-append
7579 "https://hackage.haskell.org/package/constraints/constraints-"
7580 version ".tar.gz"))
7581 (sha256
7582 (base32
7583 "1xy3vv78jxc17hm0z7qqspxjwv7l2jbcbj670yrl2f053qkfr02q"))))
7584 (build-system haskell-build-system)
7585 (inputs
7586 `(("ghc-hashable" ,ghc-hashable)
7587 ("ghc-semigroups" ,ghc-semigroups)
7588 ("ghc-transformers-compat" ,ghc-transformers-compat)))
7589 (native-inputs
7590 `(("ghc-hspec" ,ghc-hspec)
7591 ("hspec-discover" ,hspec-discover)))
7592 (home-page "https://github.com/ekmett/constraints/")
7593 (synopsis "Constraint manipulation")
7594 (description
7595 "GHC 7.4 gave us the ability to talk about @code{ConstraintKinds}.
7596 They stopped crashing the compiler in GHC 7.6. This package provides
7597 a vocabulary for working with them.")
7598 (license license:bsd-3)))
7599
7600 (define-public ghc-lifted-async
7601 (package
7602 (name "ghc-lifted-async")
7603 (version "0.10.0.2")
7604 (source
7605 (origin
7606 (method url-fetch)
7607 (uri (string-append
7608 "https://hackage.haskell.org/package/lifted-async/lifted-async-"
7609 version ".tar.gz"))
7610 (sha256
7611 (base32
7612 "1073r512c1x2m1v0jar9bwqg656slg7jd1jhsyj6m8awgx1l1mwf"))))
7613 (build-system haskell-build-system)
7614 (inputs
7615 `(("ghc-async" ,ghc-async)
7616 ("ghc-lifted-base" ,ghc-lifted-base)
7617 ("ghc-transformers-base" ,ghc-transformers-base)
7618 ("ghc-monad-control" ,ghc-monad-control)
7619 ("ghc-constraints" ,ghc-constraints)
7620 ("ghc-hunit" ,ghc-hunit)
7621 ("ghc-tasty" ,ghc-tasty)
7622 ("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)
7623 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7624 ("ghc-tasty-th" ,ghc-tasty-th)))
7625 (home-page "https://github.com/maoe/lifted-async")
7626 (synopsis "Run lifted IO operations asynchronously and wait for their results")
7627 (description
7628 "This package provides IO operations from @code{async} package lifted to any
7629 instance of @code{MonadBase} or @code{MonadBaseControl}.")
7630 (license license:bsd-3)))
7631
7632 ;; Ghc-shelly depends on ghc-system-filepath and ghc-system-fileio, who in turn depend on
7633 ;; ghc-chell and ghc-chell-quickcheck for the test phase. Ghc-chell depends on ghc-options
7634 ;; which depends on ghc-chell and ghc-chell-quickcheck.
7635 ;; Therefore we bootstrap it with tests disabled.
7636 (define ghc-system-filepath-bootstrap
7637 (package
7638 (name "ghc-system-filepath-bootstrap")
7639 (version "0.4.14")
7640 (source
7641 (origin
7642 (method url-fetch)
7643 (uri (string-append
7644 "https://hackage.haskell.org/package/system-filepath/system-filepath-"
7645 version ".tar.gz"))
7646 (sha256
7647 (base32
7648 "14yras4pz2dh55xpwmazcgxijvi8913pjgzb9iw50mjq1lycwmhn"))))
7649 (build-system haskell-build-system)
7650 (arguments
7651 `(#:tests? #f))
7652 (inputs
7653 `(("ghc-text" ,ghc-text)
7654 ("ghc-quickcheck" ,ghc-quickcheck)))
7655 (home-page "https://github.com/fpco/haskell-filesystem")
7656 (synopsis "High-level, byte-based file and directory path manipulations")
7657 (description
7658 "Provides a FilePath datatype and utility functions for operating on it.
7659 Unlike the filepath package, this package does not simply reuse String,
7660 increasing type safety.")
7661 (license license:expat)))
7662
7663 ;; See ghc-system-filepath-bootstrap. In addition this package depends on
7664 ;; ghc-system-filepath.
7665 (define ghc-system-fileio-bootstrap
7666 (package
7667 (name "ghc-system-fileio-bootstrap")
7668 (version "0.3.16.3")
7669 (source
7670 (origin
7671 (method url-fetch)
7672 (uri (string-append
7673 "https://hackage.haskell.org/package/system-fileio/system-fileio-"
7674 version ".tar.gz"))
7675 (sha256
7676 (base32
7677 "1484hcl27s2qcby8ws5djj11q9bz68bspcifz9h5gii2ndy70x9i"))))
7678 (build-system haskell-build-system)
7679 (arguments
7680 `(#:tests? #f))
7681 (inputs
7682 `(("ghc-system-filepath-bootstrap" ,ghc-system-filepath-bootstrap)
7683 ("ghc-text" ,ghc-text)
7684 ("ghc-temporary" ,ghc-temporary)))
7685 (home-page "https://github.com/fpco/haskell-filesystem")
7686 (synopsis "Consistent file system interaction across GHC versions")
7687 (description
7688 "This is a small wrapper around the directory, unix, and Win32 packages,
7689 for use with system-filepath. It provides a consistent API to the various
7690 versions of these packages distributed with different versions of GHC.
7691 In particular, this library supports working with POSIX files that have paths
7692 which can't be decoded in the current locale encoding.")
7693 (license license:expat)))
7694
7695 (define-public ghc-shelly
7696 (package
7697 (name "ghc-shelly")
7698 (version "1.8.1")
7699 (source
7700 (origin
7701 (method url-fetch)
7702 (uri (string-append
7703 "https://hackage.haskell.org/package/shelly/shelly-"
7704 version ".tar.gz"))
7705 (sha256
7706 (base32
7707 "023fbvbqs5gdwm30j5517gbdcc7fvz0md70dgwgpypkskj3i926y"))))
7708 (build-system haskell-build-system)
7709 (inputs
7710 `(("ghc-unix-compat" ,ghc-unix-compat)
7711 ("ghc-system-filepath-bootstrap" ,ghc-system-filepath-bootstrap)
7712 ("ghc-system-fileio-bootstrap" ,ghc-system-fileio-bootstrap)
7713 ("ghc-monad-control" ,ghc-monad-control)
7714 ("ghc-lifted-base" ,ghc-lifted-base)
7715 ("ghc-lifted-async" ,ghc-lifted-async)
7716 ("ghc-exceptions" ,ghc-exceptions)
7717 ("ghc-enclosed-exceptions" ,ghc-enclosed-exceptions)
7718 ("ghc-text" ,ghc-text)
7719 ("ghc-async" ,ghc-async)
7720 ("ghc-transformers-base" ,ghc-transformers-base)
7721 ("ghc-hunit" ,ghc-hunit)
7722 ("ghc-hspec" ,ghc-hspec)
7723 ("ghc-hspec-contrib" ,ghc-hspec-contrib)))
7724 (home-page "https://github.com/yesodweb/Shelly.hs")
7725 (synopsis "Shell-like (systems) programming in Haskell")
7726 (description
7727 "Shelly provides convenient systems programming in Haskell, similar in
7728 spirit to POSIX shells. Shelly is originally forked from the Shellish package.")
7729 (license license:bsd-3)))
7730
7731 ;; See ghc-system-filepath-bootstrap, chell and chell-quickcheck are required for tests.
7732 (define ghc-options-bootstrap
7733 (package
7734 (name "ghc-options-bootstrap")
7735 (version "1.2.1.1")
7736 (source
7737 (origin
7738 (method url-fetch)
7739 (uri (string-append
7740 "https://hackage.haskell.org/package/options/options-"
7741 version ".tar.gz"))
7742 (sha256
7743 (base32
7744 "0qjs0v1ny52w51n5582d4z8wy9h6n0zw1xb5dh686ff5wadflgi8"))))
7745 (build-system haskell-build-system)
7746 (arguments
7747 `(#:tests? #f))
7748 (inputs
7749 `(("ghc-monads-tf" ,ghc-monads-tf)))
7750 (home-page "https://john-millikin.com/software/haskell-options/")
7751 (synopsis "Powerful and easy-to-use command-line option parser")
7752 (description
7753 "The @code{options} package lets library and application developers
7754 easily work with command-line options.")
7755 (license license:expat)))
7756
7757 (define-public ghc-chell
7758 (package
7759 (name "ghc-chell")
7760 (version "0.4.0.2")
7761 (source
7762 (origin
7763 (method url-fetch)
7764 (uri (string-append
7765 "https://hackage.haskell.org/package/chell/chell-"
7766 version ".tar.gz"))
7767 (sha256
7768 (base32
7769 "10ingy9qnbmc8cqh4i9pskcw43l0mzk8f3d76b3qz3fig5ary3j9"))))
7770 (build-system haskell-build-system)
7771 (inputs
7772 `(("ghc-options-bootstrap" ,ghc-options-bootstrap)
7773 ("ghc-patience" ,ghc-patience)
7774 ("ghc-random" ,ghc-random)
7775 ("ghc-text" ,ghc-text)
7776 ("ghc-ansi-terminal" ,ghc-ansi-terminal)))
7777 (home-page "https://john-millikin.com/software/chell/")
7778 (synopsis "Simple and intuitive library for automated testing")
7779 (description
7780 "Chell is a simple and intuitive library for automated testing.
7781 It natively supports assertion-based testing, and can use companion
7782 libraries such as @code{chell-quickcheck} to support more complex
7783 testing strategies.")
7784 (license license:expat)))
7785
7786 (define ghc-chell-quickcheck-bootstrap
7787 (package
7788 (name "ghc-chell-quickcheck-bootstrap")
7789 (version "0.2.5.1")
7790 (source
7791 (origin
7792 (method url-fetch)
7793 (uri (string-append
7794 "https://hackage.haskell.org/package/chell-quickcheck/"
7795 "chell-quickcheck-" version ".tar.gz"))
7796 (sha256
7797 (base32
7798 "1iicsys9igx7m7n4l2b8djardmjy2ah5ibzp7kzs758h460fq53a"))))
7799 (build-system haskell-build-system)
7800 (inputs
7801 `(("ghc-chell" ,ghc-chell)
7802 ("ghc-random" ,ghc-random)
7803 ("ghc-quickcheck" ,ghc-quickcheck)))
7804 (arguments
7805 `(#:tests? #f
7806 #:phases
7807 (modify-phases %standard-phases
7808 (add-before 'configure 'update-constraints
7809 (lambda _
7810 (substitute* "chell-quickcheck.cabal"
7811 (("QuickCheck >= 2\\.3 && < 2\\.11")
7812 "QuickCheck >= 2.3 && < 2.12")))))))
7813 (home-page "https://john-millikin.com/software/chell/")
7814 (synopsis "QuickCheck support for the Chell testing library")
7815 (description "More complex tests for @code{chell}.")
7816 (license license:expat)))
7817
7818 (define-public ghc-chell-quickcheck
7819 (package
7820 (name "ghc-chell-quickcheck")
7821 (version "0.2.5.1")
7822 (source
7823 (origin
7824 (method url-fetch)
7825 (uri (string-append
7826 "https://hackage.haskell.org/package/chell-quickcheck/"
7827 "chell-quickcheck-" version ".tar.gz"))
7828 (sha256
7829 (base32
7830 "1iicsys9igx7m7n4l2b8djardmjy2ah5ibzp7kzs758h460fq53a"))))
7831 (build-system haskell-build-system)
7832 (arguments
7833 `(#:phases
7834 (modify-phases %standard-phases
7835 (add-before 'configure 'update-constraints
7836 (lambda _
7837 (substitute* "chell-quickcheck.cabal"
7838 (("QuickCheck >= 2\\.3 && < 2\\.11")
7839 "QuickCheck >= 2.3 && < 2.12")))))))
7840 (inputs
7841 `(("ghc-chell" ,ghc-chell)
7842 ("ghc-chell-quickcheck-bootstrap" ,ghc-chell-quickcheck-bootstrap)
7843 ("ghc-random" ,ghc-random)
7844 ("ghc-quickcheck" ,ghc-quickcheck)))
7845 (home-page "https://john-millikin.com/software/chell/")
7846 (synopsis "QuickCheck support for the Chell testing library")
7847 (description "More complex tests for @code{chell}.")
7848 (license license:expat)))
7849
7850 (define-public ghc-options
7851 (package
7852 (name "ghc-options")
7853 (version "1.2.1.1")
7854 (source
7855 (origin
7856 (method url-fetch)
7857 (uri (string-append
7858 "https://hackage.haskell.org/package/options/options-"
7859 version ".tar.gz"))
7860 (sha256
7861 (base32
7862 "0qjs0v1ny52w51n5582d4z8wy9h6n0zw1xb5dh686ff5wadflgi8"))))
7863 (build-system haskell-build-system)
7864 (inputs
7865 `(("ghc-monads-tf" ,ghc-monads-tf)
7866 ("ghc-chell" ,ghc-chell)
7867 ("ghc-chell-quickcheck" ,ghc-chell-quickcheck)))
7868 (home-page "https://john-millikin.com/software/haskell-options/")
7869 (synopsis "Powerful and easy-to-use command-line option parser")
7870 (description
7871 "The @code{options} package lets library and application developers
7872 easily work with command-line options.")
7873 (license license:expat)))
7874
7875 (define-public ghc-system-filepath
7876 (package
7877 (name "ghc-system-filepath")
7878 (version "0.4.14")
7879 (source
7880 (origin
7881 (method url-fetch)
7882 (uri (string-append
7883 "https://hackage.haskell.org/package/system-filepath/system-filepath-"
7884 version ".tar.gz"))
7885 (sha256
7886 (base32
7887 "14yras4pz2dh55xpwmazcgxijvi8913pjgzb9iw50mjq1lycwmhn"))))
7888 (build-system haskell-build-system)
7889 ;; FIXME: One of the tests fails:
7890 ;; [ FAIL ] tests.validity.posix
7891 ;; note: seed=7310214548328823169
7892 ;; *** Failed! Falsifiable (after 24 tests):
7893 ;; FilePath "/r2\ENQ52\t ;$/o\US=/okG\146\&6\n<u\DC3/5\182\223a\DELN\EOT#\NUL/`[m/\USEKV\ETX([)b6/\ACK\SOo\245\ETBO/f\128\STX`|\EM\"/*\EMA\USD3/\143\&4/\CAN?\SUBee\CANR/9/B0\187Kx4/Vqr\232'b:/\a\234\DLE.\"\179/\ENQ{J/|/G)@^\237/\219ml/\DC3pd\ESC"
7894 (arguments `(#:tests? #f))
7895 (inputs
7896 `(("ghc-text" ,ghc-text)
7897 ("ghc-chell" ,ghc-chell)
7898 ("ghc-chell-quickcheck" ,ghc-chell-quickcheck)
7899 ("ghc-quickcheck" ,ghc-quickcheck)))
7900 (home-page "https://github.com/fpco/haskell-filesystem")
7901 (synopsis "High-level, byte-based file and directory path manipulations")
7902 (description
7903 "Provides a FilePath datatype and utility functions for operating on it.
7904 Unlike the filepath package, this package does not simply reuse String,
7905 increasing type safety.")
7906 (license license:expat)))
7907
7908 (define-public ghc-system-fileio
7909 (package
7910 (name "ghc-system-fileio")
7911 (version "0.3.16.3")
7912 (source
7913 (origin
7914 (method url-fetch)
7915 (uri (string-append
7916 "https://hackage.haskell.org/package/system-fileio/system-fileio-"
7917 version ".tar.gz"))
7918 (sha256
7919 (base32
7920 "1484hcl27s2qcby8ws5djj11q9bz68bspcifz9h5gii2ndy70x9i"))))
7921 (build-system haskell-build-system)
7922 (inputs
7923 `(("ghc-system-filepath" ,ghc-system-filepath)
7924 ("ghc-text" ,ghc-text)
7925 ("ghc-chell" ,ghc-chell)
7926 ("ghc-temporary" ,ghc-temporary)))
7927 (home-page "https://github.com/fpco/haskell-filesystem")
7928 (synopsis "Consistent file system interaction across GHC versions")
7929 (description
7930 "This is a small wrapper around the directory, unix, and Win32 packages,
7931 for use with system-filepath. It provides a consistent API to the various
7932 versions of these packages distributed with different versions of GHC.
7933 In particular, this library supports working with POSIX files that have paths
7934 which can't be decoded in the current locale encoding.")
7935 (license license:expat)))
7936
7937 (define-public ghc-storable-complex
7938 (package
7939 (name "ghc-storable-complex")
7940 (version "0.2.2")
7941 (source
7942 (origin
7943 (method url-fetch)
7944 (uri (string-append
7945 "https://hackage.haskell.org/package/storable-complex/storable-complex-"
7946 version ".tar.gz"))
7947 (sha256
7948 (base32 "01kwwkpbfjrv26vj83cd92px5qbq1bpgxj0r45534aksqhany1xb"))))
7949 (build-system haskell-build-system)
7950 (home-page "https://github.com/cartazio/storable-complex")
7951 (synopsis "Haskell Storable instance for Complex")
7952 (description "This package provides a Haskell library including a
7953 Storable instance for Complex which is binary compatible with C99, C++
7954 and Fortran complex data types.")
7955 (license license:bsd-3)))
7956
7957 (define-public ghc-hmatrix
7958 (package
7959 (name "ghc-hmatrix")
7960 (version "0.19.0.0")
7961 (source
7962 (origin
7963 (method url-fetch)
7964 (uri (string-append
7965 "https://hackage.haskell.org/package/hmatrix/hmatrix-"
7966 version ".tar.gz"))
7967 (sha256
7968 (base32 "10jd69nby29dggghcyjk6ykyr5wrn97nrv1dkpyrp0y5xm12xssj"))))
7969 (build-system haskell-build-system)
7970 (inputs
7971 `(("ghc-random" ,ghc-random)
7972 ("ghc-split" ,ghc-split)
7973 ("ghc-storable-complex" ,ghc-storable-complex)
7974 ("ghc-semigroups" ,ghc-semigroups)
7975 ("ghc-vector" ,ghc-vector)
7976 ;;("openblas" ,openblas)
7977 ("lapack" ,lapack)))
7978 ;; Guix's OpenBLAS is built with the flag "NO_LAPACK=1" which
7979 ;; disables inclusion of the LAPACK functions.
7980 ;; (arguments `(#:configure-flags '("--flags=openblas")))
7981 (home-page "https://github.com/albertoruiz/hmatrix")
7982 (synopsis "Haskell numeric linear algebra library")
7983 (description "The HMatrix package provices a Haskell library for
7984 dealing with linear systems, matrix decompositions, and other
7985 numerical computations based on BLAS and LAPACK.")
7986 (license license:bsd-3)))
7987
7988 (define-public ghc-hmatrix-gsl
7989 (package
7990 (name "ghc-hmatrix-gsl")
7991 (version "0.19.0.1")
7992 (source
7993 (origin
7994 (method url-fetch)
7995 (uri (string-append
7996 "https://hackage.haskell.org/package/hmatrix-gsl/hmatrix-gsl-"
7997 version ".tar.gz"))
7998 (sha256
7999 (base32 "0v6dla426x4ywaq59jm89ql1i42n39iw6z0j378xwb676v9kfxhm"))))
8000 (build-system haskell-build-system)
8001 (inputs
8002 `(("ghc-hmatrix" ,ghc-hmatrix)
8003 ("ghc-vector" ,ghc-vector)
8004 ("ghc-random" ,ghc-random)
8005 ("gsl" ,gsl)))
8006 (native-inputs `(("pkg-config" ,pkg-config)))
8007 (home-page "https://github.com/albertoruiz/hmatrix")
8008 (synopsis "Haskell GSL binding")
8009 (description "This Haskell library provides a purely functional
8010 interface to selected numerical computations, internally implemented
8011 using GSL.")
8012 (license license:gpl3+)))
8013
8014 (define-public ghc-hmatrix-special
8015 (package
8016 (name "ghc-hmatrix-special")
8017 (version "0.19.0.0")
8018 (source
8019 (origin
8020 (method url-fetch)
8021 (uri
8022 (string-append
8023 "https://hackage.haskell.org/package/hmatrix-special/hmatrix-special-"
8024 version ".tar.gz"))
8025 (sha256
8026 (base32 "1mywr61kr852sbff26n9x95kswx9l4ycbv6s68qsbkh02xzqq7qz"))))
8027 (build-system haskell-build-system)
8028 (inputs
8029 `(("ghc-hmatrix" ,ghc-hmatrix)
8030 ("ghc-hmatrix-gsl" ,ghc-hmatrix-gsl)))
8031 (home-page "https://github.com/albertoruiz/hmatrix")
8032 (synopsis "Haskell interface to GSL special functions")
8033 (description "This library provides an interface to GSL special
8034 functions for Haskell.")
8035 (license license:gpl3+)))
8036
8037 (define-public ghc-hmatrix-gsl-stats
8038 (package
8039 (name "ghc-hmatrix-gsl-stats")
8040 (version "0.4.1.7")
8041 (source
8042 (origin
8043 (method url-fetch)
8044 (uri
8045 (string-append
8046 "https://hackage.haskell.org/package/hmatrix-gsl-stats/hmatrix-gsl-stats-"
8047 version ".tar.gz"))
8048 (sha256
8049 (base32 "1gslgk58lzin43cvbpivhw7nrn9qyaa6qwhy1z9ypvyal5p8n3sa"))))
8050 (build-system haskell-build-system)
8051 (inputs
8052 `(("ghc-vector" ,ghc-vector)
8053 ("ghc-storable-complex" ,ghc-storable-complex)
8054 ("ghc-hmatrix" ,ghc-hmatrix)
8055 ("gsl" ,gsl)))
8056 (native-inputs `(("pkg-config" ,pkg-config)))
8057 (home-page "http://code.haskell.org/hmatrix-gsl-stats")
8058 (synopsis "GSL Statistics interface for Haskell")
8059 (description "This Haskell library provides a purely functional
8060 interface for statistics based on hmatrix and GSL.")
8061 (license license:bsd-3)))
8062
8063 (define-public ghc-easyplot
8064 (package
8065 (name "ghc-easyplot")
8066 (version "1.0")
8067 (source
8068 (origin
8069 (method url-fetch)
8070 (uri (string-append
8071 "https://hackage.haskell.org/package/easyplot/easyplot-"
8072 version ".tar.gz"))
8073 (sha256
8074 (base32 "18kndgvdj2apjpfga6fp7m16y1gx8zrwp3c5vfj03sx4v6jvciqk"))))
8075 (build-system haskell-build-system)
8076 (propagated-inputs `(("gnuplot" ,gnuplot)))
8077 (arguments
8078 `(#:phases (modify-phases %standard-phases
8079 (add-after 'unpack 'fix-setup-suffix
8080 (lambda _ (rename-file "Setup.lhs" "Setup.hs") #t)))))
8081 (home-page "https://hub.darcs.net/scravy/easyplot")
8082 (synopsis "Haskell plotting library based on gnuplot")
8083 (description "This package provides a plotting library for
8084 Haskell, using gnuplot for rendering.")
8085 (license license:expat)))
8086
8087 (define-public ghc-hashtables
8088 (package
8089 (name "ghc-hashtables")
8090 (version "1.2.3.1")
8091 (source
8092 (origin
8093 (method url-fetch)
8094 (uri (string-append
8095 "https://hackage.haskell.org/package/hashtables/hashtables-"
8096 version ".tar.gz"))
8097 (sha256
8098 (base32 "1giw9caajr07slf09j7zry9b0kvm4yj9q78zy1mawzi6gk3wglcg"))))
8099 (build-system haskell-build-system)
8100 (inputs
8101 `(("ghc-hashable" ,ghc-hashable)
8102 ("ghc-primitive" ,ghc-primitive)
8103 ("ghc-vector" ,ghc-vector)))
8104 (home-page "https://github.com/gregorycollins/hashtables")
8105 (synopsis "Haskell Mutable hash tables in the ST monad")
8106 (description "This package provides a Haskell library including a
8107 couple of different implementations of mutable hash tables in the ST
8108 monad, as well as a typeclass abstracting their common operations, and
8109 a set of wrappers to use the hash tables in the IO monad.")
8110 (license license:bsd-3)))
8111
8112 (define-public ghc-data-accessor
8113 (package
8114 (name "ghc-data-accessor")
8115 (version "0.2.2.7")
8116 (source
8117 (origin
8118 (method url-fetch)
8119 (uri (string-append
8120 "mirror://hackage/package/data-accessor/data-accessor-"
8121 version ".tar.gz"))
8122 (sha256
8123 (base32 "1vf2g1gac3rm32g97rl0fll51m88q7ry4m6khnl5j47qsmx24r9l"))))
8124 (build-system haskell-build-system)
8125 (home-page "https://www.haskell.org/haskellwiki/Record_access")
8126 (synopsis
8127 "Haskell utilities for accessing and manipulating fields of records")
8128 (description "This package provides Haskell modules for accessing and
8129 manipulating fields of records.")
8130 (license license:bsd-3)))
8131
8132 (define-public ghc-data-accessor-transformers
8133 (package
8134 (name "ghc-data-accessor-transformers")
8135 (version "0.2.1.7")
8136 (source
8137 (origin
8138 (method url-fetch)
8139 (uri (string-append
8140 "mirror://hackage/package/data-accessor-transformers/"
8141 "data-accessor-transformers-" version ".tar.gz"))
8142 (sha256
8143 (base32 "0yp030vafbpddl27m606aibbbr5ar5j5bsv4bksscz3cq4yq5j10"))))
8144 (build-system haskell-build-system)
8145 (inputs `(("ghc-data-accessor" ,ghc-data-accessor)))
8146 (home-page "https://www.haskell.org/haskellwiki/Record_access")
8147 (synopsis "Use Accessor to access state in transformers State monad")
8148 (description "This package provides Haskell modules to allow use of
8149 Accessor to access state in transformers State monad.")
8150 (license license:bsd-3)))
8151
8152 (define-public ghc-utility-ht
8153 (package
8154 (name "ghc-utility-ht")
8155 (version "0.0.14")
8156 (home-page "https://hackage.haskell.org/package/utility-ht")
8157 (source
8158 (origin
8159 (method url-fetch)
8160 (uri (string-append home-page "/utility-ht-" version ".tar.gz"))
8161 (sha256
8162 (base32 "1a7bgk7wv7sqbxbiv7kankiimr3wij7zdm7s83zwsf886ghyxhk9"))))
8163 (build-system haskell-build-system)
8164 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
8165 (synopsis "Haskell helper functions for Lists, Maybes, Tuples, Functions")
8166 (description "This package includes Hakell modules providing various
8167 helper functions for Lists, Maybes, Tuples, Functions.")
8168 (license license:bsd-3)))
8169
8170 (define-public ghc-gnuplot
8171 (package
8172 (name "ghc-gnuplot")
8173 (version "0.5.5.2")
8174 (source
8175 (origin
8176 (method url-fetch)
8177 (uri (string-append
8178 "mirror://hackage/package/gnuplot/gnuplot-"
8179 version ".tar.gz"))
8180 (sha256
8181 (base32 "1mlppnc13ygjzmf6ldydys4wvy35yb3xjwwfgf9rbi7nfcqjr6mn"))))
8182 (build-system haskell-build-system)
8183 (inputs
8184 `(("ghc-temporary" ,ghc-temporary)
8185 ("ghc-utility-ht" ,ghc-utility-ht)
8186 ("ghc-data-accessor-transformers" ,ghc-data-accessor-transformers)
8187 ("ghc-data-accessor" ,ghc-data-accessor)
8188 ("ghc-semigroups" ,ghc-semigroups)
8189 ("gnuplot" ,gnuplot)))
8190 (arguments
8191 `(#:phases
8192 (modify-phases %standard-phases
8193 (add-before 'configure 'fix-path-to-gnuplot
8194 (lambda* (#:key inputs #:allow-other-keys)
8195 (let ((gnuplot (assoc-ref inputs "gnuplot")))
8196 (substitute* "os/generic/Graphics/Gnuplot/Private/OS.hs"
8197 (("(gnuplotName = ).*$" all cmd)
8198 (string-append cmd "\"" gnuplot "/bin/gnuplot\"")))))))))
8199 (home-page "https://www.haskell.org/haskellwiki/Gnuplot")
8200 (synopsis "2D and 3D plots using gnuplot")
8201 (description "This package provides a Haskell module for creating 2D and
8202 3D plots using gnuplot.")
8203 (license license:bsd-3)))
8204
8205 (define-public ghc-hinotify
8206 (package
8207 (name "ghc-hinotify")
8208 (version "0.3.10")
8209 (source (origin
8210 (method url-fetch)
8211 (uri (string-append
8212 "https://hackage.haskell.org/package/hinotify/"
8213 "hinotify-" version ".tar.gz"))
8214 (sha256
8215 (base32
8216 "17ax3n68a5c2ddazp86aciliskrh6znd3bnry0wcllmb6dbpsaxg"))))
8217 (build-system haskell-build-system)
8218 (inputs
8219 `(("ghc-async" ,ghc-async)))
8220 (home-page "https://github.com/kolmodin/hinotify.git")
8221 (synopsis "Haskell binding to inotify")
8222 (description "This library provides a wrapper to the Linux kernel's inotify
8223 feature, allowing applications to subscribe to notifications when a file is
8224 accessed or modified.")
8225 (license license:bsd-3)))
8226
8227 (define-public ghc-fsnotify
8228 (package
8229 (name "ghc-fsnotify")
8230 (version "0.3.0.1")
8231 (source (origin
8232 (method url-fetch)
8233 (uri (string-append
8234 "https://hackage.haskell.org/package/fsnotify/"
8235 "fsnotify-" version ".tar.gz"))
8236 (sha256
8237 (base32
8238 "19bdbz9wb9jvln6yg6qm0hz0w84bypvkxf0wjhgrgd52f9gidlny"))))
8239 (build-system haskell-build-system)
8240 (inputs
8241 `(("ghc-text" ,ghc-text)
8242 ("ghc-async" ,ghc-async)
8243 ("ghc-unix-compat" ,ghc-unix-compat)
8244 ("ghc-hinotify" ,ghc-hinotify)
8245 ("ghc-tasty" ,ghc-tasty)
8246 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
8247 ("ghc-random" ,ghc-random)
8248 ("ghc-shelly" ,ghc-shelly)
8249 ("ghc-temporary" ,ghc-temporary)))
8250 (home-page "https://github.com/haskell-fswatch/hfsnotify")
8251 (synopsis "Cross platform library for file change notification.")
8252 (description "Cross platform library for file creation, modification, and
8253 deletion notification. This library builds upon existing libraries for platform
8254 specific Windows, Mac, and Linux file system event notification.")
8255 (license license:bsd-3)))
8256
8257 (define-public ghc-ieee754
8258 (package
8259 (name "ghc-ieee754")
8260 (version "0.8.0")
8261 (source (origin
8262 (method url-fetch)
8263 (uri (string-append
8264 "https://hackage.haskell.org/package/ieee754/"
8265 "ieee754-" version ".tar.gz"))
8266 (sha256
8267 (base32
8268 "1lcs521g9lzy9d7337vg4w7q7s8500rfqy7rcifcz6pm6yfgyb8f"))))
8269 (build-system haskell-build-system)
8270 (home-page "https://github.com/patperry/hs-ieee754")
8271 (synopsis "Utilities for dealing with IEEE floating point numbers")
8272 (description "Utilities for dealing with IEEE floating point numbers,
8273 ported from the Tango math library; approximate and exact equality comparisons
8274 for general types.")
8275 (license license:bsd-3)))
8276
8277 (define-public ghc-terminal-size
8278 (package
8279 (name "ghc-terminal-size")
8280 (version "0.3.2.1")
8281 (source (origin
8282 (method url-fetch)
8283 (uri (string-append
8284 "https://hackage.haskell.org/package/terminal-size/"
8285 "terminal-size-" version ".tar.gz"))
8286 (sha256
8287 (base32
8288 "0n4nvj3dbj9gxfnprgish45asn9z4dipv9j98s8i7g2n8yb3xhmm"))))
8289 (build-system haskell-build-system)
8290 (home-page "https://hackage.haskell.org/package/terminal-size")
8291 (synopsis "Get terminal window height and width")
8292 (description "Get terminal window height and width without ncurses
8293 dependency.")
8294 (license license:bsd-3)))
8295
8296 (define-public ghc-language-c
8297 (package
8298 (name "ghc-language-c")
8299 (version "0.8.1")
8300 (source
8301 (origin
8302 (method url-fetch)
8303 (uri (string-append "https://hackage.haskell.org/package/"
8304 "language-c/language-c-" version ".tar.gz"))
8305 (sha256
8306 (base32
8307 "0sdkjj0hq8p69fcdm6ljbjkjvrsrb8a6rl5dq6dj6byj32ajrm3d"))))
8308 (build-system haskell-build-system)
8309 (inputs `(("ghc-syb" ,ghc-syb)))
8310 (native-inputs
8311 `(("ghc-happy" ,ghc-happy)
8312 ("ghc-alex" ,ghc-alex)))
8313 (home-page "https://visq.github.io/language-c/")
8314 (synopsis "Analysis and generation of C code")
8315 (description
8316 "Language C is a Haskell library for the analysis and generation of C code.
8317 It features a complete, well-tested parser and pretty printer for all of C99
8318 and a large set of GNU extensions.")
8319 (license license:bsd-3)))
8320
8321 (define-public ghc-markdown-unlit
8322 (package
8323 (name "ghc-markdown-unlit")
8324 (version "0.5.0")
8325 (source (origin
8326 (method url-fetch)
8327 (uri (string-append
8328 "mirror://hackage/package/markdown-unlit/"
8329 "markdown-unlit-" version ".tar.gz"))
8330 (sha256
8331 (base32
8332 "1gy79vr85vcp13rdjh0hz7zv6daqqffww4j0cqn2lpjjh9xhsbg7"))))
8333 (build-system haskell-build-system)
8334 (inputs
8335 `(("ghc-base-compat" ,ghc-base-compat)
8336 ("ghc-hspec" ,ghc-hspec)
8337 ("ghc-quickcheck" ,ghc-quickcheck)
8338 ("ghc-silently" ,ghc-silently)
8339 ("ghc-stringbuilder" ,ghc-stringbuilder)
8340 ("ghc-temporary" ,ghc-temporary)
8341 ("hspec-discover" ,hspec-discover)))
8342 (home-page "https://github.com/sol/markdown-unlit#readme")
8343 (synopsis "Literate Haskell support for Markdown")
8344 (description "This package allows you to have a README.md that at the
8345 same time is a literate Haskell program.")
8346 (license license:expat)))
8347
8348 (define-public corrode
8349 (let ((commit "b6699fb2fa552a07c6091276285a44133e5c9789"))
8350 (package
8351 (name "corrode")
8352 (version (string-append "0.0.1-" (string-take commit 7)))
8353 (source
8354 (origin
8355 (method git-fetch)
8356 (uri (git-reference
8357 (url "https://github.com/jameysharp/corrode.git")
8358 (commit "b6699fb2fa552a07c6091276285a44133e5c9789")))
8359 (file-name
8360 (string-append name "-" version "-checkout"))
8361 (sha256
8362 (base32 "02v0yyj6sk4gpg2222wzsdqjxn8w66scbnf6b20x0kbmc69qcz4r"))))
8363 (build-system haskell-build-system)
8364 (inputs
8365 `(("ghc-language-c" ,ghc-language-c)
8366 ("ghc-markdown-unlit" ,ghc-markdown-unlit)))
8367 (home-page "https://github.com/jameysharp/corrode")
8368 (synopsis "Automatic semantics-preserving translation from C to Rust")
8369 (description
8370 "This program reads a C source file and prints an equivalent module in
8371 Rust syntax. It is intended to be useful for two different purposes:
8372
8373 @enumerate
8374 @item Partial automation for migrating legacy code that was implemented in C.
8375 @item A new, complementary approach to static analysis for C programs.
8376 @end enumerate\n")
8377 (license license:gpl2+))))
8378
8379 (define-public ghc-wave
8380 (package
8381 (name "ghc-wave")
8382 (version "0.1.5")
8383 (source (origin
8384 (method url-fetch)
8385 (uri (string-append
8386 "https://hackage.haskell.org/package/wave/wave-"
8387 version
8388 ".tar.gz"))
8389 (sha256
8390 (base32
8391 "03zycmwrchhqvi37fdvlzz2d1vl4hy0i8xyys1zznw38qfq0h2i5"))))
8392 (build-system haskell-build-system)
8393 (arguments
8394 '(#:phases
8395 (modify-phases %standard-phases
8396 (add-before 'configure 'update-constraints
8397 (lambda _
8398 (substitute* "wave.cabal"
8399 (("temporary.* < 1\\.3")
8400 "temporary >= 1.1 && < 1.4")))))))
8401 (inputs
8402 `(("ghc-cereal" ,ghc-cereal)
8403 ("ghc-data-default-class"
8404 ,ghc-data-default-class)
8405 ("ghc-quickcheck" ,ghc-quickcheck)
8406 ("ghc-temporary" ,ghc-temporary)))
8407 (native-inputs
8408 `(("hspec-discover" ,hspec-discover)
8409 ("ghc-hspec" ,ghc-hspec)))
8410 (home-page "https://github.com/mrkkrp/wave")
8411 (synopsis "Work with WAVE and RF64 files in Haskell")
8412 (description "This package allows you to work with WAVE and RF64
8413 files in Haskell.")
8414 (license license:bsd-3)))
8415
8416 (define-public ghc-hslogger
8417 (package
8418 (name "ghc-hslogger")
8419 (version "1.2.10")
8420 (source
8421 (origin
8422 (method url-fetch)
8423 (uri (string-append "https://hackage.haskell.org/package/"
8424 "hslogger-" version "/" "hslogger-"
8425 version ".tar.gz"))
8426 (sha256 (base32
8427 "0as5gvlh6pi2gflakp695qnlizyyp059dqrhvjl4gjxalja6xjnp"))))
8428 (build-system haskell-build-system)
8429 (inputs
8430 `(("ghc-network" ,ghc-network)
8431 ("ghc-old-locale" ,ghc-old-locale)))
8432 (native-inputs
8433 `(("ghc-hunit" ,ghc-hunit)))
8434 (home-page "https://software.complete.org/hslogger")
8435 (synopsis "Logging framework for Haskell, similar to Python's logging module")
8436 (description "Hslogger lets each log message have a priority and source be
8437 associated with it. The programmer can then define global handlers that route
8438 or filter messages based on the priority and source. It also has a syslog
8439 handler built in.")
8440 (license license:bsd-3)))
8441
8442 (define-public ghc-unexceptionalio
8443 (package
8444 (name "ghc-unexceptionalio")
8445 (version "0.4.0")
8446 (source
8447 (origin
8448 (method url-fetch)
8449 (uri (string-append "https://hackage.haskell.org/package/"
8450 "unexceptionalio-" version "/" "unexceptionalio-"
8451 version ".tar.gz"))
8452 (sha256 (base32 "09gynk472l7nn5l2w320n4dwigwp0wh0shfp6dyw6r5h2jdxz18p"))))
8453 (build-system haskell-build-system)
8454 (home-page "https://github.com/singpolyma/unexceptionalio")
8455 (synopsis "IO without any non-error, synchronous exceptions")
8456 (description "When you've caught all the exceptions that can be
8457 handled safely, this is what you're left with.")
8458 (license license:isc)))
8459
8460 (define-public ghc-json
8461 (package
8462 (name "ghc-json")
8463 (version "0.9.2")
8464 (source
8465 (origin
8466 (method url-fetch)
8467 (uri (string-append "https://hackage.haskell.org/package/json/"
8468 "json-" version ".tar.gz"))
8469 (sha256
8470 (base32
8471 "13kkfgx58z18jphbg56jn08jn72wi3kvfndlwwx87hqwg7x1dfz6"))))
8472 (build-system haskell-build-system)
8473 (inputs
8474 `(("ghc-syb" ,ghc-syb)
8475 ("ghc-text" ,ghc-text)
8476 ("ghc-parsec" ,ghc-parsec)))
8477 (home-page "https://hackage.haskell.org/package/json")
8478 (synopsis "Serializes Haskell data to and from JSON")
8479 (description "This package provides a parser and pretty printer for
8480 converting between Haskell values and JSON.
8481 JSON (JavaScript Object Notation) is a lightweight data-interchange format.")
8482 (license license:bsd-3)))
8483
8484 (define-public ghc-esqueleto
8485 (let ((version "2.5.3")
8486 (revision "1")
8487 (commit "b81e0d951e510ebffca03c5a58658ad884cc6fbd"))
8488 (package
8489 (name "ghc-esqueleto")
8490 (version (git-version version revision commit))
8491 (source
8492 (origin
8493 (method git-fetch)
8494 (uri (git-reference
8495 (url "https://github.com/bitemyapp/esqueleto")
8496 (commit commit)))
8497 (file-name (git-file-name name version))
8498 (sha256
8499 (base32
8500 "0lz1qxms7cfg5p3j37inlych0r2fwhm8xbarcys3df9m7jy9nixa"))))
8501 (build-system haskell-build-system)
8502 (arguments
8503 `(#:haddock? #f ; Haddock reports an internal error.
8504 #:phases
8505 (modify-phases %standard-phases
8506 ;; This package normally runs tests for the MySQL, PostgreSQL, and
8507 ;; SQLite backends. Since we only have Haskell packages for
8508 ;; SQLite, we remove the other two test suites. FIXME: Add the
8509 ;; other backends and run all three test suites.
8510 (add-before 'configure 'remove-non-sqlite-test-suites
8511 (lambda _
8512 (use-modules (ice-9 rdelim))
8513 (with-atomic-file-replacement "esqueleto.cabal"
8514 (lambda (in out)
8515 (let loop ((line (read-line in 'concat)) (deleting? #f))
8516 (cond
8517 ((eof-object? line) #t)
8518 ((string-every char-set:whitespace line)
8519 (unless deleting? (display line out))
8520 (loop (read-line in 'concat) #f))
8521 ((member line '("test-suite mysql\n"
8522 "test-suite postgresql\n"))
8523 (loop (read-line in 'concat) #t))
8524 (else
8525 (unless deleting? (display line out))
8526 (loop (read-line in 'concat) deleting?)))))))))))
8527 (inputs
8528 `(("ghc-blaze-html" ,ghc-blaze-html)
8529 ("ghc-conduit" ,ghc-conduit)
8530 ("ghc-monad-logger" ,ghc-monad-logger)
8531 ("ghc-persistent" ,ghc-persistent)
8532 ("ghc-resourcet" ,ghc-resourcet)
8533 ("ghc-tagged" ,ghc-tagged)
8534 ("ghc-text" ,ghc-text)
8535 ("ghc-unliftio" ,ghc-unliftio)
8536 ("ghc-unordered-containers" ,ghc-unordered-containers)))
8537 (native-inputs
8538 `(("ghc-hspec" ,ghc-hspec)
8539 ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
8540 ("ghc-persistent-template" ,ghc-persistent-template)))
8541 (home-page "https://github.com/bitemyapp/esqueleto")
8542 (synopsis "Type-safe embedded domain specific language for SQL queries")
8543 (description "This library provides a type-safe embedded domain specific
8544 language (EDSL) for SQL queries that works with SQL backends as provided by
8545 @code{ghc-persistent}. Its language closely resembles SQL, so you don't have
8546 to learn new concepts, just new syntax, and it's fairly easy to predict the
8547 generated SQL and optimize it for your backend.")
8548 (license license:bsd-3))))
8549
8550 (define-public shellcheck
8551 (package
8552 (name "shellcheck")
8553 (version "0.5.0")
8554 (source
8555 (origin
8556 (method url-fetch)
8557 (uri (string-append
8558 "https://hackage.haskell.org/package/ShellCheck/ShellCheck-"
8559 version ".tar.gz"))
8560 (sha256
8561 (base32
8562 "0z1hscbr11hwkq8k1v0vaa947hb9m6k4cm831jk1gpj8dxrk151b"))
8563 (file-name (string-append name "-" version ".tar.gz"))))
8564 (build-system haskell-build-system)
8565 (inputs
8566 `(("ghc-aeson" ,ghc-aeson)
8567 ("ghc-quickcheck" ,ghc-quickcheck)
8568 ("ghc-parsec" ,ghc-parsec)
8569 ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
8570 (home-page "https://github.com/koalaman/shellcheck")
8571 (synopsis "Static analysis for shell scripts")
8572 (description "@code{shellcheck} provides static analysis for
8573 @command{bash} and @command{sh} shell scripts.
8574 It gives warnings and suggestions in order to:
8575
8576 @enumerate
8577 @item Point out and clarify typical beginner's syntax issues that cause
8578 a shell to give cryptic error messages.
8579 @item Point out and clarify typical intermediate level semantic problems
8580 that cause a shell to behave strangely and counter-intuitively.
8581 @item Point out subtle caveats, corner cases and pitfalls that may cause an
8582 advanced user's otherwise working script to fail under future circumstances.
8583 @end enumerate")
8584 (license license:gpl3+)))
8585
8586 (define-public ghc-simple-sendfile
8587 (package
8588 (name "ghc-simple-sendfile")
8589 (version "0.2.27")
8590 (source
8591 (origin
8592 (method url-fetch)
8593 (uri (string-append "https://hackage.haskell.org/package/"
8594 "simple-sendfile-" version "/"
8595 "simple-sendfile-" version ".tar.gz"))
8596 (sha256
8597 (base32
8598 "1bwwqzcm56m2w4ymsa054sxmpbj76h9pvb0jf8zxp8lr41cp51gn"))))
8599 (build-system haskell-build-system)
8600 (inputs
8601 `(("ghc-conduit" ,ghc-conduit)
8602 ("ghc-conduit-extra" ,ghc-conduit-extra)
8603 ("ghc-network" ,ghc-network)
8604 ("ghc-resourcet" ,ghc-resourcet)))
8605 (native-inputs
8606 `(("ghc-hspec" ,ghc-hspec)
8607 ("hspec-discover" ,hspec-discover)))
8608 (home-page "https://github.com/kazu-yamamoto/simple-sendfile")
8609 (synopsis "Cross platform library for the sendfile system call")
8610 (description "This library tries to call minimum system calls which
8611 are the bottleneck of web servers.")
8612 (license license:bsd-3)))
8613
8614 (define-public ghc-hex
8615 (package
8616 (name "ghc-hex")
8617 (version "0.1.2")
8618 (source
8619 (origin
8620 (method url-fetch)
8621 (uri (string-append "https://hackage.haskell.org/package/"
8622 "hex-" version "/"
8623 "hex-" version ".tar.gz"))
8624 (sha256
8625 (base32
8626 "1v31xiaivrrn0q2jz8919wvkjplv1kxna5ajhsj701fqxm1i5vhj"))))
8627 (build-system haskell-build-system)
8628 (home-page "https://hackage.haskell.org/package/hex")
8629 (synopsis "Convert strings into hexadecimal and back")
8630 (description "This package provides conversion functions between
8631 bytestrings and their hexademical representation.")
8632 (license license:bsd-3)))
8633
8634 (define-public ghc-psqueues
8635 (package
8636 (name "ghc-psqueues")
8637 (version "0.2.7.0")
8638 (source
8639 (origin
8640 (method url-fetch)
8641 (uri (string-append "https://hackage.haskell.org/package/"
8642 "psqueues-" version "/"
8643 "psqueues-" version ".tar.gz"))
8644 (sha256
8645 (base32
8646 "1sjgc9bxh63kkdp59nbirx3xazr02ia5yhp4f4a0jnq1hj465wsc"))))
8647 (build-system haskell-build-system)
8648 (inputs
8649 `(("ghc-hashable" ,ghc-hashable)))
8650 (native-inputs
8651 `(("ghc-hunit" ,ghc-hunit)
8652 ("ghc-quickcheck" ,ghc-quickcheck)
8653 ("ghc-tagged" ,ghc-tagged)
8654 ("ghc-test-framework" ,ghc-test-framework)
8655 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
8656 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
8657 (home-page "https://github.com/jaspervdj/psqueues")
8658 (synopsis "Pure priority search queues")
8659 (description "The psqueues package provides
8660 @uref{https://en.wikipedia.org/wiki/Priority_queue, Priority Search Queues} in
8661 three different flavors:
8662
8663 @itemize
8664 @item @code{OrdPSQ k p v}, which uses the @code{Ord k} instance to provide
8665 fast insertion, deletion and lookup. This implementation is based on Ralf
8666 Hinze's @uref{http://citeseer.ist.psu.edu/hinze01simple.html, A Simple
8667 Implementation Technique for Priority Search Queues}.
8668
8669 Hence, it is similar to the @uref{https://hackage.haskell.org/package/PSQueue,
8670 PSQueue} library, although it is considerably faster and provides a slightly
8671 different API.
8672
8673 @item @code{IntPSQ p v} is a far more efficient implementation. It fixes the
8674 key type to @code{Int} and uses a
8675 @code{https://en.wikipedia.org/wiki/Radix_tree, radix tree} (like @code{IntMap})
8676 with an additional min-heap property.
8677
8678 @item @code{HashPSQ k p v} is a fairly straightforward extension
8679 of @code{IntPSQ}: it simply uses the keys' hashes as indices in the
8680 @code{IntPSQ}. If there are any hash collisions, it uses an
8681 @code{OrdPSQ} to resolve those. The performance of this implementation
8682 is comparable to that of @code{IntPSQ}, but it is more widely
8683 applicable since the keys are not restricted to @code{Int},
8684 but rather to any @code{Hashable} datatype.
8685 @end itemize
8686
8687 Each of the three implementations provides the same API, so they can
8688 be used interchangeably.
8689
8690 Typical applications of Priority Search Queues include:
8691
8692 @itemize
8693 @item Caches, and more specifically LRU Caches;
8694 @item Schedulers;
8695 @item Pathfinding algorithms, such as Dijkstra's and A*.
8696 @end itemize")
8697 (license license:bsd-3)))
8698
8699 (define-public ghc-glob
8700 (package
8701 (name "ghc-glob")
8702 (version "0.9.2")
8703 (source
8704 (origin
8705 (method url-fetch)
8706 (uri (string-append "https://hackage.haskell.org/package/"
8707 "Glob-" version "/"
8708 "Glob-" version ".tar.gz"))
8709 (sha256
8710 (base32
8711 "1rbwcq9w9951qsnp13vqcm9r01yax2yh1wk8s4zxa3ckk9717iwg"))))
8712 (build-system haskell-build-system)
8713 (inputs
8714 `(("ghc-dlist" ,ghc-dlist)
8715 ("ghc-semigroups" ,ghc-semigroups)
8716 ("ghc-transformers-compat" ,ghc-transformers-compat)))
8717 (native-inputs
8718 `(("ghc-hunit" ,ghc-hunit)
8719 ("ghc-quickcheck" ,ghc-quickcheck)
8720 ("ghc-test-framework" ,ghc-test-framework)
8721 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
8722 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
8723 (home-page "http://iki.fi/matti.niemenmaa/glob/")
8724 (synopsis "Haskell library matching glob patterns against file paths")
8725 (description "This package provides a Haskell library for @dfn{globbing}:
8726 matching patterns against file paths.")
8727 (license license:bsd-3)))
8728
8729 (define-public ghc-errors
8730 (package
8731 (name "ghc-errors")
8732 (version "2.3.0")
8733 (source
8734 (origin
8735 (method url-fetch)
8736 (uri (string-append "https://hackage.haskell.org/package/"
8737 "errors-" version "/"
8738 "errors-" version ".tar.gz"))
8739 (sha256
8740 (base32
8741 "0x8znwn31qcx6kqx99wp7bc86kckfb39ncz3zxvj1s07kxlfawk7"))))
8742 (build-system haskell-build-system)
8743 (inputs
8744 `(("ghc-exceptions" ,ghc-exceptions)
8745 ("ghc-text" ,ghc-text)
8746 ("ghc-transformers-compat" ,ghc-transformers-compat)
8747 ("ghc-unexceptionalio" ,ghc-unexceptionalio)
8748 ("ghc-safe" ,ghc-safe)))
8749 (home-page "https://github.com/gabriel439/haskell-errors-library")
8750 (synopsis "Error handling library for Haskell")
8751 (description "This library encourages an error-handling style that
8752 directly uses the type system, rather than out-of-band exceptions.")
8753 (license license:bsd-3)))
8754
8755 (define-public ghc-vector-th-unbox
8756 (package
8757 (name "ghc-vector-th-unbox")
8758 (version "0.2.1.6")
8759 (source
8760 (origin
8761 (method url-fetch)
8762 (uri (string-append "https://hackage.haskell.org/package/"
8763 "vector-th-unbox-" version "/"
8764 "vector-th-unbox-" version ".tar.gz"))
8765 (sha256
8766 (base32
8767 "0d82x55f5vvr1jvaia382m23rs690lg55pvavv8f4ph0y6kd91xy"))))
8768 (build-system haskell-build-system)
8769 (inputs
8770 `(("ghc-vector" ,ghc-vector)
8771 ("ghc-data-default" ,ghc-data-default)))
8772 (home-page "https://github.com/liyang/vector-th-unbox")
8773 (synopsis "Deriver for Data.Vector.Unboxed using Template Haskell")
8774 (description "This Haskell library provides a Template Haskell
8775 deriver for unboxed vectors, given a pair of coercion functions to
8776 and from some existing type with an Unbox instance.")
8777 (license license:bsd-3)))
8778
8779 (define-public ghc-erf
8780 (package
8781 (name "ghc-erf")
8782 (version "2.0.0.0")
8783 (source
8784 (origin
8785 (method url-fetch)
8786 (uri (string-append "https://hackage.haskell.org/package/"
8787 "erf-" version "/"
8788 "erf-" version ".tar.gz"))
8789 (sha256
8790 (base32
8791 "0dxk2r32ajmmc05vaxcp0yw6vgv4lkbmh8jcshncn98xgsfbgw14"))))
8792 (build-system haskell-build-system)
8793 (home-page "https://hackage.haskell.org/package/erf")
8794 (synopsis "The error function, erf, and related functions for Haskell")
8795 (description "This Haskell library provides a type class for the
8796 error function, erf, and related functions. Instances for Float and
8797 Double.")
8798 (license license:bsd-3)))
8799
8800 (define-public ghc-math-functions
8801 (package
8802 (name "ghc-math-functions")
8803 (version "0.2.1.0")
8804 (source
8805 (origin
8806 (method url-fetch)
8807 (uri (string-append "https://hackage.haskell.org/package/"
8808 "math-functions-" version "/"
8809 "math-functions-" version ".tar.gz"))
8810 (sha256
8811 (base32
8812 "1sv5vabsx332v1lpb6v3jv4zrzvpx1n7yprzd8wlcda5vsc5a6zp"))))
8813 (build-system haskell-build-system)
8814 (arguments `(#:tests? #f)) ; FIXME: 1 test fails.
8815 (inputs
8816 `(("ghc-vector" ,ghc-vector)
8817 ("ghc-vector-th-unbox" ,ghc-vector-th-unbox)))
8818 (native-inputs
8819 `(("ghc-hunit" ,ghc-hunit)
8820 ("ghc-quickcheck" ,ghc-quickcheck)
8821 ("ghc-erf" ,ghc-erf)
8822 ("ghc-test-framework" ,ghc-test-framework)
8823 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
8824 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
8825 (home-page "https://github.com/bos/math-functions")
8826 (synopsis "Special functions and Chebyshev polynomials for Haskell")
8827 (description "This Haskell library provides implementations of
8828 special mathematical functions and Chebyshev polynomials. These
8829 functions are often useful in statistical and numerical computing.")
8830 (license license:bsd-3)))
8831
8832 (define-public ghc-mwc-random
8833 (package
8834 (name "ghc-mwc-random")
8835 (version "0.13.6.0")
8836 (source
8837 (origin
8838 (method url-fetch)
8839 (uri (string-append "https://hackage.haskell.org/package/"
8840 "mwc-random-" version "/"
8841 "mwc-random-" version ".tar.gz"))
8842 (sha256
8843 (base32
8844 "05j7yh0hh9nxic3dijmzv44kc6gzclvamdph7sq7w19wq57k6pq6"))))
8845 (build-system haskell-build-system)
8846 (inputs
8847 `(("ghc-primitive" ,ghc-primitive)
8848 ("ghc-vector" ,ghc-vector)
8849 ("ghc-math-functions" ,ghc-math-functions)))
8850 (arguments
8851 `(#:tests? #f)) ; FIXME: Test-Suite `spec` fails.
8852 (native-inputs
8853 `(("ghc-hunit" ,ghc-hunit)
8854 ("ghc-quickcheck" ,ghc-quickcheck)
8855 ("ghc-test-framework" ,ghc-test-framework)
8856 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
8857 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
8858 (home-page "https://github.com/bos/mwc-random")
8859 (synopsis "Random number generation library for Haskell")
8860 (description "This Haskell package contains code for generating
8861 high quality random numbers that follow either a uniform or normal
8862 distribution. The generated numbers are suitable for use in
8863 statistical applications.
8864
8865 The uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222)
8866 multiply-with-carry generator, which has a period of 2^{8222} and
8867 fares well in tests of randomness. It is also extremely fast,
8868 between 2 and 3 times faster than the Mersenne Twister.")
8869 (license license:bsd-3)))
8870
8871 (define-public ghc-vector-algorithms
8872 (package
8873 (name "ghc-vector-algorithms")
8874 (version "0.7.0.4")
8875 (source
8876 (origin
8877 (method url-fetch)
8878 (uri (string-append "https://hackage.haskell.org/package/"
8879 "vector-algorithms-" version "/"
8880 "vector-algorithms-" version ".tar.gz"))
8881 (sha256
8882 (base32
8883 "0mfa8ig9v69l41p2vb5jl4qmaln5y1rlzarr2mlgm8g1nvq8qqdg"))))
8884 (build-system haskell-build-system)
8885 (inputs
8886 `(("ghc-vector" ,ghc-vector)))
8887 (native-inputs
8888 `(("ghc-quickcheck" ,ghc-quickcheck)))
8889 (home-page "https://github.com/bos/math-functions")
8890 (synopsis "Algorithms for vector arrays in Haskell")
8891 (description "This Haskell library algorithms for vector arrays.")
8892 (license license:bsd-3)))
8893
8894 (define-public ghc-language-haskell-extract
8895 (package
8896 (name "ghc-language-haskell-extract")
8897 (version "0.2.4")
8898 (source
8899 (origin
8900 (method url-fetch)
8901 (uri (string-append "https://hackage.haskell.org/package/"
8902 "language-haskell-extract-" version "/"
8903 "language-haskell-extract-" version ".tar.gz"))
8904 (sha256
8905 (base32
8906 "1nxcs7g8a1sp91bzpy4cj6s31k5pvc3gvig04cbrggv5cvjidnhl"))))
8907 (build-system haskell-build-system)
8908 (inputs
8909 `(("ghc-regex-posix" ,ghc-regex-posix)))
8910 (home-page "https://github.com/finnsson/template-helper")
8911 (synopsis "Haskell module to automatically extract functions from
8912 the local code")
8913 (description "This package contains helper functions on top of
8914 Template Haskell.
8915
8916 For example, @code{functionExtractor} extracts all functions after a
8917 regexp-pattern, which can be useful if you wish to extract all functions
8918 beginning with @code{test} (for a test framework) or all functions beginning
8919 with @code{wc} (for a web service).")
8920 (license license:bsd-3)))
8921
8922 (define-public ghc-abstract-par
8923 (package
8924 (name "ghc-abstract-par")
8925 (version "0.3.3")
8926 (source
8927 (origin
8928 (method url-fetch)
8929 (uri (string-append "https://hackage.haskell.org/package/"
8930 "abstract-par-" version "/"
8931 "abstract-par-" version ".tar.gz"))
8932 (sha256
8933 (base32
8934 "0q6qsniw4wks2pw6wzncb1p1j3k6al5njnvm2v5n494hplwqg2i4"))))
8935 (build-system haskell-build-system)
8936 (home-page "https://github.com/simonmar/monad-par")
8937 (synopsis "Abstract parallelization interface for Haskell")
8938 (description "This Haskell package is an abstract interface
8939 only. It provides a number of type clasess, but not an
8940 implementation. The type classes separate different levels
8941 of @code{Par} functionality. See the @code{Control.Monad.Par.Class}
8942 module for more details.")
8943 (license license:bsd-3)))
8944
8945 (define-public ghc-monad-par-extras
8946 (package
8947 (name "ghc-monad-par-extras")
8948 (version "0.3.3")
8949 (source
8950 (origin
8951 (method url-fetch)
8952 (uri (string-append "https://hackage.haskell.org/package/"
8953 "monad-par-extras-" version "/"
8954 "monad-par-extras-" version ".tar.gz"))
8955 (sha256
8956 (base32
8957 "0bl4bd6jzdc5zm20q1g67ppkfh6j6yn8fwj6msjayj621cck67p2"))))
8958 (build-system haskell-build-system)
8959 (inputs `(("ghc-abstract-par" ,ghc-abstract-par)
8960 ("ghc-cereal" ,ghc-cereal)
8961 ("ghc-random" ,ghc-random)))
8962 (home-page "https://github.com/simonmar/monad-par")
8963 (synopsis "Combinators and extra features for Par monads for Haskell")
8964 (description "This Haskell package provides additional data structures,
8965 and other added capabilities layered on top of the @code{Par} monad.")
8966 (license license:bsd-3)))
8967
8968 (define-public ghc-abstract-deque
8969 (package
8970 (name "ghc-abstract-deque")
8971 (version "0.3")
8972 (source
8973 (origin
8974 (method url-fetch)
8975 (uri (string-append "https://hackage.haskell.org/package/"
8976 "abstract-deque-" version "/"
8977 "abstract-deque-" version ".tar.gz"))
8978 (sha256
8979 (base32
8980 "18jwswjxwzc9bjiy4ds6hw2a74ki797jmfcifxd2ga4kh7ri1ah9"))))
8981 (build-system haskell-build-system)
8982 (inputs `(("ghc-random" ,ghc-random)))
8983 (home-page "https://github.com/rrnewton/haskell-lockfree/wiki")
8984 (synopsis "Abstract, parameterized interface to mutable Deques for Haskell")
8985 (description "This Haskell package provides an abstract interface to
8986 highly-parameterizable queues/deques.
8987
8988 Background: There exists a feature space for queues that extends between:
8989
8990 @itemize
8991 @item Simple, single-ended, non-concurrent, bounded queues
8992
8993 @item Double-ended, thread-safe, growable queues with important points
8994 in between (such as the queues used for work stealing).
8995 @end itemize
8996
8997 This package includes an interface for Deques that allows the programmer
8998 to use a single API for all of the above, while using the type system to
8999 select an efficient implementation given the requirements (using type families).
9000
9001 This package also includes a simple reference implementation based on
9002 @code{IORef} and @code{Data.Sequence}.")
9003 (license license:bsd-3)))
9004
9005 (define-public ghc-monad-par
9006 (package
9007 (name "ghc-monad-par")
9008 (version "0.3.4.8")
9009 (source
9010 (origin
9011 (method url-fetch)
9012 (uri (string-append "https://hackage.haskell.org/package/"
9013 "monad-par-" version "/"
9014 "monad-par-" version ".tar.gz"))
9015 (sha256
9016 (base32
9017 "0ldrzqy24fsszvn2a2nr77m2ih7xm0h9bgkjyv1l274aj18xyk7q"))))
9018 (build-system haskell-build-system)
9019 (inputs `(("ghc-abstract-par" ,ghc-abstract-par)
9020 ("ghc-abstract-deque" ,ghc-abstract-deque)
9021 ("ghc-monad-par-extras" ,ghc-monad-par-extras)
9022 ("ghc-mwc-random" ,ghc-mwc-random)
9023 ("ghc-parallel" ,ghc-parallel)))
9024 (native-inputs `(("ghc-quickcheck" ,ghc-quickcheck)
9025 ("ghc-hunit" ,ghc-hunit)
9026 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
9027 ("ghc-test-framework-quickcheck2"
9028 ,ghc-test-framework-quickcheck2)
9029 ("ghc-test-framework" ,ghc-test-framework)
9030 ("ghc-test-framework-th" ,ghc-test-framework-th)))
9031 (home-page "https://github.com/simonmar/monad-par")
9032 (synopsis "Haskell library for parallel programming based on a monad")
9033 (description "The @code{Par} monad offers an API for parallel
9034 programming. The library works for parallelising both pure and @code{IO}
9035 computations, although only the pure version is deterministic. The default
9036 implementation provides a work-stealing scheduler and supports forking tasks
9037 that are much lighter weight than IO-threads.")
9038 (license license:bsd-3)))
9039
9040 (define-public ghc-statistics
9041 (package
9042 (name "ghc-statistics")
9043 (version "0.14.0.2")
9044 (source
9045 (origin
9046 (method url-fetch)
9047 (uri (string-append "https://hackage.haskell.org/package/"
9048 "statistics-" version "/"
9049 "statistics-" version ".tar.gz"))
9050 (sha256
9051 (base32
9052 "0y27gafkib0x0fn39qfn2rkgsfrm09ng35sbb5dwr7rclhnxz59l"))))
9053 (build-system haskell-build-system)
9054 (arguments
9055 '(#:cabal-revision
9056 ("2" "1bx70yqkn62ii17fjv3pig4hklrzkqd09zj67zzjiyjzmn04fir3")
9057 ;; Two tests fail: "Discrete CDF is OK" and "Quantile is CDF inverse".
9058 #:tests? #f))
9059 (inputs
9060 `(("ghc-aeson" ,ghc-aeson)
9061 ("ghc-base-orphans" ,ghc-base-orphans)
9062 ("ghc-erf" ,ghc-erf)
9063 ("ghc-math-functions" ,ghc-math-functions)
9064 ("ghc-monad-par" ,ghc-monad-par)
9065 ("ghc-mwc-random" ,ghc-mwc-random)
9066 ("ghc-primitive" ,ghc-primitive)
9067 ("ghc-vector" ,ghc-vector)
9068 ("ghc-vector-algorithms" ,ghc-vector-algorithms)
9069 ("ghc-vector-th-unbox" ,ghc-vector-th-unbox)
9070 ("ghc-vector-binary-instances" ,ghc-vector-binary-instances)))
9071 (native-inputs
9072 `(("ghc-hunit" ,ghc-hunit)
9073 ("ghc-quickcheck" ,ghc-quickcheck)
9074 ("ghc-ieee754" ,ghc-ieee754)
9075 ("ghc-test-framework" ,ghc-test-framework)
9076 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
9077 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
9078 (home-page "https://github.com/bos/mwc-random")
9079 (synopsis "Haskell library of statistical types, data, and functions")
9080 (description "This library provides a number of common functions
9081 and types useful in statistics. We focus on high performance, numerical
9082 robustness, and use of good algorithms. Where possible, we provide references
9083 to the statistical literature.
9084
9085 The library's facilities can be divided into four broad categories:
9086
9087 @itemize
9088 @item Working with widely used discrete and continuous probability
9089 distributions. (There are dozens of exotic distributions in use; we focus
9090 on the most common.)
9091
9092 @item Computing with sample data: quantile estimation, kernel density
9093 estimation, histograms, bootstrap methods, significance testing,
9094 and regression and autocorrelation analysis.
9095
9096 @item Random variate generation under several different distributions.
9097
9098 @item Common statistical tests for significant differences between samples.
9099 @end itemize")
9100 (license license:bsd-2)))
9101
9102 (define-public ghc-chunked-data
9103 (package
9104 (name "ghc-chunked-data")
9105 (version "0.3.1")
9106 (source
9107 (origin
9108 (method url-fetch)
9109 (uri (string-append "https://hackage.haskell.org/package/"
9110 "chunked-data-" version "/"
9111 "chunked-data-" version ".tar.gz"))
9112 (sha256
9113 (base32
9114 "16m7y7fwrirbjbqqcsfmr4yxa9qvfax6r7pw0zl9ky71ms0wa47p"))))
9115 (build-system haskell-build-system)
9116 (inputs `(("ghc-vector" ,ghc-vector)
9117 ("ghc-semigroups" ,ghc-semigroups)
9118 ("ghc-text" ,ghc-text)))
9119 (home-page "https://github.com/snoyberg/mono-traversable")
9120 (synopsis "Typeclasses for dealing with various chunked data
9121 representations for Haskell")
9122 (description "This Haskell package was originally present in
9123 classy-prelude.")
9124 (license license:expat)))
9125
9126 (define-public ghc-base-prelude
9127 (package
9128 (name "ghc-base-prelude")
9129 (version "1.3")
9130 (source
9131 (origin
9132 (method url-fetch)
9133 (uri (string-append "https://hackage.haskell.org/package/"
9134 "base-prelude-" version "/"
9135 "base-prelude-" version ".tar.gz"))
9136 (sha256
9137 (base32
9138 "1zk728sd09hh2r4xwz4lazsrrgg5cshydn64932sm0vckplndk73"))))
9139 (build-system haskell-build-system)
9140 (home-page "https://github.com/nikita-volkov/base-prelude")
9141 (synopsis "The most complete prelude formed solely from the Haskell's base
9142 package")
9143 (description "This Haskell package aims to reexport all the non-conflicting
9144 and most general definitions from the \"base\" package.
9145
9146 This includes APIs for applicatives, arrows, monoids, foldables, traversables,
9147 exceptions, generics, ST, MVars and STM.
9148
9149 This package will never have any dependencies other than \"base\".
9150
9151 Versioning policy:
9152
9153 The versioning policy of this package deviates from PVP in the sense
9154 that its exports in part are transitively determined by the version of \"base\".
9155 Therefore it's recommended for the users of @code{ghc-base-prelude} to specify
9156 the bounds of \"base\" as well.")
9157 (license license:expat)))
9158
9159 (define-public ghc-tuple-th
9160 (package
9161 (name "ghc-tuple-th")
9162 (version "0.2.5")
9163 (source
9164 (origin
9165 (method url-fetch)
9166 (uri (string-append "https://hackage.haskell.org/package/"
9167 "tuple-th-" version "/"
9168 "tuple-th-" version ".tar.gz"))
9169 (sha256
9170 (base32
9171 "1mrl4vvxmby7sf1paf7hklzidnr6wq55822i73smqyz0xpf3gsjn"))))
9172 (build-system haskell-build-system)
9173 (home-page "https://github.com/DanielSchuessler/tuple-th")
9174 (synopsis "Generate utility functions for tuples of statically known size
9175 for Haskell")
9176 (description "This Haskell package contains Template Haskell functions for
9177 generating functions similar to those in @code{Data.List} for tuples of
9178 statically known size.")
9179 (license license:bsd-3)))
9180
9181 (define-public ghc-contravariant-extras
9182 (package
9183 (name "ghc-contravariant-extras")
9184 (version "0.3.4")
9185 (source
9186 (origin
9187 (method url-fetch)
9188 (uri (string-append "https://hackage.haskell.org/package/"
9189 "contravariant-extras-" version "/"
9190 "contravariant-extras-" version ".tar.gz"))
9191 (sha256
9192 (base32
9193 "0gg62ccl94kvh7mnvdq09pifqxjx2kgs189si90nmg44bafj7a9n"))))
9194 (build-system haskell-build-system)
9195 (inputs
9196 `(("ghc-tuple-th" ,ghc-tuple-th)
9197 ("ghc-contravariant" ,ghc-contravariant)
9198 ("ghc-base-prelude" ,ghc-base-prelude)
9199 ("ghc-semigroups" ,ghc-semigroups)))
9200 (home-page "https://github.com/nikita-volkov/contravariant-extras")
9201 (synopsis "Extras for the @code{ghc-contravariant} Haskell package")
9202 (description "This Haskell package provides extras for the
9203 @code{ghc-contravariant} package.")
9204 (license license:expat)))
9205
9206 (define-public ghc-monadrandom
9207 (package
9208 (name "ghc-monadrandom")
9209 (version "0.5.1.1")
9210 (source
9211 (origin
9212 (method url-fetch)
9213 (uri (string-append "https://hackage.haskell.org/package/"
9214 "MonadRandom-" version "/"
9215 "MonadRandom-" version ".tar.gz"))
9216 (sha256
9217 (base32
9218 "0w44jl1n3kqvqaflh82l1wj3xxbhzfs3kf4m8rk7w6fgg8llmnmb"))))
9219 (build-system haskell-build-system)
9220 (inputs `(("ghc-transformers-compat" ,ghc-transformers-compat)
9221 ("ghc-primitive" ,ghc-primitive)
9222 ("ghc-fail" ,ghc-fail)
9223 ("ghc-random" ,ghc-random)))
9224 (home-page "https://github.com/byorgey/MonadRandom")
9225 (synopsis "Random-number generation monad for Haskell")
9226 (description "This Haskell package provides support for computations
9227 which consume random values.")
9228 (license license:bsd-3)))
9229
9230 (define-public ghc-either
9231 (package
9232 (name "ghc-either")
9233 (version "5.0.1")
9234 (source
9235 (origin
9236 (method url-fetch)
9237 (uri (string-append "https://hackage.haskell.org/package/"
9238 "either-" version "/"
9239 "either-" version ".tar.gz"))
9240 (sha256
9241 (base32
9242 "064hjfld7dkzs78sy30k5qkiva3hx24rax6dvzz5ygr2c0zypdkc"))))
9243 (build-system haskell-build-system)
9244 (inputs `(("ghc-bifunctors" ,ghc-bifunctors)
9245 ("ghc-exceptions" ,ghc-exceptions)
9246 ("ghc-free" ,ghc-free)
9247 ("ghc-monad-control" ,ghc-monad-control)
9248 ("ghc-manodrandom" ,ghc-monadrandom)
9249 ("ghc-mmorph" ,ghc-mmorph)
9250 ("ghc-profunctors" ,ghc-profunctors)
9251 ("ghc-semigroups" ,ghc-semigroups)
9252 ("ghc-semigroupoids" ,ghc-semigroupoids)
9253 ("ghc-transformers-base" ,ghc-transformers-base)))
9254 (native-inputs
9255 `(("ghc-quickcheck" ,ghc-quickcheck)
9256 ("ghc-test-framework" ,ghc-test-framework)
9257 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
9258 (home-page "https://github.com/ekmett/either")
9259 (synopsis "Provides an either monad transformer for Haskell")
9260 (description "This Haskell package provides an either monad transformer.")
9261 (license license:bsd-3)))
9262
9263 (define-public ghc-pretty-hex
9264 (package
9265 (name "ghc-pretty-hex")
9266 (version "1.0")
9267 (source
9268 (origin
9269 (method url-fetch)
9270 (uri (string-append "https://hackage.haskell.org/package/"
9271 "pretty-hex-" version "/"
9272 "pretty-hex-" version ".tar.gz"))
9273 (sha256
9274 (base32
9275 "0ylwkvvjvmpprha9nx83xb8gkhyanhk5fffc0r7lb96n4ch5z6pz"))))
9276 (build-system haskell-build-system)
9277 (home-page "https://github.com/GaloisInc/hexdump")
9278 (synopsis "Haskell library for hex dumps of ByteStrings")
9279 (description "This Haskell library generates pretty hex dumps of
9280 ByteStrings in the style of other common *nix hex dump tools.")
9281 (license license:bsd-3)))
9282
9283 (define-public ghc-network-info
9284 (package
9285 (name "ghc-network-info")
9286 (version "0.2.0.10")
9287 (source
9288 (origin
9289 (method url-fetch)
9290 (uri (string-append "https://hackage.haskell.org/package/"
9291 "network-info-" version "/"
9292 "network-info-" version ".tar.gz"))
9293 (sha256
9294 (base32
9295 "0anmgzcpnz7nw3n6vq0r25m1s9l2svpwi83wza0lzkrlbnbzd02n"))))
9296 (build-system haskell-build-system)
9297 (home-page "https://github.com/jystic/network-info")
9298 (synopsis "Access the local computer's basic network configuration")
9299 (description "This Haskell library provides simple read-only access to the
9300 local computer's networking configuration. It is currently capable of
9301 getting a list of all the network interfaces and their respective
9302 IPv4, IPv6 and MAC addresses.")
9303 (license license:bsd-3)))
9304
9305 (define-public ghc-uuid-types
9306 (package
9307 (name "ghc-uuid-types")
9308 (version "1.0.3")
9309 (source
9310 (origin
9311 (method url-fetch)
9312 (uri (string-append "https://hackage.haskell.org/package/"
9313 "uuid-types-" version "/"
9314 "uuid-types-" version ".tar.gz"))
9315 (sha256
9316 (base32
9317 "1zdka5jnm1h6k36w3nr647yf3b5lqb336g3fkprhd6san9x52xlj"))))
9318 (build-system haskell-build-system)
9319 (arguments
9320 `(#:phases
9321 (modify-phases %standard-phases
9322 (add-before 'configure 'strip-test-framework-constraints
9323 (lambda _
9324 (substitute* "uuid-types.cabal"
9325 (("HUnit >=1\\.2 && < 1\\.4") "HUnit")
9326 (("QuickCheck >=2\\.4 && < 2\\.9") "QuickCheck")
9327 (("tasty >= 0\\.10 && < 0\\.12") "tasty")
9328 (("tasty-hunit == 0\\.9\\.\\*") "tasty-hunit")
9329 (("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
9330 (inputs `(("ghc-hashable" ,ghc-hashable)
9331 ("ghc-random" ,ghc-random)
9332 ("ghc-text" ,ghc-text)))
9333 (native-inputs `(("ghc-hunit" ,ghc-hunit)
9334 ("ghc-quickcheck" ,ghc-quickcheck)
9335 ("ghc-tasty" ,ghc-tasty)
9336 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
9337 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
9338 (home-page "https://github.com/hvr/uuid")
9339 (synopsis "Haskell type definitions for UUIDs")
9340 (description "This Haskell library contains type definitions for
9341 @dfn{Universally Unique Identifiers} or
9342 @uref{https://en.wikipedia.org/wiki/UUID, UUIDs}, and basic conversion
9343 functions.")
9344 (license license:bsd-3)))
9345
9346 (define-public ghc-uuid
9347 (package
9348 (name "ghc-uuid")
9349 (version "1.3.13")
9350 (source
9351 (origin
9352 (method url-fetch)
9353 (uri (string-append "https://hackage.haskell.org/package/"
9354 "uuid-" version "/"
9355 "uuid-" version ".tar.gz"))
9356 (sha256
9357 (base32
9358 "09xhk42yhxvqmka0iqrv3338asncz8cap3j0ic0ps896f2581b6z"))))
9359 (build-system haskell-build-system)
9360 (arguments
9361 `(#:cabal-revision
9362 ("2" "0m185q62jkfb5jsv358nxbnrkv8y8hd0qqvgvh22wvc5g9ipz0r9")
9363 #:phases
9364 (modify-phases %standard-phases
9365 (add-before 'configure 'strip-test-framework-constraints
9366 (lambda _
9367 (substitute* "uuid.cabal"
9368 (("HUnit >= 1\\.2 && < 1\\.4") "HUnit")
9369 (("QuickCheck >= 2\\.4 && < 2\\.10") "QuickCheck")
9370 (("tasty >= 0\\.10 && < 0\\.12") "tasty")
9371 (("tasty-hunit == 0\\.9\\.\\*") "tasty-hunit")
9372 (("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
9373 (inputs `(("ghc-cryptohash-sha1" ,ghc-cryptohash-sha1)
9374 ("ghc-cryptohash-md5" ,ghc-cryptohash-md5)
9375 ("ghc-entropy" ,ghc-entropy)
9376 ("ghc-network-info" ,ghc-network-info)
9377 ("ghc-random" ,ghc-random)
9378 ("ghc-text" ,ghc-text)
9379 ("ghc-uuid-types" ,ghc-uuid-types)))
9380 (native-inputs `(("ghc-hunit" ,ghc-hunit)
9381 ("ghc-quickcheck" ,ghc-quickcheck)
9382 ("ghc-tasty" ,ghc-tasty)
9383 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
9384 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
9385 (home-page "https://github.com/hvr/uuid")
9386 (synopsis "Haskell library to create, compare, parse, and print UUIDs")
9387 (description "This Haskell library provides utilities creating, comparing,
9388 parsing and printing @dfn{Universally Unique Identifiers} or UUIDs.")
9389 (license license:bsd-3)))
9390
9391 (define-public ghc-rebase
9392 (package
9393 (name "ghc-rebase")
9394 (version "1.2.4")
9395 (source
9396 (origin
9397 (method url-fetch)
9398 (uri (string-append "https://hackage.haskell.org/package/"
9399 "rebase-" version "/"
9400 "rebase-" version ".tar.gz"))
9401 (sha256
9402 (base32
9403 "1gah2qwfpzwamnikbc5h4nv6dgvv9h16di9ka7946za3nibyasya"))))
9404 (build-system haskell-build-system)
9405 (inputs `(("ghc-stm" ,ghc-stm)
9406 ("ghc-hashable" ,ghc-hashable)
9407 ("ghc-vector" ,ghc-vector)
9408 ("ghc-unordered-containers" ,ghc-unordered-containers)
9409 ("ghc-text" ,ghc-text)
9410 ("ghc-scientific" ,ghc-scientific)
9411 ("ghc-uuid" ,ghc-uuid)
9412 ("ghc-dlist" ,ghc-dlist)
9413 ("ghc-void" ,ghc-void)
9414 ("ghc-bifunctors" ,ghc-bifunctors)
9415 ("ghc-profunctors" ,ghc-profunctors)
9416 ("ghc-contravariant" ,ghc-contravariant)
9417 ("ghc-contravariant-extras" ,ghc-contravariant-extras)
9418 ("ghc-semigroups" ,ghc-semigroups)
9419 ("ghc-either" ,ghc-either)
9420 ("ghc-fail" ,ghc-fail)
9421 ("ghc-base-prelude" ,ghc-base-prelude)))
9422 (home-page "https://github.com/nikita-volkov/rebase")
9423 (synopsis "Progressive alternative to the base package
9424 for Haskell")
9425 (description "This Haskell package is intended for those who are
9426 tired of keeping long lists of dependencies to the same essential libraries
9427 in each package as well as the endless imports of the same APIs all over again.
9428
9429 It also supports the modern tendencies in the language.
9430
9431 To solve those problems this package does the following:
9432
9433 @itemize
9434 @item Reexport the original APIs under the @code{Rebase} namespace.
9435
9436 @item Export all the possible non-conflicting symbols from the
9437 @code{Rebase.Prelude} module.
9438
9439 @item Give priority to the modern practices in the conflicting cases.
9440 @end itemize
9441
9442 The policy behind the package is only to reexport the non-ambiguous and
9443 non-controversial APIs, which the community has obviously settled on.
9444 The package is intended to rapidly evolve with the contribution from
9445 the community, with the missing features being added with pull-requests.")
9446 (license license:expat)))
9447
9448 (define-public ghc-rerebase
9449 (package
9450 (name "ghc-rerebase")
9451 (version "1.2.2")
9452 (source
9453 (origin
9454 (method url-fetch)
9455 (uri (string-append
9456 "https://hackage.haskell.org/package/rerebase/rerebase-"
9457 version ".tar.gz"))
9458 (sha256
9459 (base32
9460 "11v6rmz7ql2rdx6mhb3lsal952lwihclfhh0m7fcnii5br0906ks"))))
9461 (build-system haskell-build-system)
9462 (inputs
9463 `(("ghc-rebase" ,ghc-rebase)))
9464 (home-page "https://github.com/nikita-volkov/rerebase")
9465 (synopsis "Reexports from ``base'' with many other standard libraries")
9466 (description "A rich drop-in replacement for @code{base}. For details and
9467 documentation please visit @uref{https://github.com/nikita-volkov/rerebase,
9468 the project's home page}.")
9469 (license license:expat)))
9470
9471 (define-public ghc-vector-builder
9472 (package
9473 (name "ghc-vector-builder")
9474 (version "0.3.6")
9475 (source
9476 (origin
9477 (method url-fetch)
9478 (uri (string-append "https://hackage.haskell.org/package/"
9479 "vector-builder-" version "/"
9480 "vector-builder-" version ".tar.gz"))
9481 (sha256
9482 (base32
9483 "06d2pa1fb3ydrl7l6rjazqyxv5i73v65x2f5fp0ypjxfbm6jsmn8"))))
9484 (build-system haskell-build-system)
9485 (inputs `(("ghc-vector" ,ghc-vector)
9486 ("ghc-semigroups" ,ghc-semigroups)
9487 ("ghc-base-prelude" ,ghc-base-prelude)))
9488 (native-inputs `(("ghc-attoparsec" ,ghc-attoparsec)
9489 ("ghc-tasty" ,ghc-tasty)
9490 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
9491 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
9492 ("ghc-hunit" ,ghc-hunit)
9493 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
9494 ("ghc-rerebase" ,ghc-rerebase)))
9495 (home-page "https://github.com/nikita-volkov/vector-builder")
9496 (synopsis "Vector builder for Haskell")
9497 (description "This Haskell package provides an API for constructing vectors.
9498 It provides the composable @code{Builder} abstraction, which has instances of the
9499 @code{Monoid} and @code{Semigroup} classes.
9500
9501 You would first use the @code{Builder} abstraction to specify the structure of
9502 the vector; then you can execute the builder to actually produce the
9503 vector. ")
9504 (license license:expat)))
9505
9506 (define-public ghc-foldl
9507 (package
9508 (name "ghc-foldl")
9509 (version "1.4.3")
9510 (source
9511 (origin
9512 (method url-fetch)
9513 (uri (string-append "https://hackage.haskell.org/package/"
9514 "foldl-" version "/"
9515 "foldl-" version ".tar.gz"))
9516 (sha256
9517 (base32
9518 "13n0ca3hw5jzqf6rxsdbhbwkn61a9zlm13f0f205s60j3sc72jzk"))))
9519 (build-system haskell-build-system)
9520 (inputs `(("ghc-mwc-randam" ,ghc-mwc-random)
9521 ("ghc-primitive" ,ghc-primitive)
9522 ("ghc-text" ,ghc-text)
9523 ("ghc-vector" ,ghc-vector)
9524 ("ghc-unordered-containers" ,ghc-unordered-containers)
9525 ("ghc-hashable" ,ghc-hashable)
9526 ("ghc-contravariant" ,ghc-contravariant)
9527 ("ghc-semigroups" ,ghc-semigroups)
9528 ("ghc-profunctors" ,ghc-profunctors)
9529 ("ghc-semigroupoids" ,ghc-semigroupoids)
9530 ("ghc-comonad" ,ghc-comonad)
9531 ("ghc-vector-builder" ,ghc-vector-builder)))
9532 (home-page "https://github.com/Gabriel439/Haskell-Foldl-Library")
9533 (synopsis "Composable, streaming, and efficient left folds for Haskell")
9534 (description "This Haskell library provides strict left folds that stream
9535 in constant memory, and you can combine folds using @code{Applicative} style
9536 to derive new folds. Derived folds still traverse the container just once
9537 and are often as efficient as hand-written folds.")
9538 (license license:bsd-3)))
9539
9540 (define-public ghc-mono-traversable
9541 (package
9542 (name "ghc-mono-traversable")
9543 (version "1.0.9.0")
9544 (source
9545 (origin
9546 (method url-fetch)
9547 (uri (string-append "https://hackage.haskell.org/package/"
9548 "mono-traversable-" version "/"
9549 "mono-traversable-" version ".tar.gz"))
9550 (sha256
9551 (base32
9552 "0180ks0dyvpk1r20w5jw2w2n79mjnk69n9vhspaxzlyxqgim5psa"))))
9553 (build-system haskell-build-system)
9554 (inputs `(("ghc-unordered-containers" ,ghc-unordered-containers)
9555 ("ghc-hashable" ,ghc-hashable)
9556 ("ghc-text" ,ghc-text)
9557 ("ghc-vector" ,ghc-vector)
9558 ("ghc-vector-algorithms" ,ghc-vector-algorithms)
9559 ("ghc-split" ,ghc-split)))
9560 (native-inputs `(("ghc-hspec" ,ghc-hspec)
9561 ("ghc-hunit" ,ghc-hunit)
9562 ("ghc-quickcheck" ,ghc-quickcheck)
9563 ("ghc-semigroups" ,ghc-semigroups)
9564 ("ghc-foldl" ,ghc-foldl)))
9565 (home-page "https://github.com/snoyberg/mono-traversable")
9566 (synopsis "Haskell classes for mapping, folding, and traversing monomorphic
9567 containers")
9568 (description "This Haskell package provides Monomorphic variants of the
9569 Functor, Foldable, and Traversable typeclasses. If you understand Haskell's
9570 basic typeclasses, you understand mono-traversable. In addition to what
9571 you are used to, it adds on an IsSequence typeclass and has code for marking
9572 data structures as non-empty.")
9573 (license license:expat)))
9574
9575 (define-public ghc-conduit-combinators
9576 (package
9577 (name "ghc-conduit-combinators")
9578 (version "1.3.0")
9579 (source
9580 (origin
9581 (method url-fetch)
9582 (uri (string-append "https://hackage.haskell.org/package/"
9583 "conduit-combinators-" version "/"
9584 "conduit-combinators-" version ".tar.gz"))
9585 (sha256
9586 (base32
9587 "1lz70vwp4y4lpsivxl0cshq7aq3968rh48r6rjvpyaj2l0bdj5wp"))))
9588 (build-system haskell-build-system)
9589 (inputs `(("ghc-conduit" ,ghc-conduit)
9590 ("ghc-conduit-extra" ,ghc-conduit-extra)
9591 ("ghc-transformers-base" ,ghc-transformers-base)
9592 ("ghc-primitive" ,ghc-primitive)
9593 ("ghc-vector" ,ghc-vector)
9594 ("ghc-text" ,ghc-text)
9595 ("ghc-void" ,ghc-void)
9596 ("ghc-mwc-random" ,ghc-mwc-random)
9597 ("ghc-unix-compat" ,ghc-unix-compat)
9598 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
9599 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
9600 ("ghc-resourcet" ,ghc-resourcet)
9601 ("ghc-monad-control" ,ghc-monad-control)
9602 ("ghc-chunked-data" ,ghc-chunked-data)
9603 ("ghc-mono-traversable" ,ghc-mono-traversable)))
9604 (native-inputs `(("ghc-hspec" ,ghc-hspec)
9605 ("ghc-silently" ,ghc-silently)
9606 ("ghc-safe" ,ghc-safe)
9607 ("ghc-quickcheck" ,ghc-quickcheck)))
9608 (home-page "https://github.com/snoyberg/mono-traversable")
9609 (synopsis "Commonly used conduit functions, for both chunked and
9610 unchunked data")
9611 (description "This Haskell package provides a replacement for Data.Conduit.List,
9612 as well as a convenient Conduit module.")
9613 (license license:expat)))
9614
9615 (define-public ghc-aws
9616 (package
9617 (name "ghc-aws")
9618 (version "0.20")
9619 (source
9620 (origin
9621 (method url-fetch)
9622 (uri (string-append "https://hackage.haskell.org/package/"
9623 "aws-" version "/aws-" version ".tar.gz"))
9624 (sha256 (base32
9625 "0pwpabmypi1w8rni9qfwabgn95jks4h8dyw6889mn8xzsrhdhyf0"))))
9626 (build-system haskell-build-system)
9627 (arguments `(#:tests? #f)) ; Tests require AWS credentials.
9628 (inputs
9629 `(("ghc-aeson" ,ghc-aeson)
9630 ("ghc-attoparsec" ,ghc-attoparsec)
9631 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
9632 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
9633 ("ghc-blaze-builder" ,ghc-blaze-builder)
9634 ("ghc-byteable" ,ghc-byteable)
9635 ("ghc-case-insensitive" ,ghc-case-insensitive)
9636 ("ghc-cereal" ,ghc-cereal)
9637 ("ghc-conduit" ,ghc-conduit)
9638 ("ghc-conduit-extra" ,ghc-conduit-extra)
9639 ("ghc-cryptonite" ,ghc-cryptonite)
9640 ("ghc-data-default" ,ghc-data-default)
9641 ("ghc-http-conduit" ,ghc-http-conduit)
9642 ("ghc-http-types" ,ghc-http-types)
9643 ("ghc-lifted-base" ,ghc-lifted-base)
9644 ("ghc-monad-control" ,ghc-monad-control)
9645 ("ghc-network" ,ghc-network)
9646 ("ghc-old-locale" ,ghc-old-locale)
9647 ("ghc-safe" ,ghc-safe)
9648 ("ghc-scientific" ,ghc-scientific)
9649 ("ghc-tagged" ,ghc-tagged)
9650 ("ghc-text" ,ghc-text)
9651 ("ghc-unordered-containers" ,ghc-unordered-containers)
9652 ("ghc-utf8-string" ,ghc-utf8-string)
9653 ("ghc-vector" ,ghc-vector)
9654 ("ghc-xml-conduit" ,ghc-xml-conduit)))
9655 (native-inputs
9656 `(("ghc-quickcheck" ,ghc-quickcheck)
9657 ("ghc-errors" ,ghc-errors)
9658 ("ghc-http-client" ,ghc-http-client)
9659 ("ghc-http-client-tls" ,ghc-http-client-tls)
9660 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
9661 ("ghc-tasty" ,ghc-tasty)
9662 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
9663 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
9664 ("ghc-conduit-combinators" ,ghc-conduit-combinators)))
9665 (home-page "https://github.com/aristidb/aws")
9666 (synopsis "Amazon Web Services for Haskell")
9667 (description "This package attempts to provide support for using
9668 Amazon Web Services like S3 (storage), SQS (queuing) and others to
9669 Haskell programmers. The ultimate goal is to support all Amazon
9670 Web Services.")
9671 (license license:bsd-3)))
9672
9673 (define-public ghc-basement
9674 (package
9675 (name "ghc-basement")
9676 (version "0.0.8")
9677 (source
9678 (origin
9679 (method url-fetch)
9680 (uri (string-append "https://hackage.haskell.org/package/"
9681 "basement/basement-" version ".tar.gz"))
9682 (sha256
9683 (base32
9684 "194jw567di4q2758943q9rrwkbf9gl261my7qc21i9xhyabipx67"))))
9685 (build-system haskell-build-system)
9686 (home-page "https://github.com/haskell-foundation/foundation")
9687 (synopsis "Basic primitives for Foundation starter pack")
9688 (description
9689 "This package contains basic primitives for the Foundation set of
9690 packages.")
9691 (license license:bsd-3)))
9692
9693 (define-public ghc-foundation
9694 (package
9695 (name "ghc-foundation")
9696 (version "0.0.21")
9697 (source
9698 (origin
9699 (method url-fetch)
9700 (uri (string-append "https://hackage.haskell.org/package/"
9701 "foundation/foundation-" version ".tar.gz"))
9702 (sha256
9703 (base32
9704 "1q43y8wfj0wf9gdq2kzphwjwq6m5pvryy1lqgk954aq5z3ks1lsf"))))
9705 (build-system haskell-build-system)
9706 (inputs `(("ghc-basement" ,ghc-basement)))
9707 (home-page "https://github.com/haskell-foundation/foundation")
9708 (synopsis "Alternative prelude with batteries and no dependencies")
9709 (description
9710 "This package provides a custom prelude with no dependencies apart from
9711 the base package.
9712
9713 Foundation has the following goals:
9714
9715 @enumerate
9716 @item provide a base like sets of modules that provide a consistent set of
9717 features and bugfixes across multiple versions of GHC (unlike base).
9718 @item provide a better and more efficient prelude than base's prelude.
9719 @item be self-sufficient: no external dependencies apart from base;
9720 @item provide better data-types: packed unicode string by default, arrays;
9721 @item Numerical classes that better represent mathematical things (no more
9722 all-in-one @code{Num});
9723 @item I/O system with less lazy IO.
9724 @end enumerate\n")
9725 (license license:bsd-3)))
9726
9727 (define-public ghc-stm-chans
9728 (package
9729 (name "ghc-stm-chans")
9730 (version "3.0.0.4")
9731 (source
9732 (origin
9733 (method url-fetch)
9734 (uri (string-append "https://hackage.haskell.org/package/"
9735 "stm-chans-" version "/"
9736 "stm-chans-" version ".tar.gz"))
9737 (sha256
9738 (base32
9739 "0f27sp09yha43xk9q55sc185jyjs5h7gq2dhsyx6bm9kz9dzqi13"))))
9740 (build-system haskell-build-system)
9741 (inputs `(("ghc-stm" ,ghc-stm)))
9742 (home-page "https://hackage.haskell.org/package/stm-chans")
9743 (synopsis "Additional types of channels for ghc-stm")
9744 (description "This Haskell package offers a collection of channel types,
9745 similar to @code{Control.Concurrent.STM.@{TChan,TQueue@}} but with additional
9746 features.")
9747 (license license:bsd-3)))
9748
9749 (define-public ghc-monad-loops
9750 (package
9751 (name "ghc-monad-loops")
9752 (version "0.4.3")
9753 (source
9754 (origin
9755 (method url-fetch)
9756 (uri (string-append "https://hackage.haskell.org/package/"
9757 "monad-loops-" version "/"
9758 "monad-loops-" version ".tar.gz"))
9759 (sha256
9760 (base32
9761 "062c2sn3hc8h50p1mhqkpyv6x8dydz2zh3ridvlfjq9nqimszaky"))))
9762 (build-system haskell-build-system)
9763 (native-inputs `(("ghc-tasty" ,ghc-tasty)
9764 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
9765 (home-page "https://github.com/mokus0/monad-loops")
9766 (synopsis "Monadic loops for Haskell")
9767 (description "This Haskell package provides some useful control
9768 operators for looping.")
9769 (license license:public-domain)))
9770
9771 (define-public ghc-monad-logger
9772 (package
9773 (name "ghc-monad-logger")
9774 (version "0.3.29")
9775 (source
9776 (origin
9777 (method url-fetch)
9778 (uri (string-append "https://hackage.haskell.org/package/"
9779 "monad-logger-" version "/"
9780 "monad-logger-" version ".tar.gz"))
9781 (sha256
9782 (base32
9783 "1z516s4pa9n94zf0l45mylssg07xr1d1m6zrz900p0iv3vfd07mv"))))
9784 (build-system haskell-build-system)
9785 (inputs `(("ghc-transformers-compat" ,ghc-transformers-compat)
9786 ("ghc-text" ,ghc-text)
9787 ("ghc-stm" ,ghc-stm)
9788 ("ghc-stm-chans" ,ghc-stm-chans)
9789 ("ghc-lifted-base" ,ghc-lifted-base)
9790 ("ghc-resourcet" ,ghc-resourcet)
9791 ("ghc-conduit" ,ghc-conduit)
9792 ("ghc-conduit-extra" ,ghc-conduit-extra)
9793 ("ghc-fast-logger" ,ghc-fast-logger)
9794 ("ghc-transformers-base" ,ghc-transformers-base)
9795 ("ghc-monad-control" ,ghc-monad-control)
9796 ("ghc-monad-loops" ,ghc-monad-loops)
9797 ("ghc-blaze-builder" ,ghc-blaze-builder)
9798 ("ghc-exceptions" ,ghc-exceptions)))
9799 (home-page "https://github.com/kazu-yamamoto/logger")
9800 (synopsis "Provides a class of monads which can log messages for Haskell")
9801 (description "This Haskell package uses a monad transformer approach
9802 for logging.
9803
9804 This package provides Template Haskell functions for determining source
9805 code locations of messages.")
9806 (license license:expat)))
9807
9808 (define-public ghc-shakespeare
9809 (package
9810 (name "ghc-shakespeare")
9811 (version "2.0.15")
9812 (source
9813 (origin
9814 (method url-fetch)
9815 (uri (string-append "https://hackage.haskell.org/package/"
9816 "shakespeare-" version "/"
9817 "shakespeare-" version ".tar.gz"))
9818 (sha256
9819 (base32
9820 "1vk4b19zvwy4mpwaq9z3l3kfmz75gfyf7alhh0y112gspgpccm23"))))
9821 (build-system haskell-build-system)
9822 (inputs `(("ghc-parsec" ,ghc-parsec)
9823 ("ghc-text" ,ghc-text)
9824 ("ghc-aeson" ,ghc-aeson)
9825 ("ghc-blaze-markup" ,ghc-blaze-markup)
9826 ("ghc-blaze-html" ,ghc-blaze-html)
9827 ("ghc-exceptions" ,ghc-exceptions)
9828 ("ghc-vector" ,ghc-vector)
9829 ("ghc-unordered-containers" ,ghc-unordered-containers)
9830 ("ghc-scientific" ,ghc-scientific)))
9831 (native-inputs `(("ghc-hspec" ,ghc-hspec)
9832 ("ghc-hunit" ,ghc-hunit)
9833 ("hspec-discover" ,hspec-discover)))
9834 (home-page "https://www.yesodweb.com/book/shakespearean-templates")
9835 (synopsis "Family of type-safe template languages for Haskell")
9836 (description "This Haskell package provides a family of type-safe
9837 templates with simple variable interpolation. Shakespeare templates can
9838 be used inline with a quasi-quoter or in an external file and it
9839 interpolates variables according to the type being inserted.")
9840 (license license:expat)))
9841
9842 (define-public ghc-securemem
9843 (package
9844 (name "ghc-securemem")
9845 (version "0.1.10")
9846 (source
9847 (origin
9848 (method url-fetch)
9849 (uri (string-append "https://hackage.haskell.org/package/"
9850 "securemem-" version "/"
9851 "securemem-" version ".tar.gz"))
9852 (sha256
9853 (base32
9854 "19hnw2cfbsfjynxq1bq9f6djbxhsc1k751ml0y1ab3ah913mm29j"))))
9855 (build-system haskell-build-system)
9856 (inputs `(("ghc-byteable" ,ghc-byteable)
9857 ("ghc-memory" ,ghc-memory)))
9858 (home-page "https://github.com/vincenthz/hs-securemem")
9859 (synopsis "Auto-scrubbing and const-time-eq memory chunk abstraction for
9860 Haskell")
9861 (description "SecureMem is similar to ByteString, except that it provides
9862 a memory chunk that will be auto-scrubbed after it run out of scope.")
9863 (license license:bsd-3)))
9864
9865 (define-public ghc-resource-pool
9866 (package
9867 (name "ghc-resource-pool")
9868 (version "0.2.3.2")
9869 (source
9870 (origin
9871 (method url-fetch)
9872 (uri (string-append "https://hackage.haskell.org/package/"
9873 "resource-pool-" version "/"
9874 "resource-pool-" version ".tar.gz"))
9875 (sha256
9876 (base32
9877 "04mw8b9djb14zp4rdi6h7mc3zizh597ffiinfbr4m0m8psifw9w6"))))
9878 (build-system haskell-build-system)
9879 (inputs `(("ghc-hashable" ,ghc-hashable)
9880 ("ghc-monad-control" ,ghc-monad-control)
9881 ("ghc-transformers-base" ,ghc-transformers-base)
9882 ("ghc-stm" ,ghc-stm)
9883 ("ghc-vector" ,ghc-vector)))
9884 (home-page "https://github.com/bos/pool")
9885 (synopsis "Striped resource pooling implementation in Haskell")
9886 (description "This Haskell package provides striped pooling abstraction
9887 for managing flexibly-sized collections of resources such as database
9888 connections.")
9889 (license license:bsd-3)))
9890
9891 (define-public ghc-attoparsec-iso8601
9892 (package
9893 (name "ghc-attoparsec-iso8601")
9894 (version "1.0.0.0")
9895 (source
9896 (origin
9897 (method url-fetch)
9898 (uri (string-append "https://hackage.haskell.org/package/"
9899 "attoparsec-iso8601-" version "/"
9900 "attoparsec-iso8601-" version ".tar.gz"))
9901 (sha256
9902 (base32
9903 "12l55b76bhya9q89mfmqmy6sl5v39b6gzrw5rf3f70vkb23nsv5a"))))
9904 (build-system haskell-build-system)
9905 (arguments
9906 `(#:cabal-revision
9907 ("1" "06f7pgmmc8456p3hc1y23kz1y127gfczy7s00wz1rls9g2sm2vi4")))
9908 (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
9909 ("ghc-base-compat" ,ghc-base-compat)
9910 ("ghc-text" ,ghc-text)))
9911 (home-page "https://github.com/bos/aeson")
9912 (synopsis "Parse ISO 8601 dates")
9913 (description "Haskell library for parsing of ISO 8601 dates, originally
9914 from aeson.")
9915 (license license:bsd-3)))
9916
9917 (define-public ghc-generics-sop
9918 (package
9919 (name "ghc-generics-sop")
9920 (version "0.3.2.0")
9921 (source
9922 (origin
9923 (method url-fetch)
9924 (uri (string-append "https://hackage.haskell.org/package/"
9925 "generics-sop-" version "/"
9926 "generics-sop-" version ".tar.gz"))
9927 (sha256
9928 (base32
9929 "168v62i845jh9jbfaz3ldz8svz4wmzq9mf2vhb7pxlnbkk8fqq1h"))))
9930 (build-system haskell-build-system)
9931 (inputs `(("ghc-transformers-compat" ,ghc-transformers-compat)))
9932 (home-page "https://github.com/well-typed/generics-sop")
9933 (synopsis "Generic Programming using True Sums of Products for Haskell")
9934 (description "This Haskell package supports the definition of generic
9935 functions. Datatypes are viewed in a uniform, structured way: the choice
9936 between constructors is represented using an n-ary sum, and the arguments of
9937 each constructor are represented using an n-ary product.")
9938 (license license:bsd-3)))
9939
9940 (define-public ghc-uri-bytestring
9941 (package
9942 (name "ghc-uri-bytestring")
9943 (version "0.3.2.0")
9944 (source
9945 (origin
9946 (method url-fetch)
9947 (uri (string-append "https://hackage.haskell.org/package/"
9948 "uri-bytestring-" version "/"
9949 "uri-bytestring-" version ".tar.gz"))
9950 (sha256
9951 (base32
9952 "1q04j5ybvk37zk2m0bkjwyhblz0ymdj0cn4rvsvdca1ikn5xdv5c"))))
9953 (build-system haskell-build-system)
9954 (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
9955 ("ghc-fail" ,ghc-fail)
9956 ("ghc-blaze-builder" ,ghc-blaze-builder)
9957 ("ghc-th-lift-instances" ,ghc-th-lift-instances)))
9958 (native-inputs `(("ghc-attoparsec" ,ghc-attoparsec)
9959 ("ghc-hunit" ,ghc-hunit)
9960 ("ghc-quickcheck" ,ghc-quickcheck)
9961 ("ghc-tasty" ,ghc-tasty)
9962 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
9963 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
9964 ("ghc-base-compat" ,ghc-base-compat)
9965 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
9966 ("ghc-semigroups" ,ghc-semigroups)
9967 ("ghc-generics-sop" ,ghc-generics-sop)))
9968 (home-page "https://github.com/Soostone/uri-bytestring")
9969 (synopsis "Haskell URI parsing as ByteStrings")
9970 (description "This Haskell package aims to be an RFC3986 compliant URI
9971 parser that uses ByteStrings for parsing and representing the URI data.")
9972 (license license:bsd-3)))
9973
9974 (define-public ghc-http-api-data
9975 (package
9976 (name "ghc-http-api-data")
9977 (version "0.3.8.1")
9978 (source
9979 (origin
9980 (method url-fetch)
9981 (uri (string-append "https://hackage.haskell.org/package/"
9982 "http-api-data-" version "/"
9983 "http-api-data-" version ".tar.gz"))
9984 (sha256
9985 (base32
9986 "1cq6459b8wz6nvkvpi89dg189n5q2xdq4rdq435hf150555vmskf"))))
9987 (build-system haskell-build-system)
9988 (arguments `(#:tests? #f)) ; FIXME: Tests require QuickCheck >= 2.9
9989 (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
9990 ("ghc-attoparsec-iso8601" ,ghc-attoparsec-iso8601)
9991 ("ghc-hashable" ,ghc-hashable)
9992 ("ghc-http-types" ,ghc-http-types)
9993 ("ghc-text" ,ghc-text)
9994 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
9995 ("ghc-unordered-containers" ,ghc-unordered-containers)
9996 ("ghc-uri-bytestring" ,ghc-uri-bytestring)
9997 ("ghc-uuid-types" ,ghc-uuid-types)))
9998 (home-page "https://github.com/fizruk/http-api-data")
9999 (synopsis "Convert to/from HTTP API data like URL pieces, headers and
10000 query parameters")
10001 (description "This Haskell package defines typeclasses used for converting
10002 Haskell data types to and from HTTP API data.")
10003 (license license:bsd-3)))
10004
10005 (define-public ghc-persistent
10006 (package
10007 (name "ghc-persistent")
10008 (version "2.8.2")
10009 (source
10010 (origin
10011 (method url-fetch)
10012 (uri (string-append "https://hackage.haskell.org/package/"
10013 "persistent-" version "/"
10014 "persistent-" version ".tar.gz"))
10015 (sha256
10016 (base32
10017 "1h0yijbf1yiwl50klyafy4ln99j8bib4kgbzviw7fc4y4mwv4sv9"))))
10018 (build-system haskell-build-system)
10019 (inputs `(("ghc-old-locale" ,ghc-old-locale)
10020 ("ghc-text" ,ghc-text)
10021 ("ghc-conduit" ,ghc-conduit)
10022 ("ghc-resourcet" ,ghc-resourcet)
10023 ("ghc-exceptions" ,ghc-exceptions)
10024 ("ghc-monad-control" ,ghc-monad-control)
10025 ("ghc-lifted-base" ,ghc-lifted-base)
10026 ("ghc-resource-pool" ,ghc-resource-pool)
10027 ("ghc-path-pieces" ,ghc-path-pieces)
10028 ("ghc-http-api-data" ,ghc-http-api-data)
10029 ("ghc-aeson" ,ghc-aeson)
10030 ("ghc-monad-logger" ,ghc-monad-logger)
10031 ("ghc-transformers-base" ,ghc-transformers-base)
10032 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
10033 ("ghc-unordered-containers" ,ghc-unordered-containers)
10034 ("ghc-vector" ,ghc-vector)
10035 ("ghc-attoparsec" ,ghc-attoparsec)
10036 ("ghc-haskell-src-meta" ,ghc-haskell-src-meta)
10037 ("ghc-blaze-html" ,ghc-blaze-html)
10038 ("ghc-blaze-markup" ,ghc-blaze-markup)
10039 ("ghc-silently" ,ghc-silently)
10040 ("ghc-fast-logger" ,ghc-fast-logger)
10041 ("ghc-scientific" ,ghc-scientific)
10042 ("ghc-tagged" ,ghc-tagged)
10043 ("ghc-void" ,ghc-void)))
10044 (native-inputs `(("ghc-hspec" ,ghc-hspec)))
10045 (home-page "https://www.yesodweb.com/book/persistent")
10046 (synopsis "Type-safe, multi-backend data serialization for Haskell")
10047 (description "This Haskell package allows Haskell programs to access data
10048 storage systems like PostgreSQL, SQLite, MySQL and MongoDB in a type-safe
10049 way.")
10050 (license license:expat)))
10051
10052 (define-public ghc-aeson-compat
10053 (package
10054 (name "ghc-aeson-compat")
10055 (version "0.3.8")
10056 (source
10057 (origin
10058 (method url-fetch)
10059 (uri (string-append "https://hackage.haskell.org/package/"
10060 "aeson-compat-" version "/"
10061 "aeson-compat-" version ".tar.gz"))
10062 (sha256
10063 (base32
10064 "0j4v13pgk21zy8hqkbx8hw0n05jdl17qphxz9rj4h333pr547r3i"))))
10065 (build-system haskell-build-system)
10066 (arguments `(#:tests? #f)) ; FIXME: Tests require QuickCheck >= 2.10
10067 (inputs `(("ghc-base-compat" ,ghc-base-compat)
10068 ("ghc-aeson" ,ghc-aeson)
10069 ("ghc-attoparsec" ,ghc-attoparsec)
10070 ("ghc-attoparsec" ,ghc-attoparsec-iso8601)
10071 ("ghc-exceptions" ,ghc-exceptions)
10072 ("ghc-hashable" ,ghc-hashable)
10073 ("ghc-scientific" ,ghc-scientific)
10074 ("ghc-text" ,ghc-text)
10075 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
10076 ("ghc-unordered-containers" ,ghc-unordered-containers)
10077 ("ghc-vector" ,ghc-vector)
10078 ("ghc-tagged" ,ghc-tagged)
10079 ("ghc-semigroups" ,ghc-semigroups)
10080 ("ghc-nats" ,ghc-nats)))
10081 (home-page "https://github.com/phadej/aeson-compat")
10082 (synopsis "Compatibility layer for ghc-aeson")
10083 (description "This Haskell package provides compatibility layer for
10084 ghc-aeson.")
10085 (license license:bsd-3)))
10086
10087 (define-public ghc-persistent-template
10088 (package
10089 (name "ghc-persistent-template")
10090 (version "2.5.4")
10091 (source
10092 (origin
10093 (method url-fetch)
10094 (uri (string-append "https://hackage.haskell.org/package/"
10095 "persistent-template-" version "/"
10096 "persistent-template-" version ".tar.gz"))
10097 (sha256
10098 (base32
10099 "008afcy7zbw7bzp9jww8gdldb51kfm0fg4p0x4xcp61gx4679bjc"))))
10100 (build-system haskell-build-system)
10101 (arguments
10102 `(#:cabal-revision
10103 ("2" "03qgwk32krldph3blw5agiqcpccr3649hajyn8wm9k71zz82dpn6")))
10104 (inputs `(("ghc-persistent" ,ghc-persistent)
10105 ("ghc-monad-control" ,ghc-monad-control)
10106 ("ghc-text" ,ghc-text)
10107 ("ghc-aeson" ,ghc-aeson)
10108 ("ghc-aeson-compat" ,ghc-aeson-compat)
10109 ("ghc-monad-logger" ,ghc-monad-logger)
10110 ("ghc-unordered-containers" ,ghc-unordered-containers)
10111 ("ghc-tagged" ,ghc-tagged)
10112 ("ghc-path-pieces" ,ghc-path-pieces)
10113 ("ghc-http-api-data" ,ghc-http-api-data)))
10114 (native-inputs `(("ghc-hspec" ,ghc-hspec)
10115 ("ghc-quickcheck" ,ghc-quickcheck)))
10116 (home-page "https://www.yesodweb.com/book/persistent")
10117 (synopsis "Type-safe, non-relational, multi-backend persistence")
10118 (description "This Haskell package provides interfaces and helper
10119 functions for the ghc-persistent package.")
10120 (license license:expat)))
10121
10122 (define-public ghc-unliftio-core
10123 (package
10124 (name "ghc-unliftio-core")
10125 (version "0.1.1.0")
10126 (source
10127 (origin
10128 (method url-fetch)
10129 (uri (string-append "https://hackage.haskell.org/package/"
10130 "unliftio-core-" version "/"
10131 "unliftio-core-" version ".tar.gz"))
10132 (sha256
10133 (base32
10134 "1193fplsjm1lcr05xwvkj1rsyzx74i755f6kw3ikmxbsv0bv0l3m"))))
10135 (build-system haskell-build-system)
10136 (arguments
10137 `(#:cabal-revision
10138 ("1" "16bjwcsaghqqmyi69rq65dn3ydifyfaabq3ns37apdm00mwqbcj2")))
10139 (home-page
10140 "https://github.com/fpco/unliftio/tree/master/unliftio-core#readme")
10141 (synopsis "The MonadUnliftIO typeclass for unlifting monads to IO")
10142 (description "This Haskell package provides the core @code{MonadUnliftIO}
10143 typeclass, instances for base and transformers, and basic utility
10144 functions.")
10145 (license license:expat)))
10146
10147 (define-public ghc-microlens
10148 (package
10149 (name "ghc-microlens")
10150 (version "0.4.9.1")
10151 (source
10152 (origin
10153 (method url-fetch)
10154 (uri (string-append "https://hackage.haskell.org/package/"
10155 "microlens-" version "/"
10156 "microlens-" version ".tar.gz"))
10157 (sha256
10158 (base32
10159 "0j2nzf0vpx2anvsrg2w0vy2z4jn3kkcs2n6glkzblhn1j9piqh51"))))
10160 (build-system haskell-build-system)
10161 (home-page
10162 "https://github.com/aelve/microlens")
10163 (synopsis "Provides a tiny lens Haskell library with no dependencies")
10164 (description "This Haskell package provides a lens library, just like
10165 @code{ghc-lens}, but smaller. It provides essential lenses and
10166 traversals (like @code{_1} and @code{_Just}), as well as ones which are simply
10167 nice to have (like @code{each}, @code{at}, and @code{ix}), and some
10168 combinators (like @code{failing} and @code{singular}), but everything else is
10169 stripped. As the result, this package has no dependencies.")
10170 (license license:bsd-3)))
10171
10172 (define-public ghc-microlens-th
10173 (package
10174 (name "ghc-microlens-th")
10175 (version "0.4.2.2")
10176 (source
10177 (origin
10178 (method url-fetch)
10179 (uri (string-append "https://hackage.haskell.org/package/"
10180 "microlens-th-" version "/"
10181 "microlens-th-" version ".tar.gz"))
10182 (sha256
10183 (base32
10184 "02nj7lnl61yffi3c6wn341arxhld5r0vj6nzcb5zmqjhnqsv8c05"))))
10185 (build-system haskell-build-system)
10186 (inputs `(("ghc-microlens" ,ghc-microlens)
10187 ("ghc-th-abstraction" ,ghc-th-abstraction)))
10188 (home-page
10189 "https://github.com/aelve/microlens")
10190 (synopsis "Automatic generation of record lenses for
10191 @code{ghc-microlens}")
10192 (description "This Haskell package lets you automatically generate lenses
10193 for data types; code was extracted from the lens package, and therefore
10194 generated lenses are fully compatible with ones generated by lens (and can be
10195 used both from lens and microlens).")
10196 (license license:bsd-3)))
10197
10198 (define-public ghc-unliftio
10199 (package
10200 (name "ghc-unliftio")
10201 (version "0.2.7.0")
10202 (source
10203 (origin
10204 (method url-fetch)
10205 (uri (string-append
10206 "https://hackage.haskell.org/package/unliftio/unliftio-"
10207 version
10208 ".tar.gz"))
10209 (sha256
10210 (base32
10211 "0qql93lq5w7qghl454cc3s1i8v1jb4h08n82fqkw0kli4g3g9njs"))))
10212 (build-system haskell-build-system)
10213 (arguments `(#:tests? #f)) ; FIXME: hspec-discover not in PATH
10214 (inputs
10215 `(("ghc-async" ,ghc-async)
10216 ("ghc-stm" ,ghc-stm)
10217 ("ghc-unliftio-core" ,ghc-unliftio-core)))
10218 (native-inputs `(("ghc-hspec" ,ghc-hspec)))
10219 (home-page "https://github.com/fpco/unliftio")
10220 (synopsis "Provides MonadUnliftIO typecplass for unlifting monads to
10221 IO (batteries included)")
10222 (description "This Haskell package provides the core @code{MonadUnliftIO}
10223 typeclass, a number of common instances, and a collection of common functions
10224 working with it.")
10225 (license license:expat)))
10226
10227 (define-public ghc-persistent-sqlite
10228 (package
10229 (name "ghc-persistent-sqlite")
10230 (version "2.8.2")
10231 (source
10232 (origin
10233 (method url-fetch)
10234 (uri (string-append "https://hackage.haskell.org/package/"
10235 "persistent-sqlite-" version "/"
10236 "persistent-sqlite-" version ".tar.gz"))
10237 (sha256
10238 (base32
10239 "1chbmvjz46smhgnzhha3bbkhys3fys6dip1jr4v7xp1jf78zbyp6"))))
10240 (build-system haskell-build-system)
10241 (inputs `(("ghc-persistent" ,ghc-persistent)
10242 ("ghc-unliftio-core" ,ghc-unliftio-core)
10243 ("ghc-aeson" ,ghc-aeson)
10244 ("ghc-conduit" ,ghc-conduit)
10245 ("ghc-monad-logger" ,ghc-monad-logger)
10246 ("ghc-microlens-th" ,ghc-microlens-th)
10247 ("ghc-resourcet" ,ghc-resourcet)
10248 ("ghc-old-locale" ,ghc-old-locale)
10249 ("ghc-resource-pool" ,ghc-resource-pool)
10250 ("ghc-unordered-containers" ,ghc-unordered-containers)))
10251 (native-inputs `(("ghc-hspec" ,ghc-hspec)
10252 ("ghc-persistent-template" ,ghc-persistent-template)
10253 ("ghc-temporary" ,ghc-temporary)
10254 ("ghc-text" ,ghc-text)))
10255 (home-page
10256 "https://www.yesodweb.com/book/persistent")
10257 (synopsis "Backend for the persistent library using sqlite3")
10258 (description "This Haskell package includes a thin sqlite3 wrapper based
10259 on the direct-sqlite package, as well as the entire C library, so there are no
10260 system dependencies.")
10261 (license license:expat)))
10262
10263 (define-public ghc-email-validate
10264 (package
10265 (name "ghc-email-validate")
10266 (version "2.3.2.6")
10267 (source
10268 (origin
10269 (method url-fetch)
10270 (uri (string-append
10271 "https://hackage.haskell.org/package/"
10272 "email-validate/email-validate-"
10273 version
10274 ".tar.gz"))
10275 (sha256
10276 (base32
10277 "0chgylvc8xmhp933rdbmpg5sv4y7yg2h6kbf0ip1dzmbd5p55pa5"))))
10278 (build-system haskell-build-system)
10279 (inputs
10280 `(("ghc-attoparsec" ,ghc-attoparsec)
10281 ("ghc-hspec" ,ghc-hspec)
10282 ("ghc-quickcheck" ,ghc-quickcheck)
10283 ("ghc-doctest" ,ghc-doctest)))
10284 (home-page
10285 "https://github.com/Porges/email-validate-hs")
10286 (synopsis "Email address validator for Haskell")
10287 (description
10288 "This Haskell package provides a validator that can validate an email
10289 address string against RFC 5322.")
10290 (license license:bsd-3)))
10291
10292 (define-public ghc-bytes
10293 (package
10294 (name "ghc-bytes")
10295 (version "0.15.5")
10296 (source
10297 (origin
10298 (method url-fetch)
10299 (uri
10300 (string-append "https://hackage.haskell.org/package/bytes-"
10301 version "/bytes-"
10302 version ".tar.gz"))
10303 (file-name (string-append name "-" version ".tar.gz"))
10304 (sha256
10305 (base32
10306 "063il2vrn0p88r9gzndh4ijs0mxj37khkc9ym9bqdsv7ngk3b683"))))
10307 (build-system haskell-build-system)
10308 (inputs `(("ghc-cereal" ,ghc-cereal)
10309 ("cabal-doctest" ,cabal-doctest)
10310 ("ghc-doctest" ,ghc-doctest)
10311 ("ghc-scientific" ,ghc-scientific)
10312 ("ghc-text" ,ghc-text)
10313 ("ghc-transformers-compat" ,ghc-transformers-compat)
10314 ("ghc-unordered-containers" ,ghc-unordered-containers)
10315 ("ghc-void" ,ghc-void)
10316 ("ghc-vector" ,ghc-vector)))
10317 (synopsis "Serialization between @code{binary} and @code{cereal}")
10318 (description "This package provides a simple compatibility shim that lets
10319 you work with both @code{binary} and @code{cereal} with one chunk of
10320 serialization code.")
10321 (home-page "https://hackage.haskell.org/package/bytes")
10322 (license license:bsd-3)))
10323
10324 (define-public ghc-disk-free-space
10325 (package
10326 (name "ghc-disk-free-space")
10327 (version "0.1.0.1")
10328 (source
10329 (origin
10330 (method url-fetch)
10331 (uri (string-append "https://hackage.haskell.org/package/"
10332 "disk-free-space/disk-free-space-"
10333 version ".tar.gz"))
10334 (sha256
10335 (base32
10336 "07rqj8k1vh3cykq9yidpjxhgh1f7vgmjs6y1nv5kq2217ff4yypi"))))
10337 (build-system haskell-build-system)
10338 (home-page "https://github.com/redneb/disk-free-space")
10339 (synopsis "Retrieve information about disk space usage")
10340 (description "A cross-platform library for retrieving information about
10341 disk space usage.")
10342 (license license:bsd-3)))
10343
10344 (define-public ghc-xdg-basedir
10345 (package
10346 (name "ghc-xdg-basedir")
10347 (version "0.2.2")
10348 (source
10349 (origin
10350 (method url-fetch)
10351 (uri (string-append
10352 "https://hackage.haskell.org/package/xdg-basedir/"
10353 "xdg-basedir-" version ".tar.gz"))
10354 (sha256
10355 (base32
10356 "0azlzaxp2dn4l1nr7shsxah2magk1szf6fx0mv75az00qsjw6qg4"))))
10357 (build-system haskell-build-system)
10358 (home-page "http://github.com/willdonnelly/xdg-basedir")
10359 (synopsis "XDG Base Directory library for Haskell")
10360 (description "This package provides a library implementing the XDG Base Directory spec.")
10361 (license license:bsd-3)))
10362
10363 (define-public ghc-errorcall-eq-instance
10364 (package
10365 (name "ghc-errorcall-eq-instance")
10366 (version "0.3.0")
10367 (source
10368 (origin
10369 (method url-fetch)
10370 (uri (string-append "https://hackage.haskell.org/package/"
10371 "errorcall-eq-instance/errorcall-eq-instance-"
10372 version ".tar.gz"))
10373 (sha256
10374 (base32
10375 "0hqw82m8bbrxy5vgdwb83bhzdx070ibqrm9rshyja7cb808ahijm"))))
10376 (build-system haskell-build-system)
10377 (inputs
10378 `(("ghc-base-orphans" ,ghc-base-orphans)))
10379 (native-inputs
10380 `(("ghc-quickcheck" ,ghc-quickcheck)
10381 ("ghc-hspec" ,ghc-hspec)
10382 ("hspec-discover" ,hspec-discover)))
10383 (home-page "http://hackage.haskell.org/package/errorcall-eq-instance")
10384 (synopsis "Orphan Eq instance for ErrorCall")
10385 (description
10386 "Prior to @code{base-4.7.0.0} there was no @code{Eq} instance for @code{ErrorCall}.
10387 This package provides an orphan instance.")
10388 (license license:expat)))
10389
10390 (define-public ghc-missingh
10391 (package
10392 (name "ghc-missingh")
10393 (version "1.4.0.1")
10394 (source
10395 (origin
10396 (method url-fetch)
10397 (uri (string-append "https://hackage.haskell.org/package/MissingH/"
10398 "MissingH-" version ".tar.gz"))
10399 (sha256
10400 (base32
10401 "0wcvgrmav480w7nf4bl14yi0jq2yzanysxwzwas9hpb28vyjlgr8"))))
10402 (build-system haskell-build-system)
10403 ;; Tests require the unmaintained testpack package, which depends on the
10404 ;; outdated QuickCheck version 2.7, which can no longer be built with
10405 ;; recent versions of GHC and Haskell libraries.
10406 (arguments '(#:tests? #f))
10407 (inputs
10408 `(("ghc-network" ,ghc-network)
10409 ("ghc-parsec" ,ghc-parsec)
10410 ("ghc-hunit" ,ghc-hunit)
10411 ("ghc-regex-compat" ,ghc-regex-compat)
10412 ("ghc-hslogger" ,ghc-hslogger)
10413 ("ghc-random" ,ghc-random)
10414 ("ghc-old-time" ,ghc-old-time)
10415 ("ghc-old-locale" ,ghc-old-locale)))
10416 (native-inputs
10417 `(("ghc-errorcall-eq-instance" ,ghc-errorcall-eq-instance)
10418 ("ghc-quickcheck" ,ghc-quickcheck)
10419 ("ghc-hunit" ,ghc-hunit)))
10420 (home-page "http://software.complete.org/missingh")
10421 (synopsis "Large utility library")
10422 (description
10423 "MissingH is a library of all sorts of utility functions for Haskell
10424 programmers. It is written in pure Haskell and thus should be extremely
10425 portable and easy to use.")
10426 (license license:bsd-3)))
10427
10428 (define-public ghc-intervalmap
10429 (package
10430 (name "ghc-intervalmap")
10431 (version "0.6.0.0")
10432 (source
10433 (origin
10434 (method url-fetch)
10435 (uri (string-append "https://hackage.haskell.org/package/IntervalMap/"
10436 "IntervalMap-" version ".tar.gz"))
10437 (sha256
10438 (base32
10439 "06hin9wf1by8aqa7820fsi2339bh82184frkwz3jsb9sqa0hszcg"))))
10440 (build-system haskell-build-system)
10441 (native-inputs
10442 `(("ghc-quickcheck" ,ghc-quickcheck)))
10443 (home-page "http://www.chr-breitkopf.de/comp/IntervalMap")
10444 (synopsis "Containers for intervals, with efficient search")
10445 (description
10446 "This package provides ordered containers of intervals, with efficient
10447 search for all keys containing a point or overlapping an interval. See the
10448 example code on the home page for a quick introduction.")
10449 (license license:bsd-3)))
10450
10451 (define-public ghc-operational
10452 (package
10453 (name "ghc-operational")
10454 (version "0.2.3.5")
10455 (source
10456 (origin
10457 (method url-fetch)
10458 (uri (string-append "https://hackage.haskell.org/package/operational/"
10459 "operational-" version ".tar.gz"))
10460 (sha256
10461 (base32
10462 "1x2abg2q9d26h1vzj40r6k7k3gqgappbs4g9d853vvg77837km4i"))))
10463 (build-system haskell-build-system)
10464 (inputs
10465 `(("ghc-random" ,ghc-random)))
10466 (home-page "http://wiki.haskell.org/Operational")
10467 (synopsis "Implementation of difficult monads made easy with operational semantics")
10468 (description
10469 "This library makes it easy to implement monads with tricky control
10470 flow. This is useful for: writing web applications in a sequential style,
10471 programming games with a uniform interface for human and AI players and easy
10472 replay capababilities, implementing fast parser monads, designing monadic
10473 DSLs, etc.")
10474 (license license:bsd-3)))
10475
10476 (define-public ghc-gtk2hs-buildtools
10477 (package
10478 (name "ghc-gtk2hs-buildtools")
10479 (version "0.13.4.0")
10480 (source
10481 (origin
10482 (method url-fetch)
10483 (uri (string-append "https://hackage.haskell.org/package/"
10484 "gtk2hs-buildtools/gtk2hs-buildtools-"
10485 version ".tar.gz"))
10486 (sha256
10487 (base32
10488 "0yg6xmylgpylmnh5g33qwwn5x9bqckdvvv4czqzd9vrr12lnnghg"))))
10489 (build-system haskell-build-system)
10490 (inputs
10491 `(("ghc-random" ,ghc-random)
10492 ("ghc-hashtables" ,ghc-hashtables)))
10493 (native-inputs
10494 `(("ghc-alex" ,ghc-alex)
10495 ("ghc-happy" ,ghc-happy)))
10496 (home-page "http://projects.haskell.org/gtk2hs/")
10497 (synopsis "Tools to build the Gtk2Hs suite of user interface libraries")
10498 (description
10499 "This package provides a set of helper programs necessary to build the
10500 Gtk2Hs suite of libraries. These tools include a modified c2hs binding tool
10501 that is used to generate FFI declarations, a tool to build a type hierarchy
10502 that mirrors the C type hierarchy of GObjects found in glib, and a generator
10503 for signal declarations that are used to call back from C to Haskell. These
10504 tools are not needed to actually run Gtk2Hs programs.")
10505 (license license:gpl2)))
10506
10507 (define-public ghc-chart
10508 (package
10509 (name "ghc-chart")
10510 (version "1.9")
10511 (source
10512 (origin
10513 (method url-fetch)
10514 (uri (string-append "https://hackage.haskell.org/package/Chart/"
10515 "Chart-" version ".tar.gz"))
10516 (sha256
10517 (base32
10518 "1f5azj17y8xsb3gjhf7gg1gnnlq12rxkmfjmgcly314d7vghs05z"))))
10519 (build-system haskell-build-system)
10520 (inputs
10521 `(("ghc-old-locale" ,ghc-old-locale)
10522 ("ghc-lens" ,ghc-lens)
10523 ("ghc-colour" ,ghc-colour)
10524 ("ghc-data-default-class" ,ghc-data-default-class)
10525 ("ghc-operational" ,ghc-operational)
10526 ("ghc-vector" ,ghc-vector)))
10527 (home-page "https://github.com/timbod7/haskell-chart/wiki")
10528 (synopsis "Library for generating 2D charts and plots")
10529 (description
10530 "This package provides a library for generating 2D charts and plots, with
10531 backends provided by the @code{Cairo} and @code{Diagrams} libraries.")
10532 (license license:bsd-3)))
10533
10534 (define-public ghc-wcwidth
10535 (package
10536 (name "ghc-wcwidth")
10537 (version "0.0.2")
10538 (source
10539 (origin
10540 (method url-fetch)
10541 (uri (string-append "https://hackage.haskell.org/package/wcwidth/wcwidth-"
10542 version ".tar.gz"))
10543 (sha256
10544 (base32
10545 "1n1fq7v64b59ajf5g50iqj9sa34wm7s2j3viay0kxpmvlcv8gipz"))))
10546 (build-system haskell-build-system)
10547 (inputs
10548 `(("ghc-setlocale" ,ghc-setlocale)
10549 ("ghc-utf8-string" ,ghc-utf8-string)
10550 ("ghc-attoparsec" ,ghc-attoparsec)))
10551 (home-page "https://github.com/solidsnack/wcwidth/")
10552 (synopsis "Haskell bindings to wcwidth")
10553 (description "This package provides Haskell bindings to your system's
10554 native wcwidth and a command line tool to examine the widths assigned by it.
10555 The command line tool can compile a width table to Haskell code that assigns
10556 widths to the Char type.")
10557 (license license:bsd-3)))
10558
10559 (define-public ghc-wcwidth-bootstrap
10560 (package
10561 (inherit ghc-wcwidth)
10562 (name "ghc-wcwidth-bootstrap")
10563 (inputs
10564 `(("ghc-setlocale" ,ghc-setlocale)
10565 ("ghc-utf8-string" ,ghc-utf8-string)
10566 ("ghc-attoparsec" ,ghc-attoparsec-bootstrap)))
10567 (properties '(hidden? #t))))
10568
10569 (define-public ghc-rio
10570 (package
10571 (name "ghc-rio")
10572 (version "0.1.5.0")
10573 (source
10574 (origin
10575 (method url-fetch)
10576 (uri (string-append
10577 "https://hackage.haskell.org/package/rio/rio-"
10578 version ".tar.gz"))
10579 (sha256
10580 (base32
10581 "064h8a4hp53a479d3ak0vmqbx8hi0cpg7zn4wp23rjy26dka8p7g"))))
10582 (build-system haskell-build-system)
10583 (inputs
10584 `(("ghc-exceptions" ,ghc-exceptions)
10585 ("ghc-hashable" ,ghc-hashable)
10586 ("ghc-microlens" ,ghc-microlens)
10587 ("ghc-primitive" ,ghc-primitive)
10588 ("ghc-text" ,ghc-text)
10589 ("ghc-typed-process" ,ghc-typed-process)
10590 ("ghc-unliftio" ,ghc-unliftio)
10591 ("ghc-unordered-containers" ,ghc-unordered-containers)
10592 ("ghc-vector" ,ghc-vector)))
10593 (native-inputs
10594 `(("ghc-hspec" ,ghc-hspec)
10595 ("hspec-discover" ,hspec-discover)))
10596 (home-page "https://github.com/commercialhaskell/rio#readme")
10597 (synopsis "A standard library for Haskell")
10598 (description "This package works as a prelude replacement for Haskell,
10599 providing more functionality and types out of the box than the standard
10600 prelude (such as common data types like @code{ByteString} and
10601 @code{Text}), as well as removing common ``gotchas'', like partial
10602 functions and lazy I/O. The guiding principle here is:
10603 @itemize
10604 @item If something is safe to use in general and has no expected naming
10605 conflicts, expose it.
10606 @item If something should not always be used, or has naming conflicts,
10607 expose it from another module in the hierarchy.
10608 @end itemize")
10609 (license license:expat)))
10610
10611 (define-public ghc-cairo
10612 (package
10613 (name "ghc-cairo")
10614 (version "0.13.5.0")
10615 (source
10616 (origin
10617 (method url-fetch)
10618 (uri (string-append "https://hackage.haskell.org/package/cairo/"
10619 "cairo-" version ".tar.gz"))
10620 (sha256
10621 (base32
10622 "1wxylv4d8120ri0vgar168ikqa9m6533ipdwi38qlmxmw20ws2j2"))))
10623 (build-system haskell-build-system)
10624 (arguments
10625 `(#:modules ((guix build haskell-build-system)
10626 (guix build utils)
10627 (ice-9 match)
10628 (srfi srfi-26))
10629 #:phases
10630 (modify-phases %standard-phases
10631 ;; FIXME: This is a copy of the standard configure phase with a tiny
10632 ;; difference: this package needs the -package-db flag to be passed
10633 ;; to "runhaskell" in addition to the "configure" action, because it
10634 ;; depends on gtk2hs-buildtools, which provide setup hooks. Without
10635 ;; this option the Setup.hs file cannot be evaluated. The
10636 ;; haskell-build-system should be changed to pass "-package-db" to
10637 ;; "runhaskell" in any case.
10638 (replace 'configure
10639 (lambda* (#:key outputs inputs tests? (configure-flags '())
10640 #:allow-other-keys)
10641 (let* ((out (assoc-ref outputs "out"))
10642 (name-version (strip-store-file-name out))
10643 (input-dirs (match inputs
10644 (((_ . dir) ...)
10645 dir)
10646 (_ '())))
10647 (ghc-path (getenv "GHC_PACKAGE_PATH"))
10648 (params (append `(,(string-append "--prefix=" out))
10649 `(,(string-append "--libdir=" out "/lib"))
10650 `(,(string-append "--bindir=" out "/bin"))
10651 `(,(string-append
10652 "--docdir=" out
10653 "/share/doc/" name-version))
10654 '("--libsubdir=$compiler/$pkg-$version")
10655 '("--package-db=../package.conf.d")
10656 '("--global")
10657 `(,@(map
10658 (cut string-append "--extra-include-dirs=" <>)
10659 (search-path-as-list '("include") input-dirs)))
10660 `(,@(map
10661 (cut string-append "--extra-lib-dirs=" <>)
10662 (search-path-as-list '("lib") input-dirs)))
10663 (if tests?
10664 '("--enable-tests")
10665 '())
10666 configure-flags)))
10667 (unsetenv "GHC_PACKAGE_PATH")
10668 (apply invoke "runhaskell" "-package-db=../package.conf.d"
10669 "Setup.hs" "configure" params)
10670 (setenv "GHC_PACKAGE_PATH" ghc-path)
10671 #t))))))
10672 (inputs
10673 `(("ghc-utf8-string" ,ghc-utf8-string)
10674 ("ghc-text" ,ghc-text)
10675 ("cairo" ,cairo)))
10676 (native-inputs
10677 `(("ghc-gtk2hs-buildtools" ,ghc-gtk2hs-buildtools)
10678 ("pkg-config" ,pkg-config)))
10679 (home-page "http://projects.haskell.org/gtk2hs/")
10680 (synopsis "Haskell bindings to the Cairo vector graphics library")
10681 (description
10682 "Cairo is a library to render high quality vector graphics. There exist
10683 various backends that allows rendering to Gtk windows, PDF, PS, PNG and SVG
10684 documents, amongst others.")
10685 (license license:bsd-3)))
10686
10687 (define-public ghc-chart-cairo
10688 (package
10689 (name "ghc-chart-cairo")
10690 (version "1.9")
10691 (source
10692 (origin
10693 (method url-fetch)
10694 (uri (string-append "https://hackage.haskell.org/package/Chart-cairo/"
10695 "Chart-cairo-" version ".tar.gz"))
10696 (sha256
10697 (base32
10698 "0iany6lfyfb1cw0pxfs5aw5k0a6x41m6ql9ad9w59biwdckbsyqr"))))
10699 (build-system haskell-build-system)
10700 (inputs
10701 `(("ghc-old-locale" ,ghc-old-locale)
10702 ("ghc-cairo" ,ghc-cairo)
10703 ("ghc-colour" ,ghc-colour)
10704 ("ghc-data-default-class" ,ghc-data-default-class)
10705 ("ghc-operational" ,ghc-operational)
10706 ("ghc-lens" ,ghc-lens)
10707 ("ghc-chart" ,ghc-chart)))
10708 (home-page "https://github.com/timbod7/haskell-chart/wiki")
10709 (synopsis "Cairo backend for Charts")
10710 (description "This package provides a Cairo vector graphics rendering
10711 backend for the Charts library.")
10712 (license license:bsd-3)))
10713
10714 (define-public ghc-atomic-write
10715 (package
10716 (name "ghc-atomic-write")
10717 (version "0.2.0.5")
10718 (source
10719 (origin
10720 (method url-fetch)
10721 (uri (string-append
10722 "https://hackage.haskell.org/package/atomic-write/atomic-write-"
10723 version
10724 ".tar.gz"))
10725 (sha256
10726 (base32
10727 "1iaq0hprxcv0sl1sgwcgmm87zraf738va1bciwnx2jkk3k1v9iyv"))))
10728 (build-system haskell-build-system)
10729 (inputs
10730 `(("ghc-temporary" ,ghc-temporary)
10731 ("ghc-unix-compat" ,ghc-unix-compat)
10732 ("ghc-text" ,ghc-text)))
10733 (native-inputs
10734 `(("ghc-temporary" ,ghc-temporary)
10735 ("ghc-unix-compat" ,ghc-unix-compat)
10736 ("ghc-text" ,ghc-text)
10737 ("ghc-hspec" ,ghc-hspec)
10738 ("hspec-discover" ,hspec-discover)))
10739 (home-page "https://github.com/stackbuilders/atomic-write")
10740 (synopsis "Atomically write to a file")
10741 (description
10742 "Atomically write to a file on POSIX-compliant systems while preserving
10743 permissions. @code{mv} is an atomic operation. This makes it simple to write
10744 to a file atomically just by using the @code{mv} operation. However, this
10745 will destroy the permissions on the original file. This library preserves
10746 permissions while atomically writing to a file.")
10747 (license license:expat)))
10748
10749 (define-public ghc-cereal-conduit
10750 (package
10751 (name "ghc-cereal-conduit")
10752 (version "0.8.0")
10753 (source
10754 (origin
10755 (method url-fetch)
10756 (uri (string-append "https://hackage.haskell.org/package/"
10757 "cereal-conduit/cereal-conduit-"
10758 version ".tar.gz"))
10759 (sha256
10760 (base32
10761 "1srr7agvgfw78q5s1npjq5sgynvhjgllpihiv37ylkwqm4c4ap6r"))))
10762 (build-system haskell-build-system)
10763 (inputs
10764 `(("ghc-conduit" ,ghc-conduit)
10765 ("ghc-resourcet" ,ghc-resourcet)
10766 ("ghc-cereal" ,ghc-cereal)))
10767 (native-inputs
10768 `(("ghc-hunit" ,ghc-hunit)))
10769 (home-page "https://github.com/snoyberg/conduit")
10770 (synopsis "Turn Data.Serialize Gets and Puts into Sources, Sinks, and Conduits")
10771 (description
10772 "This package turn @code{Data.Serialize} @code{Gets} and @code{Puts} into
10773 @code{Sources}, @code{Sinks}, and @code{Conduits}.")
10774 (license license:bsd-3)))
10775
10776 (define-public ghc-lzma
10777 (package
10778 (name "ghc-lzma")
10779 (version "0.0.0.3")
10780 (source
10781 (origin
10782 (method url-fetch)
10783 (uri (string-append "https://hackage.haskell.org/package/lzma/"
10784 "lzma-" version ".tar.gz"))
10785 (sha256
10786 (base32
10787 "0i416gqi8j55nd1pqbkxvf3f6hn6fjys6gq98lkkxphva71j30xg"))))
10788 (build-system haskell-build-system)
10789 (arguments
10790 '(#:tests? #f ; requires older versions of QuickCheck and tasty.
10791 #:cabal-revision
10792 ("3" "1sify6gnsalyp6dakfzi0mdy5jcz2kcp9jsdsgkmxd40nfzgd44m")))
10793 (native-inputs
10794 `(("ghc-hunit" ,ghc-hunit)
10795 ("ghc-quickcheck" ,ghc-quickcheck)
10796 ("ghc-tasty" ,ghc-tasty)
10797 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
10798 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
10799 (home-page "https://github.com/hvr/lzma")
10800 (synopsis "LZMA/XZ compression and decompression")
10801 (description
10802 "This package provides a pure interface for compressing and
10803 decompressing LZMA streams of data represented as lazy @code{ByteString}s. A
10804 monadic incremental interface is provided as well.")
10805 (license license:bsd-3)))
10806
10807 (define-public ghc-stm-conduit
10808 (package
10809 (name "ghc-stm-conduit")
10810 (version "4.0.0")
10811 (source
10812 (origin
10813 (method url-fetch)
10814 (uri (string-append "https://hackage.haskell.org/package/stm-conduit/"
10815 "stm-conduit-" version ".tar.gz"))
10816 (sha256
10817 (base32
10818 "0paapljn7nqfzrx889y0n8sszci38mdiaxkgr0bb00ph9246rr7z"))))
10819 (build-system haskell-build-system)
10820 (inputs
10821 `(("ghc-stm" ,ghc-stm)
10822 ("ghc-stm-chans" ,ghc-stm-chans)
10823 ("ghc-cereal" ,ghc-cereal)
10824 ("ghc-cereal-conduit" ,ghc-cereal-conduit)
10825 ("ghc-conduit" ,ghc-conduit)
10826 ("ghc-conduit-extra" ,ghc-conduit-extra)
10827 ("ghc-exceptions" ,ghc-exceptions)
10828 ("ghc-resourcet" ,ghc-resourcet)
10829 ("ghc-async" ,ghc-async)
10830 ("ghc-monad-loops" ,ghc-monad-loops)
10831 ("ghc-unliftio" ,ghc-unliftio)))
10832 (native-inputs
10833 `(("ghc-doctest" ,ghc-doctest)
10834 ("ghc-quickcheck" ,ghc-quickcheck)
10835 ("ghc-hunit" ,ghc-hunit)
10836 ("ghc-test-framework" ,ghc-test-framework)
10837 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
10838 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
10839 (home-page "https://github.com/cgaebel/stm-conduit")
10840 (synopsis "Introduces conduits to channels and promotes using conduits concurrently")
10841 (description
10842 "This package provides two simple conduit wrappers around STM channels: a
10843 source and a sink.")
10844 (license license:bsd-3)))
10845
10846 (define-public ghc-bindings-dsl
10847 (package
10848 (name "ghc-bindings-dsl")
10849 (version "1.0.25")
10850 (source
10851 (origin
10852 (method url-fetch)
10853 (uri (string-append "https://hackage.haskell.org/package/bindings-DSL/"
10854 "bindings-DSL-" version ".tar.gz"))
10855 (sha256
10856 (base32
10857 "0kqrd78nspl3lk4a0fqn47d8dirjg3b24dkvkigcrlb81hw35pk3"))))
10858 (build-system haskell-build-system)
10859 (home-page "https://github.com/jwiegley/bindings-dsl/wiki")
10860 (synopsis "FFI domain specific language, on top of hsc2hs")
10861 (description
10862 "This is a set of macros to be used when writing Haskell FFI. They were
10863 designed to be able to fully describe C interfaces, so that @code{hsc2hs} can
10864 extract from them all Haskell code needed to mimic such interfaces. All
10865 Haskell names used are automatically derived from C names, structures are
10866 mapped to Haskell instances of @code{Storable}, and there are also macros you
10867 can use with C code to help write bindings to inline functions or macro
10868 functions.")
10869 (license license:bsd-3)))
10870
10871 (define-public ghc-lzma-conduit
10872 (package
10873 (name "ghc-lzma-conduit")
10874 (version "1.2.1")
10875 (source
10876 (origin
10877 (method url-fetch)
10878 (uri (string-append "https://hackage.haskell.org/package/lzma-conduit/"
10879 "lzma-conduit-" version ".tar.gz"))
10880 (sha256
10881 (base32
10882 "0hm72da7xk9l3zxjh274yg444vf405djxqbkf3q3p2qhicmxlmg9"))))
10883 (build-system haskell-build-system)
10884 (inputs
10885 `(("ghc-conduit" ,ghc-conduit)
10886 ("ghc-lzma" ,ghc-lzma)
10887 ("ghc-resourcet" ,ghc-resourcet)))
10888 (native-inputs
10889 `(("ghc-base-compat" ,ghc-base-compat)
10890 ("ghc-test-framework" ,ghc-test-framework)
10891 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
10892 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
10893 ("ghc-hunit" ,ghc-hunit)
10894 ("ghc-quickcheck" ,ghc-quickcheck)))
10895 (home-page "https://github.com/alphaHeavy/lzma-conduit")
10896 (synopsis "Conduit interface for lzma/xz compression")
10897 (description
10898 "This package provides a @code{Conduit} interface for the LZMA
10899 compression algorithm used in the @code{.xz} file format.")
10900 (license license:bsd-3)))
10901
10902 (define-public ghc-bzlib-conduit
10903 (package
10904 (name "ghc-bzlib-conduit")
10905 (version "0.3.0.1")
10906 (source
10907 (origin
10908 (method url-fetch)
10909 (uri (string-append "https://hackage.haskell.org/package/bzlib-conduit/"
10910 "bzlib-conduit-" version ".tar.gz"))
10911 (sha256
10912 (base32
10913 "0fd2hnr782s7qgipazg2yxwia9qqhkvm9bcm90773c3zkxa13n23"))))
10914 (build-system haskell-build-system)
10915 (inputs
10916 `(("ghc-bindings-dsl" ,ghc-bindings-dsl)
10917 ("ghc-conduit" ,ghc-conduit)
10918 ("ghc-data-default-class" ,ghc-data-default-class)
10919 ("ghc-resourcet" ,ghc-resourcet)))
10920 (native-inputs
10921 `(("ghc-hspec" ,ghc-hspec)
10922 ("ghc-random" ,ghc-random)))
10923 (home-page "https://github.com/snoyberg/bzlib-conduit")
10924 (synopsis "Streaming compression/decompression via conduits")
10925 (description
10926 "This package provides Haskell bindings to bzlib and Conduit support for
10927 streaming compression and decompression.")
10928 (license license:bsd-3)))
10929
10930 (define-public ghc-pqueue
10931 (package
10932 (name "ghc-pqueue")
10933 (version "1.4.1.1")
10934 (source
10935 (origin
10936 (method url-fetch)
10937 (uri (string-append "https://hackage.haskell.org/package/"
10938 "pqueue/pqueue-" version ".tar.gz"))
10939 (sha256
10940 (base32
10941 "1zvwm1zcqqq5n101s1brjhgbay8rf9fviq6gxbplf40i63m57p1x"))))
10942 (build-system haskell-build-system)
10943 (native-inputs
10944 `(("ghc-quickcheck" ,ghc-quickcheck)))
10945 (home-page "https://hackage.haskell.org/package/pqueue")
10946 (synopsis "Reliable, persistent, fast priority queues")
10947 (description
10948 "This package provides a fast, reliable priority queue implementation
10949 based on a binomial heap.")
10950 (license license:bsd-3)))
10951
10952 (define-public ghc-conduit-algorithms
10953 (package
10954 (name "ghc-conduit-algorithms")
10955 (version "0.0.8.1")
10956 (source
10957 (origin
10958 (method url-fetch)
10959 (uri (string-append "https://hackage.haskell.org/package/"
10960 "conduit-algorithms/conduit-algorithms-"
10961 version ".tar.gz"))
10962 (sha256
10963 (base32
10964 "07gx2q3d1bbfw14q41rmqg0i4m018pci10lswc0k1ij6lw7sb9fd"))))
10965 (build-system haskell-build-system)
10966 (inputs
10967 `(("ghc-async" ,ghc-async)
10968 ("ghc-bzlib-conduit" ,ghc-bzlib-conduit)
10969 ("ghc-conduit" ,ghc-conduit)
10970 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
10971 ("ghc-conduit-extra" ,ghc-conduit-extra)
10972 ("ghc-exceptions" ,ghc-exceptions)
10973 ("ghc-lzma-conduit" ,ghc-lzma-conduit)
10974 ("ghc-monad-control" ,ghc-monad-control)
10975 ("ghc-pqueue" ,ghc-pqueue)
10976 ("ghc-resourcet" ,ghc-resourcet)
10977 ("ghc-stm" ,ghc-stm)
10978 ("ghc-stm-conduit" ,ghc-stm-conduit)
10979 ("ghc-streaming-commons" ,ghc-streaming-commons)
10980 ("ghc-unliftio-core" ,ghc-unliftio-core)
10981 ("ghc-vector" ,ghc-vector)))
10982 (native-inputs
10983 `(("ghc-hunit" ,ghc-hunit)
10984 ("ghc-test-framework" ,ghc-test-framework)
10985 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
10986 ("ghc-test-framework-th" ,ghc-test-framework-th)))
10987 (home-page "https://github.com/luispedro/conduit-algorithms#readme")
10988 (synopsis "Conduit-based algorithms")
10989 (description
10990 "This package provides algorithms on @code{Conduits}, including higher
10991 level asynchronous processing and some other utilities.")
10992 (license license:expat)))
10993
10994 (define-public ghc-interpolate
10995 (package
10996 (name "ghc-interpolate")
10997 (version "0.2.0")
10998 (source
10999 (origin
11000 (method url-fetch)
11001 (uri (string-append "https://hackage.haskell.org/package/interpolate/"
11002 "interpolate-" version ".tar.gz"))
11003 (sha256
11004 (base32
11005 "1gkaj98yz363v38fv78sqby236mp8yqwqcilx7kr2b9z0w3204bf"))))
11006 (build-system haskell-build-system)
11007 (inputs
11008 `(("ghc-haskell-src-meta" ,ghc-haskell-src-meta)))
11009 (native-inputs
11010 `(("ghc-base-compat" ,ghc-base-compat)
11011 ("ghc-hspec" ,ghc-hspec)
11012 ("ghc-quickcheck" ,ghc-quickcheck)
11013 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
11014 ("ghc-text" ,ghc-text)
11015 ("hspec-discover" ,hspec-discover)))
11016 (home-page "https://github.com/sol/interpolate")
11017 (synopsis "String interpolation library")
11018 (description "This package provides a string interpolation library for
11019 Haskell.")
11020 (license license:expat)))
11021
11022 (define-public ghc-hpack
11023 (package
11024 (name "ghc-hpack")
11025 (version "0.28.2")
11026 (source
11027 (origin
11028 (method url-fetch)
11029 (uri (string-append "https://hackage.haskell.org/package/hpack/"
11030 "hpack-" version ".tar.gz"))
11031 (sha256
11032 (base32
11033 "18w0h76jdp3mk9vin8da9iz3cwhcxmw787xy8wlh8bxcpcr16q5r"))))
11034 (build-system haskell-build-system)
11035 (inputs
11036 `(("ghc-aeson" ,ghc-aeson)
11037 ("ghc-bifunctors" ,ghc-bifunctors)
11038 ("ghc-cryptonite" ,ghc-cryptonite)
11039 ("ghc-glob" ,ghc-glob)
11040 ("ghc-http-client" ,ghc-http-client)
11041 ("ghc-http-client-tls" ,ghc-http-client-tls)
11042 ("ghc-http-types" ,ghc-http-types)
11043 ("ghc-scientific" ,ghc-scientific)
11044 ("ghc-text" ,ghc-text)
11045 ("ghc-unordered-containers" ,ghc-unordered-containers)
11046 ("ghc-vector" ,ghc-vector)
11047 ("ghc-yaml" ,ghc-yaml)))
11048 (native-inputs
11049 `(("ghc-hspec" ,ghc-hspec)
11050 ("ghc-hunit" ,ghc-hunit)
11051 ("ghc-interpolate" ,ghc-interpolate)
11052 ("ghc-mockery" ,ghc-mockery)
11053 ("ghc-quickcheck" ,ghc-quickcheck)
11054 ("ghc-temporary" ,ghc-temporary)
11055 ("hspec-discover" ,hspec-discover)))
11056 (home-page "https://github.com/sol/hpack")
11057 (synopsis "Tools for an alternative Haskell package format")
11058 (description
11059 "Hpack is a format for Haskell packages. It is an alternative to the
11060 Cabal package format and follows different design principles. Hpack packages
11061 are described in a file named @code{package.yaml}. Both @code{cabal2nix} and
11062 @code{stack} support @code{package.yaml} natively. For other build tools the
11063 @code{hpack} executable can be used to generate a @code{.cabal} file from
11064 @code{package.yaml}.")
11065 (license license:expat)))
11066
11067 (define-public ghc-raw-strings-qq
11068 (package
11069 (name "ghc-raw-strings-qq")
11070 (version "1.1")
11071 (source
11072 (origin
11073 (method url-fetch)
11074 (uri (string-append "https://hackage.haskell.org/package/"
11075 "raw-strings-qq/raw-strings-qq-"
11076 version ".tar.gz"))
11077 (sha256
11078 (base32
11079 "1lxy1wy3awf52968iy5y9r5z4qgnn2sxkdrh7js3m9gadb11w09f"))))
11080 (build-system haskell-build-system)
11081 (native-inputs `(("ghc-hunit" ,ghc-hunit)))
11082 (home-page "https://github.com/23Skidoo/raw-strings-qq")
11083 (synopsis "Raw string literals for Haskell")
11084 (description
11085 "This package provides a quasiquoter for raw string literals, i.e. string
11086 literals that don't recognise the standard escape sequences. Basically, they
11087 make your code more readable by freeing you from the responsibility to escape
11088 backslashes. They are useful when working with regular expressions,
11089 DOS/Windows paths and markup languages (such as XML).")
11090 (license license:bsd-3)))
11091
11092 (define-public ghc-inline-c
11093 (package
11094 (name "ghc-inline-c")
11095 (version "0.6.1.0")
11096 (source
11097 (origin
11098 (method url-fetch)
11099 (uri (string-append "https://hackage.haskell.org/package/inline-c/"
11100 "inline-c-" version ".tar.gz"))
11101 (sha256
11102 (base32
11103 "0vbfrsqsi7mdziqsnj68bsqlwbqxxhvrmy9rv6w8z18d1m8w3n6h"))))
11104 (build-system haskell-build-system)
11105 (inputs
11106 `(("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
11107 ("ghc-cryptohash" ,ghc-cryptohash)
11108 ("ghc-hashable" ,ghc-hashable)
11109 ("ghc-parsec" ,ghc-parsec)
11110 ("ghc-parsers" ,ghc-parsers)
11111 ("ghc-unordered-containers" ,ghc-unordered-containers)
11112 ("ghc-vector" ,ghc-vector)))
11113 (native-inputs
11114 `(("ghc-quickcheck" ,ghc-quickcheck)
11115 ("ghc-hspec" ,ghc-hspec)
11116 ("ghc-raw-strings-qq" ,ghc-raw-strings-qq)
11117 ("ghc-regex-posix" ,ghc-regex-posix)))
11118 (home-page "http://hackage.haskell.org/package/inline-c")
11119 (synopsis "Write Haskell source files including C code inline")
11120 (description
11121 "inline-c lets you seamlessly call C libraries and embed high-performance
11122 inline C code in Haskell modules. Haskell and C can be freely intermixed in
11123 the same source file, and data passed to and from code in either language with
11124 minimal overhead. No FFI required.")
11125 (license license:expat)))
11126
11127 (define-public ghc-weigh
11128 (package
11129 (name "ghc-weigh")
11130 (version "0.0.12")
11131 (source
11132 (origin
11133 (method url-fetch)
11134 (uri (string-append "https://hackage.haskell.org/package/weigh/"
11135 "weigh-" version ".tar.gz"))
11136 (sha256
11137 (base32
11138 "0zw2a997gxgdzqmd7j730kxgynzmjvvlkw84dajmfzf1v9pbij7x"))))
11139 (build-system haskell-build-system)
11140 (inputs
11141 `(("ghc-split" ,ghc-split)
11142 ("ghc-temporary" ,ghc-temporary)))
11143 (home-page "https://github.com/fpco/weigh#readme")
11144 (synopsis "Measure allocations of a Haskell functions/values")
11145 (description "This package provides tools to measure the memory usage of a
11146 Haskell value or function.")
11147 (license license:bsd-3)))
11148
11149 (define-public ghc-linear
11150 (package
11151 (name "ghc-linear")
11152 (version "1.20.8")
11153 (source
11154 (origin
11155 (method url-fetch)
11156 (uri (string-append "https://hackage.haskell.org/package/linear/"
11157 "linear-" version ".tar.gz"))
11158 (sha256
11159 (base32
11160 "046vkvxlb0s286qr55s0c6db0rlwbm1cmlmwhrrkqbkzhfcipgay"))))
11161 (build-system haskell-build-system)
11162 (inputs
11163 `(("ghc-adjunctions" ,ghc-adjunctions)
11164 ("ghc-base-orphans" ,ghc-base-orphans)
11165 ("ghc-bytes" ,ghc-bytes)
11166 ("ghc-cereal" ,ghc-cereal)
11167 ("ghc-distributive" ,ghc-distributive)
11168 ("ghc-hashable" ,ghc-hashable)
11169 ("ghc-lens" ,ghc-lens)
11170 ("ghc-reflection" ,ghc-reflection)
11171 ("ghc-semigroups" ,ghc-semigroups)
11172 ("ghc-semigroupoids" ,ghc-semigroupoids)
11173 ("ghc-tagged" ,ghc-tagged)
11174 ("ghc-transformers-compat" ,ghc-transformers-compat)
11175 ("ghc-unordered-containers" ,ghc-unordered-containers)
11176 ("ghc-vector" ,ghc-vector)
11177 ("ghc-void" ,ghc-void)))
11178 (native-inputs
11179 `(("cabal-doctest" ,cabal-doctest)
11180 ("ghc-doctest" ,ghc-doctest)
11181 ("ghc-simple-reflect" ,ghc-simple-reflect)
11182 ("ghc-test-framework" ,ghc-test-framework)
11183 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
11184 ("ghc-hunit" ,ghc-hunit)))
11185 (home-page "http://github.com/ekmett/linear/")
11186 (synopsis "Linear algebra library for Haskell")
11187 (description
11188 "This package provides types and combinators for linear algebra on free
11189 vector spaces.")
11190 (license license:bsd-3)))
11191
11192 (define-public ghc-safe-exceptions
11193 (package
11194 (name "ghc-safe-exceptions")
11195 (version "0.1.7.0")
11196 (source
11197 (origin
11198 (method url-fetch)
11199 (uri (string-append "https://hackage.haskell.org/package/"
11200 "safe-exceptions/safe-exceptions-"
11201 version ".tar.gz"))
11202 (sha256
11203 (base32
11204 "0sd0zfsm9pcll5bzzj523rbn45adjrnavdkz52hgmdjjgdcdrk8q"))))
11205 (build-system haskell-build-system)
11206 (arguments
11207 '(#:cabal-revision
11208 ("4" "0fid41gishzsyb47wzxhd5falandfirqcp760hcja81qjpfmqd32")))
11209 (inputs `(("ghc-exceptions" ,ghc-exceptions)))
11210 (native-inputs
11211 `(("ghc-hspec" ,ghc-hspec)
11212 ("ghc-void" ,ghc-void)
11213 ("hspec-discover" ,hspec-discover)))
11214 (home-page "https://github.com/fpco/safe-exceptions")
11215 (synopsis "Safe, consistent, and easy exception handling")
11216 (description "Runtime exceptions - as exposed in @code{base} by the
11217 @code{Control.Exception} module - have long been an intimidating part of the
11218 Haskell ecosystem. This package is intended to overcome this. It provides a
11219 safe and simple API on top of the existing exception handling machinery. The
11220 API is equivalent to the underlying implementation in terms of power but
11221 encourages best practices to minimize the chances of getting the exception
11222 handling wrong.")
11223 (license license:expat)))
11224
11225 (define-public ghc-inline-c-cpp
11226 (package
11227 (name "ghc-inline-c-cpp")
11228 (version "0.2.2.1")
11229 (source
11230 (origin
11231 (method url-fetch)
11232 (uri (string-append "https://hackage.haskell.org/package/inline-c-cpp/"
11233 "inline-c-cpp-" version ".tar.gz"))
11234 (sha256
11235 (base32
11236 "1rk7fmpkmxw9hhwr8df29kadnf0ybnwj64ggdbnsdrpfyhnkisci"))))
11237 (build-system haskell-build-system)
11238 (inputs
11239 `(("ghc-inline-c" ,ghc-inline-c)
11240 ("ghc-safe-exceptions" ,ghc-safe-exceptions)))
11241 (native-inputs
11242 `(("ghc-hspec" ,ghc-hspec)))
11243 (home-page "https://hackage.haskell.org/package/inline-c-cpp")
11244 (synopsis "Lets you embed C++ code into Haskell")
11245 (description
11246 "This package provides utilities to inline C++ code into Haskell using
11247 @code{inline-c}.")
11248 (license license:expat)))
11249
11250 (define-public ghc-bytestring-lexing
11251 (package
11252 (name "ghc-bytestring-lexing")
11253 (version "0.5.0.2")
11254 (source
11255 (origin
11256 (method url-fetch)
11257 (uri (string-append "https://hackage.haskell.org/package/"
11258 "bytestring-lexing/bytestring-lexing-"
11259 version ".tar.gz"))
11260 (sha256
11261 (base32
11262 "0wrzniawhgpphc6yx1v972gyqxdbv0pizaz9bafahrshyb9svy81"))))
11263 (build-system haskell-build-system)
11264 (home-page "http://code.haskell.org/~wren/")
11265 (synopsis "Parse and produce literals from strict or lazy bytestrings")
11266 (description
11267 "This package provides tools to parse and produce literals efficiently
11268 from strict or lazy bytestrings.")
11269 (license license:bsd-2)))
11270
11271 (define-public ghc-configurator
11272 (package
11273 (name "ghc-configurator")
11274 (version "0.3.0.0")
11275 (source
11276 (origin
11277 (method url-fetch)
11278 (uri (string-append "https://hackage.haskell.org/package/"
11279 "configurator/configurator-"
11280 version ".tar.gz"))
11281 (sha256
11282 (base32
11283 "1d1iq1knwiq6ia5g64rw5hqm6dakz912qj13r89737rfcxmrkfbf"))))
11284 (build-system haskell-build-system)
11285 (inputs
11286 `(("ghc-attoparsec" ,ghc-attoparsec)
11287 ("ghc-hashable" ,ghc-hashable)
11288 ("ghc-text" ,ghc-text)
11289 ("ghc-unix-compat" ,ghc-unix-compat)
11290 ("ghc-unordered-containers" ,ghc-unordered-containers)))
11291 (native-inputs
11292 `(("ghc-hunit" ,ghc-hunit)
11293 ("ghc-test-framework" ,ghc-test-framework)
11294 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
11295 (home-page "http://github.com/bos/configurator")
11296 (synopsis "Configuration management")
11297 (description
11298 "This package provides a configuration management library for programs
11299 and daemons. The features include:
11300
11301 @enumerate
11302 @item Automatic, dynamic reloading in response to modifications to
11303 configuration files.
11304 @item A simple, but flexible, configuration language, supporting several of
11305 the most commonly needed types of data, along with interpolation of strings
11306 from the configuration or the system environment (e.g. @code{$(HOME)}).
11307 @item Subscription-based notification of changes to configuration properties.
11308 @item An @code{import} directive allows the configuration of a complex
11309 application to be split across several smaller files, or common configuration
11310 data to be shared across several applications.
11311 @end enumerate\n")
11312 (license license:bsd-3)))
11313
11314 (define-public ghc-file-embed
11315 (package
11316 (name "ghc-file-embed")
11317 (version "0.0.10.1")
11318 (source
11319 (origin
11320 (method url-fetch)
11321 (uri (string-append "https://hackage.haskell.org/package/file-embed/"
11322 "file-embed-" version ".tar.gz"))
11323 (sha256
11324 (base32
11325 "0lj164cnzqyd487mli91nnr7137a4h4qsasfwsnsh77sx12fpk9k"))))
11326 (build-system haskell-build-system)
11327 (home-page "https://github.com/snoyberg/file-embed")
11328 (synopsis "Use Template Haskell to embed file contents directly")
11329 (description
11330 "This package allows you to use Template Haskell to read a file or all
11331 the files in a directory, and turn them into @code{(path, bytestring)} pairs
11332 embedded in your Haskell code.")
11333 (license license:bsd-3)))
11334
11335 (define-public ghc-safeio
11336 (package
11337 (name "ghc-safeio")
11338 (version "0.0.5.0")
11339 (source
11340 (origin
11341 (method url-fetch)
11342 (uri (string-append "https://hackage.haskell.org/package/safeio/"
11343 "safeio-" version ".tar.gz"))
11344 (sha256
11345 (base32
11346 "04g3070cbjdqj0h9l9ii6470xcbn40xfv4fr89a8yvnkdim9nyfm"))))
11347 (build-system haskell-build-system)
11348 (inputs
11349 `(("ghc-conduit" ,ghc-conduit)
11350 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
11351 ("ghc-exceptions" ,ghc-exceptions)
11352 ("ghc-resourcet" ,ghc-resourcet)))
11353 (native-inputs
11354 `(("ghc-hunit" ,ghc-hunit)
11355 ("ghc-test-framework" ,ghc-test-framework)
11356 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
11357 ("ghc-test-framework-th" ,ghc-test-framework-th)))
11358 (home-page "https://github.com/luispedro/safeio")
11359 (synopsis "Write output to disk atomically")
11360 (description
11361 "This package implements utilities to perform atomic output so as to
11362 avoid the problem of partial intermediate files.")
11363 (license license:expat)))
11364
11365 (define-public ghc-tldr
11366 (package
11367 (name "ghc-tldr")
11368 (version "0.4.0.1")
11369 (source
11370 (origin
11371 (method url-fetch)
11372 (uri (string-append
11373 "https://hackage.haskell.org/package/tldr/tldr-"
11374 version
11375 ".tar.gz"))
11376 (sha256
11377 (base32
11378 "0nc581y9jjzwd8l88g48c72mla7k6q1w102akl7gl5jsk9ljamd3"))))
11379 (build-system haskell-build-system)
11380 (inputs
11381 `(("ghc-cmark" ,ghc-cmark)
11382 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
11383 ("ghc-typed-process" ,ghc-typed-process)
11384 ("ghc-semigroups" ,ghc-semigroups)))
11385 (native-inputs
11386 `(("ghc-tasty" ,ghc-tasty)
11387 ("ghc-tasty-golden" ,ghc-tasty-golden)))
11388 (home-page "https://github.com/psibi/tldr-hs#readme")
11389 (synopsis "Haskell tldr client")
11390 (description "This package provides the @command{tldr} command and a
11391 Haskell client library allowing users to update and view @code{tldr} pages
11392 from a shell. The @code{tldr} pages are a community effort to simplify the
11393 man pages with practical examples.")
11394 (license license:bsd-3)))
11395
11396 (define-public ghc-c2hs
11397 (package
11398 (name "ghc-c2hs")
11399 (version "0.28.6")
11400 (source
11401 (origin
11402 (method url-fetch)
11403 (uri (string-append
11404 "https://hackage.haskell.org/package/c2hs/c2hs-"
11405 version
11406 ".tar.gz"))
11407 (sha256
11408 (base32
11409 "1nplgxfin139x12sb656f5870rpdclrhzi8mq8pry035qld15pci"))))
11410 (build-system haskell-build-system)
11411 (inputs
11412 `(("ghc-language-c" ,ghc-language-c)
11413 ("ghc-dlist" ,ghc-dlist)))
11414 (native-inputs
11415 `(("ghc-test-framework" ,ghc-test-framework)
11416 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
11417 ("ghc-hunit" ,ghc-hunit)
11418 ("ghc-shelly" ,ghc-shelly)
11419 ("ghc-text" ,ghc-text)
11420 ("gcc" ,gcc)))
11421 (arguments
11422 `(;; XXX: Test failures are induced by a parse error in <bits/floatn.h>
11423 ;; of glibc 2.28.
11424 #:tests? #f
11425
11426 #:phases
11427 (modify-phases %standard-phases
11428 (add-before 'check 'set-cc
11429 ;; add a cc executable in the path, needed for some tests to pass
11430 (lambda* (#:key inputs #:allow-other-keys)
11431 (let ((gcc (assoc-ref inputs "gcc"))
11432 (tmpbin (tmpnam))
11433 (curpath (getenv "PATH")))
11434 (mkdir-p tmpbin)
11435 (symlink (which "gcc") (string-append tmpbin "/cc"))
11436 (setenv "PATH" (string-append tmpbin ":" curpath)))
11437 #t))
11438 (add-after 'check 'remove-cc
11439 ;; clean the tmp dir made in 'set-cc
11440 (lambda _
11441 (let* ((cc-path (which "cc"))
11442 (cc-dir (dirname cc-path)))
11443 (delete-file-recursively cc-dir)
11444 #t))))))
11445 (home-page "https://github.com/haskell/c2hs")
11446 (synopsis "Create Haskell bindings to C libraries")
11447 (description "C->Haskell assists in the development of Haskell bindings to
11448 C libraries. It extracts interface information from C header files and
11449 generates Haskell code with foreign imports and marshaling. Unlike writing
11450 foreign imports by hand (or using hsc2hs), this ensures that C functions are
11451 imported with the correct Haskell types.")
11452 (license license:gpl2)))
11453
11454 (define-public ghc-libmpd
11455 (package
11456 (name "ghc-libmpd")
11457 (version "0.9.0.9")
11458 (source
11459 (origin
11460 (method url-fetch)
11461 (uri (string-append
11462 "mirror://hackage/package/libmpd/libmpd-"
11463 version
11464 ".tar.gz"))
11465 (sha256
11466 (base32
11467 "1931m23iqb4wddpdidm4ph746zpaw41kkjzmb074j7yyfpk7x1jv"))))
11468 (build-system haskell-build-system)
11469 (inputs
11470 `(("ghc-attoparsec" ,ghc-attoparsec)
11471 ("ghc-old-locale" ,ghc-old-locale)
11472 ("ghc-text" ,ghc-text)
11473 ("ghc-data-default-class" ,ghc-data-default-class)
11474 ("ghc-network" ,ghc-network)
11475 ("ghc-utf8-string" ,ghc-utf8-string)))
11476 (native-inputs
11477 `(("ghc-quickcheck" ,ghc-quickcheck)
11478 ("ghc-hspec" ,ghc-hspec)
11479 ("hspec-discover" ,hspec-discover)))
11480 (home-page "https://github.com/vimus/libmpd-haskell")
11481 (synopsis "Haskell client library for the Music Player Daemon")
11482 (description "This package provides a pure Haskell client library for the
11483 Music Player Daemon.")
11484 (license license:expat)))
11485
11486 (define-public ghc-alsa-core
11487 (package
11488 (name "ghc-alsa-core")
11489 (version "0.5.0.1")
11490 (source
11491 (origin
11492 (method url-fetch)
11493 (uri (string-append
11494 "mirror://hackage/package/alsa-core/alsa-core-"
11495 version
11496 ".tar.gz"))
11497 (sha256
11498 (base32
11499 "1avh4a419h9d2zsslg6j8hm87ppgsgqafz8ll037rk2yy1g4jl7b"))))
11500 (build-system haskell-build-system)
11501 (inputs
11502 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
11503 ("alsa-lib" ,alsa-lib)))
11504 (native-inputs
11505 `(("pkg-config" ,pkg-config)))
11506 (home-page "http://www.haskell.org/haskellwiki/ALSA")
11507 (synopsis "Binding to the ALSA Library API (Exceptions)")
11508 (description "This package provides access to ALSA infrastructure, that is
11509 needed by both alsa-seq and alsa-pcm.")
11510 (license license:bsd-3)))
11511
11512 (define-public ghc-base-unicode-symbols
11513 (package
11514 (name "ghc-base-unicode-symbols")
11515 (version "0.2.3")
11516 (source
11517 (origin
11518 (method url-fetch)
11519 (uri (string-append
11520 "mirror://hackage/package/base-unicode-symbols/base-unicode-symbols-"
11521 version
11522 ".tar.gz"))
11523 (sha256
11524 (base32
11525 "1ia6li7qjg1zkak4gf6mnbshw45mq9bfjr0jch58ds0lscmvwyzf"))))
11526 (build-system haskell-build-system)
11527 (home-page "http://www.haskell.org/haskellwiki/Unicode-symbols")
11528 (synopsis "Unicode alternatives for common functions and operators")
11529 (description "This package defines new symbols for a number of functions,
11530 operators and types in the base package. All symbols are documented with
11531 their actual definition and information regarding their Unicode code point.
11532 They should be completely interchangeable with their definitions. For
11533 further Unicode goodness you can enable the @code{UnicodeSyntax}
11534 @url{https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exs.html#unicode-syntax,
11535 language extension}. This extension enables Unicode characters to be used to
11536 stand for certain ASCII character sequences, i.e. → instead of @code{->},
11537 ∀ instead of @code{forall} and many others.")
11538 (license license:bsd-3)))
11539
11540 (define-public ghc-stylish-haskell
11541 (package
11542 (name "ghc-stylish-haskell")
11543 (version "0.9.2.1")
11544 (source
11545 (origin
11546 (method url-fetch)
11547 (uri (string-append
11548 "mirror://hackage/package/stylish-haskell/stylish-haskell-"
11549 version
11550 ".tar.gz"))
11551 (sha256
11552 (base32
11553 "1ls11fdx6snvfx8yykpidz142zzxwi5bazl49hgfqlwx50rqcp7w"))))
11554 (build-system haskell-build-system)
11555 (inputs
11556 `(("ghc-aeson" ,ghc-aeson)
11557 ("ghc-file-embed" ,ghc-file-embed)
11558 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
11559 ("ghc-semigroups" ,ghc-semigroups)
11560 ("ghc-syb" ,ghc-syb)
11561 ("ghc-yaml" ,ghc-yaml)
11562 ("ghc-strict" ,ghc-strict)
11563 ("ghc-optparse-applicative"
11564 ,ghc-optparse-applicative)))
11565 (native-inputs
11566 `(("ghc-hunit" ,ghc-hunit)
11567 ("ghc-test-framework" ,ghc-test-framework)
11568 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
11569 (home-page "https://github.com/jaspervdj/stylish-haskell")
11570 (synopsis "Haskell code prettifier")
11571 (description "Stylish-haskell is a Haskell code prettifier. The goal is
11572 not to format all of the code in a file, to avoid \"getting in the way\".
11573 However, this tool can e.g. clean up import statements and help doing various
11574 tasks that get tedious very quickly. It can
11575 @itemize
11576 @item
11577 Align and sort @code{import} statements
11578 @item
11579 Group and wrap @code{{-# LANGUAGE #-}} pragmas, remove (some) redundant
11580 pragmas
11581 @item
11582 Remove trailing whitespaces
11583 @item
11584 Align branches in @code{case} and fields in records
11585 @item
11586 Convert line endings (customisable)
11587 @item
11588 Replace tabs by four spaces (turned off by default)
11589 @item
11590 Replace some ASCII sequences by their Unicode equivalent (turned off by
11591 default)
11592 @end itemize")
11593 (license license:bsd-3)))
11594 ;;; haskell.scm ends here