gnu: ghc-doctest: Update to 0.16.3.
[jackhill/guix/guix.git] / gnu / packages / haskell-xyz.scm
CommitLineData
6b34d01c 1;;; GNU Guix --- Functional package management for GNU
dddbc90c
RV
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>
3c986a7d 7;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
799d8d3c 8;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
dddbc90c
RV
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>
6b34d01c 20;;; Copyright © 2019 Robert Vollmert <rob@vllmrt.net>
dddbc90c 21;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
82c36002 22;;; Copyright © 2019,2020 John Soo <jsoo1@asu.edu>
7f89dfc9 23;;; Copyright © 2019, 2020 Kyle Meyer <kyle@kyleam.com>
9ad9ec2e 24;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
4639fa32 25;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
84436be0 26;;; Copyright © 2020 JoJo <jo@jo.zone>
ba7cbae3 27;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
fbe32d46 28;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
7f2a5650 29;;; Copyright © 2020 Carlo Holl <carloholl@gmail.com>
6b34d01c
RV
30;;;
31;;; This file is part of GNU Guix.
32;;;
33;;; GNU Guix is free software; you can redistribute it and/or modify it
34;;; under the terms of the GNU General Public License as published by
35;;; the Free Software Foundation; either version 3 of the License, or (at
36;;; your option) any later version.
37;;;
38;;; GNU Guix is distributed in the hope that it will be useful, but
39;;; WITHOUT ANY WARRANTY; without even the implied warranty of
40;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41;;; GNU General Public License for more details.
42;;;
43;;; You should have received a copy of the GNU General Public License
44;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
45
46(define-module (gnu packages haskell-xyz)
47 #:use-module (gnu packages)
dddbc90c
RV
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages emacs)
dddbc90c
RV
51 #:use-module (gnu packages gl)
52 #:use-module (gnu packages graphviz)
53 #:use-module (gnu packages gtk)
d4e4a382 54 #:use-module (gnu packages haskell)
dddbc90c 55 #:use-module (gnu packages haskell-apps)
efb96749 56 #:use-module (gnu packages haskell-check)
dddbc90c
RV
57 #:use-module (gnu packages haskell-crypto)
58 #:use-module (gnu packages haskell-web)
59 #:use-module (gnu packages libffi)
60 #:use-module (gnu packages linux)
e3ee8023 61 #:use-module (gnu packages llvm)
dddbc90c
RV
62 #:use-module (gnu packages lua)
63 #:use-module (gnu packages maths)
49e29df5 64 #:use-module (gnu packages ncurses)
dddbc90c
RV
65 #:use-module (gnu packages pcre)
66 #:use-module (gnu packages pkg-config)
67 #:use-module (gnu packages sdl)
0c2d6fc2 68 #:use-module (gnu packages web)
dddbc90c
RV
69 #:use-module (gnu packages xml)
70 #:use-module (gnu packages xorg)
6b34d01c
RV
71 #:use-module (guix build-system haskell)
72 #:use-module (guix download)
dddbc90c 73 #:use-module (guix git-download)
4780db2c 74 #:use-module (guix utils)
6b34d01c 75 #:use-module ((guix licenses) #:prefix license:)
d4e4a382
RW
76 #:use-module (guix packages)
77 #:use-module (srfi srfi-1))
6b34d01c 78
dddbc90c 79(define-public ghc-abstract-deque
efb96749 80 (package
dddbc90c
RV
81 (name "ghc-abstract-deque")
82 (version "0.3")
efb96749
RV
83 (source
84 (origin
85 (method url-fetch)
86 (uri (string-append "https://hackage.haskell.org/package/"
dddbc90c
RV
87 "abstract-deque-" version "/"
88 "abstract-deque-" version ".tar.gz"))
efb96749
RV
89 (sha256
90 (base32
dddbc90c 91 "18jwswjxwzc9bjiy4ds6hw2a74ki797jmfcifxd2ga4kh7ri1ah9"))))
efb96749 92 (build-system haskell-build-system)
dddbc90c
RV
93 (inputs `(("ghc-random" ,ghc-random)))
94 (home-page "https://github.com/rrnewton/haskell-lockfree/wiki")
95 (synopsis "Abstract, parameterized interface to mutable Deques for Haskell")
96 (description "This Haskell package provides an abstract interface to
97highly-parameterizable queues/deques.
98
99Background: There exists a feature space for queues that extends between:
efb96749
RV
100
101@itemize
dddbc90c
RV
102@item Simple, single-ended, non-concurrent, bounded queues
103
104@item Double-ended, thread-safe, growable queues with important points
105in between (such as the queues used for work stealing).
efb96749
RV
106@end itemize
107
dddbc90c
RV
108This package includes an interface for Deques that allows the programmer
109to use a single API for all of the above, while using the type system to
110select an efficient implementation given the requirements (using type families).
efb96749 111
dddbc90c
RV
112This package also includes a simple reference implementation based on
113@code{IORef} and @code{Data.Sequence}.")
efb96749
RV
114 (license license:bsd-3)))
115
dddbc90c 116(define-public ghc-abstract-par
658dbc7f 117 (package
dddbc90c
RV
118 (name "ghc-abstract-par")
119 (version "0.3.3")
658dbc7f
RV
120 (source
121 (origin
122 (method url-fetch)
123 (uri (string-append "https://hackage.haskell.org/package/"
dddbc90c
RV
124 "abstract-par-" version "/"
125 "abstract-par-" version ".tar.gz"))
658dbc7f
RV
126 (sha256
127 (base32
dddbc90c
RV
128 "0q6qsniw4wks2pw6wzncb1p1j3k6al5njnvm2v5n494hplwqg2i4"))))
129 (build-system haskell-build-system)
130 (home-page "https://github.com/simonmar/monad-par")
131 (synopsis "Abstract parallelization interface for Haskell")
132 (description "This Haskell package is an abstract interface
133only. It provides a number of type clasess, but not an
134implementation. The type classes separate different levels
135of @code{Par} functionality. See the @code{Control.Monad.Par.Class}
136module for more details.")
137 (license license:bsd-3)))
138
d8b88d74
TS
139(define-public ghc-active
140 (package
141 (name "ghc-active")
142 (version "0.2.0.14")
143 (source
144 (origin
145 (method url-fetch)
146 (uri (string-append "https://hackage.haskell.org/package/"
147 "active/active-" version ".tar.gz"))
148 (sha256
149 (base32
150 "0x3b4ln6csa554qls28wbxvclkbdz3yi60i1m0q5ing0cs16fifz"))))
151 (build-system haskell-build-system)
152 (inputs
153 `(("ghc-vector" ,ghc-vector)
154 ("ghc-semigroups" ,ghc-semigroups)
155 ("ghc-semigroupoids" ,ghc-semigroupoids)
156 ("ghc-lens" ,ghc-lens)
157 ("ghc-linear" ,ghc-linear)))
158 (native-inputs
159 `(("ghc-quickcheck" ,ghc-quickcheck)))
160 (home-page "https://hackage.haskell.org/package/active")
161 (synopsis "Abstractions for animation")
162 (description "This package defines an @code{Active} abstraction for
163time-varying values with finite start and end times. It is used for
164describing animations within the
165@url{https://archives.haskell.org/projects.haskell.org/diagrams/,
166diagrams framework}.")
167 (license license:bsd-3)))
168
dddbc90c
RV
169(define-public ghc-adjunctions
170 (package
171 (name "ghc-adjunctions")
172 (version "4.4")
173 (source
174 (origin
175 (method url-fetch)
176 (uri (string-append
177 "https://hackage.haskell.org/package/adjunctions/adjunctions-"
178 version
179 ".tar.gz"))
180 (sha256
181 (base32
182 "1sbal7cbhm12crfnfhkk322jnzgx7lhw3jzq0p463bipagsjwz2h"))))
658dbc7f 183 (build-system haskell-build-system)
a78262be
TS
184 (arguments
185 `(#:cabal-revision
186 ("2" "1yfsjx7dqikg3hvld7i91xfsg5lawmr5980lvfd794sybmgxsf17")))
658dbc7f 187 (inputs
dddbc90c
RV
188 `(("ghc-profunctors" ,ghc-profunctors)
189 ("ghc-comonad" ,ghc-comonad)
190 ("ghc-contravariant" ,ghc-contravariant)
191 ("ghc-distributive" ,ghc-distributive)
192 ("ghc-free" ,ghc-free)
193 ("ghc-tagged" ,ghc-tagged)
194 ("ghc-semigroupoids" ,ghc-semigroupoids)
195 ("ghc-semigroups" ,ghc-semigroups)
196 ("ghc-transformers-compat" ,ghc-transformers-compat)
197 ("ghc-void" ,ghc-void)))
658dbc7f 198 (native-inputs
dddbc90c
RV
199 `(("ghc-generic-deriving" ,ghc-generic-deriving)
200 ("ghc-hspec" ,ghc-hspec)
201 ("hspec-discover" ,hspec-discover)))
202 (home-page "https://github.com/ekmett/adjunctions/")
203 (synopsis "Adjunctions and representable functors")
204 (description "This library provides adjunctions and representable functors
205for Haskell.")
206 (license license:bsd-3)))
207
208(define-public ghc-aeson-compat
209 (package
210 (name "ghc-aeson-compat")
0bafb755 211 (version "0.3.9")
dddbc90c
RV
212 (source
213 (origin
214 (method url-fetch)
215 (uri (string-append "https://hackage.haskell.org/package/"
216 "aeson-compat-" version "/"
217 "aeson-compat-" version ".tar.gz"))
218 (sha256
219 (base32
0bafb755 220 "1j13gykv4ryvmr14w5blz0nnpdb4p0hpa27wahw3mhb1lwdr8hz0"))))
dddbc90c
RV
221 (build-system haskell-build-system)
222 (arguments `(#:tests? #f)) ; FIXME: Tests require QuickCheck >= 2.10
223 (inputs `(("ghc-base-compat" ,ghc-base-compat)
224 ("ghc-aeson" ,ghc-aeson)
225 ("ghc-attoparsec" ,ghc-attoparsec)
226 ("ghc-attoparsec" ,ghc-attoparsec-iso8601)
227 ("ghc-exceptions" ,ghc-exceptions)
228 ("ghc-hashable" ,ghc-hashable)
229 ("ghc-scientific" ,ghc-scientific)
230 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
231 ("ghc-unordered-containers" ,ghc-unordered-containers)
232 ("ghc-vector" ,ghc-vector)
233 ("ghc-tagged" ,ghc-tagged)
234 ("ghc-semigroups" ,ghc-semigroups)
235 ("ghc-nats" ,ghc-nats)))
236 (home-page "https://github.com/phadej/aeson-compat")
237 (synopsis "Compatibility layer for ghc-aeson")
238 (description "This Haskell package provides compatibility layer for
239ghc-aeson.")
240 (license license:bsd-3)))
241
cbc6f861
TS
242(define-public ghc-aeson-diff
243 (package
244 (name "ghc-aeson-diff")
245 (version "1.1.0.7")
246 (source
247 (origin
248 (method url-fetch)
249 (uri (string-append "https://hackage.haskell.org/package/"
250 "aeson-diff/aeson-diff-" version ".tar.gz"))
251 (sha256
252 (base32
253 "01d48pd7d1mb9cd5yxfajln8rmjdjq8ch91s0lav4qw1azv6vp2r"))))
254 (build-system haskell-build-system)
255 (inputs
256 `(("ghc-aeson" ,ghc-aeson)
257 ("ghc-edit-distance-vector" ,ghc-edit-distance-vector)
258 ("ghc-hashable" ,ghc-hashable)
259 ("ghc-scientific" ,ghc-scientific)
260 ("ghc-unordered-containers" ,ghc-unordered-containers)
261 ("ghc-vector" ,ghc-vector)
262 ("ghc-semigroups" ,ghc-semigroups)
263 ("ghc-optparse-applicative" ,ghc-optparse-applicative)))
264 (native-inputs
265 `(("ghc-quickcheck" ,ghc-quickcheck)
266 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
267 ("ghc-glob" ,ghc-glob)
268 ("ghc-quickcheck" ,ghc-quickcheck)
269 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
270 ("ghc-quickcheck" ,ghc-quickcheck)
271 ("ghc-doctest" ,ghc-doctest)
272 ("hlint" ,hlint)))
273 (home-page "https://github.com/thsutton/aeson-diff")
274 (synopsis "Extract and apply patches to JSON documents")
275 (description "This is a small library for working with changes to JSON
276documents. It includes a library and two command-line executables in the
277style of the @command{diff} and @command{patch} commands available on many
278systems.")
279 (license license:bsd-3)))
280
dddbc90c
RV
281(define-public ghc-alex
282 (package
283 (name "ghc-alex")
284 (version "3.2.4")
285 (source
286 (origin
287 (method url-fetch)
288 (uri (string-append
289 "https://hackage.haskell.org/package/alex/alex-"
290 version
291 ".tar.gz"))
292 (sha256
293 (base32
294 "0cpjixgsr0b2x4s6hz4aa6gnmjw9i7xd9nlfi8m37zqlidq4v3nm"))))
295 (build-system haskell-build-system)
658dbc7f 296 (arguments
dddbc90c
RV
297 `(#:phases
298 (modify-phases %standard-phases
299 (add-before 'check 'set-check-variables
300 (lambda _
301 (setenv "PATH" (string-append (getcwd) "/dist/build/alex:"
302 (getenv "PATH")))
303 (setenv "alex_datadir" (string-append (getcwd) "/data"))
304 #t)))))
305 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
306 (native-inputs
307 `(("which" ,which)))
308 (home-page "https://www.haskell.org/alex/")
309 (synopsis
310 "Tool for generating lexical analysers in Haskell")
311 (description
312 "Alex is a tool for generating lexical analysers in Haskell. It takes a
313description of tokens based on regular expressions and generates a Haskell
314module containing code for scanning text efficiently. It is similar to the
315tool lex or flex for C/C++.")
658dbc7f
RV
316 (license license:bsd-3)))
317
dddbc90c 318(define-public ghc-alsa-core
7b01a977 319 (package
dddbc90c
RV
320 (name "ghc-alsa-core")
321 (version "0.5.0.1")
322 (source
323 (origin
324 (method url-fetch)
325 (uri (string-append
326 "mirror://hackage/package/alsa-core/alsa-core-"
327 version
328 ".tar.gz"))
329 (sha256
330 (base32
331 "1avh4a419h9d2zsslg6j8hm87ppgsgqafz8ll037rk2yy1g4jl7b"))))
332 (build-system haskell-build-system)
54a5fd07
TS
333 (arguments
334 `(#:extra-directories ("alsa-lib")))
dddbc90c
RV
335 (inputs
336 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
337 ("alsa-lib" ,alsa-lib)))
338 (native-inputs
339 `(("pkg-config" ,pkg-config)))
228d2901 340 (home-page "https://wiki.haskell.org/ALSA")
dddbc90c
RV
341 (synopsis "Binding to the ALSA Library API (Exceptions)")
342 (description "This package provides access to ALSA infrastructure, that is
343needed by both alsa-seq and alsa-pcm.")
344 (license license:bsd-3)))
345
f2ed1e6d
JS
346(define-public ghc-alsa-mixer
347 (package
348 (name "ghc-alsa-mixer")
349 (version "0.3.0")
350 (source
351 (origin
352 (method url-fetch)
353 (uri
354 (string-append
355 "mirror://hackage/package/alsa-mixer/alsa-mixer-"
356 version ".tar.gz"))
357 (sha256
358 (base32
359 "00ny2p3276jilidjs44npc8zmbhynz3f2lpmlwwl6swwx5yijsnb"))))
360 (build-system haskell-build-system)
361 (inputs `(("ghc-alsa-core" ,ghc-alsa-core)))
362 (native-inputs `(("ghc-c2hs" ,ghc-c2hs)))
363 (home-page "https://github.com/ttuegel/alsa-mixer")
364 (synopsis "Bindings to the ALSA simple mixer API")
365 (description
366 "This package provides bindings to the ALSA simple mixer API.")
367 (license license:bsd-3)))
368
dddbc90c
RV
369(define-public ghc-annotated-wl-pprint
370 (package
371 (name "ghc-annotated-wl-pprint")
372 (version "0.7.0")
373 (source
374 (origin
375 (method url-fetch)
376 (uri (string-append
377 "https://hackage.haskell.org/package/annotated-wl-pprint"
378 "/annotated-wl-pprint-" version
379 ".tar.gz"))
380 (sha256
381 (base32
382 "061xfz6qany3wf95csl8dcik2pz22cn8iv1qchhm16isw5zjs9hc"))))
383 (build-system haskell-build-system)
384 (home-page
385 "https://github.com/david-christiansen/annotated-wl-pprint")
386 (synopsis
387 "The Wadler/Leijen Pretty Printer, with annotation support")
388 (description "This is a modified version of wl-pprint, which was based on
389Wadler's paper \"A Prettier Printer\". This version allows the library user
390to annotate the text with semantic information, which can later be rendered in
391a variety of ways.")
392 (license license:bsd-3)))
393
394(define-public ghc-ansi-terminal
395 (package
396 (name "ghc-ansi-terminal")
f1b4a73f 397 (version "0.9.1")
dddbc90c
RV
398 (source
399 (origin
400 (method url-fetch)
401 (uri (string-append
402 "https://hackage.haskell.org/package/ansi-terminal/ansi-terminal-"
403 version
404 ".tar.gz"))
405 (sha256
406 (base32
f1b4a73f 407 "1yr0ld0kqns3w3j9gl62bdwshvyazidx4dv1qkvq19ivnf08w23l"))))
dddbc90c
RV
408 (build-system haskell-build-system)
409 (inputs
410 `(("ghc-colour" ,ghc-colour)))
411 (home-page "https://github.com/feuerbach/ansi-terminal")
412 (synopsis "ANSI terminal support for Haskell")
413 (description "This package provides ANSI terminal support for Haskell. It
414allows cursor movement, screen clearing, color output showing or hiding the
415cursor, and changing the title.")
416 (license license:bsd-3)))
417
418(define-public ghc-ansi-wl-pprint
419 (package
420 (name "ghc-ansi-wl-pprint")
c38746eb 421 (version "0.6.9")
7b01a977
RV
422 (source
423 (origin
424 (method url-fetch)
425 (uri (string-append "https://hackage.haskell.org/package/"
dddbc90c 426 "ansi-wl-pprint/ansi-wl-pprint-"
7b01a977
RV
427 version ".tar.gz"))
428 (sha256
429 (base32
c38746eb 430 "1b2fg8px98dzbaqyns10kvs8kn6cl1hdq5wb9saz40izrpkyicm7"))))
7b01a977
RV
431 (build-system haskell-build-system)
432 (inputs
dddbc90c
RV
433 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)))
434 (home-page "https://github.com/ekmett/ansi-wl-pprint")
435 (synopsis "Wadler/Leijen Pretty Printer for colored ANSI terminal output")
436 (description "This is a pretty printing library based on Wadler's paper
437\"A Prettier Printer\". It has been enhanced with support for ANSI terminal
438colored output using the ansi-terminal package.")
439 (license license:bsd-3)))
440
441(define-public ghc-appar
442 (package
443 (name "ghc-appar")
1159d1a5 444 (version "0.1.8")
dddbc90c
RV
445 (source
446 (origin
447 (method url-fetch)
448 (uri (string-append
449 "https://hackage.haskell.org/package/appar/appar-"
450 version
451 ".tar.gz"))
452 (sha256
453 (base32
1159d1a5 454 "07v3h766q9mnhphsm53718h1lds147ix7dj15kc5hnsj4vffvkn4"))))
dddbc90c
RV
455 (build-system haskell-build-system)
456 (home-page
457 "https://hackage.haskell.org/package/appar")
458 (synopsis "Simple applicative parser")
459 (description "This package provides a simple applicative parser in Parsec
460style.")
461 (license license:bsd-3)))
462
af369394
JS
463(define-public ghc-assoc
464 (package
465 (name "ghc-assoc")
466 (version "1.0.1")
467 (source
468 (origin
469 (method url-fetch)
470 (uri (string-append
471 "https://hackage.haskell.org/package/assoc/assoc-"
472 version
473 ".tar.gz"))
474 (sha256
475 (base32
476 "1m9n4vp190bvn2wcrd4ggfwa9pi93jp0zgx02mdgywn2zfidw020"))))
477 (build-system haskell-build-system)
478 (inputs
479 `(("ghc-bifunctors" ,ghc-bifunctors)
480 ("ghc-tagged" ,ghc-tagged)))
481 (home-page
482 "http://hackage.haskell.org/package/assoc")
483 (synopsis
484 "Swap and assoc: Symmetric and Semigroupy Bifunctors")
485 (description
486 "Provides generalisations of @code{swap :: (a,b) -> (b,a)} and
487@code{assoc :: ((a,b),c) -> (a,(b,c))} to @code{Bifunctor}s supporting
488similar operations (e.g. @code{Either}, @code{These}).")
489 (license license:bsd-3)))
490
dddbc90c
RV
491(define-public ghc-async
492 (package
493 (name "ghc-async")
048ef066 494 (version "2.2.2")
dddbc90c
RV
495 (source
496 (origin
497 (method url-fetch)
498 (uri (string-append
499 "https://hackage.haskell.org/package/async/async-"
500 version
501 ".tar.gz"))
502 (sha256
503 (base32
048ef066 504 "1zxvfcyy4sg8lmzphi5dgnavksj5pav6rbvd5kc48lf4hanb2jjb"))))
dddbc90c
RV
505 (build-system haskell-build-system)
506 (inputs
507 `(("ghc-hashable" ,ghc-hashable)
508 ("ghc-hunit" ,ghc-hunit)
7b01a977
RV
509 ("ghc-test-framework" ,ghc-test-framework)
510 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
dddbc90c
RV
511 (home-page "https://github.com/simonmar/async")
512 (synopsis "Library to run IO operations asynchronously")
513 (description "Async provides a library to run IO operations
514asynchronously, and wait for their results. It is a higher-level interface
515over threads in Haskell, in which @code{Async a} is a concurrent thread that
516will eventually deliver a value of type @code{a}.")
7b01a977
RV
517 (license license:bsd-3)))
518
9ad9ec2e
AG
519(define-public ghc-atomic-primops
520 (package
521 (name "ghc-atomic-primops")
af16c6b0 522 (version "0.8.3")
9ad9ec2e
AG
523 (source
524 (origin
525 (method url-fetch)
526 (uri (string-append "https://hackage.haskell.org/package/atomic-primops"
527 "/atomic-primops-" version ".tar.gz"))
528 (sha256
529 (base32
af16c6b0 530 "03n5dmyplrqgbyf8dr91izkxci7gkl3i3fnp82i5ld869zrgjfh0"))))
9ad9ec2e
AG
531 (build-system haskell-build-system)
532 (inputs `(("ghc-primitive" ,ghc-primitive)))
533 (home-page "https://github.com/rrnewton/haskell-lockfree/wiki")
534 (synopsis "Safe approach to CAS and other atomic ops")
535 (description
536 "GHC 7.4 introduced a new @code{casMutVar} PrimOp which is difficult to
537use safely, because pointer equality is a highly unstable property in Haskell.
538This library provides a safer method based on the concept of @code{Ticket}s.")
539 (license license:bsd-3)))
540
dddbc90c 541(define-public ghc-atomic-write
79fcc5e5 542 (package
dddbc90c 543 (name "ghc-atomic-write")
c09d1e62 544 (version "0.2.0.6")
79fcc5e5
RV
545 (source
546 (origin
547 (method url-fetch)
dddbc90c
RV
548 (uri (string-append
549 "https://hackage.haskell.org/package/atomic-write/atomic-write-"
550 version
551 ".tar.gz"))
79fcc5e5
RV
552 (sha256
553 (base32
c09d1e62 554 "1xs3shwnlj8hmnm3q6jc8nv78z0481i5n4hrqqdmbpx8grvlnqyl"))))
dddbc90c
RV
555 (build-system haskell-build-system)
556 (inputs
557 `(("ghc-temporary" ,ghc-temporary)
558 ("ghc-unix-compat" ,ghc-unix-compat)))
559 (native-inputs
560 `(("ghc-temporary" ,ghc-temporary)
561 ("ghc-unix-compat" ,ghc-unix-compat)
562 ("ghc-hspec" ,ghc-hspec)
563 ("hspec-discover" ,hspec-discover)))
564 (home-page "https://github.com/stackbuilders/atomic-write")
565 (synopsis "Atomically write to a file")
566 (description
567 "Atomically write to a file on POSIX-compliant systems while preserving
568permissions. @code{mv} is an atomic operation. This makes it simple to write
569to a file atomically just by using the @code{mv} operation. However, this
570will destroy the permissions on the original file. This library preserves
571permissions while atomically writing to a file.")
572 (license license:expat)))
573
b7250901
JS
574(define-public ghc-atomic-write-0.2.0.7
575 (package
576 (inherit ghc-atomic-write)
577 (version "0.2.0.7")
578 (source
579 (origin
580 (inherit (package-source ghc-atomic-write))
581 (uri (string-append
582 "https://hackage.haskell.org/package/atomic-write/atomic-write-"
583 version
584 ".tar.gz"))
585 (sha256
586 (base32
587 "03cn3ii74h0w3g4h78xsx9v2sn58r3qsr2dbdwq340xwhiwcgxdm"))))))
588
dddbc90c
RV
589(define-public ghc-attoparsec
590 (package
591 (name "ghc-attoparsec")
511c3204 592 (version "0.13.2.3")
dddbc90c
RV
593 (source
594 (origin
595 (method url-fetch)
596 (uri (string-append
597 "https://hackage.haskell.org/package/attoparsec/attoparsec-"
598 version
599 ".tar.gz"))
600 (sha256
601 (base32
511c3204 602 "1ngjn9h5n0vyki0m2jir4mg85875ysswy9hznpmj1r856mqwc6ix"))))
79fcc5e5 603 (build-system haskell-build-system)
79fcc5e5 604 (arguments
dddbc90c
RV
605 `(#:phases
606 (modify-phases %standard-phases
607 (add-after 'unpack 'patch-for-newer-quickcheck
608 (lambda _
609 (substitute* "attoparsec.cabal"
610 (("QuickCheck >= 2\\.7 && < 2\\.10")
611 "QuickCheck >= 2.7 && < 2.12"))
612 ;; This test fails because of the newer QuickCheck:
613 ;; <https://github.com/bos/attoparsec/issues/134>.
614 (substitute* "tests/QC/ByteString.hs"
615 ((", testProperty \"satisfyWith\" satisfyWith")
616 "")))))))
617 (inputs
618 `(("ghc-scientific" ,ghc-scientific)))
619 (native-inputs
620 `(("ghc-tasty" ,ghc-tasty)
621 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
622 ("ghc-quickcheck" ,ghc-quickcheck)
623 ("ghc-quickcheck-unicode" ,ghc-quickcheck-unicode)
624 ("ghc-vector" ,ghc-vector)))
625 (home-page "https://github.com/bos/attoparsec")
626 (synopsis "Fast combinator parsing for bytestrings and text")
627 (description "This library provides a fast parser combinator library,
628aimed particularly at dealing efficiently with network protocols and
629complicated text/binary file formats.")
79fcc5e5
RV
630 (license license:bsd-3)))
631
dddbc90c 632(define-public ghc-attoparsec-bootstrap
6b34d01c 633 (package
dddbc90c
RV
634 (inherit ghc-attoparsec)
635 (name "ghc-attoparsec-bootstrap")
636 (arguments `(#:tests? #f))
637 (inputs
638 `(("ghc-scientific" ,ghc-scientific-bootstrap)))
639 (native-inputs '())
799d8d3c 640 (properties '((hidden? #t)))))
dddbc90c
RV
641
642(define-public ghc-attoparsec-iso8601
643 (package
644 (name "ghc-attoparsec-iso8601")
97f267c8 645 (version "1.0.1.0")
6b34d01c
RV
646 (source
647 (origin
648 (method url-fetch)
649 (uri (string-append "https://hackage.haskell.org/package/"
dddbc90c
RV
650 "attoparsec-iso8601-" version "/"
651 "attoparsec-iso8601-" version ".tar.gz"))
6b34d01c
RV
652 (sha256
653 (base32
97f267c8 654 "0hj10w15qp2z5bz2v4xahhmbgzclpyfi5l2sv97wqycysg9gp7s9"))))
6b34d01c 655 (build-system haskell-build-system)
dddbc90c
RV
656 (arguments
657 `(#:cabal-revision
97f267c8 658 ("1" "1rjhscmczgs1bwyqx7lvkm8py3ylxjd2797mrzgnq60fvm292750")))
dddbc90c
RV
659 (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
660 ("ghc-base-compat" ,ghc-base-compat)))
661 (home-page "https://github.com/bos/aeson")
662 (synopsis "Parse ISO 8601 dates")
663 (description "Haskell library for parsing of ISO 8601 dates, originally
664from aeson.")
6b34d01c 665 (license license:bsd-3)))
b57e99f5 666
dddbc90c 667(define-public ghc-auto-update
b57e99f5 668 (package
dddbc90c 669 (name "ghc-auto-update")
11b1b6cd 670 (version "0.1.6")
dddbc90c
RV
671 (source
672 (origin
673 (method url-fetch)
674 (uri (string-append
675 "https://hackage.haskell.org/package/auto-update/auto-update-"
676 version
677 ".tar.gz"))
678 (sha256
679 (base32
11b1b6cd 680 "1i36xc2i34aync8271x3pv515l3zb53i518dybn8ghqkhzf27q7l"))))
dddbc90c 681 (build-system haskell-build-system)
11b1b6cd
TS
682 (native-inputs
683 `(("ghc-hspec" ,ghc-hspec)
684 ("ghc-hunit" ,ghc-hunit)
685 ("ghc-retry" ,ghc-retry)
686 ("hspec-discover" ,hspec-discover)))
dddbc90c
RV
687 (home-page "https://github.com/yesodweb/wai")
688 (synopsis "Efficiently run periodic, on-demand actions")
689 (description "This library provides mechanisms to efficiently run
690periodic, on-demand actions in Haskell.")
691 (license license:expat)))
692
693(define-public ghc-aws
694 (package
695 (name "ghc-aws")
696 (version "0.20")
b57e99f5
RV
697 (source
698 (origin
699 (method url-fetch)
700 (uri (string-append "https://hackage.haskell.org/package/"
dddbc90c
RV
701 "aws-" version "/aws-" version ".tar.gz"))
702 (sha256 (base32
703 "0pwpabmypi1w8rni9qfwabgn95jks4h8dyw6889mn8xzsrhdhyf0"))))
704 (build-system haskell-build-system)
705 (arguments `(#:tests? #f)) ; Tests require AWS credentials.
706 (inputs
707 `(("ghc-aeson" ,ghc-aeson)
708 ("ghc-attoparsec" ,ghc-attoparsec)
709 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
710 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
711 ("ghc-blaze-builder" ,ghc-blaze-builder)
712 ("ghc-byteable" ,ghc-byteable)
713 ("ghc-case-insensitive" ,ghc-case-insensitive)
714 ("ghc-cereal" ,ghc-cereal)
715 ("ghc-conduit" ,ghc-conduit)
716 ("ghc-conduit-extra" ,ghc-conduit-extra)
717 ("ghc-cryptonite" ,ghc-cryptonite)
718 ("ghc-data-default" ,ghc-data-default)
719 ("ghc-http-conduit" ,ghc-http-conduit)
720 ("ghc-http-types" ,ghc-http-types)
721 ("ghc-lifted-base" ,ghc-lifted-base)
722 ("ghc-monad-control" ,ghc-monad-control)
723 ("ghc-network" ,ghc-network)
724 ("ghc-old-locale" ,ghc-old-locale)
725 ("ghc-safe" ,ghc-safe)
726 ("ghc-scientific" ,ghc-scientific)
727 ("ghc-tagged" ,ghc-tagged)
728 ("ghc-unordered-containers" ,ghc-unordered-containers)
729 ("ghc-utf8-string" ,ghc-utf8-string)
730 ("ghc-vector" ,ghc-vector)
731 ("ghc-xml-conduit" ,ghc-xml-conduit)))
732 (native-inputs
733 `(("ghc-quickcheck" ,ghc-quickcheck)
734 ("ghc-errors" ,ghc-errors)
735 ("ghc-http-client" ,ghc-http-client)
736 ("ghc-http-client-tls" ,ghc-http-client-tls)
737 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
738 ("ghc-tasty" ,ghc-tasty)
739 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
740 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
741 ("ghc-conduit-combinators" ,ghc-conduit-combinators)))
742 (home-page "https://github.com/aristidb/aws")
743 (synopsis "Amazon Web Services for Haskell")
744 (description "This package attempts to provide support for using
745Amazon Web Services like S3 (storage), SQS (queuing) and others to
746Haskell programmers. The ultimate goal is to support all Amazon
747Web Services.")
748 (license license:bsd-3)))
749
750(define-public ghc-base16-bytestring
751 (package
752 (name "ghc-base16-bytestring")
753 (version "0.1.1.6")
754 (source
755 (origin
756 (method url-fetch)
757 (uri (string-append
758 "https://hackage.haskell.org/package/base16-bytestring/"
759 "base16-bytestring-" version ".tar.gz"))
b57e99f5
RV
760 (sha256
761 (base32
dddbc90c 762 "0jf40m3yijqw6wd1rwwvviww46fasphaay9m9rgqyhf5aahnbzjs"))))
b57e99f5 763 (build-system haskell-build-system)
dddbc90c
RV
764 (home-page "https://github.com/bos/base16-bytestring")
765 (synopsis "Fast base16 (hex) encoding and decoding for ByteStrings")
766 (description
767 "This package provides a Haskell library for working with base16-encoded
768data quickly and efficiently, using the ByteString type.")
b57e99f5 769 (license license:bsd-3)))
bbf8bf31 770
dddbc90c 771(define-public ghc-base64-bytestring
bbf8bf31 772 (package
dddbc90c
RV
773 (name "ghc-base64-bytestring")
774 (version "1.0.0.2")
bbf8bf31
RV
775 (source
776 (origin
777 (method url-fetch)
dddbc90c
RV
778 (uri (string-append
779 "https://hackage.haskell.org/package/base64-bytestring/base64-bytestring-"
780 version
781 ".tar.gz"))
782 (sha256
783 (base32 "13305brzlac24pifiqd5a2z10c6k6amhpdy9cc0z5ryrkgnm8dhr"))))
784 (build-system haskell-build-system)
785 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
786 (home-page "https://github.com/bos/base64-bytestring")
787 (synopsis "Base64 encoding and decoding for ByteStrings")
788 (description "This library provides fast base64 encoding and decoding for
789Haskell @code{ByteString}s.")
790 (license license:bsd-3)))
791
792(define-public ghc-base-compat
793 (package
794 (name "ghc-base-compat")
4daaa371 795 (version "0.10.5")
dddbc90c
RV
796 (source
797 (origin
798 (method url-fetch)
799 (uri (string-append
800 "https://hackage.haskell.org/package/base-compat/base-compat-"
801 version
802 ".tar.gz"))
bbf8bf31
RV
803 (sha256
804 (base32
4daaa371 805 "0hgvlqcr852hfp52jp99snhbj550mvxxpi8qn15d8ml9aqhyl2lr"))))
bbf8bf31 806 (build-system haskell-build-system)
e2b021df 807 (outputs '("out" "static" "doc"))
bbf8bf31 808 (native-inputs
dddbc90c
RV
809 `(("ghc-quickcheck" ,ghc-quickcheck)
810 ("ghc-hspec" ,ghc-hspec)
811 ("hspec-discover" ,hspec-discover)))
812 (home-page "https://hackage.haskell.org/package/base-compat")
813 (synopsis "Haskell compiler compatibility library")
814 (description "This library provides functions available in later versions
815of base to a wider range of compilers, without requiring the use of CPP
816pragmas in your code.")
817 (license license:bsd-3)))
818
f9d78c7f
TS
819(define-public ghc-base-compat-batteries
820 (package
821 (name "ghc-base-compat-batteries")
822 (version "0.10.5")
823 (source
824 (origin
825 (method url-fetch)
826 (uri (string-append "https://hackage.haskell.org/package/"
827 "base-compat-batteries/base-compat-batteries-"
828 version ".tar.gz"))
829 (sha256
830 (base32
831 "1vkhc639vqiv5p39jn1v312z32i7yk5q2lf0ap4jxl1v8p8wyp8p"))))
832 (build-system haskell-build-system)
833 (inputs
834 `(("ghc-base-compat" ,ghc-base-compat)))
835 (native-inputs
836 `(("ghc-hspec" ,ghc-hspec)
837 ("ghc-quickcheck" ,ghc-quickcheck)
838 ("hspec-discover" ,hspec-discover)))
839 (arguments
840 `(#:cabal-revision
841 ("1" "15sn2qc8k0hxbb2nai341kkrci98hlhzcj2ci087m0zxcg5jcdbp")))
3ef91e15 842 (home-page "https://hackage.haskell.org/package/base-compat-batteries")
f9d78c7f
TS
843 (synopsis "base-compat with extra batteries")
844 (description "This library provides functions available in later
845versions of @code{base} to a wider range of compilers, without requiring
846you to use CPP pragmas in your code. This package provides the same API
847as the @code{base-compat} library, but depends on compatibility
848packages (such as @code{semigroups}) to offer a wider support window
849than @code{base-compat}, which has no dependencies.")
850 (license license:expat)))
851
dddbc90c
RV
852(define-public ghc-basement
853 (package
854 (name "ghc-basement")
8b56c1fd 855 (version "0.0.11")
dddbc90c
RV
856 (source
857 (origin
858 (method url-fetch)
859 (uri (string-append "https://hackage.haskell.org/package/"
860 "basement/basement-" version ".tar.gz"))
861 (sha256
862 (base32
8b56c1fd 863 "0srlws74yiraqaapgcjd9p5d1fwb3zr9swcz74jpjm55fls2nn37"))))
dddbc90c 864 (build-system haskell-build-system)
05f7f8be 865 (outputs '("out" "static" "doc"))
dddbc90c
RV
866 (home-page "https://github.com/haskell-foundation/foundation")
867 (synopsis "Basic primitives for Foundation starter pack")
868 (description
869 "This package contains basic primitives for the Foundation set of
870packages.")
871 (license license:bsd-3)))
872
873(define-public ghc-base-orphans
874 (package
875 (name "ghc-base-orphans")
780477fb 876 (version "0.8.1")
dddbc90c
RV
877 (source
878 (origin
879 (method url-fetch)
880 (uri (string-append
881 "https://hackage.haskell.org/package/base-orphans/base-orphans-"
882 version
883 ".tar.gz"))
884 (sha256
885 (base32
780477fb 886 "1nwr9av27i9p72k0sn96mw3ywdczw65dy5gd5wxpabhhxlxdcas4"))))
dddbc90c
RV
887 (build-system haskell-build-system)
888 (native-inputs
889 `(("ghc-quickcheck" ,ghc-quickcheck)
890 ("ghc-hspec" ,ghc-hspec)
891 ("hspec-discover" ,hspec-discover)))
892 (home-page "https://hackage.haskell.org/package/base-orphans")
893 (synopsis "Orphan instances for backwards compatibility")
894 (description "This package defines orphan instances that mimic instances
895available in later versions of base to a wider (older) range of compilers.")
896 (license license:bsd-3)))
897
898(define-public ghc-base-prelude
899 (package
900 (name "ghc-base-prelude")
901 (version "1.3")
902 (source
903 (origin
904 (method url-fetch)
905 (uri (string-append "https://hackage.haskell.org/package/"
906 "base-prelude-" version "/"
907 "base-prelude-" version ".tar.gz"))
908 (sha256
909 (base32
910 "1zk728sd09hh2r4xwz4lazsrrgg5cshydn64932sm0vckplndk73"))))
911 (build-system haskell-build-system)
3d7ee2f8 912 (outputs '("out" "static" "doc"))
dddbc90c
RV
913 (home-page "https://github.com/nikita-volkov/base-prelude")
914 (synopsis "The most complete prelude formed solely from the Haskell's base
915package")
916 (description "This Haskell package aims to reexport all the non-conflicting
917and most general definitions from the \"base\" package.
918
919This includes APIs for applicatives, arrows, monoids, foldables, traversables,
920exceptions, generics, ST, MVars and STM.
921
922This package will never have any dependencies other than \"base\".
923
924Versioning policy:
925
926The versioning policy of this package deviates from PVP in the sense
927that its exports in part are transitively determined by the version of \"base\".
928Therefore it's recommended for the users of @code{ghc-base-prelude} to specify
929the bounds of \"base\" as well.")
930 (license license:expat)))
931
932(define-public ghc-base-unicode-symbols
933 (package
934 (name "ghc-base-unicode-symbols")
935 (version "0.2.3")
936 (source
937 (origin
938 (method url-fetch)
939 (uri (string-append
940 "mirror://hackage/package/base-unicode-symbols/base-unicode-symbols-"
941 version
942 ".tar.gz"))
943 (sha256
944 (base32
945 "1ia6li7qjg1zkak4gf6mnbshw45mq9bfjr0jch58ds0lscmvwyzf"))))
946 (build-system haskell-build-system)
228d2901 947 (home-page "https://wiki.haskell.org/Unicode-symbols")
dddbc90c
RV
948 (synopsis "Unicode alternatives for common functions and operators")
949 (description "This package defines new symbols for a number of functions,
950operators and types in the base package. All symbols are documented with
951their actual definition and information regarding their Unicode code point.
952They should be completely interchangeable with their definitions. For
953further Unicode goodness you can enable the @code{UnicodeSyntax}
954@url{https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exs.html#unicode-syntax,
955language extension}. This extension enables Unicode characters to be used to
956stand for certain ASCII character sequences, i.e. → instead of @code{->},
957∀ instead of @code{forall} and many others.")
958 (license license:bsd-3)))
959
ec8491b0
ASM
960(define-public ghc-basic-prelude
961 (package
962 (name "ghc-basic-prelude")
963 (version "0.7.0")
964 (source
965 (origin
966 (method url-fetch)
967 (uri (string-append
968 "https://hackage.haskell.org/package/basic-prelude/"
969 "basic-prelude-" version ".tar.gz"))
970 (sha256
971 (base32
972 "0yckmnvm6i4vw0mykj4fzl4ldsf67v8d2h0vp1bakyj84n4myx8h"))))
973 (build-system haskell-build-system)
974 (inputs
975 `(("ghc-hashable" ,ghc-hashable)
976 ("ghc-unordered-containers"
977 ,ghc-unordered-containers)
978 ("ghc-vector" ,ghc-vector)))
979 (home-page "https://github.com/snoyberg/basic-prelude#readme")
980 (synopsis "Enhanced core prelude; a common foundation for alternate preludes")
981 (description
982 "The premise of basic-prelude is that there are a lot of very commonly
983desired features missing from the standard Prelude, such as commonly used
984operators (<$> and >=>, for instance) and imports for common datatypes
985(e.g., ByteString and Vector). At the same time, there are lots of other
986components which are more debatable, such as providing polymorphic versions
987of common functions.
988
989So basic-prelude is intended to give a common foundation for a number of
990alternate preludes. The package provides two modules: CorePrelude provides
991the common ground for other preludes to build on top of, while BasicPrelude
992exports CorePrelude together with commonly used list functions to provide a
993drop-in replacement for the standard Prelude.
994
995Users wishing to have an improved Prelude can use BasicPrelude. Developers
996wishing to create a new prelude should use CorePrelude.")
997 (license license:expat)))
998
dddbc90c
RV
999(define-public ghc-bifunctors
1000 (package
1001 (name "ghc-bifunctors")
0beaec66 1002 (version "5.5.5")
dddbc90c
RV
1003 (source
1004 (origin
1005 (method url-fetch)
1006 (uri (string-append
1007 "https://hackage.haskell.org/package/bifunctors/bifunctors-"
1008 version
1009 ".tar.gz"))
1010 (sha256
1011 (base32
0beaec66 1012 "0rn47q8dzv0g1fyams99p4py6q0asxdc50q9k0nj497brk738xcb"))))
dddbc90c
RV
1013 (build-system haskell-build-system)
1014 (inputs
1015 `(("ghc-base-orphans" ,ghc-base-orphans)
1016 ("ghc-comonad" ,ghc-comonad)
1017 ("ghc-th-abstraction" ,ghc-th-abstraction)
1018 ("ghc-transformers-compat" ,ghc-transformers-compat)
1019 ("ghc-tagged" ,ghc-tagged)
1020 ("ghc-semigroups" ,ghc-semigroups)))
1021 (native-inputs
1022 `(("ghc-hspec" ,ghc-hspec)
1023 ("hspec-discover" ,hspec-discover)
1024 ("ghc-quickcheck" ,ghc-quickcheck)))
1025 (home-page "https://github.com/ekmett/bifunctors/")
1026 (synopsis "Bifunctors for Haskell")
1027 (description "This package provides bifunctors for Haskell.")
1028 (license license:bsd-3)))
1029
1030(define-public ghc-bindings-dsl
1031 (package
1032 (name "ghc-bindings-dsl")
1033 (version "1.0.25")
1034 (source
1035 (origin
1036 (method url-fetch)
1037 (uri (string-append "https://hackage.haskell.org/package/bindings-DSL/"
1038 "bindings-DSL-" version ".tar.gz"))
1039 (sha256
1040 (base32
1041 "0kqrd78nspl3lk4a0fqn47d8dirjg3b24dkvkigcrlb81hw35pk3"))))
1042 (build-system haskell-build-system)
1043 (home-page "https://github.com/jwiegley/bindings-dsl/wiki")
1044 (synopsis "FFI domain specific language, on top of hsc2hs")
1045 (description
1046 "This is a set of macros to be used when writing Haskell FFI. They were
1047designed to be able to fully describe C interfaces, so that @code{hsc2hs} can
1048extract from them all Haskell code needed to mimic such interfaces. All
1049Haskell names used are automatically derived from C names, structures are
1050mapped to Haskell instances of @code{Storable}, and there are also macros you
1051can use with C code to help write bindings to inline functions or macro
1052functions.")
1053 (license license:bsd-3)))
1054
64f42786
TS
1055(define-public ghc-bitarray
1056 (package
1057 (name "ghc-bitarray")
1058 (version "0.0.1.1")
1059 (source
1060 (origin
1061 (method url-fetch)
1062 (uri (string-append "https://hackage.haskell.org/package/"
1063 "bitarray/bitarray-" version ".tar.gz"))
1064 (sha256
1065 (base32
1066 "00nqd62cbh42qqqvcl6iv1i9kbv0f0mkiygv4j70wfh5cl86yzxj"))))
1067 (build-system haskell-build-system)
1068 (arguments
1069 `(#:cabal-revision
1070 ("1" "10fk92v9afjqk43zi621jxl0n8kci0xjj32lz3vqa9xbh67zjz45")))
1071 (home-page "https://hackage.haskell.org/package/bitarray")
1072 (synopsis "Mutable and immutable bit arrays")
1073 (description "The package provides mutable and immutable bit arrays.")
1074 (license license:bsd-3)))
1075
dddbc90c
RV
1076(define-public ghc-blaze-builder
1077 (package
1078 (name "ghc-blaze-builder")
1079 (version "0.4.1.0")
1080 (source
1081 (origin
1082 (method url-fetch)
1083 (uri (string-append
1084 "https://hackage.haskell.org/package/blaze-builder/blaze-builder-"
1085 version
1086 ".tar.gz"))
1087 (sha256
1088 (base32
1089 "05681dih2d8s96an945wkbwl05w8ddbcfx8n3r3ck79ydyb8pz4i"))))
1090 (build-system haskell-build-system)
1091 (arguments `(#:tests? #f)) ; FIXME: Missing test libraries.
1092 (inputs
1093 `(("ghc-utf8-string" ,ghc-utf8-string)))
1094 (home-page "https://github.com/lpsmith/blaze-builder")
1095 (synopsis "Efficient buffered output")
1096 (description "This library provides an implementation of the older
1097@code{blaze-builder} interface in terms of the new builder that shipped with
1098@code{bytestring-0.10.4.0}. This implementation is mostly intended as a
1099bridge to the new builder, so that code that uses the old interface can
1100interoperate with code that uses the new implementation.")
1101 (license license:bsd-3)))
1102
1103(define-public ghc-blaze-markup
1104 (package
1105 (name "ghc-blaze-markup")
7d30fcf3 1106 (version "0.8.2.3")
dddbc90c
RV
1107 (source
1108 (origin
1109 (method url-fetch)
1110 (uri (string-append "https://hackage.haskell.org/package/"
1111 "blaze-markup/blaze-markup-"
1112 version ".tar.gz"))
1113 (sha256
1114 (base32
7d30fcf3 1115 "1g9m7ansj7fdyzhz1wqkbzn5amjm50vjgjdwkbjc5qqhagnv1y3j"))))
dddbc90c
RV
1116 (build-system haskell-build-system)
1117 (arguments
1118 `(#:phases
1119 (modify-phases %standard-phases
1120 (add-before 'configure 'update-constraints
1121 (lambda _
1122 (substitute* "blaze-markup.cabal"
1123 (("tasty >= 1\\.0 && < 1\\.1")
1124 "tasty >= 1.0 && < 1.2")))))))
1125 (inputs
1126 `(("ghc-blaze-builder" ,ghc-blaze-builder)))
1127 (native-inputs
1128 `(("ghc-hunit" ,ghc-hunit)
1129 ("ghc-quickcheck" ,ghc-quickcheck)
1130 ("ghc-tasty" ,ghc-tasty)
1131 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
1132 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
1133 (home-page "https://jaspervdj.be/blaze")
1134 (synopsis "Fast markup combinator library for Haskell")
1135 (description "This library provides core modules of a markup combinator
1136library for Haskell.")
1137 (license license:bsd-3)))
1138
1139(define-public ghc-bloomfilter
1140 (package
1141 (name "ghc-bloomfilter")
1142 (version "2.0.1.0")
1143 (source
1144 (origin
1145 (method url-fetch)
1146 (uri (string-append "https://hackage.haskell.org/package/"
1147 "bloomfilter/bloomfilter-" version ".tar.gz"))
1148 (sha256
1149 (base32
1150 "03vrmncg1c10a2wcg5skq30m1yiknn7nwxz2gblyyfaxglshspkc"))))
1151 (build-system haskell-build-system)
1152 (native-inputs
1153 `(("ghc-quickcheck" ,ghc-quickcheck)
1154 ("ghc-random" ,ghc-random)
1155 ("ghc-test-framework" ,ghc-test-framework)
1156 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
1157 (home-page "https://github.com/bos/bloomfilter")
1158 (synopsis "Pure and impure Bloom filter implementations")
1159 (description "This package provides both mutable and immutable Bloom
1160filter data types, along with a family of hash functions and an easy-to-use
1161interface.")
1162 (license license:bsd-3)))
1163
1164(define-public ghc-boxes
1165 (package
1166 (name "ghc-boxes")
1167 (version "0.1.5")
1168 (source
1169 (origin
1170 (method url-fetch)
1171 (uri (string-append "https://hackage.haskell.org/package/boxes/boxes-"
1172 version ".tar.gz"))
1173 (sha256
1174 (base32 "1hsnmw95i58d4bkpxby3ddsj1cawypw4mdyb18m393s5i8p7iq9q"))))
1175 (build-system haskell-build-system)
1176 (inputs
1177 `(("ghc-split" ,ghc-split)
1178 ("ghc-quickcheck" ,ghc-quickcheck)))
1179 (home-page "https://hackage.haskell.org/package/boxes")
1180 (synopsis "2D text pretty-printing library")
1181 (description
1182 "Boxes is a pretty-printing library for laying out text in two dimensions,
1183using a simple box model.")
1184 (license license:bsd-3)))
1185
1186(define-public ghc-byteable
1187 (package
1188 (name "ghc-byteable")
1189 (version "0.1.1")
1190 (source (origin
1191 (method url-fetch)
1192 (uri (string-append "https://hackage.haskell.org/package/"
1193 "byteable/byteable-" version ".tar.gz"))
1194 (sha256
1195 (base32
1196 "1qizg0kxxjqnd3cbrjhhidk5pbbciz0pb3z5kzikjjxnnnhk8fr4"))))
1197 (build-system haskell-build-system)
1198 (home-page "https://github.com/vincenthz/hs-byteable")
1199 (synopsis "Type class for sequence of bytes")
1200 (description
1201 "This package provides an abstract class to manipulate sequence of bytes.
1202The use case of this class is abstracting manipulation of types that are just
1203wrapping a bytestring with stronger and more meaniful name.")
1204 (license license:bsd-3)))
1205
1206(define-public ghc-byteorder
1207 (package
1208 (name "ghc-byteorder")
1209 (version "1.0.4")
1210 (source
1211 (origin
1212 (method url-fetch)
1213 (uri (string-append
1214 "https://hackage.haskell.org/package/byteorder/byteorder-"
1215 version
1216 ".tar.gz"))
1217 (sha256
1218 (base32
1219 "06995paxbxk8lldvarqpb3ygcjbg4v8dk4scib1rjzwlhssvn85x"))))
1220 (build-system haskell-build-system)
1221 (home-page
1222 "http://community.haskell.org/~aslatter/code/byteorder")
1223 (synopsis
1224 "Exposes the native endianness of the system")
1225 (description
1226 "This package is for working with the native byte-ordering of the
1227system.")
1228 (license license:bsd-3)))
1229
1230(define-public ghc-bytes
1231 (package
1232 (name "ghc-bytes")
1233 (version "0.15.5")
1234 (source
1235 (origin
1236 (method url-fetch)
1237 (uri
1238 (string-append "https://hackage.haskell.org/package/bytes-"
1239 version "/bytes-"
1240 version ".tar.gz"))
1241 (file-name (string-append name "-" version ".tar.gz"))
1242 (sha256
1243 (base32
1244 "063il2vrn0p88r9gzndh4ijs0mxj37khkc9ym9bqdsv7ngk3b683"))))
1245 (build-system haskell-build-system)
1246 (inputs `(("ghc-cereal" ,ghc-cereal)
1247 ("cabal-doctest" ,cabal-doctest)
1248 ("ghc-doctest" ,ghc-doctest)
1249 ("ghc-scientific" ,ghc-scientific)
1250 ("ghc-transformers-compat" ,ghc-transformers-compat)
1251 ("ghc-unordered-containers" ,ghc-unordered-containers)
1252 ("ghc-void" ,ghc-void)
1253 ("ghc-vector" ,ghc-vector)))
1254 (synopsis "Serialization between @code{binary} and @code{cereal}")
1255 (description "This package provides a simple compatibility shim that lets
1256you work with both @code{binary} and @code{cereal} with one chunk of
1257serialization code.")
1258 (home-page "https://hackage.haskell.org/package/bytes")
1259 (license license:bsd-3)))
1260
1261(define-public ghc-bytestring-builder
1262 (package
1263 (name "ghc-bytestring-builder")
13ac8a7f 1264 (version "0.10.8.2.0")
dddbc90c
RV
1265 (source
1266 (origin
1267 (method url-fetch)
1268 (uri (string-append
1269 "https://hackage.haskell.org/package/bytestring-builder"
1270 "/bytestring-builder-" version ".tar.gz"))
1271 (sha256
1272 (base32
13ac8a7f 1273 "0grcrgwwwcvwrs9az7l4d3kf0lsqfa9qpmjzf6iyanvwn9nyzyi7"))))
dddbc90c
RV
1274 (build-system haskell-build-system)
1275 (arguments `(#:haddock? #f)) ; Package contains no documentation.
1276 (home-page "https://hackage.haskell.org/package/bytestring-builder")
1277 (synopsis "The new bytestring builder, packaged outside of GHC")
1278 (description "This package provides the bytestring builder that is
1279debuting in bytestring-0.10.4.0, which should be shipping with GHC 7.8.
1280Compatibility package for older packages.")
1281 (license license:bsd-3)))
1282
1283(define-public ghc-bytestring-handle
1284 (package
1285 (name "ghc-bytestring-handle")
1286 (version "0.1.0.6")
1287 (source
1288 (origin
1289 (method url-fetch)
1290 (uri (string-append
1291 "https://hackage.haskell.org/package/bytestring-handle/bytestring-handle-"
1292 version ".tar.gz"))
1293 (sha256
1294 (base32
1295 "18f17aja1ivhr3zyg2cccn2m03hdn5jf5410dndkhf12gvgiqs7y"))))
1296 (build-system haskell-build-system)
1297 (arguments
853748c4
TS
1298 `(#:cabal-revision
1299 ("1" "0x11aj6w1lijh84jcdq1qgyvdnc7i9ivbyq4wf9rxicg57viisz9")
1300 #:phases
dddbc90c
RV
1301 (modify-phases %standard-phases
1302 (add-before 'configure 'update-constraints
1303 (lambda _
1304 (substitute* "bytestring-handle.cabal"
1305 (("QuickCheck >= 2\\.1\\.2 && < 2\\.11")
853748c4 1306 "QuickCheck >= 2.1.2 && < 2.14")))))))
dddbc90c
RV
1307 (inputs
1308 `(("ghc-hunit" ,ghc-hunit)
1309 ("ghc-quickcheck" ,ghc-quickcheck)
1310 ("ghc-test-framework" ,ghc-test-framework)
1311 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
1312 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
1313 (home-page "https://hub.darcs.net/ganesh/bytestring-handle")
1314 (synopsis "ByteString-backed Handles")
1315 (description "ByteString-backed Handles") ; There is no description
1316 (license license:bsd-3)))
1317
1318(define-public ghc-bytestring-lexing
1319 (package
1320 (name "ghc-bytestring-lexing")
1321 (version "0.5.0.2")
1322 (source
1323 (origin
1324 (method url-fetch)
1325 (uri (string-append "https://hackage.haskell.org/package/"
1326 "bytestring-lexing/bytestring-lexing-"
1327 version ".tar.gz"))
1328 (sha256
1329 (base32
1330 "0wrzniawhgpphc6yx1v972gyqxdbv0pizaz9bafahrshyb9svy81"))))
1331 (build-system haskell-build-system)
1332 (home-page "http://code.haskell.org/~wren/")
1333 (synopsis "Parse and produce literals from strict or lazy bytestrings")
1334 (description
1335 "This package provides tools to parse and produce literals efficiently
1336from strict or lazy bytestrings.")
1337 (license license:bsd-2)))
1338
1339(define-public ghc-bzlib-conduit
1340 (package
1341 (name "ghc-bzlib-conduit")
5fba8d6d 1342 (version "0.3.0.2")
dddbc90c
RV
1343 (source
1344 (origin
1345 (method url-fetch)
1346 (uri (string-append "https://hackage.haskell.org/package/bzlib-conduit/"
1347 "bzlib-conduit-" version ".tar.gz"))
1348 (sha256
1349 (base32
5fba8d6d 1350 "0a21zin5plsl37hkxh2jv8cxwyjrbs2fy7n5cyrzgdaa7lmp6b7b"))))
dddbc90c
RV
1351 (build-system haskell-build-system)
1352 (inputs
1353 `(("ghc-bindings-dsl" ,ghc-bindings-dsl)
1354 ("ghc-conduit" ,ghc-conduit)
1355 ("ghc-data-default-class" ,ghc-data-default-class)
1356 ("ghc-resourcet" ,ghc-resourcet)))
1357 (native-inputs
1358 `(("ghc-hspec" ,ghc-hspec)
1359 ("ghc-random" ,ghc-random)))
1360 (home-page "https://github.com/snoyberg/bzlib-conduit")
1361 (synopsis "Streaming compression/decompression via conduits")
1362 (description
1363 "This package provides Haskell bindings to bzlib and Conduit support for
1364streaming compression and decompression.")
1365 (license license:bsd-3)))
1366
1367(define-public ghc-c2hs
1368 (package
1369 (name "ghc-c2hs")
1370 (version "0.28.6")
1371 (source
1372 (origin
1373 (method url-fetch)
1374 (uri (string-append
1375 "https://hackage.haskell.org/package/c2hs/c2hs-"
1376 version
1377 ".tar.gz"))
1378 (sha256
1379 (base32
1380 "1nplgxfin139x12sb656f5870rpdclrhzi8mq8pry035qld15pci"))))
1381 (build-system haskell-build-system)
1382 (inputs
1383 `(("ghc-language-c" ,ghc-language-c)
1384 ("ghc-dlist" ,ghc-dlist)))
1385 (native-inputs
1386 `(("ghc-test-framework" ,ghc-test-framework)
1387 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
1388 ("ghc-hunit" ,ghc-hunit)
a723d36d 1389 ("ghc-shelly" ,ghc-shelly)))
dddbc90c 1390 (arguments
bfebc598 1391 `(#:phases
dddbc90c
RV
1392 (modify-phases %standard-phases
1393 (add-before 'check 'set-cc
1394 ;; add a cc executable in the path, needed for some tests to pass
1395 (lambda* (#:key inputs #:allow-other-keys)
1396 (let ((gcc (assoc-ref inputs "gcc"))
1397 (tmpbin (tmpnam))
1398 (curpath (getenv "PATH")))
1399 (mkdir-p tmpbin)
1400 (symlink (which "gcc") (string-append tmpbin "/cc"))
1401 (setenv "PATH" (string-append tmpbin ":" curpath)))
1402 #t))
1403 (add-after 'check 'remove-cc
1404 ;; clean the tmp dir made in 'set-cc
1405 (lambda _
1406 (let* ((cc-path (which "cc"))
1407 (cc-dir (dirname cc-path)))
1408 (delete-file-recursively cc-dir)
1409 #t))))))
1410 (home-page "https://github.com/haskell/c2hs")
1411 (synopsis "Create Haskell bindings to C libraries")
1412 (description "C->Haskell assists in the development of Haskell bindings to
1413C libraries. It extracts interface information from C header files and
1414generates Haskell code with foreign imports and marshaling. Unlike writing
1415foreign imports by hand (or using hsc2hs), this ensures that C functions are
1416imported with the correct Haskell types.")
1417 (license license:gpl2)))
1418
1419(define-public ghc-cairo
1420 (package
1421 (name "ghc-cairo")
1422 (version "0.13.5.0")
1423 (source
1424 (origin
1425 (method url-fetch)
1426 (uri (string-append "https://hackage.haskell.org/package/cairo/"
1427 "cairo-" version ".tar.gz"))
1428 (sha256
1429 (base32
1430 "1wxylv4d8120ri0vgar168ikqa9m6533ipdwi38qlmxmw20ws2j2"))))
1431 (build-system haskell-build-system)
1432 (arguments
1433 `(#:modules ((guix build haskell-build-system)
1434 (guix build utils)
1435 (ice-9 match)
1436 (srfi srfi-26))
1437 #:phases
1438 (modify-phases %standard-phases
1439 ;; FIXME: This is a copy of the standard configure phase with a tiny
1440 ;; difference: this package needs the -package-db flag to be passed
1441 ;; to "runhaskell" in addition to the "configure" action, because it
1442 ;; depends on gtk2hs-buildtools, which provide setup hooks. Without
1443 ;; this option the Setup.hs file cannot be evaluated. The
1444 ;; haskell-build-system should be changed to pass "-package-db" to
1445 ;; "runhaskell" in any case.
1446 (replace 'configure
1447 (lambda* (#:key outputs inputs tests? (configure-flags '())
1448 #:allow-other-keys)
1449 (let* ((out (assoc-ref outputs "out"))
1450 (name-version (strip-store-file-name out))
1451 (input-dirs (match inputs
1452 (((_ . dir) ...)
1453 dir)
1454 (_ '())))
1455 (ghc-path (getenv "GHC_PACKAGE_PATH"))
1456 (params (append `(,(string-append "--prefix=" out))
1457 `(,(string-append "--libdir=" out "/lib"))
1458 `(,(string-append "--bindir=" out "/bin"))
1459 `(,(string-append
1460 "--docdir=" out
1461 "/share/doc/" name-version))
1462 '("--libsubdir=$compiler/$pkg-$version")
1463 '("--package-db=../package.conf.d")
1464 '("--global")
1465 `(,@(map
1466 (cut string-append "--extra-include-dirs=" <>)
1467 (search-path-as-list '("include") input-dirs)))
1468 `(,@(map
1469 (cut string-append "--extra-lib-dirs=" <>)
1470 (search-path-as-list '("lib") input-dirs)))
1471 (if tests?
1472 '("--enable-tests")
1473 '())
1474 configure-flags)))
1475 (unsetenv "GHC_PACKAGE_PATH")
1476 (apply invoke "runhaskell" "-package-db=../package.conf.d"
1477 "Setup.hs" "configure" params)
1478 (setenv "GHC_PACKAGE_PATH" ghc-path)
1479 #t))))))
1480 (inputs
1481 `(("ghc-utf8-string" ,ghc-utf8-string)
1482 ("cairo" ,cairo)))
1483 (native-inputs
1484 `(("ghc-gtk2hs-buildtools" ,ghc-gtk2hs-buildtools)
1485 ("pkg-config" ,pkg-config)))
1486 (home-page "http://projects.haskell.org/gtk2hs/")
1487 (synopsis "Haskell bindings to the Cairo vector graphics library")
1488 (description
1489 "Cairo is a library to render high quality vector graphics. There exist
1490various backends that allows rendering to Gtk windows, PDF, PS, PNG and SVG
1491documents, amongst others.")
1492 (license license:bsd-3)))
1493
1494(define-public ghc-call-stack
1495 (package
1496 (name "ghc-call-stack")
1497 (version "0.1.0")
1498 (source
1499 (origin
1500 (method url-fetch)
1501 (uri (string-append "https://hackage.haskell.org/package/"
1502 "call-stack/call-stack-"
1503 version ".tar.gz"))
1504 (sha256
1505 (base32
1506 "1qmihf5jafmc79sk52l6gpx75f5bnla2lp62kh3p34x3j84mwpzj"))))
1507 (build-system haskell-build-system)
1508 (inputs `(("ghc-nanospec" ,ghc-nanospec)))
1509 (home-page "https://github.com/sol/call-stack#readme")
1510 (synopsis "Use GHC call-stacks in a backward compatible way")
1511 (description "This package provides a compatibility layer for using GHC
1512call stacks with different versions of the compiler.")
1513 (license license:expat)))
1514
1515;; This is used as an input to ghc-hunit. We cannot use ghc-call-stack there,
1516;; because it depends on ghc-nanospec, which depends on ghc-hunit.
1517(define-public ghc-call-stack-boot
1518 (hidden-package
1519 (package
1520 (inherit ghc-call-stack)
1521 (arguments '(#:tests? #f))
1522 (inputs '()))))
1523
1524(define-public ghc-case-insensitive
1525 (package
1526 (name "ghc-case-insensitive")
1527 (version "1.2.0.11")
534d6caa 1528 (outputs '("out" "static" "doc"))
dddbc90c
RV
1529 (source
1530 (origin
1531 (method url-fetch)
1532 (uri (string-append
1533 "https://hackage.haskell.org/package/case-insensitive/case-insensitive-"
1534 version
1535 ".tar.gz"))
1536 (sha256
1537 (base32
1538 "1qrpxfirsxckg7jv28f5ah2qc8lh95hp7rnqkbqs1ahcwlbnvkm7"))))
1539 (build-system haskell-build-system)
1540 ;; these inputs are necessary to use this library
1541 (inputs
1542 `(("ghc-hashable" ,ghc-hashable)))
1543 (arguments
1544 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
1545 (home-page
1546 "https://github.com/basvandijk/case-insensitive")
1547 (synopsis "Case insensitive string comparison")
1548 (description
1549 "The module @code{Data.CaseInsensitive} provides the @code{CI} type
1550constructor which can be parameterised by a string-like type like:
1551@code{String}, @code{ByteString}, @code{Text}, etc. Comparisons of values of
1552the resulting type will be insensitive to cases.")
1553 (license license:bsd-3)))
1554
6ba536a1
JS
1555(define-public ghc-cborg
1556 (package
1557 (name "ghc-cborg")
1558 (version "0.2.2.0")
1559 (source
1560 (origin
1561 (method url-fetch)
1562 (uri (string-append
1563 "mirror://hackage/package/cborg/cborg-"
1564 version
1565 ".tar.gz"))
1566 (sha256
1567 (base32
1568 "1rdnvy0w17s70ikmbyrnwax5rvqh19l95sh8i7ipgxi23z1r0bp1"))))
1569 (build-system haskell-build-system)
1570 (inputs
1571 `(("ghc-half" ,ghc-half)
1572 ("ghc-primitive" ,ghc-primitive)))
1573 (native-inputs
1574 `(("ghc-aeson" ,ghc-aeson)
1575 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
1576 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
1577 ("ghc-fail" ,ghc-fail)
1578 ("ghc-quickcheck" ,ghc-quickcheck)
1579 ("ghc-scientific" ,ghc-scientific)
1580 ("ghc-tasty" ,ghc-tasty)
1581 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
1582 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
1583 ("ghc-vector" ,ghc-vector)))
1584 (home-page "http://hackage.haskell.org/package/cborg")
1585 (synopsis "Concise Binary Object Representation")
1586 (description
1587 "This package (formerly binary-serialise-cbor) provides an
1588efficient implementation of the Concise Binary Object
1589Representation (CBOR), as specified by RFC 7049 at
1590https://tools.ietf.org/html/rfc7049.
1591
1592If you are looking for a library for serialisation of Haskell values, have a
1593look at the @url{https://hackage.haskell.org/package/serialise} package, which
1594is built upon this library.
1595
1596An implementation of the standard bijection between CBOR and JSON is provided
1597by the @url{https://hackage.haskell.org/package/cborg-json} package.
1598
1599Also see @code{https://hackage.haskell.org/package/cbor-tool} for a convenient
1600command-line utility for working with CBOR data.")
1601 (license license:bsd-3)))
1602
5434fec9
JS
1603(define-public ghc-cborg-json
1604 (package
1605 (name "ghc-cborg-json")
1606 (version "0.2.2.0")
1607 (source
1608 (origin
1609 (method url-fetch)
1610 (uri (string-append
1611 "mirror://hackage/package/cborg-json/cborg-json-"
1612 version
1613 ".tar.gz"))
1614 (sha256
1615 (base32 "0ysilz7rrjk94sqr3a61s98hr9qfi1xg13bskmlpc6mpgi2s4s5b"))))
1616 (build-system haskell-build-system)
1617 (inputs
1618 `(("ghc-aeson" ,ghc-aeson)
1619 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
1620 ("ghc-unordered-containers" ,ghc-unordered-containers)
1621 ("ghc-scientific" ,ghc-scientific)
1622 ("ghc-vector" ,ghc-vector)
1623 ("ghc-cborg" ,ghc-cborg)))
1624 (home-page "https://github.com/well-typed/cborg")
1625 (synopsis "A library for encoding JSON as CBOR")
1626 (description
1627 "This package implements the bijection between JSON and CBOR
1628defined in the CBOR specification, RFC 7049.")
1629 (license license:bsd-3)))
1630
dddbc90c
RV
1631(define-public ghc-cereal
1632 (package
1633 (name "ghc-cereal")
bd95427e 1634 (version "0.5.8.1")
dddbc90c
RV
1635 (source
1636 (origin
1637 (method url-fetch)
1638 (uri (string-append
1639 "https://hackage.haskell.org/package/cereal/cereal-"
1640 version
1641 ".tar.gz"))
1642 (sha256
1643 (base32
bd95427e 1644 "1mqvd1iwzr50az4y24332x3g3wsrzw8j1iwph02vr7jbjfn8i7id"))))
dddbc90c
RV
1645 (build-system haskell-build-system)
1646 (native-inputs
1647 `(("ghc-quickcheck" ,ghc-quickcheck)
1648 ("ghc-fail" ,ghc-fail)
1649 ("ghc-test-framework" ,ghc-test-framework)
1650 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
1651 (home-page "https://hackage.haskell.org/package/cereal")
1652 (synopsis "Binary serialization library")
1653 (description "This package provides a binary serialization library,
1654similar to @code{binary}, that introduces an @code{isolate} primitive for
1655parser isolation, and labeled blocks for better error messages.")
1656 (license license:bsd-3)))
1657
1658(define-public ghc-cereal-conduit
1659 (package
1660 (name "ghc-cereal-conduit")
1661 (version "0.8.0")
1662 (source
1663 (origin
1664 (method url-fetch)
1665 (uri (string-append "https://hackage.haskell.org/package/"
1666 "cereal-conduit/cereal-conduit-"
1667 version ".tar.gz"))
1668 (sha256
1669 (base32
1670 "1srr7agvgfw78q5s1npjq5sgynvhjgllpihiv37ylkwqm4c4ap6r"))))
1671 (build-system haskell-build-system)
1672 (inputs
1673 `(("ghc-conduit" ,ghc-conduit)
1674 ("ghc-resourcet" ,ghc-resourcet)
1675 ("ghc-cereal" ,ghc-cereal)))
1676 (native-inputs
1677 `(("ghc-hunit" ,ghc-hunit)))
1678 (home-page "https://github.com/snoyberg/conduit")
1679 (synopsis "Turn Data.Serialize Gets and Puts into Sources, Sinks, and Conduits")
1680 (description
1681 "This package turn @code{Data.Serialize} @code{Gets} and @code{Puts} into
1682@code{Sources}, @code{Sinks}, and @code{Conduits}.")
1683 (license license:bsd-3)))
1684
1685(define-public ghc-cgi
1686 (package
1687 (name "ghc-cgi")
b6b2c218 1688 (version "3001.4.0.0")
dddbc90c
RV
1689 (source
1690 (origin
1691 (method url-fetch)
1692 (uri (string-append
1693 "https://hackage.haskell.org/package/cgi/cgi-"
1694 version
1695 ".tar.gz"))
1696 (sha256
1697 (base32
b6b2c218 1698 "1d0nh5ymkqskkp4yn0gfz4mff8i0cxyw1wws8xxp6k1mg1ywa25k"))))
dddbc90c 1699 (build-system haskell-build-system)
dddbc90c
RV
1700 (inputs
1701 `(("ghc-exceptions" ,ghc-exceptions)
1702 ("ghc-multipart" ,ghc-multipart)
1703 ("ghc-network-uri" ,ghc-network-uri)
1704 ("ghc-network" ,ghc-network)))
1705 (native-inputs
1706 `(("ghc-doctest" ,ghc-doctest)
1707 ("ghc-quickcheck" ,ghc-quickcheck)))
1708 (home-page
1709 "https://github.com/cheecheeo/haskell-cgi")
1710 (synopsis "Library for writing CGI programs")
1711 (description
1712 "This is a Haskell library for writing CGI programs.")
1713 (license license:bsd-3)))
1714
1715(define-public ghc-charset
1716 (package
1717 (name "ghc-charset")
1718 (version "0.3.7.1")
1719 (source
1720 (origin
1721 (method url-fetch)
1722 (uri (string-append
1723 "https://hackage.haskell.org/package/charset/charset-"
1724 version
1725 ".tar.gz"))
1726 (sha256
1727 (base32
1728 "1gn0m96qpjww8hpp2g1as5yy0wcwy4iq73h3kz6g0yxxhcl5sh9x"))))
1729 (build-system haskell-build-system)
35ee173c
TS
1730 (arguments
1731 `(#:cabal-revision
1732 ("1" "1z6nxw2g9vgsjq0g159sk8mwj68lwzxzi5iv5ynha0h85jcqxszy")))
dddbc90c
RV
1733 (inputs
1734 `(("ghc-semigroups" ,ghc-semigroups)
1735 ("ghc-unordered-containers" ,ghc-unordered-containers)))
1736 (home-page "https://github.com/ekmett/charset")
1737 (synopsis "Fast unicode character sets for Haskell")
1738 (description "This package provides fast unicode character sets for
1739Haskell, based on complemented PATRICIA tries.")
1740 (license license:bsd-3)))
1741
1742(define-public ghc-chart
1743 (package
1744 (name "ghc-chart")
6cd84b98 1745 (version "1.9.1")
dddbc90c
RV
1746 (source
1747 (origin
1748 (method url-fetch)
1749 (uri (string-append "https://hackage.haskell.org/package/Chart/"
1750 "Chart-" version ".tar.gz"))
1751 (sha256
1752 (base32
6cd84b98 1753 "1pn735k9ifxlb9mdh8xy7wi22cxni8xyr28n8zx9w0j6vprcg89l"))))
dddbc90c
RV
1754 (build-system haskell-build-system)
1755 (inputs
1756 `(("ghc-old-locale" ,ghc-old-locale)
1757 ("ghc-lens" ,ghc-lens)
1758 ("ghc-colour" ,ghc-colour)
1759 ("ghc-data-default-class" ,ghc-data-default-class)
1760 ("ghc-operational" ,ghc-operational)
1761 ("ghc-vector" ,ghc-vector)))
1762 (home-page "https://github.com/timbod7/haskell-chart/wiki")
1763 (synopsis "Library for generating 2D charts and plots")
1764 (description
1765 "This package provides a library for generating 2D charts and plots, with
1766backends provided by the @code{Cairo} and @code{Diagrams} libraries.")
1767 (license license:bsd-3)))
1768
1769(define-public ghc-chart-cairo
1770 (package
1771 (name "ghc-chart-cairo")
5cf9264d 1772 (version "1.9.1")
dddbc90c
RV
1773 (source
1774 (origin
1775 (method url-fetch)
1776 (uri (string-append "https://hackage.haskell.org/package/Chart-cairo/"
1777 "Chart-cairo-" version ".tar.gz"))
1778 (sha256
1779 (base32
5cf9264d 1780 "0hknj4rsjf2m8p5pyq5zff8ai7v80yvmxb5c6n0bkgxs4317nbl9"))))
dddbc90c
RV
1781 (build-system haskell-build-system)
1782 (inputs
1783 `(("ghc-old-locale" ,ghc-old-locale)
1784 ("ghc-cairo" ,ghc-cairo)
1785 ("ghc-colour" ,ghc-colour)
1786 ("ghc-data-default-class" ,ghc-data-default-class)
1787 ("ghc-operational" ,ghc-operational)
1788 ("ghc-lens" ,ghc-lens)
1789 ("ghc-chart" ,ghc-chart)))
1790 (home-page "https://github.com/timbod7/haskell-chart/wiki")
1791 (synopsis "Cairo backend for Charts")
1792 (description "This package provides a Cairo vector graphics rendering
1793backend for the Charts library.")
1794 (license license:bsd-3)))
1795
1796(define-public ghc-chasingbottoms
1797 (package
1798 (name "ghc-chasingbottoms")
1f67853e 1799 (version "1.3.1.7")
dddbc90c
RV
1800 (source
1801 (origin
1802 (method url-fetch)
1803 (uri (string-append "https://hackage.haskell.org/package/ChasingBottoms/"
1804 "ChasingBottoms-" version ".tar.gz"))
1805 (sha256
1806 (base32
1f67853e 1807 "0ziiqfsvv1ypdra6kd0bhbsl852i0wqn43jkfii38yl879cdacan"))))
dddbc90c
RV
1808 (build-system haskell-build-system)
1809 (inputs
1810 `(("ghc-quickcheck" ,ghc-quickcheck)
1811 ("ghc-random" ,ghc-random)
1812 ("ghc-syb" ,ghc-syb)))
1813 (home-page "https://hackage.haskell.org/package/ChasingBottoms")
1814 (synopsis "Testing of partial and infinite values in Haskell")
1815 (description
1816 ;; FIXME: There should be a @comma{} in the uref text, but it is not
1817 ;; rendered properly.
1818 "This is a library for testing code involving bottoms or infinite values.
1819For the underlying theory and a larger example involving use of QuickCheck,
1820see the article
1821@uref{http://www.cse.chalmers.se/~nad/publications/danielsson-jansson-mpc2004.html,
1822\"Chasing Bottoms A Case Study in Program Verification in the Presence of
1823Partial and Infinite Values\"}.")
1824 (license license:expat)))
1825
1826(define-public ghc-cheapskate
1827 (package
1828 (name "ghc-cheapskate")
5e18bb9e 1829 (version "0.1.1.1")
dddbc90c
RV
1830 (source
1831 (origin
1832 (method url-fetch)
1833 (uri (string-append
1834 "https://hackage.haskell.org/package/cheapskate/cheapskate-"
1835 version
1836 ".tar.gz"))
1837 (sha256
1838 (base32
5e18bb9e 1839 "0qnyd8bni2rby6b02ff4bvfdhm1hwc8vzpmnms84jgrlg1lly3fm"))))
dddbc90c
RV
1840 (build-system haskell-build-system)
1841 (inputs
1842 `(("ghc-blaze-html" ,ghc-blaze-html)
1843 ("ghc-xss-sanitize" ,ghc-xss-sanitize)
1844 ("ghc-data-default" ,ghc-data-default)
1845 ("ghc-syb" ,ghc-syb)
1846 ("ghc-uniplate" ,ghc-uniplate)))
1847 (home-page "https://github.com/jgm/cheapskate")
1848 (synopsis "Experimental markdown processor")
1849 (description "Cheapskate is an experimental Markdown processor in pure
1850Haskell. It aims to process Markdown efficiently and in the most forgiving
1851possible way. It is designed to deal with any input, including garbage, with
1852linear performance. Output is sanitized by default for protection against
1853cross-site scripting (@dfn{XSS}) attacks.")
1854 (license license:bsd-3)))
1855
1856(define-public ghc-chell
1857 (package
1858 (name "ghc-chell")
acdd03be 1859 (version "0.5")
dddbc90c
RV
1860 (source
1861 (origin
1862 (method url-fetch)
1863 (uri (string-append
1864 "https://hackage.haskell.org/package/chell/chell-"
1865 version ".tar.gz"))
1866 (sha256
1867 (base32
acdd03be 1868 "1i845isfbk0yq852am9bqmxfpfkpnlha8nfidffsv4gw2p8gg6fg"))))
dddbc90c 1869 (build-system haskell-build-system)
acdd03be
TS
1870 (arguments
1871 `(#:cabal-revision
1872 ("1" "1q93wrw03ix4cmnkz3lzkixcvvizw6i2ia2zifdfak1dvxnblxk0")))
dddbc90c
RV
1873 (inputs
1874 `(("ghc-options-bootstrap" ,ghc-options-bootstrap)
1875 ("ghc-patience" ,ghc-patience)
1876 ("ghc-random" ,ghc-random)
1877 ("ghc-ansi-terminal" ,ghc-ansi-terminal)))
1878 (home-page "https://john-millikin.com/software/chell/")
1879 (synopsis "Simple and intuitive library for automated testing")
1880 (description
1881 "Chell is a simple and intuitive library for automated testing.
1882It natively supports assertion-based testing, and can use companion
1883libraries such as @code{chell-quickcheck} to support more complex
1884testing strategies.")
1885 (license license:expat)))
1886
1887(define-public ghc-chell-quickcheck
1888 (package
1889 (name "ghc-chell-quickcheck")
e0e21831 1890 (version "0.2.5.2")
dddbc90c
RV
1891 (source
1892 (origin
1893 (method url-fetch)
1894 (uri (string-append
1895 "https://hackage.haskell.org/package/chell-quickcheck/"
1896 "chell-quickcheck-" version ".tar.gz"))
1897 (sha256
1898 (base32
e0e21831 1899 "0n8c57n88r2bx0bh8nabsz07m42rh23ahs3hgyzf8gr76l08zq03"))))
dddbc90c
RV
1900 (build-system haskell-build-system)
1901 (arguments
1902 `(#:phases
1903 (modify-phases %standard-phases
1904 (add-before 'configure 'update-constraints
1905 (lambda _
1906 (substitute* "chell-quickcheck.cabal"
e0e21831
TS
1907 (("QuickCheck >= 2\\.3 && < 2\\.13")
1908 "QuickCheck >= 2.3 && < 2.14")))))))
dddbc90c
RV
1909 (inputs
1910 `(("ghc-chell" ,ghc-chell)
1911 ("ghc-chell-quickcheck-bootstrap" ,ghc-chell-quickcheck-bootstrap)
1912 ("ghc-random" ,ghc-random)
1913 ("ghc-quickcheck" ,ghc-quickcheck)))
1914 (home-page "https://john-millikin.com/software/chell/")
1915 (synopsis "QuickCheck support for the Chell testing library")
1916 (description "More complex tests for @code{chell}.")
1917 (license license:expat)))
1918
1919(define ghc-chell-quickcheck-bootstrap
1920 (package
1921 (name "ghc-chell-quickcheck-bootstrap")
e0e21831 1922 (version "0.2.5.2")
dddbc90c
RV
1923 (source
1924 (origin
1925 (method url-fetch)
1926 (uri (string-append
1927 "https://hackage.haskell.org/package/chell-quickcheck/"
1928 "chell-quickcheck-" version ".tar.gz"))
1929 (sha256
1930 (base32
e0e21831 1931 "0n8c57n88r2bx0bh8nabsz07m42rh23ahs3hgyzf8gr76l08zq03"))))
dddbc90c
RV
1932 (build-system haskell-build-system)
1933 (inputs
1934 `(("ghc-chell" ,ghc-chell)
1935 ("ghc-random" ,ghc-random)
1936 ("ghc-quickcheck" ,ghc-quickcheck)))
1937 (arguments
1938 `(#:tests? #f
1939 #:phases
1940 (modify-phases %standard-phases
1941 (add-before 'configure 'update-constraints
1942 (lambda _
1943 (substitute* "chell-quickcheck.cabal"
e0e21831
TS
1944 (("QuickCheck >= 2\\.3 && < 2\\.13")
1945 "QuickCheck >= 2.3 && < 2.14")))))))
dddbc90c
RV
1946 (home-page "https://john-millikin.com/software/chell/")
1947 (synopsis "QuickCheck support for the Chell testing library")
1948 (description "More complex tests for @code{chell}.")
1949 (license license:expat)))
1950
1951(define-public ghc-chunked-data
1952 (package
1953 (name "ghc-chunked-data")
1954 (version "0.3.1")
1955 (source
1956 (origin
1957 (method url-fetch)
1958 (uri (string-append "https://hackage.haskell.org/package/"
1959 "chunked-data-" version "/"
1960 "chunked-data-" version ".tar.gz"))
1961 (sha256
1962 (base32
1963 "16m7y7fwrirbjbqqcsfmr4yxa9qvfax6r7pw0zl9ky71ms0wa47p"))))
1964 (build-system haskell-build-system)
1965 (inputs `(("ghc-vector" ,ghc-vector)
1966 ("ghc-semigroups" ,ghc-semigroups)))
1967 (home-page "https://github.com/snoyberg/mono-traversable")
1968 (synopsis "Typeclasses for dealing with various chunked data
1969representations for Haskell")
1970 (description "This Haskell package was originally present in
1971classy-prelude.")
1972 (license license:expat)))
1973
1974(define-public ghc-clock
1975 (package
1976 (name "ghc-clock")
0841b6f2 1977 (version "0.8")
dddbc90c
RV
1978 (source
1979 (origin
1980 (method url-fetch)
1981 (uri (string-append
1982 "https://hackage.haskell.org/package/"
1983 "clock/"
1984 "clock-" version ".tar.gz"))
1985 (sha256
0841b6f2 1986 (base32 "0539w9bjw6xbfv9v6aq9hijszxqdnqhilwpbwpql1400ji95r8q8"))))
dddbc90c
RV
1987 (build-system haskell-build-system)
1988 (inputs
1989 `(("ghc-tasty" ,ghc-tasty)
1990 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
1991 (home-page "https://hackage.haskell.org/package/clock")
1992 (synopsis "High-resolution clock for Haskell")
1993 (description "A package for convenient access to high-resolution clock and
1994timer functions of different operating systems via a unified API.")
1995 (license license:bsd-3)))
1996
1997;; This package builds `clock` without tests, since the tests rely on tasty
1998;; and tasty-quickcheck, which in turn require clock to build.
1999(define-public ghc-clock-bootstrap
2000 (package
2001 (inherit ghc-clock)
2002 (name "ghc-clock-bootstrap")
2003 (arguments '(#:tests? #f))
2004 (inputs '())
2005 (properties '((hidden? #t)))))
2006
2007(define-public ghc-cmark
2008 (package
2009 (name "ghc-cmark")
6bdd36c0 2010 (version "0.6")
dddbc90c
RV
2011 (source (origin
2012 (method url-fetch)
6bdd36c0 2013 ;; XXX As of version 0.6, this package bundles libcmark 0.28.0.
dddbc90c
RV
2014 ;; See cbits/cmark_version.h.
2015 (uri (string-append "https://hackage.haskell.org/package/"
2016 "cmark/cmark-" version ".tar.gz"))
2017 (sha256
2018 (base32
6bdd36c0 2019 "1p41z6z8dqxk62287lvhhg4ayy9laai9ljh4azsnzb029v6mbv0d"))))
dddbc90c
RV
2020 (build-system haskell-build-system)
2021 (native-inputs
2022 `(("ghc-hunit" ,ghc-hunit)))
2023 (home-page "https://github.com/jgm/commonmark-hs")
2024 (synopsis "Fast, accurate CommonMark (Markdown) parser and renderer")
2025 (description
2026 "This package provides Haskell bindings for
2027@uref{https://github.com/jgm/cmark, libcmark}, the reference parser for
2028CommonMark, a fully specified variant of Markdown. It includes bundled libcmark
2029sources, and does not require prior installation of the C library.")
2030 (license license:bsd-3)))
2031
2032(define-public ghc-cmark-gfm
2033 (package
2034 (name "ghc-cmark-gfm")
24fc8dae 2035 (version "0.2.0")
dddbc90c
RV
2036 (source
2037 (origin
2038 (method url-fetch)
2039 (uri (string-append "https://hackage.haskell.org/package/"
2040 "cmark-gfm/cmark-gfm-"
2041 version ".tar.gz"))
2042 (sha256
2043 (base32
24fc8dae 2044 "03xflrkyw84qv3yjly5iks9311bqv5cmrmsylr763v4ph0fn7rjq"))))
dddbc90c
RV
2045 (build-system haskell-build-system)
2046 (native-inputs
2047 `(("ghc-hunit" ,ghc-hunit)))
2048 (home-page "https://github.com/kivikakk/cmark-gfm-hs")
2049 (synopsis
2050 "Fast, accurate GitHub Flavored Markdown parser and renderer")
2051 (description
2052 "This package provides Haskell bindings for libcmark-gfm, the reference
2053parser for GitHub Flavored Markdown, a fully specified variant of Markdown.
2054It includes sources for libcmark-gfm and does not require prior installation
2055of the C library.")
2056 (license license:bsd-3)))
2057
2058(define-public ghc-cmdargs
2059 (package
2060 (name "ghc-cmdargs")
2061 (version "0.10.20")
2062 (source
2063 (origin
2064 (method url-fetch)
2065 (uri (string-append
2066 "https://hackage.haskell.org/package/cmdargs/cmdargs-"
2067 version ".tar.gz"))
2068 (sha256
2069 (base32
2070 "0cbkmgrcnwgigg6z88y3c09gm7g6dwm7gzbgr53h8k1xik29s9hf"))))
2071 (build-system haskell-build-system)
3e545443 2072 (outputs '("out" "static" "doc"))
dddbc90c
RV
2073 (home-page
2074 "http://community.haskell.org/~ndm/cmdargs/")
2075 (synopsis "Command line argument processing")
2076 (description
2077 "This library provides an easy way to define command line parsers.")
2078 (license license:bsd-3)))
2079
2080(define-public ghc-code-page
2081 (package
2082 (name "ghc-code-page")
f6bb6519 2083 (version "0.2")
dddbc90c
RV
2084 (source
2085 (origin
2086 (method url-fetch)
2087 (uri (string-append
2088 "https://hackage.haskell.org/package/code-page/code-page-"
2089 version ".tar.gz"))
2090 (sha256
2091 (base32
f6bb6519 2092 "0i0qbrbhvrwkbikqb7hh7yxaipaavwzvyrw211d0vkz99f62mqxz"))))
dddbc90c
RV
2093 (build-system haskell-build-system)
2094 (home-page "https://github.com/RyanGlScott/code-page")
2095 (synopsis "Windows code page library for Haskell")
2096 (description "A cross-platform library with functions for adjusting
2097code pages on Windows. On all other operating systems, the library does
2098nothing.")
2099 (license license:bsd-3)))
2100
2101(define-public ghc-colour
2102(package
2103 (name "ghc-colour")
bc9d1af9 2104 (version "2.3.5")
dddbc90c
RV
2105 (source
2106 (origin
2107 (method url-fetch)
2108 (uri (string-append
2109 "https://hackage.haskell.org/package/colour/colour-"
2110 version ".tar.gz"))
2111 (sha256
2112 (base32
bc9d1af9 2113 "1rq4l46jx4lpdppy71wf7m1n7pw2jwy788rm35ycwzb1g4clg39v"))))
dddbc90c
RV
2114 (arguments
2115 ;; The tests for this package have the following dependency cycle:
2116 ;; ghc-test-framework -> ghc-ansi-terminal -> ghc-colour.
2117 `(#:tests? #f))
2118 (build-system haskell-build-system)
228d2901 2119 (home-page "https://wiki.haskell.org/Colour")
dddbc90c
RV
2120 (synopsis "Model for human colour perception")
2121 (description
2122 "This package provides a data type for colours and transparency.
2123Colours can be blended and composed. Various colour spaces are
2124supported. A module of colour names (\"Data.Colour.Names\") is provided.")
2125 (license license:expat)))
2126
2127(define-public ghc-comonad
2128 (package
2129 (name "ghc-comonad")
1a825512 2130 (version "5.0.5")
dddbc90c
RV
2131 (source
2132 (origin
2133 (method url-fetch)
2134 (uri (string-append
2135 "https://hackage.haskell.org/package/comonad/comonad-"
2136 version
2137 ".tar.gz"))
2138 (sha256
2139 (base32
1a825512 2140 "1l7snp2mszgnjgd0nc9kzfyd13vla0rlazqi03rwx2akcxk14n3c"))))
dddbc90c
RV
2141 (build-system haskell-build-system)
2142 (native-inputs
2143 `(("cabal-doctest" ,cabal-doctest)
2144 ("ghc-doctest" ,ghc-doctest)))
2145 (inputs
2146 `(("ghc-contravariant" ,ghc-contravariant)
2147 ("ghc-distributive" ,ghc-distributive)
2148 ("ghc-semigroups" ,ghc-semigroups)
2149 ("ghc-tagged" ,ghc-tagged)
2150 ("ghc-transformers-compat" ,ghc-transformers-compat)))
2151 (home-page "https://github.com/ekmett/comonad/")
2152 (synopsis "Comonads for Haskell")
2153 (description "This library provides @code{Comonad}s for Haskell.")
2154 (license license:bsd-3)))
2155
2156(define-public ghc-concatenative
2157 (package
2158 (name "ghc-concatenative")
2159 (version "1.0.1")
2160 (source (origin
2161 (method url-fetch)
2162 (uri (string-append
2163 "https://hackage.haskell.org/package/concatenative/concatenative-"
2164 version ".tar.gz"))
2165 (sha256
2166 (base32
2167 "05xwqvcdnk8bsyj698ab9jxpa1nk23pf3m7wi9mwmw0q8n99fngd"))))
2168 (build-system haskell-build-system)
2169 (home-page
2170 "https://patch-tag.com/r/salazar/concatenative/snapshot/current/content/pretty")
2171 (synopsis "Library for postfix control flow")
2172 (description
2173 "Concatenative gives Haskell Factor-style combinators and arrows for
2174postfix notation. For more information on stack based languages, see
2175@uref{https://concatenative.org}.")
2176 (license license:bsd-3)))
2177
2178(define-public ghc-concurrent-extra
2179 (package
2180 (name "ghc-concurrent-extra")
2181 (version "0.7.0.12")
2182 (source
2183 (origin
2184 (method url-fetch)
2185 (uri (string-append "https://hackage.haskell.org/package/"
2186 "concurrent-extra/concurrent-extra-"
2187 version ".tar.gz"))
2188 (sha256
2189 (base32
2190 "1y8xk460fvnw0idzdiylmm874sjny4q9jxb1js9fjz8lw2wns3h4"))))
2191 (build-system haskell-build-system)
2192 (arguments
2193 ;; XXX: The ReadWriteLock 'stressTest' fails.
2194 `(#:tests? #f))
2195 (inputs
2196 `(("ghc-unbounded-delays" ,ghc-unbounded-delays)))
2197 (native-inputs
2198 `(("ghc-async" ,ghc-async)
2199 ("ghc-hunit" ,ghc-hunit)
2200 ("ghc-random" ,ghc-random)
2201 ("ghc-test-framework" ,ghc-test-framework)
2202 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
2203 (home-page "https://github.com/basvandijk/concurrent-extra")
2204 (synopsis "Extra concurrency primitives")
2205 (description "This Haskell library offers (among other things) the
2206following selection of synchronisation primitives:
2207
2208@itemize
2209@item @code{Broadcast}: Wake multiple threads by broadcasting a value.
2210@item @code{Event}: Wake multiple threads by signalling an event.
2211@item @code{Lock}: Enforce exclusive access to a resource. Also known
2212as a binary semaphore or mutex. The package additionally provides an
2213alternative that works in the STM monad.
2214@item @code{RLock}: A lock which can be acquired multiple times by the
2215same thread. Also known as a reentrant mutex.
2216@item @code{ReadWriteLock}: Multiple-reader, single-writer locks. Used
2217to protect shared resources which may be concurrently read, but only
2218sequentially written.
2219@item @code{ReadWriteVar}: Concurrent read, sequential write variables.
2220@end itemize
2221
2222Please consult the API documentation of the individual modules for more
2223detailed information.
2224
2225This package was inspired by the concurrency libraries of Java and
2226Python.")
2227 (license license:bsd-3)))
2228
2229(define-public ghc-concurrent-output
2230 (package
2231 (name "ghc-concurrent-output")
4fce0a4a 2232 (version "1.10.11")
dddbc90c
RV
2233 (source
2234 (origin
2235 (method url-fetch)
2236 (uri (string-append
2237 "mirror://hackage/package/concurrent-output/concurrent-output-"
2238 version
2239 ".tar.gz"))
2240 (sha256
2241 (base32
4fce0a4a 2242 "1d1aaqg5814k59b0iws3fh06p3g2siaj922gkhs75qgncj0my2p3"))))
dddbc90c
RV
2243 (build-system haskell-build-system)
2244 (inputs
2245 `(("ghc-async" ,ghc-async)
2246 ("ghc-exceptions" ,ghc-exceptions)
2247 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
2248 ("ghc-terminal-size" ,ghc-terminal-size)))
2249 (home-page
2250 "https://hackage.haskell.org/package/concurrent-output")
2251 (synopsis
2252 "Ungarble output from several threads or commands")
2253 (description
2254 "Lets multiple threads and external processes concurrently output to the
2255console, without it getting all garbled up.
2256
2257Built on top of that is a way of defining multiple output regions, which are
2258automatically laid out on the screen and can be individually updated by
2259concurrent threads. Can be used for progress displays etc.")
2260 (license license:bsd-2)))
2261
2262(define-public ghc-conduit
2263 (package
2264 (name "ghc-conduit")
1ac981d4 2265 (version "1.3.1.1")
dddbc90c
RV
2266 (source (origin
2267 (method url-fetch)
2268 (uri (string-append "https://hackage.haskell.org/package/"
2269 "conduit/conduit-" version ".tar.gz"))
2270 (sha256
2271 (base32
1ac981d4 2272 "18izjgff4pmrknc8py06yvg3g6x27nx0rzmlwjxcflwm5v4szpw4"))))
dddbc90c 2273 (build-system haskell-build-system)
20e5edb1 2274 (outputs '("out" "static" "doc"))
dddbc90c
RV
2275 (inputs
2276 `(("ghc-exceptions" ,ghc-exceptions)
2277 ("ghc-lifted-base" ,ghc-lifted-base)
2278 ("ghc-mono-traversable" ,ghc-mono-traversable)
2279 ("ghc-mmorph" ,ghc-mmorph)
2280 ("ghc-resourcet" ,ghc-resourcet)
2281 ("ghc-silently" ,ghc-silently)
2282 ("ghc-transformers-base" ,ghc-transformers-base)
2283 ("ghc-unliftio" ,ghc-unliftio)
2284 ("ghc-unliftio-core" ,ghc-unliftio-core)
2285 ("ghc-vector" ,ghc-vector)
2286 ("ghc-void" ,ghc-void)))
2287 (native-inputs
2288 `(("ghc-quickcheck" ,ghc-quickcheck)
2289 ("ghc-hspec" ,ghc-hspec)
2290 ("ghc-safe" ,ghc-safe)
2291 ("ghc-split" ,ghc-split)))
2292 (home-page "https://github.com/snoyberg/conduit")
2293 (synopsis "Streaming data library ")
2294 (description
2295 "The conduit package is a solution to the streaming data problem,
2296allowing for production, transformation, and consumption of streams of data
2297in constant memory. It is an alternative to lazy I/O which guarantees
2298deterministic resource handling, and fits in the same general solution
2299space as enumerator/iteratee and pipes.")
2300 (license license:expat)))
2301
2302(define-public ghc-conduit-algorithms
2303 (package
2304 (name "ghc-conduit-algorithms")
503b74ae 2305 (version "0.0.11.0")
dddbc90c
RV
2306 (source
2307 (origin
2308 (method url-fetch)
2309 (uri (string-append "https://hackage.haskell.org/package/"
2310 "conduit-algorithms/conduit-algorithms-"
2311 version ".tar.gz"))
2312 (sha256
2313 (base32
503b74ae 2314 "0c1jwz30kkvimx7lb61782yk0kyfamrf5bqc3g1h7g51lk8bbv9i"))))
dddbc90c
RV
2315 (build-system haskell-build-system)
2316 (inputs
2317 `(("ghc-async" ,ghc-async)
2318 ("ghc-bzlib-conduit" ,ghc-bzlib-conduit)
2319 ("ghc-conduit" ,ghc-conduit)
2320 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
2321 ("ghc-conduit-extra" ,ghc-conduit-extra)
503b74ae 2322 ("ghc-conduit-zstd" ,ghc-conduit-zstd)
dddbc90c
RV
2323 ("ghc-exceptions" ,ghc-exceptions)
2324 ("ghc-lzma-conduit" ,ghc-lzma-conduit)
2325 ("ghc-monad-control" ,ghc-monad-control)
2326 ("ghc-pqueue" ,ghc-pqueue)
2327 ("ghc-resourcet" ,ghc-resourcet)
2328 ("ghc-stm-conduit" ,ghc-stm-conduit)
2329 ("ghc-streaming-commons" ,ghc-streaming-commons)
2330 ("ghc-unliftio-core" ,ghc-unliftio-core)
2331 ("ghc-vector" ,ghc-vector)))
2332 (native-inputs
2333 `(("ghc-hunit" ,ghc-hunit)
2334 ("ghc-test-framework" ,ghc-test-framework)
2335 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
2336 ("ghc-test-framework-th" ,ghc-test-framework-th)))
2337 (home-page "https://github.com/luispedro/conduit-algorithms#readme")
2338 (synopsis "Conduit-based algorithms")
2339 (description
2340 "This package provides algorithms on @code{Conduits}, including higher
2341level asynchronous processing and some other utilities.")
2342 (license license:expat)))
2343
2344(define-public ghc-conduit-combinators
2345 (package
2346 (name "ghc-conduit-combinators")
2347 (version "1.3.0")
2348 (source
2349 (origin
2350 (method url-fetch)
2351 (uri (string-append "https://hackage.haskell.org/package/"
2352 "conduit-combinators-" version "/"
2353 "conduit-combinators-" version ".tar.gz"))
2354 (sha256
2355 (base32
2356 "1lz70vwp4y4lpsivxl0cshq7aq3968rh48r6rjvpyaj2l0bdj5wp"))))
2357 (build-system haskell-build-system)
2358 (inputs `(("ghc-conduit" ,ghc-conduit)
2359 ("ghc-conduit-extra" ,ghc-conduit-extra)
2360 ("ghc-transformers-base" ,ghc-transformers-base)
2361 ("ghc-primitive" ,ghc-primitive)
2362 ("ghc-vector" ,ghc-vector)
2363 ("ghc-void" ,ghc-void)
2364 ("ghc-mwc-random" ,ghc-mwc-random)
2365 ("ghc-unix-compat" ,ghc-unix-compat)
2366 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
2367 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
2368 ("ghc-resourcet" ,ghc-resourcet)
2369 ("ghc-monad-control" ,ghc-monad-control)
2370 ("ghc-chunked-data" ,ghc-chunked-data)
2371 ("ghc-mono-traversable" ,ghc-mono-traversable)))
2372 (native-inputs `(("ghc-hspec" ,ghc-hspec)
2373 ("ghc-silently" ,ghc-silently)
2374 ("ghc-safe" ,ghc-safe)
2375 ("ghc-quickcheck" ,ghc-quickcheck)))
2376 (home-page "https://github.com/snoyberg/mono-traversable")
2377 (synopsis "Commonly used conduit functions, for both chunked and
2378unchunked data")
2379 (description "This Haskell package provides a replacement for Data.Conduit.List,
2380as well as a convenient Conduit module.")
2381 (license license:expat)))
2382
2383(define-public ghc-conduit-extra
2384 (package
2385 (name "ghc-conduit-extra")
151774d9 2386 (version "1.3.4")
dddbc90c
RV
2387 (source
2388 (origin
2389 (method url-fetch)
2390 (uri (string-append "https://hackage.haskell.org/package/"
2391 "conduit-extra/conduit-extra-"
2392 version ".tar.gz"))
2393 (sha256
2394 (base32
151774d9 2395 "1d853d39vj5pb8yxfcsnjwdzqzkm34ixzbnba8bslpihb7182wxi"))))
dddbc90c
RV
2396 (build-system haskell-build-system)
2397 (inputs
2398 `(("ghc-conduit" ,ghc-conduit)
2399 ("ghc-exceptions" ,ghc-exceptions)
2400 ("ghc-monad-control" ,ghc-monad-control)
2401 ("ghc-transformers-base" ,ghc-transformers-base)
2402 ("ghc-typed-process" ,ghc-typed-process)
2403 ("ghc-async" ,ghc-async)
2404 ("ghc-attoparsec" ,ghc-attoparsec)
2405 ("ghc-blaze-builder" ,ghc-blaze-builder)
2406 ("ghc-network" ,ghc-network)
2407 ("ghc-primitive" ,ghc-primitive)
2408 ("ghc-resourcet" ,ghc-resourcet)
2409 ("ghc-streaming-commons" ,ghc-streaming-commons)
2410 ("ghc-hspec" ,ghc-hspec)
2411 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
2412 ("ghc-quickcheck" ,ghc-quickcheck)))
2413 (native-inputs
2414 `(("hspec-discover" ,hspec-discover)))
2415 (home-page "https://github.com/snoyberg/conduit")
2416 (synopsis "Conduit adapters for common libraries")
2417 (description
2418 "The @code{conduit} package itself maintains relative small dependencies.
2419The purpose of this package is to collect commonly used utility functions
2420wrapping other library dependencies, without depending on heavier-weight
2421dependencies. The basic idea is that this package should only depend on
2422@code{haskell-platform} packages and @code{conduit}.")
2423 (license license:expat)))
2424
b59c3518
TS
2425(define-public ghc-conduit-zstd
2426 (package
2427 (name "ghc-conduit-zstd")
2428 (version "0.0.1.1")
2429 (source
2430 (origin
2431 (method url-fetch)
2432 (uri (string-append "https://hackage.haskell.org/package/"
2433 "conduit-zstd/conduit-zstd-" version ".tar.gz"))
2434 (sha256
2435 (base32
2436 "04h7w2903hgw4gjcx2pg29yinnmfapawvc19hd3r57rr12fzb0c6"))))
2437 (build-system haskell-build-system)
2438 (inputs
2439 `(("ghc-conduit" ,ghc-conduit)
2440 ("ghc-zstd" ,ghc-zstd)))
2441 (native-inputs
2442 `(("ghc-hunit" ,ghc-hunit)
2443 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
2444 ("ghc-conduit-extra" ,ghc-conduit-extra)
2445 ("ghc-test-framework" ,ghc-test-framework)
2446 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
2447 ("ghc-test-framework-th" ,ghc-test-framework-th)))
2448 (home-page "https://github.com/luispedro/conduit-zstd#readme")
2449 (synopsis "Conduit-based ZStd Compression")
2450 (description "Zstandard compression packaged as a conduit. This is
2451a very thin wrapper around the
2452@url{https://github.com/facebookexperimental/hs-zstd/, official hs-zstd
2453interface}.")
2454 (license license:expat)))
2455
dddbc90c
RV
2456(define-public ghc-configurator
2457 (package
2458 (name "ghc-configurator")
2459 (version "0.3.0.0")
2460 (source
2461 (origin
2462 (method url-fetch)
2463 (uri (string-append "https://hackage.haskell.org/package/"
2464 "configurator/configurator-"
2465 version ".tar.gz"))
2466 (sha256
2467 (base32
2468 "1d1iq1knwiq6ia5g64rw5hqm6dakz912qj13r89737rfcxmrkfbf"))))
2469 (build-system haskell-build-system)
2470 (inputs
2471 `(("ghc-attoparsec" ,ghc-attoparsec)
2472 ("ghc-hashable" ,ghc-hashable)
2473 ("ghc-unix-compat" ,ghc-unix-compat)
2474 ("ghc-unordered-containers" ,ghc-unordered-containers)))
2475 (native-inputs
2476 `(("ghc-hunit" ,ghc-hunit)
2477 ("ghc-test-framework" ,ghc-test-framework)
2478 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
702a1012 2479 (home-page "https://github.com/bos/configurator")
dddbc90c
RV
2480 (synopsis "Configuration management")
2481 (description
2482 "This package provides a configuration management library for programs
2483and daemons. The features include:
2484
2485@enumerate
2486@item Automatic, dynamic reloading in response to modifications to
2487 configuration files.
2488@item A simple, but flexible, configuration language, supporting several of
2489 the most commonly needed types of data, along with interpolation of strings
2490 from the configuration or the system environment (e.g. @code{$(HOME)}).
2491@item Subscription-based notification of changes to configuration properties.
2492@item An @code{import} directive allows the configuration of a complex
2493 application to be split across several smaller files, or common configuration
2494 data to be shared across several applications.
2495@end enumerate\n")
2496 (license license:bsd-3)))
2497
2498(define-public ghc-connection
2499 (package
2500 (name "ghc-connection")
6ee0d258 2501 (version "0.3.1")
dddbc90c
RV
2502 (source (origin
2503 (method url-fetch)
2504 (uri (string-append "https://hackage.haskell.org/package/"
2505 "connection/connection-"
2506 version ".tar.gz"))
2507 (sha256
2508 (base32
6ee0d258 2509 "1nbmafhlg0wy4aa3p7amjddbamdz6avzrxn4py3lvhrjqn4raxax"))))
dddbc90c
RV
2510 (build-system haskell-build-system)
2511 (inputs
2512 `(("ghc-byteable" ,ghc-byteable)
2513 ("ghc-data-default-class" ,ghc-data-default-class)
2514 ("ghc-network" ,ghc-network)
2515 ("ghc-tls" ,ghc-tls)
2516 ("ghc-socks" ,ghc-socks)
2517 ("ghc-x509" ,ghc-x509)
2518 ("ghc-x509-store" ,ghc-x509-store)
2519 ("ghc-x509-system" ,ghc-x509-system)
2520 ("ghc-x509-validation" ,ghc-x509-validation)))
2521 (home-page "https://github.com/vincenthz/hs-connection")
2522 (synopsis "Simple and easy network connections API")
2523 (description
2524 "This package provides a simple network library for all your connection
2525needs. It provides a very simple API to create sockets to a destination with
2526the choice of SSL/TLS, and SOCKS.")
2527 (license license:bsd-3)))
2528
2529(define-public ghc-constraints
2530 (package
2531 (name "ghc-constraints")
2532 (version "0.10.1")
2533 (source
2534 (origin
2535 (method url-fetch)
2536 (uri (string-append
2537 "https://hackage.haskell.org/package/constraints/constraints-"
2538 version ".tar.gz"))
2539 (sha256
2540 (base32
2541 "1xy3vv78jxc17hm0z7qqspxjwv7l2jbcbj670yrl2f053qkfr02q"))))
2542 (build-system haskell-build-system)
2543 (inputs
2544 `(("ghc-hashable" ,ghc-hashable)
2545 ("ghc-semigroups" ,ghc-semigroups)
2546 ("ghc-transformers-compat" ,ghc-transformers-compat)))
2547 (native-inputs
2548 `(("ghc-hspec" ,ghc-hspec)
2549 ("hspec-discover" ,hspec-discover)))
2550 (home-page "https://github.com/ekmett/constraints/")
2551 (synopsis "Constraint manipulation")
2552 (description
2553 "GHC 7.4 gave us the ability to talk about @code{ConstraintKinds}.
2554They stopped crashing the compiler in GHC 7.6. This package provides
2555a vocabulary for working with them.")
2556 (license license:bsd-3)))
2557
2558(define-public ghc-contravariant
2559 (package
2560 (name "ghc-contravariant")
e7b35ff0 2561 (version "1.5.2")
dddbc90c
RV
2562 (source
2563 (origin
2564 (method url-fetch)
2565 (uri (string-append
2566 "https://hackage.haskell.org/package/contravariant/contravariant-"
2567 version
2568 ".tar.gz"))
2569 (sha256
2570 (base32
e7b35ff0 2571 "0366gl62wwwdbl9i6kqy60asf60876k55v91la6bmhnwwcj2q9n4"))))
dddbc90c
RV
2572 (build-system haskell-build-system)
2573 (inputs
2574 `(("ghc-void" ,ghc-void)
2575 ("ghc-transformers-compat" ,ghc-transformers-compat)
2576 ("ghc-statevar" ,ghc-statevar)
2577 ("ghc-semigroups" ,ghc-semigroups)))
2578 (home-page
2579 "https://github.com/ekmett/contravariant/")
2580 (synopsis "Contravariant functors")
2581 (description "Contravariant functors for Haskell.")
2582 (license license:bsd-3)))
2583
2584(define-public ghc-contravariant-extras
2585 (package
2586 (name "ghc-contravariant-extras")
2587 (version "0.3.4")
2588 (source
2589 (origin
2590 (method url-fetch)
2591 (uri (string-append "https://hackage.haskell.org/package/"
2592 "contravariant-extras-" version "/"
2593 "contravariant-extras-" version ".tar.gz"))
2594 (sha256
2595 (base32
2596 "0gg62ccl94kvh7mnvdq09pifqxjx2kgs189si90nmg44bafj7a9n"))))
2597 (build-system haskell-build-system)
f3aca086
TS
2598 (arguments
2599 `(#:cabal-revision
2600 ("1" "1h2955ahga6i4fn7k8v66l03v77p6fhsac6ck8gpabkc08ij60wp")))
dddbc90c
RV
2601 (inputs
2602 `(("ghc-tuple-th" ,ghc-tuple-th)
2603 ("ghc-contravariant" ,ghc-contravariant)
2604 ("ghc-base-prelude" ,ghc-base-prelude)
2605 ("ghc-semigroups" ,ghc-semigroups)))
2606 (home-page "https://github.com/nikita-volkov/contravariant-extras")
2607 (synopsis "Extras for the @code{ghc-contravariant} Haskell package")
2608 (description "This Haskell package provides extras for the
2609@code{ghc-contravariant} package.")
2610 (license license:expat)))
2611
7f2a5650
CH
2612(define-public ghc-control-monad-free
2613 (package
2614 (name "ghc-control-monad-free")
2615 (version "0.6.2")
2616 (source
2617 (origin
2618 (method url-fetch)
2619 (uri (string-append
2620 "https://hackage.haskell.org/"
2621 "package/control-monad-free/control-monad-free-"
2622 version
2623 ".tar.gz"))
2624 (sha256
2625 (base32
2626 "1habgf7byffqf1rqjkzpihvdhclaafgqsqpfpwp3fgpj5ayk1j33"))))
2627 (build-system haskell-build-system)
2628 (home-page "https://github.com/pepeiborra/control-monad-free")
2629 (synopsis "Free monads and monad transformers")
2630 (description
2631 "This package provides datatypes to construct Free monads, Free monad
2632transformers, and useful instances. In addition it provides the constructs to
2633avoid quadratic complexity of left associative bind, as explained in:
2634
2635@itemize @bullet
2636@item
2637Janis Voigtlander, @cite{Asymptotic Improvement of Computations over
2638Free Monads, MPC'08}
2639@end itemize")
2640 (license license:public-domain)))
2641
dddbc90c
RV
2642(define-public ghc-convertible
2643 (package
2644 (name "ghc-convertible")
2645 (version "1.1.1.0")
2646 (source
2647 (origin
2648 (method url-fetch)
2649 (uri (string-append "https://hackage.haskell.org/package/convertible/"
2650 "convertible-" version ".tar.gz"))
2651 (sha256
2652 (base32
2653 "0v18ap1mccnndgxmbfgyjdicg8jlss01bd5fq8a576dr0h4sgyg9"))))
2654 (build-system haskell-build-system)
2655 (inputs
2656 `(("ghc-old-time" ,ghc-old-time)
2657 ("ghc-old-locale" ,ghc-old-locale)))
2658 (home-page "https://hackage.haskell.org/package/convertible")
2659 (synopsis "Typeclasses and instances for converting between types")
2660 (description
2661 "This package provides a typeclass with a single function that is
2662designed to help convert between different types: numeric values, dates and
2663times, and the like. The conversions perform bounds checking and return a
2664pure @code{Either} value. This means that you need not remember which specific
2665function performs the conversion you desire.")
2666 (license license:bsd-3)))
2667
0ff9a717
CH
2668(define-public ghc-csv
2669 (package
2670 (name "ghc-csv")
2671 (version "0.1.2")
2672 (source
2673 (origin
2674 (method url-fetch)
2675 (uri (string-append
2676 "https://hackage.haskell.org/package/csv/csv-"
2677 version
2678 ".tar.gz"))
2679 (sha256
2680 (base32
2681 "00767ai09wm7f0yzmpqck3cpgxncpr9djnmmz5l17ajz69139x4c"))))
2682 (build-system haskell-build-system)
2683 (home-page "http://hackage.haskell.org/package/csv")
2684 (synopsis "CSV loader and dumper")
2685 (description
2686 "This library parses and dumps documents that are formatted according to
2687RFC 4180, @cite{The common Format and MIME Type for Comma-Separated
2688Values (CSV) Files}. This format is used, among many other things, as a
2689lingua franca for spreadsheets, and for certain web services.")
2690 (license license:expat)))
2691
dddbc90c
RV
2692(define-public ghc-data-accessor
2693 (package
2694 (name "ghc-data-accessor")
6dcca515 2695 (version "0.2.2.8")
dddbc90c
RV
2696 (source
2697 (origin
2698 (method url-fetch)
2699 (uri (string-append
2700 "mirror://hackage/package/data-accessor/data-accessor-"
2701 version ".tar.gz"))
2702 (sha256
6dcca515 2703 (base32 "1fq4gygxbz0bd0mzgvc1sl3m4gjnsv8nbgpnmdpa29zj5lb9agxc"))))
dddbc90c 2704 (build-system haskell-build-system)
228d2901 2705 (home-page "https://wiki.haskell.org/Record_access")
dddbc90c
RV
2706 (synopsis
2707 "Haskell utilities for accessing and manipulating fields of records")
2708 (description "This package provides Haskell modules for accessing and
2709manipulating fields of records.")
2710 (license license:bsd-3)))
2711
2712(define-public ghc-data-accessor-transformers
2713 (package
2714 (name "ghc-data-accessor-transformers")
2715 (version "0.2.1.7")
2716 (source
2717 (origin
2718 (method url-fetch)
2719 (uri (string-append
2720 "mirror://hackage/package/data-accessor-transformers/"
2721 "data-accessor-transformers-" version ".tar.gz"))
2722 (sha256
2723 (base32 "0yp030vafbpddl27m606aibbbr5ar5j5bsv4bksscz3cq4yq5j10"))))
2724 (build-system haskell-build-system)
2725 (inputs `(("ghc-data-accessor" ,ghc-data-accessor)))
228d2901 2726 (home-page "https://wiki.haskell.org/Record_access")
dddbc90c
RV
2727 (synopsis "Use Accessor to access state in transformers State monad")
2728 (description "This package provides Haskell modules to allow use of
2729Accessor to access state in transformers State monad.")
2730 (license license:bsd-3)))
2731
2732(define-public ghc-data-default
2733 (package
2734 (name "ghc-data-default")
2735 (version "0.7.1.1")
2736 (source
2737 (origin
2738 (method url-fetch)
2739 (uri (string-append
2740 "https://hackage.haskell.org/package/data-default/data-default-"
2741 version
2742 ".tar.gz"))
2743 (sha256
2744 (base32 "04d5n8ybmcxba9qb6h389w9zfq1lvj81b82jh6maqp6pkhkmvydh"))))
2745 (build-system haskell-build-system)
2746 (inputs
2747 `(("ghc-data-default-class"
2748 ,ghc-data-default-class)
2749 ("ghc-data-default-instances-base"
2750 ,ghc-data-default-instances-base)
2751 ("ghc-data-default-instances-containers"
2752 ,ghc-data-default-instances-containers)
2753 ("ghc-data-default-instances-dlist"
2754 ,ghc-data-default-instances-dlist)
2755 ("ghc-data-default-instances-old-locale"
2756 ,ghc-data-default-instances-old-locale)))
2757 (home-page "https://hackage.haskell.org/package/data-default")
2758 (synopsis "Types with default values")
2759 (description
2760 "This package defines a class for types with a default value, and
2761provides instances for types from the base, containers, dlist and old-locale
2762packages.")
2763 (license license:bsd-3)))
2764
2765(define-public ghc-data-default-class
2766 (package
2767 (name "ghc-data-default-class")
2768 (version "0.1.2.0")
2769 (source
2770 (origin
2771 (method url-fetch)
2772 (uri (string-append
2773 "https://hackage.haskell.org/package/data-default-class/"
2774 "data-default-class-" version ".tar.gz"))
2775 (sha256
2776 (base32 "0miyjz8d4jyvqf2vp60lyfbnflx6cj2k8apmm9ly1hq0y0iv80ag"))))
2777 (build-system haskell-build-system)
2778 (home-page "https://hackage.haskell.org/package/data-default-class")
2779 (synopsis "Types with default values")
2780 (description
2781 "This package defines a class for types with default values.")
2782 (license license:bsd-3)))
2783
2784(define-public ghc-data-default-instances-base
2785 (package
2786 (name "ghc-data-default-instances-base")
2787 (version "0.1.0.1")
2788 (source
2789 (origin
2790 (method url-fetch)
2791 (uri (string-append
2792 "https://hackage.haskell.org/package/"
2793 "data-default-instances-base/"
2794 "data-default-instances-base-" version ".tar.gz"))
2795 (sha256
2796 (base32 "0ym1sw3ssdzzifxxhh76qlv8kkmb2iclc158incv1dklyr9y8kw4"))))
2797 (build-system haskell-build-system)
2798 (inputs
2799 `(("ghc-data-default-class" ,ghc-data-default-class)))
2800 (home-page "https://hackage.haskell.org/package/data-default-instances-base")
2801 (synopsis "Default instances for types in base")
2802 (description
2803 "This package provides default instances for types from the base
2804package.")
2805 (license license:bsd-3)))
2806
2807(define-public ghc-data-default-instances-containers
2808 (package
2809 (name "ghc-data-default-instances-containers")
2810 (version "0.0.1")
2811 (source
2812 (origin
2813 (method url-fetch)
2814 (uri (string-append
2815 "https://hackage.haskell.org/package/"
2816 "data-default-instances-containers/"
2817 "data-default-instances-containers-" version ".tar.gz"))
2818 (sha256
2819 (base32 "06h8xka031w752a7cjlzghvr8adqbl95xj9z5zc1b62w02phfpm5"))))
2820 (build-system haskell-build-system)
2821 (inputs
2822 `(("ghc-data-default-class" ,ghc-data-default-class)))
2823 (home-page "https://hackage.haskell.org/package/data-default-instances-containers")
2824 (synopsis "Default instances for types in containers")
2825 (description "Provides default instances for types from the containers
2826package.")
2827 (license license:bsd-3)))
2828
2829(define-public ghc-data-default-instances-dlist
2830 (package
2831 (name "ghc-data-default-instances-dlist")
2832 (version "0.0.1")
2833 (source
2834 (origin
2835 (method url-fetch)
2836 (uri (string-append
2837 "https://hackage.haskell.org/package/"
2838 "data-default-instances-dlist/"
2839 "data-default-instances-dlist-" version ".tar.gz"))
2840 (sha256
2841 (base32 "0narkdqiprhgayjiawrr4390h4rq4pl2pb6mvixbv2phrc8kfs3x"))))
2842 (build-system haskell-build-system)
2843 (inputs
2844 `(("ghc-data-default-class" ,ghc-data-default-class)
2845 ("ghc-dlist" ,ghc-dlist)))
2846 (home-page "https://hackage.haskell.org/package/data-default-instances-dlist")
2847 (synopsis "Default instances for types in dlist")
2848 (description "Provides default instances for types from the dlist
2849package.")
2850 (license license:bsd-3)))
2851
2852(define-public ghc-data-default-instances-old-locale
2853 (package
2854 (name "ghc-data-default-instances-old-locale")
2855 (version "0.0.1")
2856 (source
2857 (origin
2858 (method url-fetch)
2859 (uri (string-append
2860 "https://hackage.haskell.org/package/"
2861 "data-default-instances-old-locale/"
2862 "data-default-instances-old-locale-" version ".tar.gz"))
2863 (sha256
2864 (base32 "00h81i5phib741yj517p8mbnc48myvfj8axzsw44k34m48lv1lv0"))))
2865 (build-system haskell-build-system)
2866 (inputs
2867 `(("ghc-data-default-class" ,ghc-data-default-class)
2868 ("ghc-old-locale" ,ghc-old-locale)))
2869 (home-page
2870 "https://hackage.haskell.org/package/data-default-instances-old-locale")
2871 (synopsis "Default instances for types in old-locale")
2872 (description "Provides Default instances for types from the old-locale
2873 package.")
2874 (license license:bsd-3)))
2875
82c36002
JS
2876(define-public ghc-data-fix
2877 (package
2878 (name "ghc-data-fix")
2879 (version "0.2.0")
2880 (source
2881 (origin
2882 (method url-fetch)
2883 (uri (string-append
2884 "mirror://hackage/package/data-fix/"
2885 "data-fix-" version ".tar.gz"))
2886 (sha256
2887 (base32 "14hk6hq5hdb3l5bhmzhw086jpzlvp9qbw9dzw30wlz5jbh2ihmvy"))))
2888 (build-system haskell-build-system)
2889 (home-page "https://github.com/spell-music/data-fix")
2890 (synopsis "Fixpoint data types")
2891 (description
2892 "Fixpoint types and recursion schemes. If you define your AST as
2893fixpoint type, you get fold and unfold operations for free.
2894
2895Thanks for contribution to: Matej Kollar, Herbert Valerio Riedel")
2896 (license license:bsd-3)))
2897
dddbc90c
RV
2898(define-public ghc-data-hash
2899 (package
2900 (name "ghc-data-hash")
2901 (version "0.2.0.1")
2902 (source
2903 (origin
2904 (method url-fetch)
2905 (uri (string-append "https://hackage.haskell.org/package/data-hash"
2906 "/data-hash-" version ".tar.gz"))
2907 (sha256
2908 (base32 "1ghbqvc48gf9p8wiy71hdpaj7by3b9cw6wgwi3qqz8iw054xs5wi"))))
2909 (build-system haskell-build-system)
2910 (inputs
2911 `(("ghc-quickcheck" ,ghc-quickcheck)
2912 ("ghc-test-framework" ,ghc-test-framework)
2913 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
2914 (home-page "https://hackage.haskell.org/package/data-hash")
2915 (synopsis "Combinators for building fast hashing functions")
2916 (description
2917 "This package provides combinators for building fast hashing functions.
2918It includes hashing functions for all basic Haskell98 types.")
2919 (license license:bsd-3)))
2920
2921(define-public ghc-data-ordlist
2922 (package
2923 (name "ghc-data-ordlist")
2924 (version "0.4.7.0")
2925 (source
2926 (origin
2927 (method url-fetch)
2928 (uri (string-append
2929 "https://hackage.haskell.org/package/data-ordlist/data-ordlist-"
2930 version ".tar.gz"))
2931 (sha256
2932 (base32
2933 "03a9ix1fcx08viwv2jg5ndw1qbkydyyrmjvqr9wasmcik9x1wv3g"))))
2934 (build-system haskell-build-system)
2935 (home-page "https://hackage.haskell.org/package/data-ordlist")
2936 (synopsis "Set and bag operations on ordered lists")
2937 (description
2938 "This module provides set and multiset operations on ordered lists.")
2939 (license license:bsd-3)))
2940
d05f32d6
JS
2941(define-public ghc-dbus
2942 (package
2943 (name "ghc-dbus")
2944 (version "1.2.7")
2945 (source
2946 (origin
2947 (method url-fetch)
2948 (uri
2949 (string-append
2950 "mirror://hackage/package/dbus/dbus-"
2951 version ".tar.gz"))
2952 (sha256
2953 (base32
2954 "0ypkjlw9fn65g7p28kb3p82glk7qs7p7vyffccw7qxa3z57s12w5"))))
2955 (build-system haskell-build-system)
2956 (inputs
2957 `(("ghc-cereal" ,ghc-cereal)
2958 ("ghc-conduit" ,ghc-conduit)
2959 ("ghc-exceptions" ,ghc-exceptions)
2960 ("ghc-lens" ,ghc-lens)
2961 ("ghc-network" ,ghc-network)
2962 ("ghc-random" ,ghc-random)
2963 ("ghc-split" ,ghc-split)
2964 ("ghc-th-lift" ,ghc-th-lift)
2965 ("ghc-vector" ,ghc-vector)
2966 ("ghc-xml-conduit" ,ghc-xml-conduit)
2967 ("ghc-xml-types" ,ghc-xml-types)))
2968 (native-inputs
2969 `(("ghc-extra" ,ghc-extra)
2970 ("ghc-quickcheck" ,ghc-quickcheck)
2971 ("ghc-resourcet" ,ghc-resourcet)
2972 ("ghc-tasty" ,ghc-tasty)
2973 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
2974 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
2975 ;; FIXME - Some tests try to talk to network.
2976 (arguments `(#:tests? #f))
2977 (home-page "https://github.com/rblaze/haskell-dbus")
2978 (synopsis "Client library for the D-Bus IPC system")
2979 (description
2980 "D-Bus is a simple, message-based protocol for inter-process
2981communication, which allows applications to interact with other parts
2982of the machine and the user's session using remote procedure
2983calls. D-Bus is a essential part of the modern Linux desktop, where
2984it replaces earlier protocols such as CORBA and DCOP. This library
2985is an implementation of the D-Bus protocol in Haskell. It can be used
2986to add D-Bus support to Haskell applications, without the awkward
2987interfaces common to foreign bindings.")
2988 (license license:asl2.0)))
2989
9b3b327a
CH
2990(define-public ghc-decimal
2991 (package
2992 (name "ghc-decimal")
2993 (version "0.5.1")
2994 (source
2995 (origin
2996 (method url-fetch)
2997 (uri (string-append
2998 "https://hackage.haskell.org/package/Decimal/Decimal-"
2999 version
3000 ".tar.gz"))
3001 (sha256
3002 (base32
3003 "0k7kh05mr2f54w1lpgq1nln0h8k6s6h99dyp5jzsb9cfbb3aap2p"))))
3004 (build-system haskell-build-system)
3005 (native-inputs
3006 `(("ghc-hunit" ,ghc-hunit)
3007 ("ghc-quickcheck" ,ghc-quickcheck)
3008 ("ghc-test-framework" ,ghc-test-framework)
3009 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
3010 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
3011 (home-page "https://github.com/PaulJohnson/Haskell-Decimal")
3012 (synopsis "Decimal numbers with variable precision")
3013 (description
3014 "A decimal number has an integer mantissa and a negative exponent.
3015The exponent can be interpreted as the number of decimal places in the
3016value.")
3017 (license license:bsd-3)))
3018
dddbc90c
RV
3019(define-public ghc-deepseq-generics
3020 (package
3021 (name "ghc-deepseq-generics")
3022 (version "0.2.0.0")
3023 (source (origin
3024 (method url-fetch)
3025 (uri (string-append "https://hackage.haskell.org/package/"
3026 "deepseq-generics/deepseq-generics-"
3027 version ".tar.gz"))
3028 (sha256
3029 (base32
3030 "17bwghc15mc9pchfd1w46jh2p3wzc86aj6a537wqwxn08rayzcxh"))))
3031 (build-system haskell-build-system)
3032 (arguments
3033 `(#:cabal-revision
490ceae4 3034 ("4" "0928s2qnbqsjzrm94x88rvmvbigfmhcyp4m73gw6asinp2qg1kii")))
dddbc90c
RV
3035 (native-inputs
3036 `(("ghc-hunit" ,ghc-hunit)
3037 ("ghc-test-framework" ,ghc-test-framework)
3038 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
3039 (home-page "https://github.com/hvr/deepseq-generics")
3040 (synopsis "Generic RNF implementation")
3041 (description
3042 "This package provides a @code{GHC.Generics}-based
3043@code{Control.DeepSeq.Generics.genericRnf} function which can be used for
3044providing an @code{rnf} implementation.")
3045 (license license:bsd-3)))
3046
e924e17e
TS
3047(define-public ghc-dense-linear-algebra
3048 (package
3049 (name "ghc-dense-linear-algebra")
3050 (version "0.1.0.0")
3051 (source
3052 (origin
3053 (method url-fetch)
3054 (uri (string-append "https://hackage.haskell.org/package/"
3055 "dense-linear-algebra/dense-linear-algebra-"
3056 version ".tar.gz"))
3057 (sha256
3058 (base32
3059 "1m7jjxahqxj7ilic3r9806mwp5rnnsmn8vvipkmk40xl65wplxzp"))))
3060 (build-system haskell-build-system)
3061 (inputs
3062 `(("ghc-math-functions" ,ghc-math-functions)
3063 ("ghc-primitive" ,ghc-primitive)
3064 ("ghc-vector" ,ghc-vector)
3065 ("ghc-vector-algorithms" ,ghc-vector-algorithms)
3066 ("ghc-vector-th-unbox" ,ghc-vector-th-unbox)
3067 ("ghc-vector-binary-instances" ,ghc-vector-binary-instances)))
3068 (native-inputs
3069 `(("ghc-hspec" ,ghc-hspec)
3070 ("ghc-quickcheck" ,ghc-quickcheck)))
50153437 3071 (home-page "https://hackage.haskell.org/package/dense-linear-algebra")
e924e17e
TS
3072 (synopsis "Simple and incomplete implementation of linear algebra")
3073 (description "This library is simply a collection of linear-algebra
3074related modules split from the statistics library.")
3075 (license license:bsd-2)))
3076
dddbc90c
RV
3077(define-public ghc-descriptive
3078 (package
3079 (name "ghc-descriptive")
3080 (version "0.9.5")
3081 (source
3082 (origin
3083 (method url-fetch)
3084 (uri (string-append
3085 "https://hackage.haskell.org/package/descriptive/descriptive-"
3086 version
3087 ".tar.gz"))
3088 (sha256
3089 (base32
3090 "0y5693zm2kvqjilybbmrcv1g6n6x2p6zjgi0k0axjw1sdhh1g237"))))
3091 (build-system haskell-build-system)
3092 (inputs
3093 `(("ghc-aeson" ,ghc-aeson)
3094 ("ghc-bifunctors" ,ghc-bifunctors)
3095 ("ghc-scientific" ,ghc-scientific)
3096 ("ghc-vector" ,ghc-vector)))
3097 (native-inputs
3098 `(("ghc-hunit" ,ghc-hunit)
3099 ("ghc-hspec" ,ghc-hspec)))
3100 (home-page
3101 "https://github.com/chrisdone/descriptive")
3102 (synopsis
3103 "Self-describing consumers/parsers: forms, cmd-line args, JSON, etc.")
3104 (description
3105 "This package provides datatypes and functions for creating consumers
3106and parsers with useful semantics.")
3107 (license license:bsd-3)))
3108
1859c94a
TS
3109(define-public ghc-diagrams-core
3110 (package
3111 (name "ghc-diagrams-core")
3112 (version "1.4.2")
3113 (source
3114 (origin
3115 (method url-fetch)
3116 (uri (string-append "https://hackage.haskell.org/package/"
3117 "diagrams-core/diagrams-core-" version ".tar.gz"))
3118 (sha256
3119 (base32
3120 "0qgb43vy23g4fxh3nmxfq6jyp34imqvkhgflaa6rz0iq6d60gl43"))))
3121 (build-system haskell-build-system)
3122 (inputs
3123 `(("ghc-unordered-containers" ,ghc-unordered-containers)
3124 ("ghc-semigroups" ,ghc-semigroups)
3125 ("ghc-monoid-extras" ,ghc-monoid-extras)
3126 ("ghc-dual-tree" ,ghc-dual-tree)
3127 ("ghc-lens" ,ghc-lens)
3128 ("ghc-linear" ,ghc-linear)
3129 ("ghc-adjunctions" ,ghc-adjunctions)
3130 ("ghc-distributive" ,ghc-distributive)
3131 ("ghc-profunctors" ,ghc-profunctors)))
3132 (home-page "https://archives.haskell.org/projects.haskell.org/diagrams/")
3133 (synopsis "Core libraries for diagrams embedded domain-specific language")
3134 (description "This package provides the core modules underlying
3135diagrams, an embedded domain-specific language for compositional,
3136declarative drawing.")
3137 (license license:bsd-3)))
3138
f9f1a630
TS
3139(define-public ghc-diagrams-lib
3140 (package
3141 (name "ghc-diagrams-lib")
3142 (version "1.4.2.3")
3143 (source
3144 (origin
3145 (method url-fetch)
3146 (uri (string-append "https://hackage.haskell.org/package/"
3147 "diagrams-lib/diagrams-lib-" version ".tar.gz"))
3148 (sha256
3149 (base32
3150 "175yzi5kw4yd8ykdkpf64q85c7j3p89l90m3h6qcsx9ipv6av9r5"))))
3151 (build-system haskell-build-system)
3152 (inputs
3153 `(("ghc-semigroups" ,ghc-semigroups)
3154 ("ghc-monoid-extras" ,ghc-monoid-extras)
3155 ("ghc-dual-tree" ,ghc-dual-tree)
3156 ("ghc-diagrams-core" ,ghc-diagrams-core)
3157 ("ghc-diagrams-solve" ,ghc-diagrams-solve)
3158 ("ghc-active" ,ghc-active)
3159 ("ghc-colour" ,ghc-colour)
3160 ("ghc-data-default-class" ,ghc-data-default-class)
3161 ("ghc-fingertree" ,ghc-fingertree)
3162 ("ghc-intervals" ,ghc-intervals)
3163 ("ghc-lens" ,ghc-lens)
3164 ("ghc-tagged" ,ghc-tagged)
3165 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
3166 ("ghc-juicypixels" ,ghc-juicypixels)
3167 ("ghc-hashable" ,ghc-hashable)
3168 ("ghc-linear" ,ghc-linear)
3169 ("ghc-adjunctions" ,ghc-adjunctions)
3170 ("ghc-distributive" ,ghc-distributive)
3171 ("ghc-fsnotify" ,ghc-fsnotify)
3172 ("ghc-unordered-containers" ,ghc-unordered-containers)
3173 ("ghc-profunctors" ,ghc-profunctors)
3174 ("ghc-exceptions" ,ghc-exceptions)
3175 ("ghc-cereal" ,ghc-cereal)))
3176 (native-inputs
3177 `(("ghc-tasty" ,ghc-tasty)
3178 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
3179 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
3180 ("ghc-numeric-extras" ,ghc-numeric-extras)))
3181 (arguments
3182 `(#:cabal-revision
3183 ("3" "157y2qdsh0aczs81vzlm377mks976mpv6y3aqnchwsnr7apzp8ai")))
3184 (home-page "https://archives.haskell.org/projects.haskell.org/diagrams/")
3185 (synopsis "Embedded domain-specific language for declarative graphics")
3186 (description "Diagrams is a flexible, extensible embedded
3187domain-specific language (EDSL) for creating graphics of many types.
3188Graphics can be created in arbitrary vector spaces and rendered with
3189multiple backends. This package provides a standard library of
3190primitives and operations for creating diagrams.")
3191 (license license:bsd-3)))
3192
fd33ffa0
TS
3193(define-public ghc-diagrams-solve
3194 (package
3195 (name "ghc-diagrams-solve")
3196 (version "0.1.1")
3197 (source
3198 (origin
3199 (method url-fetch)
3200 (uri (string-append "https://hackage.haskell.org/package/"
3201 "diagrams-solve/diagrams-solve-"
3202 version ".tar.gz"))
3203 (sha256
3204 (base32
3205 "17agchqkmj14b17sw50kzxq4hm056g5d8yy0wnqn5w8h1d0my7x4"))))
3206 (build-system haskell-build-system)
3207 (native-inputs
3208 `(("ghc-tasty" ,ghc-tasty)
3209 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
3210 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
3211 (arguments
3212 `(#:cabal-revision
3213 ("5" "1yl8cs05fzqcz49p601am1ij66m9pa70yamhfxgcvya2pf8nimlf")))
3214 (home-page "https://archives.haskell.org/projects.haskell.org/diagrams/")
3215 (synopsis "Pure Haskell solver routines used by diagrams")
3216 (description "This library provides Pure Haskell solver routines for
3217use by the
3218@url{https://archives.haskell.org/projects.haskell.org/diagrams/,
3219diagrams framework}. It currently includes routines for finding real
3220roots of low-degree (@math{n < 5}) polynomials, and solving tridiagonal
3221and cyclic tridiagonal linear systems.")
3222 (license license:bsd-3)))
3223
74be1cb7
TS
3224(define-public ghc-diagrams-svg
3225 (package
3226 (name "ghc-diagrams-svg")
3227 (version "1.4.2")
3228 (source
3229 (origin
3230 (method url-fetch)
3231 (uri (string-append "https://hackage.haskell.org/package/"
3232 "diagrams-svg/diagrams-svg-" version ".tar.gz"))
3233 (sha256
3234 (base32
3235 "1lnyxx45yawqas7hmvvannwaa3ycf1l9g40lsl2m8sl2ja6vcmal"))))
3236 (build-system haskell-build-system)
3237 (inputs
3238 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
3239 ("ghc-colour" ,ghc-colour)
3240 ("ghc-diagrams-core" ,ghc-diagrams-core)
3241 ("ghc-diagrams-lib" ,ghc-diagrams-lib)
3242 ("ghc-monoid-extras" ,ghc-monoid-extras)
3243 ("ghc-svg-builder" ,ghc-svg-builder)
3244 ("ghc-juicypixels" ,ghc-juicypixels)
3245 ("ghc-split" ,ghc-split)
3246 ("ghc-lens" ,ghc-lens)
3247 ("ghc-hashable" ,ghc-hashable)
3248 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
3249 ("ghc-semigroups" ,ghc-semigroups)))
3250 (arguments
3251 `(#:cabal-revision
3252 ("2" "15sn85xaachw4cj56w61bjcwrbf4qmnkfl8mbgdapxi5k0y4f2qv")))
3253 (home-page "https://archives.haskell.org/projects.haskell.org/diagrams/")
3254 (synopsis "Scalable Vector Grpahics backend for the diagrams framework")
3255 (description "This package provides a modular backend for rendering
3256diagrams created with the diagrams embedded domain-specific
3257language (EDSL) to Scalable Vector Graphics (SVG) files.")
3258 (license license:bsd-3)))
3259
4eb9a167
TS
3260(define-public ghc-dictionary-sharing
3261 (package
3262 (name "ghc-dictionary-sharing")
3263 (version "0.1.0.0")
3264 (source
3265 (origin
3266 (method url-fetch)
3267 (uri (string-append "https://hackage.haskell.org/package/"
3268 "dictionary-sharing/dictionary-sharing-"
3269 version ".tar.gz"))
3270 (sha256
3271 (base32
3272 "00aspv943qdqhlk39mbk00kb1dsa5r0caj8sslrn81fnsn252fwc"))))
3273 (build-system haskell-build-system)
3274 (arguments
3275 `(#:cabal-revision
3276 ("3" "1mn7jcc7h3b8f1pn9zigqp6mc2n0qb66lms5qnrx4zswdv5w9439")))
3277 (home-page "https://hackage.haskell.org/package/dictionary-sharing")
3278 (synopsis "Sharing/memoization of class members")
3279 (description "This library provides tools for ensuring that class
3280members are shared.")
3281 (license license:bsd-3)))
3282
dddbc90c
RV
3283(define-public ghc-diff
3284 (package
3285 (name "ghc-diff")
3286 (version "0.3.4")
3287 (source (origin
3288 (method url-fetch)
3289 (uri (string-append "https://hackage.haskell.org/package/"
3290 "Diff/Diff-" version ".tar.gz"))
a531ff94 3291 (patches (search-patches "ghc-diff-swap-cover-args.patch"))
dddbc90c
RV
3292 (sha256
3293 (base32
3294 "0bqcdvhxx8dmqc3793m6axg813wv9ldz2j37f1wygbbrbbndmdvp"))))
3295 (build-system haskell-build-system)
3296 (native-inputs
3297 `(("ghc-quickcheck" ,ghc-quickcheck)
3298 ("ghc-test-framework" ,ghc-test-framework)
3299 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
3300 (home-page "https://hub.darcs.net/sterlingclover/Diff")
3301 (synopsis "O(ND) diff algorithm in Haskell")
3302 (description
3303 "This package provides an implementation of the standard diff algorithm,
3304and utilities for pretty printing.")
3305 (license license:bsd-3)))
3306
3307(define-public ghc-disk-free-space
3308 (package
3309 (name "ghc-disk-free-space")
3310 (version "0.1.0.1")
3311 (source
3312 (origin
3313 (method url-fetch)
3314 (uri (string-append "https://hackage.haskell.org/package/"
3315 "disk-free-space/disk-free-space-"
3316 version ".tar.gz"))
3317 (sha256
3318 (base32
3319 "07rqj8k1vh3cykq9yidpjxhgh1f7vgmjs6y1nv5kq2217ff4yypi"))))
3320 (build-system haskell-build-system)
3321 (home-page "https://github.com/redneb/disk-free-space")
3322 (synopsis "Retrieve information about disk space usage")
3323 (description "A cross-platform library for retrieving information about
3324disk space usage.")
3325 (license license:bsd-3)))
3326
3327(define-public ghc-distributive
3328 (package
3329 (name "ghc-distributive")
78215a14 3330 (version "0.6.2")
dddbc90c
RV
3331 (source
3332 (origin
3333 (method url-fetch)
3334 (uri (string-append
3335 "https://hackage.haskell.org/package/distributive/distributive-"
3336 version
3337 ".tar.gz"))
3338 (sha256
3339 (base32
78215a14 3340 "1j93zkfffm6s16kgr0j0z87y5ds28rw0r2gyc5ncwcylvrqy4kl2"))))
dddbc90c 3341 (build-system haskell-build-system)
dddbc90c
RV
3342 (inputs
3343 `(("ghc-tagged" ,ghc-tagged)
3344 ("ghc-base-orphans" ,ghc-base-orphans)
3345 ("ghc-transformers-compat" ,ghc-transformers-compat)
3346 ("ghc-semigroups" ,ghc-semigroups)
3347 ("ghc-generic-deriving" ,ghc-generic-deriving)))
3348 (native-inputs
3349 `(("cabal-doctest" ,cabal-doctest)
3350 ("ghc-doctest" ,ghc-doctest)
3351 ("ghc-hspec" ,ghc-hspec)
3352 ("hspec-discover" ,hspec-discover)))
3353 (home-page "https://github.com/ekmett/distributive/")
3354 (synopsis "Distributive functors for Haskell")
3355 (description "This package provides distributive functors for Haskell.
3356Dual to @code{Traversable}.")
3357 (license license:bsd-3)))
3358
3359(define-public ghc-dlist
3360 (package
3361 (name "ghc-dlist")
197ddf33 3362 (version "0.8.0.7")
dddbc90c
RV
3363 (source
3364 (origin
3365 (method url-fetch)
3366 (uri (string-append
3367 "https://hackage.haskell.org/package/dlist/dlist-"
3368 version
3369 ".tar.gz"))
3370 (sha256
197ddf33 3371 (base32 "0b5spkzvj2kx8pk86xz0djkxs13j7dryf5fl16dk4mlp1wh6mh53"))))
dddbc90c
RV
3372 (build-system haskell-build-system)
3373 (inputs
3374 `(("ghc-quickcheck" ,ghc-quickcheck)))
3375 (home-page "https://github.com/spl/dlist")
3376 (synopsis "Difference lists")
3377 (description
3378 "Difference lists are a list-like type supporting O(1) append. This is
3379particularly useful for efficient logging and pretty printing (e.g. with the
3380Writer monad), where list append quickly becomes too expensive.")
3381 (license license:bsd-3)))
3382
3383(define-public ghc-doctemplates
3384 (package
3385 (name "ghc-doctemplates")
3386 (version "0.2.2.1")
3387 (source
3388 (origin
3389 (method url-fetch)
3390 (uri (string-append "https://hackage.haskell.org/package/"
3391 "doctemplates/doctemplates-"
3392 version ".tar.gz"))
3393 (sha256
3394 (base32
3395 "1gyckfg3kgvzhxw14i7iwrw0crygvsp86sy53bbr1yn7bxbgn33b"))))
3396 (build-system haskell-build-system)
3397 (inputs
3398 `(("ghc-aeson" ,ghc-aeson)
3399 ("ghc-blaze-markup" ,ghc-blaze-markup)
3400 ("ghc-blaze-html" ,ghc-blaze-html)
3401 ("ghc-vector" ,ghc-vector)
3402 ("ghc-unordered-containers" ,ghc-unordered-containers)
3403 ("ghc-scientific" ,ghc-scientific)))
3404 (native-inputs
3405 `(("ghc-hspec" ,ghc-hspec)))
3406 (home-page "https://github.com/jgm/doctemplates#readme")
3407 (synopsis "Pandoc-style document templates")
3408 (description
3409 "This package provides a simple text templating system used by pandoc.")
3410 (license license:bsd-3)))
3411
3412(define-public ghc-doctest
3413 (package
3414 (name "ghc-doctest")
232eab1d 3415 (version "0.16.3")
dddbc90c
RV
3416 (source
3417 (origin
3418 (method url-fetch)
3419 (uri (string-append
3420 "https://hackage.haskell.org/package/doctest/doctest-"
3421 version
3422 ".tar.gz"))
3423 (sha256
3424 (base32
232eab1d 3425 "1y1l7aa80qkib1z8lsizgg7fpfdmdwhxvi5m255a42jdkjgn5sfg"))))
dddbc90c
RV
3426 (build-system haskell-build-system)
3427 (arguments `(#:tests? #f)) ; FIXME: missing test framework
3428 (inputs
232eab1d 3429 `(("ghc-base-compat" ,ghc-base-compat)
dddbc90c 3430 ("ghc-code-page" ,ghc-code-page)
232eab1d
CH
3431 ("ghc-paths" ,ghc-paths)
3432 ("ghc-syb" ,ghc-syb)))
3433 (native-inputs
3434 `(("ghc-hunit" ,ghc-hunit)
dddbc90c 3435 ("ghc-quickcheck" ,ghc-quickcheck)
232eab1d
CH
3436 ("ghc-hspec" ,ghc-hspec)
3437 ("ghc-hspec-core" ,ghc-hspec-core)
3438 ("ghc-mockery" ,ghc-mockery)
3439 ("ghc-setenv" ,ghc-setenv)
dddbc90c 3440 ("ghc-silently" ,ghc-silently)
232eab1d 3441 ("ghc-stringbuilder" ,ghc-stringbuilder)))
dddbc90c
RV
3442 (home-page
3443 "https://github.com/sol/doctest#readme")
3444 (synopsis "Test interactive Haskell examples")
3445 (description "The doctest program checks examples in source code comments.
3446It is modeled after doctest for Python, see
3447@uref{https://docs.python.org/library/doctest.html, the Doctest website}.")
3448 (license license:expat)))
3449
2b2c8911
JS
3450(define-public ghc-dotgen
3451 (package
3452 (name "ghc-dotgen")
3453 (version "0.4.2")
3454 (source
3455 (origin
3456 (method url-fetch)
3457 (uri (string-append
3458 "mirror://hackage/package/dotgen/dotgen-"
3459 version
3460 ".tar.gz"))
3461 (sha256
3462 (base32
3463 "148q93qsmqgr5pzdwvpjqfd6bdm1pwzcp2rblfwswx2x8c5f43fg"))))
3464 (build-system haskell-build-system)
3465 (home-page "https://github.com/ku-fpg/dotgen")
3466 (synopsis
3467 "Simple interface for building .dot graph files")
3468 (description
3469 "This package provides a simple interface for building .dot graph
3470files, for input into the dot and graphviz tools. It includes a
3471monadic interface for building graphs.")
3472 (license license:bsd-3)))
3473
dddbc90c
RV
3474(define-public ghc-double-conversion
3475 (package
3476 (name "ghc-double-conversion")
3477 (version "2.0.2.0")
3478 (source
3479 (origin
3480 (method url-fetch)
3481 (uri (string-append "https://hackage.haskell.org/package/"
3482 "double-conversion/double-conversion-"
3483 version ".tar.gz"))
3484 (sha256
3485 (base32
3486 "0sx2kc1gw72mjvd8vph8bbjw5whfxfv92rsdhjg1c0al75rf3ka4"))))
3487 (build-system haskell-build-system)
3488 (native-inputs
3489 `(("ghc-hunit" ,ghc-hunit)
3490 ("ghc-test-framework" ,ghc-test-framework)
3491 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
3492 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
3493 (home-page "https://github.com/bos/double-conversion")
3494 (synopsis "Fast conversion between double precision floating point and text")
3495 (description
3496 "This package provides a library that performs fast, accurate conversion
3497between double precision floating point and text.")
3498 (license license:bsd-3)))
3499
577a78b7
TS
3500(define-public ghc-dual-tree
3501 (package
3502 (name "ghc-dual-tree")
3503 (version "0.2.2.1")
3504 (source
3505 (origin
3506 (method url-fetch)
3507 (uri (string-append "https://hackage.haskell.org/package/"
3508 "dual-tree/dual-tree-" version ".tar.gz"))
3509 (sha256
3510 (base32
3511 "17kdfnf0df0z5pkiifxrlmyd1xd7hjjaazd2kzyajl0gd00vbszx"))))
3512 (build-system haskell-build-system)
3513 (inputs
3514 `(("ghc-semigroups" ,ghc-semigroups)
3515 ("ghc-newtype-generics" ,ghc-newtype-generics)
3516 ("ghc-monoid-extras" ,ghc-monoid-extras)))
3517 (native-inputs
3518 `(("ghc-quickcheck" ,ghc-quickcheck)
3519 ("ghc-testing-feat" ,ghc-testing-feat)))
3520 (home-page "https://hackage.haskell.org/package/dual-tree")
3521 (synopsis "Rose trees with cached and accumulating monoidal annotations")
3522 (description "Rose (@math{n}-ary) trees with both upwards- (i.e.
3523cached) and downwards-traveling (i.e. accumulating) monoidal
3524annotations. This is used as the core data structure underlying the
3525@url{https://archives.haskell.org/projects.haskell.org/diagrams/,
3526diagrams framework}, but potentially has other applications as well.")
3527 (license license:bsd-3)))
3528
dddbc90c
RV
3529(define-public ghc-easy-file
3530 (package
3531 (name "ghc-easy-file")
3532 (version "0.2.2")
3533 (source
3534 (origin
3535 (method url-fetch)
3536 (uri (string-append
3537 "https://hackage.haskell.org/package/easy-file/easy-file-"
3538 version
3539 ".tar.gz"))
3540 (sha256
3541 (base32
3542 "0zmlcz723051qpn8l8vi51c5rx1blwrw4094jcshkmj8p9r2xxaj"))))
3543 (build-system haskell-build-system)
3544 (home-page
3545 "https://github.com/kazu-yamamoto/easy-file")
3546 (synopsis "File handling library for Haskell")
3547 (description "This library provides file handling utilities for Haskell.")
3548 (license license:bsd-3)))
3549
3550(define-public ghc-easyplot
3551 (package
3552 (name "ghc-easyplot")
3553 (version "1.0")
3554 (source
3555 (origin
3556 (method url-fetch)
3557 (uri (string-append
3558 "https://hackage.haskell.org/package/easyplot/easyplot-"
3559 version ".tar.gz"))
3560 (sha256
3561 (base32 "18kndgvdj2apjpfga6fp7m16y1gx8zrwp3c5vfj03sx4v6jvciqk"))))
3562 (build-system haskell-build-system)
3563 (propagated-inputs `(("gnuplot" ,gnuplot)))
3564 (arguments
3565 `(#:phases (modify-phases %standard-phases
3566 (add-after 'unpack 'fix-setup-suffix
3567 (lambda _ (rename-file "Setup.lhs" "Setup.hs") #t)))))
3568 (home-page "https://hub.darcs.net/scravy/easyplot")
3569 (synopsis "Haskell plotting library based on gnuplot")
3570 (description "This package provides a plotting library for
3571Haskell, using gnuplot for rendering.")
3572 (license license:expat)))
3573
3574(define-public ghc-echo
3575 (package
3576 (name "ghc-echo")
3577 (version "0.1.3")
3578 (source
3579 (origin
3580 (method url-fetch)
3581 (uri (string-append
3582 "https://hackage.haskell.org/package/echo/echo-"
3583 version ".tar.gz"))
3584 (sha256
3585 (base32
3586 "1vw5ykpwhr39wc0hhcgq3r8dh59zq6ib4zxbz1qd2wl21wqhfkvh"))))
3587 (build-system haskell-build-system)
3588 (arguments
3589 `(#:cabal-revision
3590 ("1" "0br8wfiybcw5hand4imiw0i5hacdmrax1dv8g95f35gazffbx42l")))
3591 (home-page "https://github.com/RyanGlScott/echo")
3592 (synopsis "Echo terminal input portably")
3593 (description "The @code{base} library exposes the @code{hGetEcho} and
3594@code{hSetEcho} functions for querying and setting echo status, but
3595unfortunately, neither function works with MinTTY consoles on Windows.
3596This library provides an alternative interface which works with both
3597MinTTY and other consoles.")
3598 (license license:bsd-3)))
3599
3600(define-public ghc-edisonapi
3601 (package
3602 (name "ghc-edisonapi")
3603 (version "1.3.1")
3604 (source
3605 (origin
3606 (method url-fetch)
3607 (uri (string-append "https://hackage.haskell.org/package/EdisonAPI"
3608 "/EdisonAPI-" version ".tar.gz"))
3609 (sha256
3610 (base32 "0vmmlsj8ggbpwx6fkf5fvb6jp0zpx6iba6b28m80lllr2p8bi8wm"))))
3611 (build-system haskell-build-system)
3612 (home-page "http://rwd.rdockins.name/edison/home/")
3613 (synopsis "Library of efficient, purely-functional data structures (API)")
3614 (description
3615 "Edison is a library of purely functional data structures written by
3616Chris Okasaki. It is named after Thomas Alva Edison and for the mnemonic
3617value EDiSon (Efficient Data Structures). Edison provides several families of
3618abstractions, each with multiple implementations. The main abstractions
3619provided by Edison are: Sequences such as stacks, queues, and dequeues;
3620Collections such as sets, bags and heaps; and Associative Collections such as
3621finite maps and priority queues where the priority and element are distinct.")
3622 (license license:expat)))
3623
3624(define-public ghc-edisoncore
3625 (package
3626 (name "ghc-edisoncore")
3627 (version "1.3.2.1")
3628 (source
3629 (origin
3630 (method url-fetch)
3631 (uri (string-append "https://hackage.haskell.org/package/EdisonCore"
3632 "/EdisonCore-" version ".tar.gz"))
3633 (sha256
3634 (base32 "0fgj5iwiv3v2gdgx7kjcr15dcs4x1kvmjspp3p99wyhh0x6h3ikk"))))
3635 (build-system haskell-build-system)
3636 (inputs
3637 `(("ghc-quickcheck" ,ghc-quickcheck)
3638 ("ghc-edisonapi" ,ghc-edisonapi)))
3639 (home-page "http://rwd.rdockins.name/edison/home/")
3640 (synopsis "Library of efficient, purely-functional data structures")
3641 (description
3642 "This package provides the core Edison data structure implementations,
3643including multiple sequence, set, bag, and finite map concrete implementations
3644with various performance characteristics.")
3645 (license license:expat)))
3646
3647(define-public ghc-edit-distance
3648 (package
3649 (name "ghc-edit-distance")
3650 (version "0.2.2.1")
3651 (source
3652 (origin
3653 (method url-fetch)
3654 (uri (string-append "https://hackage.haskell.org/package/edit-distance"
3655 "/edit-distance-" version ".tar.gz"))
3656 (sha256
3657 (base32 "0jkca97zyv23yyilp3jydcrzxqhyk27swhzh82llvban5zp8b21y"))))
3658 (build-system haskell-build-system)
3659 (arguments
3660 `(#:phases
3661 (modify-phases %standard-phases
3662 (add-before 'configure 'update-constraints
3663 (lambda _
3664 (substitute* "edit-distance.cabal"
3665 (("QuickCheck >= 2\\.4 && <2\\.9")
d7d143e5 3666 "QuickCheck >= 2.4 && < 2.14")))))))
dddbc90c
RV
3667 (inputs
3668 `(("ghc-random" ,ghc-random)
3669 ("ghc-test-framework" ,ghc-test-framework)
3670 ("ghc-quickcheck" ,ghc-quickcheck)
3671 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
3672 (home-page "https://github.com/phadej/edit-distance")
3673 (synopsis "Levenshtein and restricted Damerau-Levenshtein edit distances")
3674 (description
3675 "This package provides optimized functions to determine the edit
3676distances for fuzzy matching, including Levenshtein and restricted
3677Damerau-Levenshtein algorithms.")
3678 (license license:bsd-3)))
3679
3ebae41f
TS
3680(define-public ghc-edit-distance-vector
3681 (package
3682 (name "ghc-edit-distance-vector")
3683 (version "1.0.0.4")
3684 (source
3685 (origin
3686 (method url-fetch)
3687 (uri (string-append "https://hackage.haskell.org/package/"
3688 "edit-distance-vector/edit-distance-vector-"
3689 version ".tar.gz"))
3690 (sha256
3691 (base32
3692 "07qgc8dyi9kkzkd3xcd78wdlljy0xwhz65b4r2qg2piidpcdvpxp"))))
3693 (build-system haskell-build-system)
3694 (inputs
3695 `(("ghc-vector" ,ghc-vector)))
3696 (native-inputs
3697 `(("ghc-quickcheck" ,ghc-quickcheck)
3698 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)))
3699 (home-page "https://github.com/thsutton/edit-distance-vector")
3700 (synopsis "Calculate edit distances and edit scripts between vectors")
3701 (description "This package provides implementation of the
3702Wagner-Fischer dynamic programming algorithm to find the optimal edit
3703script and cost between two sequences. The implementation in this
3704package is specialised to sequences represented with @code{Data.Vector}
3705but is otherwise agnostic to:
3706@itemize
3707@item The type of values in the vectors;
3708@item The type representing edit operations; and
3709@item The type representing the cost of operations.
3710@end itemize")
3711 (license license:bsd-3)) )
3712
dddbc90c
RV
3713(define-public ghc-either
3714 (package
3715 (name "ghc-either")
a3fd4dc7 3716 (version "5.0.1.1")
dddbc90c
RV
3717 (source
3718 (origin
3719 (method url-fetch)
3720 (uri (string-append "https://hackage.haskell.org/package/"
3721 "either-" version "/"
3722 "either-" version ".tar.gz"))
3723 (sha256
3724 (base32
a3fd4dc7 3725 "09yzki8ss56xhy9vggdw1rls86b2kf55hjl5wi0vbv02d8fxahq2"))))
dddbc90c
RV
3726 (build-system haskell-build-system)
3727 (inputs `(("ghc-bifunctors" ,ghc-bifunctors)
3728 ("ghc-exceptions" ,ghc-exceptions)
3729 ("ghc-free" ,ghc-free)
3730 ("ghc-monad-control" ,ghc-monad-control)
3731 ("ghc-manodrandom" ,ghc-monadrandom)
3732 ("ghc-mmorph" ,ghc-mmorph)
3733 ("ghc-profunctors" ,ghc-profunctors)
3734 ("ghc-semigroups" ,ghc-semigroups)
3735 ("ghc-semigroupoids" ,ghc-semigroupoids)
3736 ("ghc-transformers-base" ,ghc-transformers-base)))
3737 (native-inputs
3738 `(("ghc-quickcheck" ,ghc-quickcheck)
3739 ("ghc-test-framework" ,ghc-test-framework)
3740 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
3741 (home-page "https://github.com/ekmett/either")
3742 (synopsis "Provides an either monad transformer for Haskell")
3743 (description "This Haskell package provides an either monad transformer.")
3744 (license license:bsd-3)))
3745
3746(define-public ghc-email-validate
3747 (package
3748 (name "ghc-email-validate")
a4fe1c64 3749 (version "2.3.2.12")
dddbc90c
RV
3750 (source
3751 (origin
3752 (method url-fetch)
3753 (uri (string-append
3754 "https://hackage.haskell.org/package/"
3755 "email-validate/email-validate-"
3756 version
3757 ".tar.gz"))
3758 (sha256
3759 (base32
a4fe1c64 3760 "0ar3cfjia3x11chb7w60mi7hp5djanms883ddk875l6lifr2lyqf"))))
dddbc90c
RV
3761 (build-system haskell-build-system)
3762 (inputs
3763 `(("ghc-attoparsec" ,ghc-attoparsec)
3764 ("ghc-hspec" ,ghc-hspec)
3765 ("ghc-quickcheck" ,ghc-quickcheck)
3766 ("ghc-doctest" ,ghc-doctest)))
3767 (home-page
3768 "https://github.com/Porges/email-validate-hs")
3769 (synopsis "Email address validator for Haskell")
3770 (description
3771 "This Haskell package provides a validator that can validate an email
3772address string against RFC 5322.")
3773 (license license:bsd-3)))
3774
3775(define-public ghc-enclosed-exceptions
3776 (package
3777 (name "ghc-enclosed-exceptions")
3778 (version "1.0.3")
3779 (source (origin
3780 (method url-fetch)
3781 (uri (string-append "https://hackage.haskell.org/package/"
3782 "enclosed-exceptions/enclosed-exceptions-"
3783 version ".tar.gz"))
3784 (sha256
3785 (base32
3786 "1fghjj7nkiddrf03ks8brjpr5x25yi9fs7xg6adbi4mc2gqr6vdg"))))
3787 (build-system haskell-build-system)
3788 ;; FIXME: one of the tests blocks forever:
3789 ;; "thread blocked indefinitely in an MVar operation"
3790 (arguments '(#:tests? #f))
3791 (inputs
3792 `(("ghc-lifted-base" ,ghc-lifted-base)
3793 ("ghc-monad-control" ,ghc-monad-control)
3794 ("ghc-async" ,ghc-async)
3795 ("ghc-transformers-base" ,ghc-transformers-base)))
3796 (native-inputs
3797 `(("ghc-hspec" ,ghc-hspec)
3798 ("ghc-quickcheck" ,ghc-quickcheck)))
3799 (home-page "https://github.com/jcristovao/enclosed-exceptions")
3800 (synopsis "Catch all exceptions from within an enclosed computation")
3801 (description
3802 "This library implements a technique to catch all exceptions raised
3803within an enclosed computation, while remaining responsive to (external)
3804asynchronous exceptions.")
3805 (license license:expat)))
3806
3807(define-public ghc-equivalence
3808 (package
3809 (name "ghc-equivalence")
801cf5b1 3810 (version "0.3.5")
dddbc90c
RV
3811 (source
3812 (origin
3813 (method url-fetch)
3814 (uri (string-append "https://hackage.haskell.org/package/equivalence"
3815 "/equivalence-" version ".tar.gz"))
3816 (sha256
801cf5b1 3817 (base32 "167njzd1cf32aa7br90rjafrxy6hw3fxkk8awifqbxjrcwm5maqp"))))
dddbc90c
RV
3818 (build-system haskell-build-system)
3819 (inputs
3820 `(("ghc-stmonadtrans" ,ghc-stmonadtrans)
3821 ("ghc-transformers-compat" ,ghc-transformers-compat)
801cf5b1
TS
3822 ("ghc-fail" ,ghc-fail)
3823 ("ghc-quickcheck" ,ghc-quickcheck)))
dddbc90c
RV
3824 (home-page "https://github.com/pa-ba/equivalence")
3825 (synopsis "Maintaining an equivalence relation implemented as union-find")
3826 (description
3827 "This is an implementation of Tarjan's Union-Find algorithm (Robert E.@:
3828Tarjan. \"Efficiency of a Good But Not Linear Set Union Algorithm\",JACM
382922(2), 1975) in order to maintain an equivalence relation. This
3830implementation is a port of the @code{union-find} package using the @code{ST}
3831monad transformer (instead of the IO monad).")
3832 (license license:bsd-3)))
3833
3834(define-public ghc-erf
3835 (package
3836 (name "ghc-erf")
3837 (version "2.0.0.0")
3838 (source
3839 (origin
3840 (method url-fetch)
3841 (uri (string-append "https://hackage.haskell.org/package/"
3842 "erf-" version "/"
3843 "erf-" version ".tar.gz"))
3844 (sha256
3845 (base32
3846 "0dxk2r32ajmmc05vaxcp0yw6vgv4lkbmh8jcshncn98xgsfbgw14"))))
3847 (build-system haskell-build-system)
3848 (home-page "https://hackage.haskell.org/package/erf")
3849 (synopsis "The error function, erf, and related functions for Haskell")
3850 (description "This Haskell library provides a type class for the
3851error function, erf, and related functions. Instances for Float and
3852Double.")
3853 (license license:bsd-3)))
3854
3855(define-public ghc-errorcall-eq-instance
3856 (package
3857 (name "ghc-errorcall-eq-instance")
3858 (version "0.3.0")
3859 (source
3860 (origin
3861 (method url-fetch)
3862 (uri (string-append "https://hackage.haskell.org/package/"
3863 "errorcall-eq-instance/errorcall-eq-instance-"
3864 version ".tar.gz"))
3865 (sha256
3866 (base32
3867 "0hqw82m8bbrxy5vgdwb83bhzdx070ibqrm9rshyja7cb808ahijm"))))
3868 (build-system haskell-build-system)
3869 (inputs
3870 `(("ghc-base-orphans" ,ghc-base-orphans)))
3871 (native-inputs
3872 `(("ghc-quickcheck" ,ghc-quickcheck)
3873 ("ghc-hspec" ,ghc-hspec)
3874 ("hspec-discover" ,hspec-discover)))
3ef91e15 3875 (home-page "https://hackage.haskell.org/package/errorcall-eq-instance")
dddbc90c
RV
3876 (synopsis "Orphan Eq instance for ErrorCall")
3877 (description
3878 "Prior to @code{base-4.7.0.0} there was no @code{Eq} instance for @code{ErrorCall}.
3879This package provides an orphan instance.")
3880 (license license:expat)))
3881
3882(define-public ghc-errors
3883 (package
3884 (name "ghc-errors")
3885 (version "2.3.0")
3886 (source
3887 (origin
3888 (method url-fetch)
3889 (uri (string-append "https://hackage.haskell.org/package/"
3890 "errors-" version "/"
3891 "errors-" version ".tar.gz"))
3892 (sha256
3893 (base32
3894 "0x8znwn31qcx6kqx99wp7bc86kckfb39ncz3zxvj1s07kxlfawk7"))))
3895 (build-system haskell-build-system)
3896 (inputs
3897 `(("ghc-exceptions" ,ghc-exceptions)
3898 ("ghc-transformers-compat" ,ghc-transformers-compat)
3899 ("ghc-unexceptionalio" ,ghc-unexceptionalio)
3900 ("ghc-safe" ,ghc-safe)))
3901 (home-page "https://github.com/gabriel439/haskell-errors-library")
3902 (synopsis "Error handling library for Haskell")
3903 (description "This library encourages an error-handling style that
3904directly uses the type system, rather than out-of-band exceptions.")
3905 (license license:bsd-3)))
3906
3907(define-public ghc-esqueleto
2648b604
TS
3908 (package
3909 (name "ghc-esqueleto")
2f6ad77b 3910 (version "3.3.1.1")
2648b604
TS
3911 (source
3912 (origin
3913 (method url-fetch)
3914 (uri (string-append "https://hackage.haskell.org/package/"
3915 "esqueleto/esqueleto-" version ".tar.gz"))
3916 (sha256
3917 (base32
2f6ad77b 3918 "1qi28ma8j5kfygjxnixlazxsyrkdqv8ljz3icwqi5dlscsnj6v3v"))))
2648b604
TS
3919 (build-system haskell-build-system)
3920 (arguments
3921 `(#:haddock? #f ; Haddock reports an internal error.
3922 #:phases
3923 (modify-phases %standard-phases
3924 ;; This package normally runs tests for the MySQL, PostgreSQL, and
3925 ;; SQLite backends. Since we only have Haskell packages for
3926 ;; SQLite, we remove the other two test suites. FIXME: Add the
3927 ;; other backends and run all three test suites.
3928 (add-before 'configure 'remove-non-sqlite-test-suites
3929 (lambda _
3930 (use-modules (ice-9 rdelim))
3931 (with-atomic-file-replacement "esqueleto.cabal"
3932 (lambda (in out)
3933 (let loop ((line (read-line in 'concat)) (deleting? #f))
3934 (cond
3935 ((eof-object? line) #t)
3936 ((string-every char-set:whitespace line)
3937 (unless deleting? (display line out))
3938 (loop (read-line in 'concat) #f))
3939 ((member line '("test-suite mysql\n"
3940 "test-suite postgresql\n"))
3941 (loop (read-line in 'concat) #t))
3942 (else
3943 (unless deleting? (display line out))
3944 (loop (read-line in 'concat) deleting?)))))))))))
3945 (inputs
3946 `(("ghc-blaze-html" ,ghc-blaze-html)
3947 ("ghc-conduit" ,ghc-conduit)
3948 ("ghc-monad-logger" ,ghc-monad-logger)
3949 ("ghc-persistent" ,ghc-persistent)
3950 ("ghc-resourcet" ,ghc-resourcet)
3951 ("ghc-tagged" ,ghc-tagged)
3952 ("ghc-unliftio" ,ghc-unliftio)
3953 ("ghc-unordered-containers" ,ghc-unordered-containers)))
3954 (native-inputs
3955 `(("ghc-hspec" ,ghc-hspec)
3956 ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
3957 ("ghc-persistent-template" ,ghc-persistent-template)))
3958 (home-page "https://github.com/bitemyapp/esqueleto")
3959 (synopsis "Type-safe embedded domain specific language for SQL queries")
3960 (description "This library provides a type-safe embedded domain specific
dddbc90c
RV
3961language (EDSL) for SQL queries that works with SQL backends as provided by
3962@code{ghc-persistent}. Its language closely resembles SQL, so you don't have
3963to learn new concepts, just new syntax, and it's fairly easy to predict the
3964generated SQL and optimize it for your backend.")
2648b604 3965 (license license:bsd-3)))
dddbc90c
RV
3966
3967(define-public ghc-exactprint
3968 (package
3969 (name "ghc-exactprint")
50614014 3970 (version "0.6.1")
dddbc90c
RV
3971 (source
3972 (origin
3973 (method url-fetch)
3974 (uri (string-append
3975 "https://hackage.haskell.org/package/"
3976 "ghc-exactprint/ghc-exactprint-" version ".tar.gz"))
3977 (sha256
3978 (base32
50614014 3979 "12nqpqmi9c57a3hgpfy8q073zryz66ylmcvf29hyffpj7vmmnvhl"))))
dddbc90c
RV
3980 (build-system haskell-build-system)
3981 (inputs
3982 `(("ghc-paths" ,ghc-paths)
3983 ("ghc-syb" ,ghc-syb)
3984 ("ghc-free" ,ghc-free)))
3985 (native-inputs
3986 `(("ghc-hunit" ,ghc-hunit)
3987 ("ghc-diff" ,ghc-diff)
3988 ("ghc-silently" ,ghc-silently)
3989 ("ghc-filemanip" ,ghc-filemanip)))
3990 (home-page
3ef91e15 3991 "https://hackage.haskell.org/package/ghc-exactprint")
dddbc90c
RV
3992 (synopsis "ExactPrint for GHC")
3993 (description
3994 "Using the API Annotations available from GHC 7.10.2, this library
3995provides a means to round-trip any code that can be compiled by GHC, currently
3996excluding @file{.lhs} files.")
3997 (license license:bsd-3)))
3998
3999(define-public ghc-exceptions
4000 (package
4001 (name "ghc-exceptions")
46d3e65b 4002 (version "0.10.3")
dddbc90c
RV
4003 (source
4004 (origin
4005 (method url-fetch)
4006 (uri (string-append
4007 "https://hackage.haskell.org/package/exceptions/exceptions-"
4008 version
4009 ".tar.gz"))
4010 (sha256
4011 (base32
46d3e65b 4012 "1w25j4ys5s6v239vbqlbipm9fdwxl1j2ap2lzms7f7rgnik5ir24"))))
dddbc90c
RV
4013 (build-system haskell-build-system)
4014 (native-inputs
4015 `(("ghc-quickcheck" ,ghc-quickcheck)
4016 ("ghc-test-framework" ,ghc-test-framework)
4017 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
4018 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
4019 (inputs
4020 `(("ghc-transformers-compat" ,ghc-transformers-compat)))
4021 (home-page "https://github.com/ekmett/exceptions/")
4022 (synopsis "Extensible optionally-pure exceptions")
4023 (description "This library provides extensible optionally-pure exceptions
4024for Haskell.")
4025 (license license:bsd-3)))
4026
4027(define-public ghc-executable-path
4028 (package
4029 (name "ghc-executable-path")
4030 (version "0.0.3.1")
4031 (source (origin
4032 (method url-fetch)
4033 (uri (string-append "https://hackage.haskell.org/package/"
4034 "executable-path/executable-path-"
4035 version ".tar.gz"))
4036 (sha256
4037 (base32
4038 "0vxwmnsvx13cawcyhbyljkds0l1vr996ijldycx7nj0asjv45iww"))))
4039 (build-system haskell-build-system)
4040 (home-page "https://hackage.haskell.org/package/executable-path")
4041 (synopsis "Find out the full path of the executable")
4042 (description
4043 "The documentation of @code{System.Environment.getProgName} says that
4044\"However, this is hard-to-impossible to implement on some non-Unix OSes, so
4045instead, for maximum portability, we just return the leafname of the program
4046as invoked.\" This library tries to provide the missing path.")
4047 (license license:public-domain)))
4048
4049(define-public ghc-extensible-exceptions
4050 (package
4051 (name "ghc-extensible-exceptions")
4052 (version "0.1.1.4")
4053 (source
4054 (origin
4055 (method url-fetch)
4056 (uri (string-append "https://hackage.haskell.org/package/"
4057 "extensible-exceptions/extensible-exceptions-"
4058 version ".tar.gz"))
4059 (sha256
4060 (base32 "1273nqws9ij1rp1bsq5jc7k2jxpqa0svawdbim05lf302y0firbc"))))
4061 (build-system haskell-build-system)
4062 (home-page "https://hackage.haskell.org/package/extensible-exceptions")
4063 (synopsis "Extensible exceptions for Haskell")
4064 (description
4065 "This package provides extensible exceptions for both new and old
4066versions of GHC (i.e., < 6.10).")
4067 (license license:bsd-3)))
4068
4069(define-public ghc-extra
4070 (package
4071 (name "ghc-extra")
0cec5c4e 4072 (version "1.6.21")
dddbc90c
RV
4073 (source
4074 (origin
4075 (method url-fetch)
4076 (uri (string-append
4077 "https://hackage.haskell.org/package/extra/extra-"
4078 version
4079 ".tar.gz"))
4080 (sha256
4081 (base32
0cec5c4e 4082 "1gjx98w4w61g043k6rzc8i34cbxpcigi8lb6i7pp1vwp8w8jm5vl"))))
dddbc90c
RV
4083 (build-system haskell-build-system)
4084 (inputs
4085 `(("ghc-clock" ,ghc-clock)
10650c44 4086 ("ghc-semigroups" ,ghc-semigroups)
b431f6c9
ASM
4087 ("ghc-quickcheck" ,ghc-quickcheck)
4088 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)))
dddbc90c
RV
4089 (home-page "https://github.com/ndmitchell/extra")
4090 (synopsis "Extra Haskell functions")
4091 (description "This library provides extra functions for the standard
4092Haskell libraries. Most functions are simple additions, filling out missing
4093functionality. A few functions are available in later versions of GHC, but
4094this package makes them available back to GHC 7.2.")
4095 (license license:bsd-3)))
4096
4097(define-public ghc-fail
4098 (package
4099 (name "ghc-fail")
4100 (version "4.9.0.0")
4101 (source
4102 (origin
4103 (method url-fetch)
4104 (uri (string-append "https://hackage.haskell.org/package/fail/fail-"
4105 version ".tar.gz"))
4106 (sha256
4107 (base32 "18nlj6xvnggy61gwbyrpmvbdkq928wv0wx2zcsljb52kbhddnp3d"))))
4108 (build-system haskell-build-system)
4109 (arguments `(#:haddock? #f)) ; Package contains no documentation.
4110 (home-page "https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail")
4111 (synopsis "Forward-compatible MonadFail class")
4112 (description
4113 "This package contains the @code{Control.Monad.Fail} module providing the
4114@uref{https://prime.haskell.org/wiki/Libraries/Proposals/MonadFail, MonadFail}
4115class that became available in
4116@uref{https://hackage.haskell.org/package/base-4.9.0.0, base-4.9.0.0} for
4117older @code{base} package versions. This package turns into an empty package
4118when used with GHC versions which already provide the
4119@code{Control.Monad.Fail} module.")
4120 (license license:bsd-3)))
4121
4122(define-public ghc-fast-logger
4123 (package
4124 (name "ghc-fast-logger")
d443a52a 4125 (version "2.4.17")
dddbc90c
RV
4126 (source
4127 (origin
4128 (method url-fetch)
4129 (uri (string-append
4130 "https://hackage.haskell.org/package/fast-logger/fast-logger-"
4131 version
4132 ".tar.gz"))
4133 (sha256
4134 (base32
d443a52a 4135 "02mxb1ckvx1s2r2m11l5i2l5rdl7232p0f61af6773haykjp0qxk"))))
dddbc90c
RV
4136 (build-system haskell-build-system)
4137 (inputs
4138 `(("ghc-auto-update" ,ghc-auto-update)
4139 ("ghc-easy-file" ,ghc-easy-file)
d443a52a
TS
4140 ("ghc-unix-time" ,ghc-unix-time)
4141 ("ghc-unix-compat" ,ghc-unix-compat)))
dddbc90c
RV
4142 (native-inputs
4143 `(("hspec-discover" ,hspec-discover)
4144 ("ghc-hspec" ,ghc-hspec)))
4145 (home-page "https://hackage.haskell.org/package/fast-logger")
4146 (synopsis "Fast logging system")
4147 (description "This library provides a fast logging system for Haskell.")
4148 (license license:bsd-3)))
4149
4150(define-public ghc-feed
4151 (package
4152 (name "ghc-feed")
a41c16dc 4153 (version "1.2.0.1")
dddbc90c
RV
4154 (source
4155 (origin
4156 (method url-fetch)
4157 (uri (string-append "https://hackage.haskell.org/package/"
4158 "feed/feed-" version ".tar.gz"))
4159 (sha256
4160 (base32
a41c16dc 4161 "004lwdng4slj6yl8mgscr3cgj0zzc8hzkf4450dby2l6cardg4w0"))))
dddbc90c 4162 (build-system haskell-build-system)
dddbc90c
RV
4163 (inputs
4164 `(("ghc-base-compat" ,ghc-base-compat)
4165 ("ghc-old-locale" ,ghc-old-locale)
4166 ("ghc-old-time" ,ghc-old-time)
4167 ("ghc-safe" ,ghc-safe)
4168 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
4169 ("ghc-utf8-string" ,ghc-utf8-string)
4170 ("ghc-xml-conduit" ,ghc-xml-conduit)
4171 ("ghc-xml-types" ,ghc-xml-types)))
4172 (native-inputs
4173 `(("ghc-hunit" ,ghc-hunit)
a41c16dc 4174 ("ghc-markdown-unlit" ,ghc-markdown-unlit)
dddbc90c
RV
4175 ("ghc-test-framework" ,ghc-test-framework)
4176 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
4177 (home-page "https://github.com/bergmark/feed")
4178 (synopsis "Haskell package for handling various syndication formats")
4179 (description "This Haskell package includes tools for generating and
4180consuming feeds in both RSS (Really Simple Syndication) and Atom format.")
4181 (license license:bsd-3)))
4182
4183(define-public ghc-fgl
4184 (package
4185 (name "ghc-fgl")
17482b26 4186 (version "5.7.0.1")
534d6caa 4187 (outputs '("out" "static" "doc"))
dddbc90c
RV
4188 (source
4189 (origin
4190 (method url-fetch)
4191 (uri (string-append
4192 "https://hackage.haskell.org/package/fgl/fgl-"
4193 version
4194 ".tar.gz"))
4195 (sha256
4196 (base32
17482b26 4197 "04793yh778ck3kz1z2svnfdwwls2kisbnky4lzvf4zjfgpv7mkpz"))))
dddbc90c
RV
4198 (build-system haskell-build-system)
4199 (arguments
4200 `(#:phases
4201 (modify-phases %standard-phases
4202 (add-before 'configure 'update-constraints
4203 (lambda _
4204 (substitute* "fgl.cabal"
17482b26
TS
4205 (("QuickCheck >= 2\\.8 && < 2\\.13")
4206 "QuickCheck >= 2.8 && < 2.14")
4207 (("hspec >= 2\\.1 && < 2\\.7")
4208 "hspec >= 2.1 && < 2.8")))))))
dddbc90c
RV
4209 (inputs
4210 `(("ghc-hspec" ,ghc-hspec)
4211 ("ghc-quickcheck" ,ghc-quickcheck)))
4212 (home-page "https://web.engr.oregonstate.edu/~erwig/fgl/haskell")
4213 (synopsis
4214 "Martin Erwig's Functional Graph Library")
4215 (description "The functional graph library, FGL, is a collection of type
4216and function definitions to address graph problems. The basis of the library
4217is an inductive definition of graphs in the style of algebraic data types that
4218encourages inductive, recursive definitions of graph algorithms.")
4219 (license license:bsd-3)))
4220
4221(define-public ghc-fgl-arbitrary
4222 (package
4223 (name "ghc-fgl-arbitrary")
4224 (version "0.2.0.3")
4225 (source
4226 (origin
4227 (method url-fetch)
4228 (uri (string-append
4229 "https://hackage.haskell.org/package/fgl-arbitrary/fgl-arbitrary-"
4230 version ".tar.gz"))
4231 (sha256
4232 (base32
4233 "0ln1szgfy8fa78l3issq4fx3aqnnd54w3cb4wssrfi48vd5rkfjm"))))
4234 (build-system haskell-build-system)
4235 (arguments
4236 `(#:phases
4237 (modify-phases %standard-phases
4238 (add-before 'configure 'update-constraints
4239 (lambda _
4240 (substitute* "fgl-arbitrary.cabal"
4241 (("QuickCheck >= 2\\.3 && < 2\\.10")
4a0ffae5 4242 "QuickCheck >= 2.3 && < 2.14")
dddbc90c 4243 (("hspec >= 2\\.1 && < 2\\.5")
4a0ffae5 4244 "hspec >= 2.1 && < 2.8")))))))
dddbc90c
RV
4245 (inputs
4246 `(("ghc-fgl" ,ghc-fgl)
4247 ("ghc-quickcheck" ,ghc-quickcheck)
4248 ("ghc-hspec" ,ghc-hspec)))
4249 (home-page "https://hackage.haskell.org/package/fgl-arbitrary")
4250 (synopsis "QuickCheck support for fgl")
4251 (description
4252 "Provides Arbitrary instances for fgl graphs to avoid adding a
4253QuickCheck dependency for fgl whilst still making the instances
4254available to others. Also available are non-fgl-specific functions
4255for generating graph-like data structures.")
4256 (license license:bsd-3)))
4257
4258(define-public ghc-file-embed
4259 (package
4260 (name "ghc-file-embed")
b5920d50 4261 (version "0.0.11")
dddbc90c
RV
4262 (source
4263 (origin
4264 (method url-fetch)
4265 (uri (string-append "https://hackage.haskell.org/package/file-embed/"
4266 "file-embed-" version ".tar.gz"))
4267 (sha256
4268 (base32
b5920d50 4269 "0l6dkwccbzzyx8rcav03lya2334dgi3vfwk96h7l93l0fc4x19gf"))))
dddbc90c
RV
4270 (build-system haskell-build-system)
4271 (home-page "https://github.com/snoyberg/file-embed")
4272 (synopsis "Use Template Haskell to embed file contents directly")
4273 (description
4274 "This package allows you to use Template Haskell to read a file or all
4275the files in a directory, and turn them into @code{(path, bytestring)} pairs
4276embedded in your Haskell code.")
4277 (license license:bsd-3)))
4278
4279(define-public ghc-filemanip
4280 (package
4281 (name "ghc-filemanip")
4282 (version "0.3.6.3")
4283 (source (origin
4284 (method url-fetch)
4285 (uri (string-append "https://hackage.haskell.org/package/"
4286 "filemanip/filemanip-" version ".tar.gz"))
4287 (sha256
4288 (base32
4289 "0ilqr8jv41zxcj5qyicg29m8s30b9v70x6f9h2h2rw5ap8bxldl8"))))
4290 (build-system haskell-build-system)
4291 (inputs
4292 `(("ghc-unix-compat" ,ghc-unix-compat)))
4293 (home-page "https://github.com/bos/filemanip")
4294 (synopsis "File and directory manipulation for Haskell")
4295 (description
4296 "This package provides a Haskell library for working with files and
4297directories. It includes code for pattern matching, finding files, modifying
4298file contents, and more.")
4299 (license license:bsd-3)))
4300
bb62932a
KM
4301(define-public ghc-filepath-bytestring
4302 (package
4303 (name "ghc-filepath-bytestring")
4304 (version "1.4.2.1.1")
4305 (source
4306 (origin
4307 (method url-fetch)
4308 (uri (string-append
4309 "https://hackage.haskell.org/package/filepath-bytestring/"
4310 "filepath-bytestring-" version ".tar.gz"))
4311 (sha256
4312 (base32
4313 "06shdskjj391hb9295slm9gg2rbn5fdq5v6fg0mgn3yl5dv8q5dx"))))
4314 (build-system haskell-build-system)
4315 (native-inputs
4316 `(("ghc-quickcheck" ,ghc-quickcheck)))
3ef91e15 4317 (home-page "https://hackage.haskell.org/package/filepath-bytestring")
bb62932a
KM
4318 (synopsis "Library for manipulating RawFilePaths in a cross-platform way")
4319 (description "This package provides a drop-in replacement for the standard
4320@code{filepath} library, operating on @code{RawFilePath} values rather than
4321@code{FilePath} values to get the speed benefits of using @code{ByteStrings}.")
4322 (license license:bsd-3)))
4323
dddbc90c
RV
4324(define-public ghc-findbin
4325 (package
4326 (name "ghc-findbin")
4327 (version "0.0.5")
4328 (source
4329 (origin
4330 (method url-fetch)
4331 (uri (string-append
4332 "https://hackage.haskell.org/package/FindBin/FindBin-"
4333 version ".tar.gz"))
4334 (sha256
4335 (base32
4336 "197xvn05yysmibm1p5wzxfa256lvpbknr5d1l2ws6g40w1kpk717"))))
4337 (build-system haskell-build-system)
4338 (home-page "https://github.com/audreyt/findbin")
4339 (synopsis "Get the absolute path of the running program")
4340 (description
4341 "This module locates the full directory of the running program, to allow
4342the use of paths relative to it. FindBin supports invocation of Haskell
4343programs via \"ghci\", via \"runhaskell/runghc\", as well as compiled as
4344an executable.")
4345 (license license:bsd-3)))
4346
4347(define-public ghc-fingertree
4348 (package
4349 (name "ghc-fingertree")
aac14fdc 4350 (version "0.1.4.2")
dddbc90c
RV
4351 (source
4352 (origin
4353 (method url-fetch)
4354 (uri (string-append
4355 "https://hackage.haskell.org/package/fingertree/fingertree-"
4356 version ".tar.gz"))
4357 (sha256
4358 (base32
aac14fdc 4359 "0zvandj8fysck7ygpn0dw5bhrhmj1s63i326nalxbfkh2ls4iacm"))))
dddbc90c
RV
4360 (build-system haskell-build-system)
4361 (native-inputs
4362 `(("ghc-hunit" ,ghc-hunit)
4363 ("ghc-quickcheck" ,ghc-quickcheck)
4364 ("ghc-test-framework" ,ghc-test-framework)
4365 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
4366 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
4367 (home-page "https://hackage.haskell.org/package/fingertree")
4368 (synopsis "Generic finger-tree structure")
4369 (description "This library provides finger trees, a general sequence
4370representation with arbitrary annotations, for use as a base for
4371implementations of various collection types. It includes examples, as
4372described in section 4 of Ralf Hinze and Ross Paterson, \"Finger trees: a
4373simple general-purpose data structure\".")
4374 (license license:bsd-3)))
4375
4376(define-public ghc-fixed
4377 (package
4378 (name "ghc-fixed")
099dda5b 4379 (version "0.3")
dddbc90c
RV
4380 (source
4381 (origin
4382 (method url-fetch)
4383 (uri (string-append "https://hackage.haskell.org/package/fixed/fixed-"
4384 version ".tar.gz"))
4385 (sha256
4386 (base32
099dda5b 4387 "10l2sh179xarb774q92cff2gkb20rsrlilfwp1fk61rzmz9yn64j"))))
dddbc90c
RV
4388 (build-system haskell-build-system)
4389 (home-page "https://github.com/ekmett/fixed")
4390 (synopsis "Signed 15.16 precision fixed point arithmetic")
4391 (description
4392 "This package provides functions for signed 15.16 precision fixed point
4393arithmetic.")
4394 (license license:bsd-3)))
4395
f169f713
JS
4396(define-public ghc-fmlist
4397 (package
4398 (name "ghc-fmlist")
fe9b83a6 4399 (version "0.9.3")
f169f713
JS
4400 (source
4401 (origin
4402 (method url-fetch)
4403 (uri
4404 (string-append
4405 "https://hackage.haskell.org/package/fmlist/fmlist-"
4406 version ".tar.gz"))
4407 (sha256
4408 (base32
fe9b83a6 4409 "1w9nhm2zybdx4c1lalkajwqr8wcs731lfjld2r8gknd7y96x8pwf"))))
f169f713
JS
4410 (build-system haskell-build-system)
4411 (home-page "https://github.com/sjoerdvisscher/fmlist")
4412 (synopsis "FoldMap lists")
4413 (description "FoldMap lists are lists represented by their
4414@code{foldMap} function. FoldMap lists have @math{O(1)} cons, snoc and
4415append, just like DLists, but other operations might have favorable
4416performance characteristics as well. These wild claims are still
4417completely unverified though.")
4418 (license license:bsd-3)))
4419
dddbc90c
RV
4420(define-public ghc-foldl
4421 (package
4422 (name "ghc-foldl")
26c4104f 4423 (version "1.4.5")
dddbc90c
RV
4424 (source
4425 (origin
4426 (method url-fetch)
4427 (uri (string-append "https://hackage.haskell.org/package/"
4428 "foldl-" version "/"
4429 "foldl-" version ".tar.gz"))
4430 (sha256
4431 (base32
26c4104f 4432 "19qjmzc7gaxfwgqbgy0kq4vhbxvh3qjnwsxnc7pzwws2if5bv80b"))))
dddbc90c 4433 (build-system haskell-build-system)
b3c79a83 4434 (outputs '("out" "static" "doc"))
dddbc90c
RV
4435 (inputs `(("ghc-mwc-randam" ,ghc-mwc-random)
4436 ("ghc-primitive" ,ghc-primitive)
4437 ("ghc-vector" ,ghc-vector)
4438 ("ghc-unordered-containers" ,ghc-unordered-containers)
4439 ("ghc-hashable" ,ghc-hashable)
4440 ("ghc-contravariant" ,ghc-contravariant)
4441 ("ghc-semigroups" ,ghc-semigroups)
4442 ("ghc-profunctors" ,ghc-profunctors)
4443 ("ghc-semigroupoids" ,ghc-semigroupoids)
4444 ("ghc-comonad" ,ghc-comonad)
4445 ("ghc-vector-builder" ,ghc-vector-builder)))
4446 (home-page "https://github.com/Gabriel439/Haskell-Foldl-Library")
4447 (synopsis "Composable, streaming, and efficient left folds for Haskell")
4448 (description "This Haskell library provides strict left folds that stream
4449in constant memory, and you can combine folds using @code{Applicative} style
4450to derive new folds. Derived folds still traverse the container just once
4451and are often as efficient as hand-written folds.")
4452 (license license:bsd-3)))
4453
4454(define-public ghc-foundation
4455 (package
4456 (name "ghc-foundation")
0a702df9 4457 (version "0.0.25")
dddbc90c
RV
4458 (source
4459 (origin
4460 (method url-fetch)
4461 (uri (string-append "https://hackage.haskell.org/package/"
4462 "foundation/foundation-" version ".tar.gz"))
4463 (sha256
4464 (base32
0a702df9 4465 "0q6kx57ygmznlpf8n499hid4x6mj3180paijx0a8dgi9hh7man61"))))
dddbc90c 4466 (build-system haskell-build-system)
59cd7518
TS
4467 (arguments
4468 `(#:phases
4469 (modify-phases %standard-phases
4470 ;; This test is broken. For details, see
4471 ;; https://github.com/haskell-foundation/foundation/issues/530
4472 (add-after 'unpack 'patch-tests
4473 (lambda _
4474 (substitute* "tests/Test/Foundation/Number.hs"
4475 ((", testDividible proxy") ""))
4476 #t)))))
6a7fb828 4477 (outputs '("out" "static" "doc"))
dddbc90c
RV
4478 (inputs `(("ghc-basement" ,ghc-basement)))
4479 (home-page "https://github.com/haskell-foundation/foundation")
4480 (synopsis "Alternative prelude with batteries and no dependencies")
4481 (description
4482 "This package provides a custom prelude with no dependencies apart from
4483the base package.
4484
4485Foundation has the following goals:
4486
4487@enumerate
4488@item provide a base like sets of modules that provide a consistent set of
4489 features and bugfixes across multiple versions of GHC (unlike base).
4490@item provide a better and more efficient prelude than base's prelude.
4491@item be self-sufficient: no external dependencies apart from base;
4492@item provide better data-types: packed unicode string by default, arrays;
4493@item Numerical classes that better represent mathematical things (no more
4494 all-in-one @code{Num});
4495@item I/O system with less lazy IO.
4496@end enumerate\n")
4497 (license license:bsd-3)))
4498
4499(define-public ghc-free
4500 (package
4501 (name "ghc-free")
4081565d 4502 (version "5.1.2")
dddbc90c
RV
4503 (source
4504 (origin
4505 (method url-fetch)
4506 (uri (string-append
4507 "https://hackage.haskell.org/package/free/free-"
4508 version
4509 ".tar.gz"))
4510 (sha256
4511 (base32
4081565d 4512 "0vlf3f2ckl3cr7z2zl8c9c8qkdlfgvmh04gxkp2fg0z9dz80nlyb"))))
dddbc90c 4513 (build-system haskell-build-system)
91769cee 4514 (outputs '("out" "static" "doc"))
dddbc90c
RV
4515 (inputs
4516 `(("ghc-prelude-extras" ,ghc-prelude-extras)
4517 ("ghc-profunctors" ,ghc-profunctors)
4518 ("ghc-exceptions" ,ghc-exceptions)
4519 ("ghc-bifunctors" ,ghc-bifunctors)
4520 ("ghc-comonad" ,ghc-comonad)
4521 ("ghc-distributive" ,ghc-distributive)
4522 ("ghc-semigroupoids" ,ghc-semigroupoids)
4523 ("ghc-semigroups" ,ghc-semigroups)
4524 ("ghc-transformers-base" ,ghc-transformers-base)
4525 ("ghc-transformers-compat" ,ghc-transformers-compat)))
4526 (home-page "https://github.com/ekmett/free/")
4527 (synopsis "Unrestricted monads for Haskell")
4528 (description "This library provides free monads, which are useful for many
4529tree-like structures and domain specific languages. If @code{f} is a
4530@code{Functor} then the free @code{Monad} on @code{f} is the type of trees
4531whose nodes are labeled with the constructors of @code{f}. The word \"free\"
4532is used in the sense of \"unrestricted\" rather than \"zero-cost\": @code{Free
4533f} makes no constraining assumptions beyond those given by @code{f} and the
4534definition of @code{Monad}.")
4535 (license license:bsd-3)))
4536
4537(define-public ghc-fsnotify
4538 (package
4539 (name "ghc-fsnotify")
4540 (version "0.3.0.1")
4541 (source (origin
4542 (method url-fetch)
4543 (uri (string-append
4544 "https://hackage.haskell.org/package/fsnotify/"
4545 "fsnotify-" version ".tar.gz"))
4546 (sha256
4547 (base32
4548 "19bdbz9wb9jvln6yg6qm0hz0w84bypvkxf0wjhgrgd52f9gidlny"))))
4549 (build-system haskell-build-system)
4550 (inputs
4551 `(("ghc-async" ,ghc-async)
4552 ("ghc-unix-compat" ,ghc-unix-compat)
4553 ("ghc-hinotify" ,ghc-hinotify)
4554 ("ghc-tasty" ,ghc-tasty)
4555 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
4556 ("ghc-random" ,ghc-random)
4557 ("ghc-shelly" ,ghc-shelly)
4558 ("ghc-temporary" ,ghc-temporary)))
4559 (home-page "https://github.com/haskell-fswatch/hfsnotify")
4560 (synopsis "Cross platform library for file change notification.")
4561 (description "Cross platform library for file creation, modification, and
4562deletion notification. This library builds upon existing libraries for platform
4563specific Windows, Mac, and Linux file system event notification.")
4564 (license license:bsd-3)))
4565
4566(define-public ghc-generic-deriving
4567 (package
4568 (name "ghc-generic-deriving")
55c1e6be 4569 (version "1.12.4")
dddbc90c
RV
4570 (source
4571 (origin
4572 (method url-fetch)
4573 (uri (string-append
4574 "https://hackage.haskell.org/package/generic-deriving/generic-deriving-"
4575 version
4576 ".tar.gz"))
4577 (sha256
4578 (base32
55c1e6be 4579 "0vdg9qdq35jl3m11a87wk8cq1y71qm4i1g1b2pxki0wk70yw20a4"))))
dddbc90c 4580 (build-system haskell-build-system)
32bb6b41 4581 (outputs '("out" "static" "doc"))
dddbc90c
RV
4582 (inputs
4583 `(("ghc-th-abstraction" ,ghc-th-abstraction)))
4584 (native-inputs
4585 `(("ghc-hspec" ,ghc-hspec)
4586 ("hspec-discover" ,hspec-discover)))
4587 (home-page "https://hackage.haskell.org/package/generic-deriving")
4588 (synopsis "Generalise the deriving mechanism to arbitrary classes")
4589 (description "This package provides functionality for generalising the
4590deriving mechanism in Haskell to arbitrary classes.")
4591 (license license:bsd-3)))
4592
89e9082e
JS
4593(define-public ghc-generic-random
4594 (package
4595 (name "ghc-generic-random")
4596 (version "1.2.0.0")
4597 (source
4598 (origin
4599 (method url-fetch)
4600 (uri (string-append
4601 "https://hackage.haskell.org/package/generic-random/"
4602 "generic-random-" version ".tar.gz"))
4603 (sha256
4604 (base32 "130lmblycxnpqbsl7vf6a90zccibnvcb5zaclfajcn3by39007lv"))))
4605 (build-system haskell-build-system)
4606 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
4607 (native-inputs
4608 `(("ghc-inspection-testing" ,ghc-inspection-testing)))
4609 (arguments
4610 `(#:cabal-revision
4611 ("1" "1d0hx41r7yq2a86ydnfh2fv540ah8cz05l071s2z4wxcjw0ymyn4")))
4612 (home-page
4613 "https://github.com/lysxia/generic-random")
4614 (synopsis
4615 "Generic random generators for QuickCheck")
4616 (description
4617 "Derive instances of @code{Arbitrary} for QuickCheck, with various options
4618to customize implementations.
4619
4620Automating the arbitrary boilerplate also ensures that when a type changes to
4621have more or fewer constructors, then the generator either fixes itself to
4622generate that new case (when using the uniform distribution) or causes a
4623compilation error so you remember to fix it (when using an explicit
4624distribution).
4625
4626This package also offers a simple (optional) strategy to ensure termination
4627for recursive types: make @code{Test.QuickCheck.Gen}'s size parameter decrease
4628at every recursive call; when it reaches zero, sample directly from a
4629trivially terminating generator given explicitly (@code{genericArbitraryRec}
4630and @code{withBaseCase}) or implicitly (@code{genericArbitrary'}).")
4631 (license license:expat)))
4632
23e4b264
JS
4633(define-public ghc-generic-random-1.3.0.1
4634 (package
4635 (inherit ghc-generic-random)
4636 (version "1.3.0.1")
4637 (source
4638 (origin
4639 (method url-fetch)
4640 (uri (string-append
4641 "https://hackage.haskell.org/package/generic-random/"
4642 "generic-random-" version ".tar.gz"))
4643 (sha256
4644 (base32 "0d9w7xcmsb31b95fr9d5jwbsajcl1yi4347dlbw4bybil2vjwd7k"))))
4645 (arguments '())))
4646
dddbc90c
RV
4647(define-public ghc-generics-sop
4648 (package
4649 (name "ghc-generics-sop")
3ed40e10 4650 (version "0.4.0.1")
dddbc90c
RV
4651 (source
4652 (origin
4653 (method url-fetch)
4654 (uri (string-append "https://hackage.haskell.org/package/"
4655 "generics-sop-" version "/"
4656 "generics-sop-" version ".tar.gz"))
4657 (sha256
4658 (base32
3ed40e10 4659 "160knr2phnzh2gldfv954lz029jzc7y8kz5xpmbf4z3vb5ngm6fw"))))
dddbc90c 4660 (build-system haskell-build-system)
80e0a085 4661 (outputs '("out" "static" "doc"))
3ed40e10
TS
4662 (inputs
4663 `(("ghc-sop-core" ,ghc-sop-core)
4664 ("ghc-transformers-compat" ,ghc-transformers-compat)))
dddbc90c
RV
4665 (home-page "https://github.com/well-typed/generics-sop")
4666 (synopsis "Generic Programming using True Sums of Products for Haskell")
4667 (description "This Haskell package supports the definition of generic
4668functions. Datatypes are viewed in a uniform, structured way: the choice
4669between constructors is represented using an n-ary sum, and the arguments of
4670each constructor are represented using an n-ary product.")
4671 (license license:bsd-3)))
4672
4673(define-public ghc-geniplate-mirror
4674 (package
4675 (name "ghc-geniplate-mirror")
4676 (version "0.7.6")
4677 (source
4678 (origin
4679 (method url-fetch)
4680 (uri (string-append "https://hackage.haskell.org/package"
4681 "/geniplate-mirror"
4682 "/geniplate-mirror-" version ".tar.gz"))
4683 (sha256
4684 (base32 "1y0m0bw5zpm1y1y6d9qmxj3swl8j8hlw1shxbr5awycf6k884ssb"))))
4685 (build-system haskell-build-system)
74a7dd7f
TS
4686 (arguments
4687 `(#:cabal-revision
4688 ("2" "03fg4vfm1wgq4mylggawdx0bfvbbjmdn700sqx7v3hk1bx0kjfzh")))
dddbc90c
RV
4689 (home-page "https://github.com/danr/geniplate")
4690 (synopsis "Use Template Haskell to generate Uniplate-like functions")
4691 (description
4692 "Use Template Haskell to generate Uniplate-like functions. This is a
4693maintained mirror of the @uref{https://hackage.haskell.org/package/geniplate,
4694geniplate} package, written by Lennart Augustsson.")
4695 (license license:bsd-3)))
4696
4697(define-public ghc-genvalidity
4698 (package
4699 (name "ghc-genvalidity")
920f44a1 4700 (version "0.8.0.0")
dddbc90c
RV
4701 (source
4702 (origin
4703 (method url-fetch)
4704 (uri (string-append
4705 "https://hackage.haskell.org/package/genvalidity/genvalidity-"
4706 version
4707 ".tar.gz"))
4708 (sha256
4709 (base32
920f44a1 4710 "0w38aq9hfyymidncgkrs6yvja7j573d9sap5qfg5rz910fhsij9a"))))
dddbc90c
RV
4711 (build-system haskell-build-system)
4712 (inputs
4713 `(("ghc-quickcheck" ,ghc-quickcheck)
4714 ("ghc-validity" ,ghc-validity)))
4715 (native-inputs
4716 `(("ghc-hspec" ,ghc-hspec)
4717 ("hspec-discover" ,hspec-discover)
4718 ("ghc-hspec-core" ,ghc-hspec-core)))
4719 (home-page
4720 "https://github.com/NorfairKing/validity")
4721 (synopsis
4722 "Testing utilities for the @code{validity} library")
4723 (description
4724 "This package provides testing utilities that are useful in conjunction
4725with the @code{Validity} typeclass.")
4726 (license license:expat)))
4727
4728(define-public ghc-genvalidity-property
4729 (package
4730 (name "ghc-genvalidity-property")
e4ede35b 4731 (version "0.4.0.0")
dddbc90c
RV
4732 (source
4733 (origin
4734 (method url-fetch)
4735 (uri (string-append
4736 "https://hackage.haskell.org/package/"
4737 "genvalidity-property/genvalidity-property-"
4738 version
4739 ".tar.gz"))
4740 (sha256
4741 (base32
e4ede35b 4742 "0zayycx62226w54rvkxwhvqhznsr33dk3ds55yyqrfqbnhvph1s9"))))
dddbc90c
RV
4743 (build-system haskell-build-system)
4744 (inputs
4745 `(("ghc-quickcheck" ,ghc-quickcheck)
4746 ("ghc-genvalidity" ,ghc-genvalidity)
4747 ("ghc-hspec" ,ghc-hspec)
4748 ("hspec-discover" ,hspec-discover)
4749 ("ghc-validity" ,ghc-validity)))
4750 (native-inputs `(("ghc-doctest" ,ghc-doctest)))
4751 (home-page
4752 "https://github.com/NorfairKing/validity")
4753 (synopsis
4754 "Standard properties for functions on @code{Validity} types")
4755 (description
4756 "This package supplements the @code{Validity} typeclass with standard
4757properties for functions operating on them.")
4758 (license license:expat)))
4759
e71fb573
TS
4760(define-public ghc-getopt-generics
4761 (package
4762 (name "ghc-getopt-generics")
4763 (version "0.13.0.4")
4764 (source
4765 (origin
4766 (method url-fetch)
4767 (uri (string-append "https://hackage.haskell.org/package/"
4768 "getopt-generics/getopt-generics-"
4769 version ".tar.gz"))
4770 (sha256
4771 (base32
4772 "1rszkcn1rg38wf35538ljk5bbqjc57y9sb3a0al7qxm82gy8yigr"))))
4773 (build-system haskell-build-system)
4774 (inputs
4775 `(("ghc-base-compat" ,ghc-base-compat)
4776 ("ghc-base-orphans" ,ghc-base-orphans)
4777 ("ghc-generics-sop" ,ghc-generics-sop)
4778 ("ghc-tagged" ,ghc-tagged)))
4779 (native-inputs
4780 `(("ghc-quickcheck" ,ghc-quickcheck)
4781 ("ghc-hspec" ,ghc-hspec)
4782 ("ghc-safe" ,ghc-safe)
4783 ("ghc-silently" ,ghc-silently)
4784 ("hspec-discover" ,hspec-discover)))
4785 (home-page "https://github.com/soenkehahn/getopt-generics")
4786 (synopsis "Create command line interfaces with ease")
4787 (description "This library provides tools to create command line
4788interfaces with ease.")
4789 (license license:bsd-3)))
4790
dddbc90c
RV
4791(define-public ghc-gitrev
4792 (package
4793 (name "ghc-gitrev")
4794 (version "1.3.1")
4795 (source
4796 (origin
4797 (method url-fetch)
4798 (uri (string-append "https://hackage.haskell.org/package/gitrev/gitrev-"
4799 version ".tar.gz"))
4800 (sha256
4801 (base32 "0cl3lfm6k1h8fxp2vxa6ihfp4v8igkz9h35iwyq2frzm4kdn96d8"))))
4802 (build-system haskell-build-system)
4803 (inputs `(("ghc-base-compat" ,ghc-base-compat)))
4804 (home-page "https://github.com/acfoltzer/gitrev")
4805 (synopsis "Compile git revision info into Haskell projects")
4806 (description
4807 "This package provides some handy Template Haskell splices for including
4808the current git hash and branch in the code of your project. This is useful
4809for including in panic messages, @command{--version} output, or diagnostic
4810info for more informative bug reports.")
4811 (license license:bsd-3)))
4812
4813(define-public ghc-glob
4814 (package
4815 (name "ghc-glob")
b900f486 4816 (version "0.10.0")
dddbc90c
RV
4817 (source
4818 (origin
4819 (method url-fetch)
4820 (uri (string-append "https://hackage.haskell.org/package/"
4821 "Glob-" version "/"
4822 "Glob-" version ".tar.gz"))
4823 (sha256
4824 (base32
b900f486 4825 "0953f91f62ncna402vsrfzdcyxhdpjna3bgdw017kad0dfymacs7"))))
dddbc90c
RV
4826 (build-system haskell-build-system)
4827 (inputs
4828 `(("ghc-dlist" ,ghc-dlist)
4829 ("ghc-semigroups" ,ghc-semigroups)
4830 ("ghc-transformers-compat" ,ghc-transformers-compat)))
4831 (native-inputs
4832 `(("ghc-hunit" ,ghc-hunit)
4833 ("ghc-quickcheck" ,ghc-quickcheck)
4834 ("ghc-test-framework" ,ghc-test-framework)
4835 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
4836 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
4837 (home-page "http://iki.fi/matti.niemenmaa/glob/")
4838 (synopsis "Haskell library matching glob patterns against file paths")
4839 (description "This package provides a Haskell library for @dfn{globbing}:
4840matching patterns against file paths.")
4841 (license license:bsd-3)))
4842
4843(define-public ghc-gluraw
4844 (package
4845 (name "ghc-gluraw")
4846 (version "2.0.0.4")
4847 (source
4848 (origin
4849 (method url-fetch)
4850 (uri (string-append
4851 "https://hackage.haskell.org/package/GLURaw/GLURaw-"
4852 version
4853 ".tar.gz"))
4854 (sha256
4855 (base32
4856 "1i2xi35n5z0d372px9mh6cyhgg1m0cfaiy3fnspkf6kbn9fgsqxq"))))
4857 (build-system haskell-build-system)
4858 (inputs
4859 `(("ghc-openglraw" ,ghc-openglraw)))
228d2901 4860 (home-page "https://wiki.haskell.org/Opengl")
dddbc90c
RV
4861 (synopsis "Raw Haskell bindings GLU")
4862 (description "GLURaw is a raw Haskell binding for the GLU 1.3 OpenGL
4863utility library. It is basically a 1:1 mapping of GLU's C API, intended as a
4864basis for a nicer interface.")
4865 (license license:bsd-3)))
4866
4867(define-public ghc-glut
4868 (package
4869 (name "ghc-glut")
8284bd09 4870 (version "2.7.0.15")
dddbc90c
RV
4871 (source
4872 (origin
4873 (method url-fetch)
4874 (uri (string-append
4875 "https://hackage.haskell.org/package/GLUT/GLUT-"
4876 version
4877 ".tar.gz"))
4878 (sha256
4879 (base32
8284bd09 4880 "0271vnf6wllhxjwy0m348x90kv27aybxcbqkkglmd5w4cpwjg5g9"))))
dddbc90c
RV
4881 (build-system haskell-build-system)
4882 (inputs
4883 `(("ghc-statevar" ,ghc-statevar)
4884 ("ghc-opengl" ,ghc-opengl)
4885 ("ghc-openglraw" ,ghc-openglraw)
4886 ("freeglut" ,freeglut)))
228d2901 4887 (home-page "https://wiki.haskell.org/Opengl")
dddbc90c
RV
4888 (synopsis "Haskell bindings for the OpenGL Utility Toolkit")
4889 (description "This library provides Haskell bindings for the OpenGL
4890Utility Toolkit, a window system-independent toolkit for writing OpenGL
4891programs.")
4892 (license license:bsd-3)))
4893
4894(define-public ghc-gnuplot
4895 (package
4896 (name "ghc-gnuplot")
d34860c7 4897 (version "0.5.6")
dddbc90c
RV
4898 (source
4899 (origin
4900 (method url-fetch)
4901 (uri (string-append
4902 "mirror://hackage/package/gnuplot/gnuplot-"
4903 version ".tar.gz"))
4904 (sha256
d34860c7 4905 (base32 "1g6xgnlkh17avivn1rlq7l2nvs26dvrbx4rkfld0bf6kyqaqwrgp"))))
dddbc90c
RV
4906 (build-system haskell-build-system)
4907 (inputs
4908 `(("ghc-temporary" ,ghc-temporary)
4909 ("ghc-utility-ht" ,ghc-utility-ht)
4910 ("ghc-data-accessor-transformers" ,ghc-data-accessor-transformers)
4911 ("ghc-data-accessor" ,ghc-data-accessor)
4912 ("ghc-semigroups" ,ghc-semigroups)
4913 ("gnuplot" ,gnuplot)))
4914 (arguments
4915 `(#:phases
4916 (modify-phases %standard-phases
4917 (add-before 'configure 'fix-path-to-gnuplot
4918 (lambda* (#:key inputs #:allow-other-keys)
4919 (let ((gnuplot (assoc-ref inputs "gnuplot")))
4920 (substitute* "os/generic/Graphics/Gnuplot/Private/OS.hs"
4921 (("(gnuplotName = ).*$" all cmd)
4922 (string-append cmd "\"" gnuplot "/bin/gnuplot\"")))))))))
228d2901 4923 (home-page "https://wiki.haskell.org/Gnuplot")
dddbc90c
RV
4924 (synopsis "2D and 3D plots using gnuplot")
4925 (description "This package provides a Haskell module for creating 2D and
49263D plots using gnuplot.")
4927 (license license:bsd-3)))
4928
4929(define-public ghc-graphviz
4930 (package
4931 (name "ghc-graphviz")
c264bd42 4932 (version "2999.20.0.3")
dddbc90c
RV
4933 (source (origin
4934 (method url-fetch)
4935 (uri (string-append "https://hackage.haskell.org/package/"
4936 "graphviz/graphviz-" version ".tar.gz"))
4937 (sha256
4938 (base32
c264bd42 4939 "04k26zw61nfv1pkd00iaq89pgsaiym0sf4cbzkmm2k2fj5xa587g"))))
dddbc90c 4940 (build-system haskell-build-system)
c264bd42
TS
4941 (arguments
4942 `(#:phases
4943 (modify-phases %standard-phases
4944 (add-before 'configure 'update-constraints
4945 (lambda _
4946 (substitute* "graphviz.cabal"
4947 (("QuickCheck >= 2\\.3 && < 2\\.13")
4948 "QuickCheck >= 2.3 && < 2.14")
4949 (("hspec >= 2\\.1 && < 2\\.7")
4950 "hspec >= 2.1 && < 2.8")))))))
dddbc90c
RV
4951 (inputs
4952 `(("ghc-quickcheck" ,ghc-quickcheck)
4953 ("ghc-colour" ,ghc-colour)
4954 ("ghc-dlist" ,ghc-dlist)
4955 ("ghc-fgl" ,ghc-fgl)
4956 ("ghc-fgl-arbitrary" ,ghc-fgl-arbitrary)
4957 ("ghc-polyparse" ,ghc-polyparse)
4958 ("ghc-temporary" ,ghc-temporary)
4959 ("ghc-wl-pprint-text" ,ghc-wl-pprint-text)))
4960 (native-inputs
4961 `(("ghc-hspec" ,ghc-hspec)
4962 ("graphviz" ,graphviz)
4963 ("hspec-discover" ,hspec-discover)))
4964 (home-page "https://hackage.haskell.org/package/graphviz")
4965 (synopsis "Bindings to Graphviz for graph visualisation")
4966 (description
4967 "This library provides bindings for the Dot language used by
4968the @uref{https://graphviz.org/, Graphviz} suite of programs for
4969visualising graphs, as well as functions to call those programs.
4970Main features of the graphviz library include:
4971
4972@enumerate
4973@item Almost complete coverage of all Graphviz attributes and syntax
4974@item Support for specifying clusters
4975@item The ability to use a custom node type
4976@item Functions for running a Graphviz layout tool with all specified output types
4977@item Generate and parse Dot code with two options: strict and liberal
4978@item Functions to convert FGL graphs and other graph-like data structures
4979@item Round-trip support for passing an FGL graph through Graphviz to augment node
4980and edge labels with positional information, etc.
4981@end enumerate\n")
4982 (license license:bsd-3)))
4983
f3e18645
TS
4984(define-public ghc-groups
4985 (package
4986 (name "ghc-groups")
4987 (version "0.4.1.0")
4988 (source
4989 (origin
4990 (method url-fetch)
4991 (uri (string-append "https://hackage.haskell.org/package/"
4992 "groups/groups-" version ".tar.gz"))
4993 (sha256
4994 (base32
4995 "0ggkygkyxw5ga4cza82bjvdraavl294k0h6b62d2px7z3nvqhifx"))))
4996 (build-system haskell-build-system)
4997 (home-page "https://hackage.haskell.org/package/groups")
4998 (synopsis "Haskell 98 groups")
4999 (description "This package provides Haskell 98 groups. A group is a
5000monoid with invertibility.")
5001 (license license:bsd-3)))
5002
dddbc90c
RV
5003(define-public ghc-gtk2hs-buildtools
5004 (package
5005 (name "ghc-gtk2hs-buildtools")
b79b43d4 5006 (version "0.13.5.4")
dddbc90c
RV
5007 (source
5008 (origin
5009 (method url-fetch)
5010 (uri (string-append "https://hackage.haskell.org/package/"
5011 "gtk2hs-buildtools/gtk2hs-buildtools-"
5012 version ".tar.gz"))
5013 (sha256
5014 (base32
b79b43d4 5015 "1flxsacxwmabzzalhn8558kmj95z01c0lmikrn56nxh7p62nxm25"))))
dddbc90c
RV
5016 (build-system haskell-build-system)
5017 (inputs
5018 `(("ghc-random" ,ghc-random)
5019 ("ghc-hashtables" ,ghc-hashtables)))
5020 (native-inputs
5021 `(("ghc-alex" ,ghc-alex)
5022 ("ghc-happy" ,ghc-happy)))
5023 (home-page "http://projects.haskell.org/gtk2hs/")
5024 (synopsis "Tools to build the Gtk2Hs suite of user interface libraries")
5025 (description
5026 "This package provides a set of helper programs necessary to build the
5027Gtk2Hs suite of libraries. These tools include a modified c2hs binding tool
5028that is used to generate FFI declarations, a tool to build a type hierarchy
5029that mirrors the C type hierarchy of GObjects found in glib, and a generator
5030for signal declarations that are used to call back from C to Haskell. These
5031tools are not needed to actually run Gtk2Hs programs.")
5032 (license license:gpl2)))
5033
5034(define-public ghc-hackage-security
5035 (package
5036 (name "ghc-hackage-security")
5037 (version "0.5.3.0")
5038 (source
5039 (origin
5040 (method url-fetch)
5041 (uri (string-append "https://hackage.haskell.org/package/"
5042 "hackage-security/hackage-security-"
5043 version ".tar.gz"))
5044 (sha256
5045 (base32
5046 "08bwawc7ramgdh54vcly2m9pvfchp0ahhs8117jajni6x4bnx66v"))))
5047 (build-system haskell-build-system)
5048 (arguments
034380f3
TS
5049 `(#:cabal-revision
5050 ("6" "1xs2nkzlvkdz8g27yzfxbjdbdadfmgiydnlpn5dm77cg18r495ay")
5051 #:tests? #f)) ; Tests fail because of framework updates.
dddbc90c
RV
5052 (inputs
5053 `(("ghc-base16-bytestring" ,ghc-base16-bytestring)
5054 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
5055 ("ghc-cryptohash-sha256" ,ghc-cryptohash-sha256)
5056 ("ghc-ed25519" ,ghc-ed25519)
5057 ("ghc-network" ,ghc-network)
5058 ("ghc-network-uri" ,ghc-network-uri)
5059 ("ghc-tar" ,ghc-tar)
5060 ("ghc-zlib" ,ghc-zlib)))
5061 (native-inputs
5062 `(("ghc-network-uri" ,ghc-network-uri)
5063 ("ghc-quickcheck" ,ghc-quickcheck)
5064 ("ghc-tar" ,ghc-tar)
5065 ("ghc-tasty" ,ghc-tasty)
5066 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
5067 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
5068 ("ghc-temporary" ,ghc-temporary)
5069 ("ghc-zlib" ,ghc-zlib)))
5070 (home-page "https://github.com/haskell/hackage-security")
5071 (synopsis "Hackage security library")
5072 (description "This Hackage security library provides both server and
5073client utilities for securing @uref{http://hackage.haskell.org/, the
5074Hackage package server}. It is based on
5075@uref{http://theupdateframework.com/, The Update Framework}, a set of
5076recommendations developed by security researchers at various universities
5077in the US as well as developers on the @uref{https://www.torproject.org/,
5078Tor project}.")
5079 (license license:bsd-3)))
5080
5081(define-public ghc-haddock
5082 (package
5083 (name "ghc-haddock")
b0d34d23 5084 (version "2.22.0")
dddbc90c
RV
5085 (source
5086 (origin
5087 (method url-fetch)
5088 (uri (string-append
5089 "https://hackage.haskell.org/package/haddock/haddock-"
5090 version
5091 ".tar.gz"))
5092 (sha256
5093 (base32
b0d34d23 5094 "1k42z2zh550rl93c8pa9cg2xsanp6wvb031xvan6cmngnplmdib6"))))
dddbc90c
RV
5095 (build-system haskell-build-system)
5096 (arguments
5097 `(#:phases
5098 (modify-phases %standard-phases
b0d34d23
TS
5099 ;; The release tarball for 2.22.0 is missing the test data for
5100 ;; the Hoogle test, causing it to fail. This is fixed in the
5101 ;; next release, but for now we disable it.
5102 (add-before 'configure 'remove-hoogle-test
dddbc90c
RV
5103 (lambda _
5104 (use-modules (ice-9 rdelim))
5105 (with-atomic-file-replacement "haddock.cabal"
5106 (lambda (in out)
5107 (let loop ((line (read-line in 'concat)) (deleting? #f))
5108 (cond
5109 ((eof-object? line) #t)
5110 ((string-every char-set:whitespace line)
5111 (unless deleting? (display line out))
5112 (loop (read-line in 'concat) #f))
b0d34d23 5113 ((string=? line "test-suite hoogle-test\n")
dddbc90c
RV
5114 (loop (read-line in 'concat) #t))
5115 (else
5116 (unless deleting? (display line out))
b0d34d23
TS
5117 (loop (read-line in 'concat) deleting?))))))))
5118 (add-before 'check 'add-haddock-to-path
5119 (lambda _
5120 (setenv "PATH" (string-append (getcwd) "/dist/build/haddock"
5121 ":" (getenv "PATH")))
5122 #t)))))
dddbc90c
RV
5123 (inputs `(("ghc-haddock-api" ,ghc-haddock-api)))
5124 (native-inputs
b0d34d23
TS
5125 `(("ghc-haddock-test" ,ghc-haddock-test)
5126 ("ghc-hspec" ,ghc-hspec)))
dddbc90c
RV
5127 (home-page "https://www.haskell.org/haddock/")
5128 (synopsis
5129 "Documentation-generation tool for Haskell libraries")
5130 (description
5131 "Haddock is a documentation-generation tool for Haskell libraries.")
5132 (license license:bsd-3)))
5133
5134(define-public ghc-haddock-api
5135 (package
5136 (name "ghc-haddock-api")
1b84d8ef 5137 (version "2.22.0")
dddbc90c
RV
5138 (source
5139 (origin
5140 (method url-fetch)
5141 (uri (string-append
5142 "https://hackage.haskell.org/package/haddock-api/haddock-api-"
5143 version
5144 ".tar.gz"))
1b84d8ef 5145 (patches (search-patches "ghc-haddock-api-fix-haddock.patch"))
dddbc90c
RV
5146 (sha256
5147 (base32
1b84d8ef 5148 "149q4zlf4m7wcrr4af2n2flh0jxjsypshbc229vsj1m0kmz4z014"))))
dddbc90c
RV
5149 (build-system haskell-build-system)
5150 (arguments
5151 `(#:phases
5152 (modify-phases %standard-phases
5153 (add-before 'configure 'update-constraints
5154 (lambda _
5155 (substitute* "haddock-api.cabal"
1b84d8ef
TS
5156 (("QuickCheck \\^>= 2\\.11")
5157 "QuickCheck ^>= 2.13")
5158 (("hspec >= 2\\.4\\.4 && < 2\\.6")
5159 "hspec >= 2.4.4 && < 2.8")))))))
dddbc90c
RV
5160 (inputs
5161 `(("ghc-paths" ,ghc-paths)
5162 ("ghc-haddock-library" ,ghc-haddock-library)))
5163 (native-inputs
5164 `(("ghc-quickcheck" ,ghc-quickcheck)
5165 ("ghc-hspec" ,ghc-hspec)
5166 ("hspec-discover" ,hspec-discover)))
5167 (home-page "https://www.haskell.org/haddock/")
5168 (synopsis "API for documentation-generation tool Haddock")
5169 (description "This package provides an API to Haddock, the
5170documentation-generation tool for Haskell libraries.")
5171 (license license:bsd-3)))
5172
5173(define-public ghc-haddock-library
5174 (package
5175 (name "ghc-haddock-library")
10707d57 5176 (version "1.7.0")
dddbc90c
RV
5177 (source
5178 (origin
5179 (method url-fetch)
5180 (uri (string-append
5181 "https://hackage.haskell.org/package/haddock-library/haddock-library-"
5182 version
5183 ".tar.gz"))
5184 (sha256
5185 (base32
10707d57 5186 "04fhcjk0pvsaqvsgp2w06cv2qvshq1xs1bwc157q4lmkgr57khp7"))))
dddbc90c
RV
5187 (build-system haskell-build-system)
5188 (arguments
5189 `(#:phases
5190 (modify-phases %standard-phases
10707d57
TS
5191 ;; Since there is no revised Cabal file upstream, we have to
5192 ;; patch it manually.
dddbc90c
RV
5193 (add-before 'configure 'relax-test-suite-dependencies
5194 (lambda _
5195 (substitute* "haddock-library.cabal"
10707d57
TS
5196 (("hspec\\s*>= 2.4.4 && < 2.6") "hspec")
5197 (("QuickCheck\\s*\\^>= 2.11") "QuickCheck"))
dddbc90c
RV
5198 #t)))))
5199 (native-inputs
5200 `(("ghc-base-compat" ,ghc-base-compat)
5201 ("ghc-hspec" ,ghc-hspec)
5202 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
5203 ("ghc-quickcheck" ,ghc-quickcheck)
5204 ("ghc-tree-diff" ,ghc-tree-diff)
5205 ("hspec-discover" ,hspec-discover)))
5206 (home-page "https://www.haskell.org/haddock/")
5207 (synopsis "Library exposing some functionality of Haddock")
5208 (description
5209 "Haddock is a documentation-generation tool for Haskell libraries. These
5210modules expose some functionality of it without pulling in the GHC dependency.
5211Please note that the API is likely to change so specify upper bounds in your
5212project if you can't release often. For interacting with Haddock itself, see
5213the ‘haddock’ package.")
5214 (license license:bsd-3)))
5215
b0d34d23
TS
5216;; This package is needed for testing 'ghc-haddock'. It is no longer
5217;; published to Hackage, but it is maintained in the Haddock Git
5218;; repository.
5219(define ghc-haddock-test
5220 (package
5221 (name "ghc-haddock-test")
5222 (version "2.22.0")
5223 (source
5224 (origin
5225 (method git-fetch)
5226 (uri (git-reference
b0e7b699 5227 (url "https://github.com/haskell/haddock")
b0d34d23
TS
5228 (commit (string-append "haddock-" version "-release"))))
5229 (file-name (git-file-name name version))
5230 (sha256
5231 (base32
5232 "1ywxmqqan10gs0ppybdmdgsmvkzkpw7yirj2rw4qylg3x49a9zca"))))
5233 (build-system haskell-build-system)
5234 (arguments
5235 `(#:phases
5236 (modify-phases %standard-phases
5237 (add-after 'unpack 'change-directory
5238 (lambda _
5239 (chdir "haddock-test"))))))
5240 (inputs
5241 `(("ghc-syb" ,ghc-syb)
5242 ("ghc-xml" ,ghc-xml)))
228d2901 5243 (home-page "https://www.haskell.org/haddock/")
b0d34d23
TS
5244 (synopsis "Test utilities for Haddock")
5245 (description "This package provides test utilities for Haddock.")
5246 (license license:bsd-3)
5247 (properties '((hidden? #t)))))
5248
dddbc90c
RV
5249(define-public ghc-half
5250 (package
5251 (name "ghc-half")
5252 (version "0.3")
5253 (source
5254 (origin
5255 (method url-fetch)
5256 (uri (string-append
5257 "https://hackage.haskell.org/package/half/half-"
5258 version ".tar.gz"))
5259 (sha256
5260 (base32
5261 "14r0nx8hm5fic9gz0ybjjw4kyc758zfgvhhwvzsshpx5caq6zch6"))))
5262 (build-system haskell-build-system)
5263 (native-inputs
5264 `(("ghc-hspec" ,ghc-hspec)
5265 ("ghc-quickcheck" ,ghc-quickcheck)))
5266 (home-page "https://github.com/ekmett/half")
5267 (synopsis "Half-precision floating-point computations")
5268 (description "This library provides a half-precision floating-point
5269computation library for Haskell.")
5270 (license license:bsd-3)))
5271
5272(define-public ghc-happy
5273 (package
5274 (name "ghc-happy")
90e7b0e4 5275 (version "1.19.12")
dddbc90c
RV
5276 (source
5277 (origin
5278 (method url-fetch)
5279 (uri (string-append
5280 "https://hackage.haskell.org/package/happy/happy-"
5281 version
5282 ".tar.gz"))
5283 (sha256
5284 (base32
90e7b0e4 5285 "03xlmq6qmdx4zvzw8bp33kd9g7yvcq5cz4wg50xilw812kj276pv"))))
dddbc90c
RV
5286 (build-system haskell-build-system)
5287 (arguments
5288 `(#:phases
5289 (modify-phases %standard-phases
5290 (add-after 'unpack 'skip-test-issue93
5291 (lambda _
5292 ;; Tests run out of memory on a system with 2GB of available RAM,
5293 ;; in 'issue93.a.hs' and 'issue93.n.hs'.
5294 (substitute* "tests/Makefile"
5295 ((" issue93.y ") " "))
5296 #t)))))
5297 (home-page "https://hackage.haskell.org/package/happy")
5298 (synopsis "Parser generator for Haskell")
5299 (description "Happy is a parser generator for Haskell. Given a grammar
5300specification in BNF, Happy generates Haskell code to parse the grammar.
5301Happy works in a similar way to the yacc tool for C.")
5302 (license license:bsd-3)))
5303
5304(define-public ghc-hashable
5305 (package
5306 (name "ghc-hashable")
5307 (version "1.2.7.0")
534d6caa 5308 (outputs '("out" "static" "doc"))
dddbc90c
RV
5309 (source
5310 (origin
5311 (method url-fetch)
5312 (uri (string-append
5313 "https://hackage.haskell.org/package/hashable/hashable-"
5314 version
5315 ".tar.gz"))
5316 (sha256
5317 (base32
5318 "1gra8gq3kb7b2sd845h55yxlrfqx3ii004c6vjhga8v0b30fzdgc"))))
5319 (build-system haskell-build-system)
65a16a45
TS
5320 (arguments
5321 `(#:cabal-revision
5322 ("1" "197063dpl0wn67dp7a06yc2hxp81n24ykk7klbjx0fndm5n87dh3")))
dddbc90c
RV
5323 (inputs
5324 `(("ghc-random" ,ghc-random)))
5325 (native-inputs
5326 `(("ghc-test-framework" ,ghc-test-framework)
5327 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
5328 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
5329 ("ghc-hunit" ,ghc-hunit)
5330 ("ghc-quickcheck" ,ghc-quickcheck)))
5331 (home-page "https://github.com/tibbe/hashable")
5332 (synopsis "Class for types that can be converted to a hash value")
5333 (description
5334 "This package defines a class, @code{Hashable}, for types that can be
5335converted to a hash value. This class exists for the benefit of hashing-based
5336data structures. The package provides instances for basic types and a way to
5337combine hash values.")
5338 (license license:bsd-3)))
5339
5340(define-public ghc-hashable-bootstrap
5341 (package
5342 (inherit ghc-hashable)
5343 (name "ghc-hashable-bootstrap")
65a16a45
TS
5344 (arguments
5345 `(#:tests? #f
5346 ,@(package-arguments ghc-hashable)))
dddbc90c
RV
5347 (native-inputs '())
5348 (properties '((hidden? #t)))))
5349
5350(define-public ghc-hashable-time
5351 (package
5352 (name "ghc-hashable-time")
f5051e31 5353 (version "0.2.0.2")
dddbc90c
RV
5354 (source
5355 (origin
5356 (method url-fetch)
5357 (uri (string-append
5358 "https://hackage.haskell.org/package/hashable-time/hashable-time-"
5359 version
5360 ".tar.gz"))
5361 (sha256
5362 (base32
f5051e31 5363 "1q7y4plqqwy5286hhx2fygn12h8lqk0y047b597sbdckskxzfqgs"))))
dddbc90c
RV
5364 (build-system haskell-build-system)
5365 (arguments
5366 `(#:cabal-revision
f5051e31 5367 ("2" "006phc5y9rrvsshdcmjmhxzxh8dpgs685mpqbkjm9c40xb1ydjbz")))
dddbc90c 5368 (inputs `(("ghc-hashable" ,ghc-hashable)))
3b02036e 5369 (home-page "https://hackage.haskell.org/package/hashable-time")
dddbc90c
RV
5370 (synopsis "Hashable instances for Data.Time")
5371 (description
5372 "This package provides @code{Hashable} instances for types in
5373@code{Data.Time}.")
5374 (license license:bsd-3)))
5375
5376(define-public ghc-hashtables
5377 (package
5378 (name "ghc-hashtables")
19edf0d0 5379 (version "1.2.3.4")
dddbc90c
RV
5380 (source
5381 (origin
5382 (method url-fetch)
5383 (uri (string-append
5384 "https://hackage.haskell.org/package/hashtables/hashtables-"
5385 version ".tar.gz"))
5386 (sha256
19edf0d0 5387 (base32 "1rjmxnr30g4hygiywkpz5p9sanh0abs7ap4zc1kgd8zv04kycp0j"))))
dddbc90c
RV
5388 (build-system haskell-build-system)
5389 (inputs
5390 `(("ghc-hashable" ,ghc-hashable)
5391 ("ghc-primitive" ,ghc-primitive)
5392 ("ghc-vector" ,ghc-vector)))
5393 (home-page "https://github.com/gregorycollins/hashtables")
5394 (synopsis "Haskell Mutable hash tables in the ST monad")
5395 (description "This package provides a Haskell library including a
5396couple of different implementations of mutable hash tables in the ST
5397monad, as well as a typeclass abstracting their common operations, and
5398a set of wrappers to use the hash tables in the IO monad.")
5399 (license license:bsd-3)))
5400
dd26713e
JS
5401(define-public ghc-haskeline-0.8
5402 (package
5403 (name "ghc-haskeline")
5404 (version "0.8.0.0")
5405 (source
5406 (origin
5407 (method url-fetch)
5408 (uri (string-append
5409 "https://hackage.haskell.org/package/haskeline/haskeline-"
5410 version
5411 ".tar.gz"))
5412 (sha256
5413 (base32
5414 "0gqsa5s0drim9m42hv4wrq61mnvcdylxysfxfw3acncwilfrn9pb"))))
5415 (build-system haskell-build-system)
5416 (inputs `(("ghc-exceptions" ,ghc-exceptions)))
5417 (native-inputs `(("ghc-hunit" ,ghc-hunit)))
5418 ;; FIXME: Tests failing
5419 (arguments `(#:tests? #f))
5420 (home-page "https://github.com/judah/haskeline")
5421 (synopsis
5422 "Command-line interface for user input, written in Haskell")
5423 (description
5424 "Haskeline provides a user interface for line input in command-line
5425programs. This library is similar in purpose to readline, but since it is
5426written in Haskell it is (hopefully) more easily used in other Haskell
5427programs.
5428
5429Haskeline runs both on POSIX-compatible systems and on Windows.")
5430 (license license:bsd-3)))
5431
dddbc90c
RV
5432(define-public ghc-haskell-lexer
5433 (package
5434 (name "ghc-haskell-lexer")
5435 (version "1.0.2")
5436 (source
5437 (origin
5438 (method url-fetch)
5439 (uri (string-append
5440 "https://hackage.haskell.org/package/haskell-lexer/haskell-lexer-"
5441 version ".tar.gz"))
5442 (sha256
5443 (base32 "1wyxd8x33x4v5vxyzkhm610pl86gbkc8y439092fr1735q9g7kfq"))))
5444 (build-system haskell-build-system)
3ef91e15 5445 (home-page "https://hackage.haskell.org/package/haskell-lexer")
dddbc90c
RV
5446 (synopsis "Fully compliant Haskell 98 lexer")
5447 (description
5448 "This package provides a fully compliant Haskell 98 lexer.")
5449 (license license:bsd-3)))
5450
5451(define-public ghc-haskell-src
5452 (package
5453 (name "ghc-haskell-src")
5454 (version "1.0.3.0")
5455 (source
5456 (origin
5457 (method url-fetch)
5458 (uri (string-append
5459 "https://hackage.haskell.org/package/haskell-src/haskell-src-"
5460 version
5461 ".tar.gz"))
5462 (sha256
5463 (base32
5464 "1g4dj1f0j68bhn4ixfac63wjzy6gsp6kwgxryb1k5nl3i0g99d5l"))))
5465 (build-system haskell-build-system)
5466 (inputs
5467 `(("ghc-happy" ,ghc-happy)
5468 ("ghc-syb" ,ghc-syb)))
5469 (home-page
5470 "https://hackage.haskell.org/package/haskell-src")
5471 (synopsis
5472 "Support for manipulating Haskell source code")
5473 (description
5474 "The @code{haskell-src} package provides support for manipulating Haskell
5475source code. The package provides a lexer, parser and pretty-printer, and a
5476definition of a Haskell abstract syntax tree (AST). Common uses of this
5477package are to parse or generate Haskell 98 code.")
5478 (license license:bsd-3)))
5479
5480(define-public ghc-haskell-src-exts
5481 (package
5482 (name "ghc-haskell-src-exts")
37a05591 5483 (version "1.21.1")
dddbc90c
RV
5484 (source
5485 (origin
5486 (method url-fetch)
5487 (uri (string-append
5488 "https://hackage.haskell.org/package/haskell-src-exts/haskell-src-exts-"
5489 version
5490 ".tar.gz"))
5491 (sha256
5492 (base32
37a05591 5493 "0q1y8n3d82gid9bcx8wxsqqmj9mq11fg3gp5yzpfbw958dhi3j9f"))))
dddbc90c 5494 (build-system haskell-build-system)
cad59e53 5495 (outputs '("out" "static" "doc"))
dddbc90c
RV
5496 (inputs
5497 `(("cpphs" ,cpphs)
5498 ("ghc-happy" ,ghc-happy)
5499 ("ghc-pretty-show" ,ghc-pretty-show)))
5500 (native-inputs
5501 `(("ghc-smallcheck" ,ghc-smallcheck)
5502 ("ghc-tasty" ,ghc-tasty)
5503 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
5504 ("ghc-tasty-golden" ,ghc-tasty-golden)))
5505 (home-page "https://github.com/haskell-suite/haskell-src-exts")
5506 (synopsis "Library for manipulating Haskell source")
5507 (description "Haskell-Source with Extensions (HSE, haskell-src-exts) is an
5508extension of the standard @code{haskell-src} package, and handles most
5509registered syntactic extensions to Haskell. All extensions implemented in GHC
5510are supported. Apart from these standard extensions, it also handles regular
5511patterns as per the HaRP extension as well as HSX-style embedded XML syntax.")
5512 (license license:bsd-3)))
5513
5514(define-public ghc-haskell-src-exts-util
5515 (package
5516 (name "ghc-haskell-src-exts-util")
77355bdf 5517 (version "0.2.5")
dddbc90c
RV
5518 (source
5519 (origin
5520 (method url-fetch)
5521 (uri (string-append "https://hackage.haskell.org/package/"
5522 "haskell-src-exts-util/haskell-src-exts-util-"
5523 version ".tar.gz"))
5524 (sha256
5525 (base32
77355bdf 5526 "0fvqi72m74p7q5sbpy8m2chm8a1lgy10mfrcxcz8wrh59vngj0n8"))))
dddbc90c
RV
5527 (build-system haskell-build-system)
5528 (inputs
5529 `(("ghc-data-default" ,ghc-data-default)
5530 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
5531 ("ghc-semigroups" ,ghc-semigroups)
5532 ("ghc-uniplate" ,ghc-uniplate)))
5533 (home-page "https://github.com/pepeiborra/haskell-src-exts-util")
5534 (synopsis "Helper functions for working with haskell-src-exts trees")
5535 (description
5536 "This package provides helper functions for working with
5537@code{haskell-src-exts} trees.")
5538 (license license:bsd-3)))
5539
5540(define-public ghc-haskell-src-meta
5541 (package
5542 (name "ghc-haskell-src-meta")
e94b3c72 5543 (version "0.8.3")
dddbc90c
RV
5544 (source (origin
5545 (method url-fetch)
5546 (uri (string-append "https://hackage.haskell.org/package/"
5547 "haskell-src-meta/haskell-src-meta-"
5548 version ".tar.gz"))
5549 (sha256
5550 (base32
e94b3c72 5551 "17znnaqj2hnnfyc9p9xjzbs97h2jh1h4f4qbw648y3xa14wx5ra9"))))
dddbc90c
RV
5552 (build-system haskell-build-system)
5553 (inputs
5554 `(("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
5555 ("ghc-syb" ,ghc-syb)
5556 ("ghc-th-orphans" ,ghc-th-orphans)))
5557 (native-inputs
5558 `(("ghc-hunit" ,ghc-hunit)
e94b3c72
TS
5559 ("ghc-tasty" ,ghc-tasty)
5560 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
dddbc90c
RV
5561 (home-page "https://hackage.haskell.org/package/haskell-src-meta")
5562 (synopsis "Parse source to template-haskell abstract syntax")
5563 (description
5564 "This package provides tools to parse Haskell sources to the
5565template-haskell abstract syntax.")
5566 (license license:bsd-3)))
5567
5568(define-public ghc-hasktags
5569 (package
5570 (name "ghc-hasktags")
5571 (version "0.71.2")
5572 (source
5573 (origin
5574 (method url-fetch)
5575 (uri (string-append
5576 "https://hackage.haskell.org/package/hasktags/hasktags-"
5577 version
5578 ".tar.gz"))
5579 (sha256
5580 (base32
5581 "1s2k9qrgy1jily96img2pmn7g35mwnnfiw6si3aw32jfhg5zsh1c"))))
5582 (build-system haskell-build-system)
5583 (inputs
5584 `(("ghc-system-filepath" ,ghc-system-filepath)
5585 ("ghc-optparse-applicative" ,ghc-optparse-applicative)))
5586 (native-inputs
5587 `(("ghc-json" ,ghc-json)
5588 ("ghc-utf8-string" ,ghc-utf8-string)
5589 ("ghc-microlens-platform" ,ghc-microlens-platform)
5590 ("ghc-hunit" ,ghc-hunit)))
702a1012 5591 (home-page "https://github.com/MarcWeber/hasktags")
dddbc90c
RV
5592 (synopsis "Make @code{Ctags} and @code{Etags} files for Haskell programs")
5593 (description
5594 "This package provides a means of generating tag files for Emacs and
5595Vim.")
5596 (license license:bsd-3)))
5597
5598(define-public ghc-hex
5599 (package
5600 (name "ghc-hex")
5601 (version "0.1.2")
5602 (source
5603 (origin
5604 (method url-fetch)
5605 (uri (string-append "https://hackage.haskell.org/package/"
5606 "hex-" version "/"
5607 "hex-" version ".tar.gz"))
5608 (sha256
5609 (base32
5610 "1v31xiaivrrn0q2jz8919wvkjplv1kxna5ajhsj701fqxm1i5vhj"))))
5611 (build-system haskell-build-system)
5612 (home-page "https://hackage.haskell.org/package/hex")
5613 (synopsis "Convert strings into hexadecimal and back")
7230f6d5
TGR
5614 (description "This package converts between bytestrings and their
5615hexadecimal string representation.")
dddbc90c
RV
5616 (license license:bsd-3)))
5617
5618(define-public ghc-highlighting-kate
5619 (package
5620 (name "ghc-highlighting-kate")
5621 (version "0.6.4")
5622 (source (origin
5623 (method url-fetch)
5624 (uri (string-append "https://hackage.haskell.org/package/"
5625 "highlighting-kate/highlighting-kate-"
5626 version ".tar.gz"))
5627 (sha256
5628 (base32
5629 "1bqv00gfmrsf0jjr4qf3lhshvfkyzmhbi3pjb6mafbnsyn2k7f6q"))))
5630 (build-system haskell-build-system)
5631 (inputs
5632 `(("ghc-diff" ,ghc-diff)
5633 ("ghc-regex-pcre-builtin" ,ghc-regex-pcre-builtin)))
5634 (native-inputs
5635 `(("ghc-blaze-html" ,ghc-blaze-html)
5636 ("ghc-utf8-string" ,ghc-utf8-string)))
5637 (home-page "https://github.com/jgm/highlighting-kate")
5638 (synopsis "Syntax highlighting library")
5639 (description
5640 "Highlighting-kate is a syntax highlighting library with support for
5641nearly one hundred languages. The syntax parsers are automatically generated
5642from @uref{https://kate-editor.org/, Kate syntax descriptions}, so any syntax
5643supported by Kate can be added. An (optional) command-line program is
5644provided, along with a utility for generating new parsers from Kate XML syntax
5645descriptions.")
5646 (license license:gpl2+)))
5647
5648(define-public ghc-hindent
5649 (package
5650 (name "ghc-hindent")
f545f894 5651 (version "5.3.1")
dddbc90c
RV
5652 (source
5653 (origin
5654 (method url-fetch)
5655 (uri (string-append
5656 "https://hackage.haskell.org/package/hindent/hindent-"
5657 version
5658 ".tar.gz"))
5659 (sha256
5660 (base32
f545f894 5661 "008s8zm9qs972b7v5kkmr8l3i9kc6zm7yj33mkw6dv69b7h3c01l"))))
dddbc90c
RV
5662 (build-system haskell-build-system)
5663 (arguments
5664 `(#:modules ((guix build haskell-build-system)
5665 (guix build utils)
5666 (guix build emacs-utils))
5667 #:imported-modules (,@%haskell-build-system-modules
5668 (guix build emacs-utils))
5669 #:phases
5670 (modify-phases %standard-phases
5671 (add-after 'install 'emacs-install
5672 (lambda* (#:key inputs outputs #:allow-other-keys)
5673 (let* ((out (assoc-ref outputs "out"))
5674 (elisp-file "elisp/hindent.el")
d53e87cf 5675 (dest (string-append out "/share/emacs/site-lisp"))
dddbc90c
RV
5676 (emacs (string-append (assoc-ref inputs "emacs")
5677 "/bin/emacs")))
5678 (make-file-writable elisp-file)
5679 (emacs-substitute-variables elisp-file
5680 ("hindent-process-path"
5681 (string-append out "/bin/hindent")))
5682 (install-file elisp-file dest)
5683 (emacs-generate-autoloads "hindent" dest)))))))
5684 (inputs
5685 `(("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
5686 ("ghc-monad-loops" ,ghc-monad-loops)
5687 ("ghc-utf8-string" ,ghc-utf8-string)
5688 ("ghc-exceptions" ,ghc-exceptions)
5689 ("ghc-yaml" ,ghc-yaml)
5690 ("ghc-unix-compat" ,ghc-unix-compat)
5691 ("ghc-path" ,ghc-path)
5692 ("ghc-path-io" ,ghc-path-io)
5693 ("ghc-optparse-applicative" ,ghc-optparse-applicative)))
5694 (native-inputs
5695 `(("ghc-hspec" ,ghc-hspec)
5696 ("ghc-diff" ,ghc-diff)
5697 ("emacs" ,emacs-minimal)))
5698 (home-page
5699 "https://github.com/commercialhaskell/hindent")
5700 (synopsis "Extensible Haskell pretty printer")
5701 (description
5702 "This package provides automatic formatting for Haskell files. Both a
5703library and an executable.")
5704 (license license:bsd-3)))
5705
5706(define-public ghc-hinotify
5707 (package
5708 (name "ghc-hinotify")
c2342abb 5709 (version "0.4")
dddbc90c
RV
5710 (source (origin
5711 (method url-fetch)
5712 (uri (string-append
5713 "https://hackage.haskell.org/package/hinotify/"
5714 "hinotify-" version ".tar.gz"))
5715 (sha256
5716 (base32
c2342abb 5717 "1x1lm685ws2q0z0ibwq6x3l72xh67mj06s36xiga3al48d92q63x"))))
dddbc90c
RV
5718 (build-system haskell-build-system)
5719 (inputs
5720 `(("ghc-async" ,ghc-async)))
5721 (home-page "https://github.com/kolmodin/hinotify.git")
5722 (synopsis "Haskell binding to inotify")
5723 (description "This library provides a wrapper to the Linux kernel's inotify
5724feature, allowing applications to subscribe to notifications when a file is
5725accessed or modified.")
5726 (license license:bsd-3)))
5727
5728(define-public ghc-hmatrix
5729 (package
5730 (name "ghc-hmatrix")
65e29ed1 5731 (version "0.20.0.0")
dddbc90c
RV
5732 (source
5733 (origin
5734 (method url-fetch)
5735 (uri (string-append
5736 "https://hackage.haskell.org/package/hmatrix/hmatrix-"
5737 version ".tar.gz"))
5738 (sha256
65e29ed1 5739 (base32 "1sqy1aci5zfagkb34mz3xdil7cl96z4b4cx28cha54vc5sx1lhpg"))))
dddbc90c 5740 (build-system haskell-build-system)
54a5fd07
TS
5741 (arguments
5742 `(#:extra-directories ("lapack")))
dddbc90c
RV
5743 (inputs
5744 `(("ghc-random" ,ghc-random)
5745 ("ghc-split" ,ghc-split)
5746 ("ghc-storable-complex" ,ghc-storable-complex)
5747 ("ghc-semigroups" ,ghc-semigroups)
5748 ("ghc-vector" ,ghc-vector)
5749 ;;("openblas" ,openblas)
5750 ("lapack" ,lapack)))
5751 ;; Guix's OpenBLAS is built with the flag "NO_LAPACK=1" which
5752 ;; disables inclusion of the LAPACK functions.
5753 ;; (arguments `(#:configure-flags '("--flags=openblas")))
5754 (home-page "https://github.com/albertoruiz/hmatrix")
5755 (synopsis "Haskell numeric linear algebra library")
5756 (description "The HMatrix package provices a Haskell library for
5757dealing with linear systems, matrix decompositions, and other
5758numerical computations based on BLAS and LAPACK.")
5759 (license license:bsd-3)))
5760
5761(define-public ghc-hmatrix-gsl
5762 (package
5763 (name "ghc-hmatrix-gsl")
5764 (version "0.19.0.1")
5765 (source
5766 (origin
5767 (method url-fetch)
5768 (uri (string-append
5769 "https://hackage.haskell.org/package/hmatrix-gsl/hmatrix-gsl-"
5770 version ".tar.gz"))
5771 (sha256
5772 (base32 "0v6dla426x4ywaq59jm89ql1i42n39iw6z0j378xwb676v9kfxhm"))))
5773 (build-system haskell-build-system)
54a5fd07
TS
5774 (arguments
5775 `(#:extra-directories ("gsl")))
dddbc90c
RV
5776 (inputs
5777 `(("ghc-hmatrix" ,ghc-hmatrix)
5778 ("ghc-vector" ,ghc-vector)
5779 ("ghc-random" ,ghc-random)
5780 ("gsl" ,gsl)))
5781 (native-inputs `(("pkg-config" ,pkg-config)))
5782 (home-page "https://github.com/albertoruiz/hmatrix")
5783 (synopsis "Haskell GSL binding")
5784 (description "This Haskell library provides a purely functional
5785interface to selected numerical computations, internally implemented
5786using GSL.")
5787 (license license:gpl3+)))
5788
5789(define-public ghc-hmatrix-gsl-stats
5790 (package
5791 (name "ghc-hmatrix-gsl-stats")
e9b359f5 5792 (version "0.4.1.8")
dddbc90c
RV
5793 (source
5794 (origin
5795 (method url-fetch)
5796 (uri
5797 (string-append
5798 "https://hackage.haskell.org/package/hmatrix-gsl-stats/hmatrix-gsl-stats-"
5799 version ".tar.gz"))
5800 (sha256
e9b359f5 5801 (base32 "1cq049sj3q5r06x7i35hqrkf2jc4p4kfi9zv0jmi2vp7w4644i5q"))))
dddbc90c
RV
5802 (build-system haskell-build-system)
5803 (inputs
5804 `(("ghc-vector" ,ghc-vector)
5805 ("ghc-storable-complex" ,ghc-storable-complex)
5806 ("ghc-hmatrix" ,ghc-hmatrix)
5807 ("gsl" ,gsl)))
5808 (native-inputs `(("pkg-config" ,pkg-config)))
5809 (home-page "http://code.haskell.org/hmatrix-gsl-stats")
5810 (synopsis "GSL Statistics interface for Haskell")
5811 (description "This Haskell library provides a purely functional
5812interface for statistics based on hmatrix and GSL.")
5813 (license license:bsd-3)))
5814
5815(define-public ghc-hmatrix-special
5816 (package
5817 (name "ghc-hmatrix-special")
5818 (version "0.19.0.0")
5819 (source
5820 (origin
5821 (method url-fetch)
5822 (uri
5823 (string-append
5824 "https://hackage.haskell.org/package/hmatrix-special/hmatrix-special-"
5825 version ".tar.gz"))
5826 (sha256
5827 (base32 "1mywr61kr852sbff26n9x95kswx9l4ycbv6s68qsbkh02xzqq7qz"))))
5828 (build-system haskell-build-system)
5829 (inputs
5830 `(("ghc-hmatrix" ,ghc-hmatrix)
5831 ("ghc-hmatrix-gsl" ,ghc-hmatrix-gsl)))
5832 (home-page "https://github.com/albertoruiz/hmatrix")
5833 (synopsis "Haskell interface to GSL special functions")
5834 (description "This library provides an interface to GSL special
5835functions for Haskell.")
5836 (license license:gpl3+)))
5837
5838(define-public ghc-hostname
5839 (package
5840 (name "ghc-hostname")
5841 (version "1.0")
5842 (source
5843 (origin
5844 (method url-fetch)
5845 (uri (string-append "https://hackage.haskell.org/package/hostname/"
5846 "hostname-" version ".tar.gz"))
5847 (sha256
5848 (base32
5849 "0p6gm4328946qxc295zb6vhwhf07l1fma82vd0siylnsnsqxlhwv"))))
5850 (build-system haskell-build-system)
5851 (home-page "https://hackage.haskell.org/package/hostname")
5852 (synopsis "Hostname in Haskell")
5853 (description "Network.HostName is a simple package providing a means to
5854determine the hostname.")
5855 (license license:bsd-3)))
5856
5857(define-public ghc-hourglass
5858 (package
5859 (name "ghc-hourglass")
5860 (version "0.2.12")
5861 (source (origin
5862 (method url-fetch)
5863 (uri (string-append "https://hackage.haskell.org/package/"
5864 "hourglass/hourglass-" version ".tar.gz"))
5865 (sha256
5866 (base32
5867 "0jnay5j13vpz6i1rkaj3j0d9v8jfpri499xn3l7wd01f81f5ncs4"))))
5868 (build-system haskell-build-system)
5869 (inputs
5870 `(("ghc-old-locale" ,ghc-old-locale)))
5871 (native-inputs
5872 `(("ghc-tasty" ,ghc-tasty)
5873 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
5874 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
5875 (home-page "https://github.com/vincenthz/hs-hourglass")
5876 (synopsis "Simple time-related library for Haskell")
5877 (description
5878 "This is a simple time library providing a simple but powerful and
5879performant API. The backbone of the library are the @code{Timeable} and
5880@code{Time} type classes. Each @code{Timeable} instances can be converted to
5881a type that has a @code{Time} instances, and thus are different
5882representations of current time.")
5883 (license license:bsd-3)))
5884
5885(define-public ghc-hpack
5886 (package
5887 (name "ghc-hpack")
06344a3a 5888 (version "0.31.2")
dddbc90c
RV
5889 (source
5890 (origin
5891 (method url-fetch)
5892 (uri (string-append "https://hackage.haskell.org/package/hpack/"
5893 "hpack-" version ".tar.gz"))
06344a3a 5894 (patches (search-patches "ghc-hpack-fix-tests.patch"))
dddbc90c
RV
5895 (sha256
5896 (base32
06344a3a 5897 "1l2d6185lawwhsj70swxkvcacm0hvcn9qsrlx4ph4gs6k578603g"))))
dddbc90c
RV
5898 (build-system haskell-build-system)
5899 (inputs
5900 `(("ghc-aeson" ,ghc-aeson)
5901 ("ghc-bifunctors" ,ghc-bifunctors)
5902 ("ghc-cryptonite" ,ghc-cryptonite)
5903 ("ghc-glob" ,ghc-glob)
5904 ("ghc-http-client" ,ghc-http-client)
5905 ("ghc-http-client-tls" ,ghc-http-client-tls)
5906 ("ghc-http-types" ,ghc-http-types)
06344a3a 5907 ("ghc-infer-license" ,ghc-infer-license)
dddbc90c
RV
5908 ("ghc-scientific" ,ghc-scientific)
5909 ("ghc-unordered-containers" ,ghc-unordered-containers)
5910 ("ghc-vector" ,ghc-vector)
5911 ("ghc-yaml" ,ghc-yaml)))
5912 (native-inputs
5913 `(("ghc-hspec" ,ghc-hspec)
5914 ("ghc-hunit" ,ghc-hunit)
5915 ("ghc-interpolate" ,ghc-interpolate)
5916 ("ghc-mockery" ,ghc-mockery)
5917 ("ghc-quickcheck" ,ghc-quickcheck)
5918 ("ghc-temporary" ,ghc-temporary)
5919 ("hspec-discover" ,hspec-discover)))
5920 (home-page "https://github.com/sol/hpack")
5921 (synopsis "Tools for an alternative Haskell package format")
5922 (description
5923 "Hpack is a format for Haskell packages. It is an alternative to the
5924Cabal package format and follows different design principles. Hpack packages
5925are described in a file named @code{package.yaml}. Both @code{cabal2nix} and
5926@code{stack} support @code{package.yaml} natively. For other build tools the
5927@code{hpack} executable can be used to generate a @code{.cabal} file from
5928@code{package.yaml}.")
5929 (license license:expat)))
5930
5931(define-public ghc-hs-bibutils
5932 (package
5933 (name "ghc-hs-bibutils")
ebcb4f23 5934 (version "6.7.0.0")
dddbc90c
RV
5935 (source
5936 (origin
5937 (method url-fetch)
5938 (uri (string-append
5939 "https://hackage.haskell.org/package/hs-bibutils/hs-bibutils-"
5940 version ".tar.gz"))
5941 (sha256
5942 (base32
ebcb4f23 5943 "1qfyssl76lm4g09yxr3y10kmf8cnzls46g5h0ijk0wpk9wlhbln5"))))
dddbc90c
RV
5944 (build-system haskell-build-system)
5945 (inputs `(("ghc-syb" ,ghc-syb)))
5946 (home-page "https://hackage.haskell.org/package/hs-bibutils")
5947 (synopsis "Haskell bindings to bibutils")
5948 (description
5949 "This package provides Haskell bindings to @code{bibutils}, a library
5950that interconverts between various bibliography formats using a common
5951MODS-format XML intermediate.")
5952 (license license:gpl2+)))
5953
5954(define-public ghc-hslogger
5955 (package
5956 (name "ghc-hslogger")
e5ccc5f7 5957 (version "1.2.12")
dddbc90c
RV
5958 (source
5959 (origin
5960 (method url-fetch)
5961 (uri (string-append "https://hackage.haskell.org/package/"
5962 "hslogger-" version "/" "hslogger-"
5963 version ".tar.gz"))
5964 (sha256 (base32
e5ccc5f7 5965 "0ykcsk7wqygvrg60r5kpl6xfinr706al8pfyk5wj67wjs24lqypr"))))
dddbc90c
RV
5966 (build-system haskell-build-system)
5967 (inputs
5968 `(("ghc-network" ,ghc-network)
5969 ("ghc-old-locale" ,ghc-old-locale)))
5970 (native-inputs
5971 `(("ghc-hunit" ,ghc-hunit)))
5972 (home-page "https://software.complete.org/hslogger")
5973 (synopsis "Logging framework for Haskell, similar to Python's logging module")
5974 (description "Hslogger lets each log message have a priority and source be
5975associated with it. The programmer can then define global handlers that route
5976or filter messages based on the priority and source. It also has a syslog
5977handler built in.")
5978 (license license:bsd-3)))
5979
5980(define-public ghc-hslua
5981 (package
5982 (name "ghc-hslua")
cc784d7b 5983 (version "1.0.3.2")
dddbc90c
RV
5984 (source (origin
5985 (method url-fetch)
5986 (uri (string-append "https://hackage.haskell.org/package/"
5987 "hslua/hslua-" version ".tar.gz"))
5988 (sha256
5989 (base32
cc784d7b 5990 "183bgl5jcx5y2r94lviqfw0a5w9089nxjd1z40k8vx9y2h60pm6j"))))
dddbc90c
RV
5991 (build-system haskell-build-system)
5992 (arguments
54a5fd07
TS
5993 `(#:configure-flags '("-fsystem-lua")
5994 #:extra-directories ("lua")))
dddbc90c
RV
5995 (inputs
5996 `(("lua" ,lua)
5997 ("ghc-exceptions" ,ghc-exceptions)
5998 ("ghc-fail" ,ghc-fail)))
5999 (native-inputs
6000 `(("ghc-tasty" ,ghc-tasty)
6001 ("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)
6002 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
6003 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
6004 ("ghc-quickcheck" ,ghc-quickcheck)
6005 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)))
6006 (home-page "https://hackage.haskell.org/package/hslua")
6007 (synopsis "Lua language interpreter embedding in Haskell")
6008 (description
6009 "The Scripting.Lua module is a wrapper of the Lua language interpreter as
6010described in @url{https://www.lua.org/}.")
6011 (license license:expat)))
6012
ff303e4e
TS
6013(define-public ghc-hslua-module-system
6014 (package
6015 (name "ghc-hslua-module-system")
6016 (version "0.2.1")
6017 (source
6018 (origin
6019 (method url-fetch)
6020 (uri (string-append "https://hackage.haskell.org/package/"
6021 "hslua-module-system/hslua-module-system-"
6022 version ".tar.gz"))
6023 (sha256
6024 (base32
6025 "1m7wz3g5c34pyizqw5mllzhsy2vziddhlbhjfwdvd7nhd3p4v3hh"))))
6026 (build-system haskell-build-system)
6027 (inputs
6028 `(("ghc-exceptions" ,ghc-exceptions)
6029 ("ghc-hslua" ,ghc-hslua)
6030 ("ghc-temporary" ,ghc-temporary)))
6031 (native-inputs
6032 `(("ghc-tasty" ,ghc-tasty)
6033 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
6034 (home-page "https://github.com/hslua/hslua-module-system")
6035 (synopsis "Lua module wrapper around Haskell's System module")
6036 (description "This library provides access to system information and
6037functionality to Lua scripts via Haskell's @code{System} module. Intended
6038usage for this package is to preload it by adding the loader function to
6039@code{package.preload}. Note that the Lua @code{package} library must have
6040already been loaded before the loader can be added.")
6041 (license license:expat)))
6042
dddbc90c
RV
6043(define-public ghc-hslua-module-text
6044 (package
6045 (name "ghc-hslua-module-text")
ecaf0b0c 6046 (version "0.2.1")
dddbc90c
RV
6047 (source
6048 (origin
6049 (method url-fetch)
6050 (uri (string-append "https://hackage.haskell.org/package/"
6051 "hslua-module-text/hslua-module-text-"
6052 version ".tar.gz"))
6053 (sha256
6054 (base32
ecaf0b0c 6055 "1ikdwvvxhbd5wmfr85dzs2ccamh9rbbpgy899z7s1vlv5q1dj0hk"))))
dddbc90c 6056 (build-system haskell-build-system)
dddbc90c
RV
6057 (inputs
6058 `(("ghc-hslua" ,ghc-hslua)))
6059 (native-inputs
6060 `(("ghc-tasty" ,ghc-tasty)
6061 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
6062 (home-page "https://github.com/hslua/hslua-module-text")
6063 (synopsis "Lua module for text")
6064 (description
6065 "This package provides a UTF-8 aware subset of Lua's @code{string} module
6066for Haskell. The functions provided by this module are @code{upper},
6067@code{lower}, @code{len}, @code{reverse}, and @code{sub}.")
6068 (license license:expat)))
6069
fac520bf
TS
6070(define-public ghc-hsyaml
6071 (package
6072 (name "ghc-hsyaml")
6073 (version "0.1.2.0")
6074 (source
6075 (origin
6076 (method url-fetch)
6077 (uri (string-append "https://hackage.haskell.org/package/"
6078 "HsYAML/HsYAML-" version ".tar.gz"))
6079 (sha256
6080 (base32
6081 "1pajfhj16559v64ixm8j7bvxdqmxg6c3c0z3wz7in8ckswgzfp54"))))
6082 (build-system haskell-build-system)
6083 (arguments
6084 `(#:cabal-revision
6085 ("1" "0j6qmmcz5yqh89hs2cq453maix50q61vl2h0ahj5lg02bygn42cf")))
6086 (home-page "https://github.com/haskell-hvr/HsYAML")
6087 (synopsis "Pure Haskell YAML 1.2 parser")
6088 (description "This library provides a
6089@url{http://yaml.org/spec/1.2/spec.html, YAML 1.2} parser implementation
6090for Haskell. Its features include:
6091
6092@itemize
6093@item Pure Haskell implementation with small dependency footprint and
6094emphasis on strict compliance with the YAML 1.2 specification.
6095
6096@item Direct decoding to native Haskell types via (aeson-inspired)
6097typeclass-based API (see @code{Data.YAML}).
6098
6099@item Support for constructing custom YAML node graph
6100representation (including support for cyclic YAML data structures).
6101
6102@item Support for the standard (untyped) @emph{Failsafe}, (strict)
6103@emph{JSON}, and (flexible) @emph{Core} ``schemas'' providing implicit
6104typing rules as defined in the YAML 1.2 specification (including support
6105for user-defined custom schemas).
6106
6107@item Event-based API resembling LibYAML's Event-based API (see
6108@code{Data.YAML.Event}).
6109
6110@item Low-level API access to lexical token-based scanner (see
6111@code{Data.YAML.Token}).
6112@end itemize")
6113 (license license:gpl2+)))
6114
dddbc90c
RV
6115(define-public ghc-http-api-data
6116 (package
6117 (name "ghc-http-api-data")
a57236eb 6118 (version "0.4.1")
dddbc90c
RV
6119 (source
6120 (origin
6121 (method url-fetch)
6122 (uri (string-append "https://hackage.haskell.org/package/"
6123 "http-api-data-" version "/"
6124 "http-api-data-" version ".tar.gz"))
6125 (sha256
6126 (base32
a57236eb 6127 "1ps4bvln43gz72dr9mc3c9n1rn38c4rz6m49vxzz9nz6jz1978rv"))))
dddbc90c 6128 (build-system haskell-build-system)
dddbc90c
RV
6129 (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
6130 ("ghc-attoparsec-iso8601" ,ghc-attoparsec-iso8601)
a57236eb 6131 ("ghc-cookie" ,ghc-cookie)
dddbc90c
RV
6132 ("ghc-hashable" ,ghc-hashable)
6133 ("ghc-http-types" ,ghc-http-types)
a57236eb 6134 ("ghc-time-compat" ,ghc-time-compat)
dddbc90c 6135 ("ghc-unordered-containers" ,ghc-unordered-containers)
dddbc90c 6136 ("ghc-uuid-types" ,ghc-uuid-types)))
a57236eb
TS
6137 (native-inputs
6138 `(("cabal-doctest" ,cabal-doctest)
6139 ("ghc-nats" ,ghc-nats)
6140 ("ghc-hunit" ,ghc-hunit)
6141 ("ghc-hspec" ,ghc-hspec)
6142 ("ghc-quickcheck" ,ghc-quickcheck)
6143 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
6144 ("ghc-doctest" ,ghc-doctest)
6145 ("hspec-discover" ,hspec-discover)))
dddbc90c
RV
6146 (home-page "https://github.com/fizruk/http-api-data")
6147 (synopsis "Convert to/from HTTP API data like URL pieces, headers and
6148query parameters")
6149 (description "This Haskell package defines typeclasses used for converting
6150Haskell data types to and from HTTP API data.")
6151 (license license:bsd-3)))
6152
6153(define-public ghc-ieee754
6154 (package
6155 (name "ghc-ieee754")
6156 (version "0.8.0")
6157 (source (origin
6158 (method url-fetch)
6159 (uri (string-append
6160 "https://hackage.haskell.org/package/ieee754/"
6161 "ieee754-" version ".tar.gz"))
6162 (sha256
6163 (base32
6164 "1lcs521g9lzy9d7337vg4w7q7s8500rfqy7rcifcz6pm6yfgyb8f"))))
6165 (build-system haskell-build-system)
6166 (home-page "https://github.com/patperry/hs-ieee754")
6167 (synopsis "Utilities for dealing with IEEE floating point numbers")
6168 (description "Utilities for dealing with IEEE floating point numbers,
6169ported from the Tango math library; approximate and exact equality comparisons
6170for general types.")
6171 (license license:bsd-3)))
6172
6173(define-public ghc-ifelse
6174 (package
6175 (name "ghc-ifelse")
6176 (version "0.85")
6177 (source
6178 (origin
6179 (method url-fetch)
6180 (uri (string-append "https://hackage.haskell.org/package/"
6181 "IfElse/IfElse-" version ".tar.gz"))
6182 (sha256
6183 (base32
6184 "1kfx1bwfjczj93a8yqz1n8snqiq5655qgzwv1lrycry8wb1vzlwa"))))
6185 (build-system haskell-build-system)
3ef91e15 6186 (home-page "https://hackage.haskell.org/package/IfElse")
dddbc90c
RV
6187 (synopsis "Monadic control flow with anaphoric variants")
6188 (description "This library provides functions for control flow inside of
6189monads with anaphoric variants on @code{if} and @code{when} and a C-like
6190@code{switch} function.")
6191 (license license:bsd-3)))
6192
6193(define-public ghc-indents
6194 (package
6195 (name "ghc-indents")
d66473fb 6196 (version "0.5.0.1")
dddbc90c
RV
6197 (source (origin
6198 (method url-fetch)
6199 (uri (string-append
6200 "https://hackage.haskell.org/package/indents/indents-"
6201 version ".tar.gz"))
6202 (sha256
6203 (base32
d66473fb 6204 "0dpcwiz0dwn5aqdsc50plfaawh86adhf7jx5dsmhn5q5nz32qn51"))))
dddbc90c
RV
6205 (build-system haskell-build-system)
6206 ;; This package needs an older version of tasty.
6207 (arguments '(#:tests? #f))
6208 (inputs
6209 `(("ghc-concatenative" ,ghc-concatenative)))
6210 (native-inputs
6211 `(("ghc-tasty" ,ghc-tasty)
6212 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
6213 (home-page "http://patch-tag.com/r/salazar/indents")
6214 (synopsis "Indentation sensitive parser-combinators for parsec")
6215 (description
6216 "This library provides functions for use in parsing indentation sensitive
6217contexts. It parses blocks of lines all indented to the same level as well as
6218lines continued at an indented level below.")
6219 (license license:bsd-3)))
6220
1f656b17
TS
6221(define-public ghc-infer-license
6222 (package
6223 (name "ghc-infer-license")
6224 (version "0.2.0")
6225 (source
6226 (origin
6227 (method url-fetch)
6228 (uri (string-append "https://hackage.haskell.org/package/"
6229 "infer-license/infer-license-" version ".tar.gz"))
6230 (sha256
6231 (base32
6232 "0wlfm6bf55kfvm74xar9lmjg5v1103rs9m3grw1rq5bmcmhzxrhj"))))
6233 (build-system haskell-build-system)
6234 (inputs
6235 `(("ghc-text-metrics" ,ghc-text-metrics)))
6236 (native-inputs
6237 `(("ghc-hspec" ,ghc-hspec)
6238 ("hspec-discover" ,hspec-discover)))
3ef91e15 6239 (home-page "https://hackage.haskell.org/package/infer-license")
1f656b17
TS
6240 (synopsis "Infer software license from a given license file")
6241 (description "This library provides tools to infer a software
6242license from a given license file.")
6243 (license license:expat)))
6244
dddbc90c
RV
6245(define-public ghc-inline-c
6246 (package
6247 (name "ghc-inline-c")
55ec98f2 6248 (version "0.7.0.1")
dddbc90c
RV
6249 (source
6250 (origin
6251 (method url-fetch)
6252 (uri (string-append "https://hackage.haskell.org/package/inline-c/"
6253 "inline-c-" version ".tar.gz"))
6254 (sha256
6255 (base32
55ec98f2 6256 "19scbviwiv1fbsdcjji3dscjg7w0xa8r97xwkqqrwm7zhvrg5wns"))))
dddbc90c
RV
6257 (build-system haskell-build-system)
6258 (inputs
6259 `(("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
6260 ("ghc-cryptohash" ,ghc-cryptohash)
6261 ("ghc-hashable" ,ghc-hashable)
6262 ("ghc-parsers" ,ghc-parsers)
6263 ("ghc-unordered-containers" ,ghc-unordered-containers)
6264 ("ghc-vector" ,ghc-vector)))
6265 (native-inputs
6266 `(("ghc-quickcheck" ,ghc-quickcheck)
6267 ("ghc-hspec" ,ghc-hspec)
6268 ("ghc-raw-strings-qq" ,ghc-raw-strings-qq)
6269 ("ghc-regex-posix" ,ghc-regex-posix)))
3ef91e15 6270 (home-page "https://hackage.haskell.org/package/inline-c")
dddbc90c
RV
6271 (synopsis "Write Haskell source files including C code inline")
6272 (description
6273 "inline-c lets you seamlessly call C libraries and embed high-performance
6274inline C code in Haskell modules. Haskell and C can be freely intermixed in
6275the same source file, and data passed to and from code in either language with
6276minimal overhead. No FFI required.")
6277 (license license:expat)))
6278
6279(define-public ghc-inline-c-cpp
6280 (package
6281 (name "ghc-inline-c-cpp")
cae58e56 6282 (version "0.3.0.3")
dddbc90c
RV
6283 (source
6284 (origin
6285 (method url-fetch)
6286 (uri (string-append "https://hackage.haskell.org/package/inline-c-cpp/"
6287 "inline-c-cpp-" version ".tar.gz"))
6288 (sha256
6289 (base32
cae58e56 6290 "1sxwx9dh60qfpa72dymj015zwd6prhb70x5mkabqzi7nhg3aakln"))))
dddbc90c
RV
6291 (build-system haskell-build-system)
6292 (inputs
6293 `(("ghc-inline-c" ,ghc-inline-c)
6294 ("ghc-safe-exceptions" ,ghc-safe-exceptions)))
6295 (native-inputs
6296 `(("ghc-hspec" ,ghc-hspec)))
6297 (home-page "https://hackage.haskell.org/package/inline-c-cpp")
6298 (synopsis "Lets you embed C++ code into Haskell")
6299 (description
6300 "This package provides utilities to inline C++ code into Haskell using
6301@code{inline-c}.")
6302 (license license:expat)))
6303
6304(define-public ghc-integer-logarithms
6305 (package
6306 (name "ghc-integer-logarithms")
86a704db 6307 (version "1.0.3")
dddbc90c
RV
6308 (source
6309 (origin
6310 (method url-fetch)
6311 (uri (string-append "https://hackage.haskell.org/package/"
6312 "integer-logarithms/integer-logarithms-"
6313 version ".tar.gz"))
6314 (sha256
6315 (base32
86a704db 6316 "05pc5hws66csvcvfswlwcr2fplwn1lbssvwifjxkbbwqhq0n5qjs"))))
dddbc90c
RV
6317 (build-system haskell-build-system)
6318 (arguments
6319 `(#:phases
6320 (modify-phases %standard-phases
6321 (add-before 'configure 'update-constraints
6322 (lambda _
6323 (substitute* "integer-logarithms.cabal"
6324 (("tasty >= 0\\.10 && < 1\\.1")
6325 "tasty >= 0.10 && < 1.2")))))))
6326 (native-inputs
6327 `(("ghc-quickcheck" ,ghc-quickcheck)
6328 ("ghc-smallcheck" ,ghc-smallcheck)
6329 ("ghc-tasty" ,ghc-tasty)
6330 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
6331 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
6332 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)))
6333 (home-page "https://github.com/Bodigrim/integer-logarithms")
6334 (synopsis "Integer logarithms")
6335 (description
6336 "This package provides the following modules:
6337@code{Math.NumberTheory.Logarithms} and
6338@code{Math.NumberTheory.Powers.Integer} from the @code{arithmoi} package,
6339@code{GHC.Integer.Logarithms.Compat} and
6340@code{Math.NumberTheory.Power.Natural}, as well as some additional functions
6341in migrated modules.")
6342 (license license:expat)))
6343
6344(define-public ghc-integer-logarithms-bootstrap
6345 (package
6346 (inherit ghc-integer-logarithms)
6347 (name "ghc-integer-logarithms-bootstrap")
6348 (arguments `(#:tests? #f))
6349 (native-inputs '())
799d8d3c 6350 (properties '((hidden? #t)))))
dddbc90c
RV
6351
6352(define-public ghc-interpolate
6353 (package
6354 (name "ghc-interpolate")
6355 (version "0.2.0")
6356 (source
6357 (origin
6358 (method url-fetch)
6359 (uri (string-append "https://hackage.haskell.org/package/interpolate/"
6360 "interpolate-" version ".tar.gz"))
6361 (sha256
6362 (base32
6363 "1gkaj98yz363v38fv78sqby236mp8yqwqcilx7kr2b9z0w3204bf"))))
6364 (build-system haskell-build-system)
6365 (inputs
6366 `(("ghc-haskell-src-meta" ,ghc-haskell-src-meta)))
6367 (native-inputs
6368 `(("ghc-base-compat" ,ghc-base-compat)
6369 ("ghc-hspec" ,ghc-hspec)
6370 ("ghc-quickcheck" ,ghc-quickcheck)
6371 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
6372 ("hspec-discover" ,hspec-discover)))
6373 (home-page "https://github.com/sol/interpolate")
6374 (synopsis "String interpolation library")
6375 (description "This package provides a string interpolation library for
6376Haskell.")
6377 (license license:expat)))
6378
6379(define-public ghc-intervalmap
6380 (package
6381 (name "ghc-intervalmap")
e4946e32 6382 (version "0.6.1.1")
dddbc90c
RV
6383 (source
6384 (origin
6385 (method url-fetch)
6386 (uri (string-append "https://hackage.haskell.org/package/IntervalMap/"
6387 "IntervalMap-" version ".tar.gz"))
6388 (sha256
6389 (base32
e4946e32 6390 "0vdlvxvhf7vjyv0mfn6jaj2i2gclqv8419ck32s2jxfcmki5m5g8"))))
dddbc90c
RV
6391 (build-system haskell-build-system)
6392 (native-inputs
6393 `(("ghc-quickcheck" ,ghc-quickcheck)))
6394 (home-page "http://www.chr-breitkopf.de/comp/IntervalMap")
6395 (synopsis "Containers for intervals, with efficient search")
6396 (description
6397 "This package provides ordered containers of intervals, with efficient
6398search for all keys containing a point or overlapping an interval. See the
6399example code on the home page for a quick introduction.")
6400 (license license:bsd-3)))
6401
f7ca1fa8
TS
6402(define-public ghc-intervals
6403 (package
6404 (name "ghc-intervals")
6405 (version "0.8.1")
6406 (source
6407 (origin
6408 (method url-fetch)
6409 (uri (string-append "https://hackage.haskell.org/package/"
6410 "intervals/intervals-" version ".tar.gz"))
6411 (sha256
6412 (base32
6413 "00vyxf3ba9d7aas3npfapr53w71fslgh69fczjb25axr66fvzqww"))))
6414 (build-system haskell-build-system)
6415 (inputs
6416 `(("ghc-distributive" ,ghc-distributive)))
6417 (native-inputs
6418 `(("cabal-doctest" ,cabal-doctest)
6419 ("ghc-doctest" ,ghc-doctest)
6420 ("ghc-quickcheck" ,ghc-quickcheck)))
6421 (arguments
6422 `(#:cabal-revision
6423 ("4" "1qx3q0v13l1zaln9zdk8chxpxhshbz5x0vqm0qda7d1kpv7h6a7r")))
6424 (home-page "https://github.com/ekmett/intervals")
6425 (synopsis "Interval arithmetic")
6426 (description "This library provides
6427@code{Numeric.Interval.Interval}, which represets a closed, convex set
6428of floating point values.")
6429 (license license:bsd-3)))
6430
dddbc90c
RV
6431(define-public ghc-invariant
6432 (package
6433 (name "ghc-invariant")
d3a0e0b4 6434 (version "0.5.3")
dddbc90c
RV
6435 (source
6436 (origin
6437 (method url-fetch)
6438 (uri (string-append
6439 "https://hackage.haskell.org/package/invariant/invariant-"
6440 version ".tar.gz"))
6441 (sha256
6442 (base32
d3a0e0b4 6443 "03245nhcqxx6b0yw81fzqaqd7cgllmx8awzhvs2xv7ys73pmsgnp"))))
dddbc90c
RV
6444 (build-system haskell-build-system)
6445 (inputs
6446 `(("ghc-bifunctors" ,ghc-bifunctors)
6447 ("ghc-comonad" ,ghc-comonad)
6448 ("ghc-contravariant" ,ghc-contravariant)
6449 ("ghc-profunctors" ,ghc-profunctors)
6450 ("ghc-semigroups" ,ghc-semigroups)
6451 ("ghc-statevar" ,ghc-statevar)
6452 ("ghc-tagged" ,ghc-tagged)
6453 ("ghc-th-abstraction" ,ghc-th-abstraction)
6454 ("ghc-transformers-compat" ,ghc-transformers-compat)
6455 ("ghc-unordered-containers" ,ghc-unordered-containers)))
6456 (native-inputs
6457 `(("ghc-hspec" ,ghc-hspec)
6458 ("ghc-quickcheck" ,ghc-quickcheck)
6459 ("hspec-discover" ,hspec-discover)))
6460 (home-page "https://github.com/nfrisby/invariant-functors")
6461 (synopsis "Haskell98 invariant functors")
6462 (description "Haskell98 invariant functors (also known as exponential
6463functors). For more information, see Edward Kmett's article
6464@uref{http://comonad.com/reader/2008/rotten-bananas/, Rotten Bananas}.")
6465 (license license:bsd-2)))
6466
6467(define-public ghc-io-streams
6468 (package
6469 (name "ghc-io-streams")
59e98d75 6470 (version "1.5.1.0")
dddbc90c
RV
6471 (source
6472 (origin
6473 (method url-fetch)
6474 (uri (string-append "https://hackage.haskell.org/package/"
6475 "io-streams/io-streams-" version ".tar.gz"))
6476 (sha256
6477 (base32
59e98d75 6478 "1c7byr943x41nxpc3bnz152fvfbmakafq2958wyf9qiyp2pz18la"))))
dddbc90c
RV
6479 (build-system haskell-build-system)
6480 (inputs
6481 `(("ghc-attoparsec" ,ghc-attoparsec)
6482 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
6483 ("ghc-network" ,ghc-network)
6484 ("ghc-primitive" ,ghc-primitive)
6485 ("ghc-vector" ,ghc-vector)
6486 ("ghc-zlib-bindings" ,ghc-zlib-bindings)))
6487 (native-inputs
6488 `(("ghc-hunit" ,ghc-hunit)
6489 ("ghc-quickcheck" ,ghc-quickcheck)
6490 ("ghc-test-framework" ,ghc-test-framework)
6491 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
6492 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
6493 ("ghc-zlib" ,ghc-zlib)))
3ef91e15 6494 (home-page "https://hackage.haskell.org/package/io-streams")
dddbc90c
RV
6495 (synopsis "Simple and composable stream I/O")
6496 (description "This library contains simple and easy-to-use
6497primitives for I/O using streams.")
6498 (license license:bsd-3)))
6499
6500(define-public ghc-io-streams-haproxy
6501 (package
6502 (name "ghc-io-streams-haproxy")
1a4fbc36 6503 (version "1.0.1.0")
dddbc90c
RV
6504 (source
6505 (origin
6506 (method url-fetch)
6507 (uri (string-append "https://hackage.haskell.org/package/"
6508 "io-streams-haproxy/io-streams-haproxy-"
6509 version ".tar.gz"))
6510 (sha256
6511 (base32
1a4fbc36 6512 "1dcn5hd4fiwyq7m01r6fi93vfvygca5s6mz87c78m0zyj29clkmp"))))
dddbc90c
RV
6513 (build-system haskell-build-system)
6514 (inputs
6515 `(("ghc-attoparsec" ,ghc-attoparsec)
6516 ("ghc-io-streams" ,ghc-io-streams)
6517 ("ghc-network" ,ghc-network)))
6518 (native-inputs
6519 `(("ghc-hunit" ,ghc-hunit)
6520 ("ghc-test-framework" ,ghc-test-framework)
6521 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
dddbc90c
RV
6522 (home-page "http://snapframework.com/")
6523 (synopsis "HAProxy protocol 1.5 support for io-streams")
6524 (description "HAProxy protocol version 1.5 support
6525(see @uref{http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt})
6526for applications using io-streams. The proxy protocol allows information
6527about a networked peer (like remote address and port) to be propagated
6528through a forwarding proxy that is configured to speak this protocol.")
6529 (license license:bsd-3)))
6530
6531(define-public ghc-iproute
6532 (package
6533 (name "ghc-iproute")
ec25d536 6534 (version "1.7.7")
dddbc90c
RV
6535 (source
6536 (origin
6537 (method url-fetch)
6538 (uri (string-append
6539 "https://hackage.haskell.org/package/iproute/iproute-"
6540 version
6541 ".tar.gz"))
6542 (sha256
6543 (base32
ec25d536 6544 "0gab5930nvzrpvisx3x43ydnp2rd4fbmy9cq1zpgqy1adx5gx8z6"))))
dddbc90c
RV
6545 (build-system haskell-build-system)
6546 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find System.ByteOrder,
6547 ; exported by ghc-byteorder. Doctest issue.
6548 (inputs
6549 `(("ghc-appar" ,ghc-appar)
6550 ("ghc-byteorder" ,ghc-byteorder)
6551 ("ghc-network" ,ghc-network)
6552 ("ghc-safe" ,ghc-safe)))
6553 (home-page "https://www.mew.org/~kazu/proj/iproute/")
6554 (synopsis "IP routing table")
6555 (description "IP Routing Table is a tree of IP ranges to search one of
6556them on the longest match base. It is a kind of TRIE with one way branching
6557removed. Both IPv4 and IPv6 are supported.")
6558 (license license:bsd-3)))
6559
4828e54e
TS
6560(define-public ghc-ipynb
6561 (package
6562 (name "ghc-ipynb")
6563 (version "0.1")
6564 (source
6565 (origin
6566 (method url-fetch)
6567 (uri (string-append "https://hackage.haskell.org/package/"
6568 "ipynb/ipynb-" version ".tar.gz"))
6569 (sha256
6570 (base32
6571 "0daadhzil4q573mqb0rpvjzm0vpkzgzqcimw480qpvlh6rhppwj5"))))
6572 (build-system haskell-build-system)
6573 (inputs
6574 `(("ghc-unordered-containers" ,ghc-unordered-containers)
6575 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
6576 ("ghc-aeson" ,ghc-aeson)
6577 ("ghc-semigroups" ,ghc-semigroups)))
6578 (native-inputs
6579 `(("ghc-tasty" ,ghc-tasty)
6580 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
6581 ("ghc-aeson-diff" ,ghc-aeson-diff)
6582 ("ghc-microlens-aeson" ,ghc-microlens-aeson)
6583 ("ghc-microlens" ,ghc-microlens)
6584 ("ghc-vector" ,ghc-vector)))
6585 (home-page "https://hackage.haskell.org/package/ipynb")
6586 (synopsis "Data structure for working with Jupyter notebooks")
6587 (description "This library defines a data structure for representing
6588Jupyter notebooks, along with @code{ToJSON} and @code{FromJSON}
6589instances for conversion to and from JSON .ipynb files.")
6590 (license license:bsd-3)))
6591
dddbc90c
RV
6592(define-public ghc-iwlib
6593 (package
6594 (name "ghc-iwlib")
6595 (version "0.1.0")
6596 (source
6597 (origin
6598 (method url-fetch)
6599 (uri (string-append "https://hackage.haskell.org/package/iwlib/iwlib-"
6600 version ".tar.gz"))
6601 (sha256
6602 (base32 "0khmfwql4vwj55idsxmhjhrbqzfir3g9wm5lmpvnf77mm95cfpdz"))))
6603 (build-system haskell-build-system)
54a5fd07
TS
6604 (arguments
6605 `(#:extra-directories ("wireless-tools")))
dddbc90c
RV
6606 (inputs
6607 `(("wireless-tools" ,wireless-tools)))
6608 (home-page "https://github.com/jaor/iwlib")
6609 (synopsis "Haskell binding to the iw wireless networking library")
6610 (description
6611 "IWlib is a thin Haskell binding to the iw C library. It provides
6612information about the current wireless network connections, and adapters on
6613supported systems.")
6614 (license license:bsd-3)))
6615
6616(define-public ghc-json
6617 (package
6618 (name "ghc-json")
0ad3d574 6619 (version "0.9.3")
dddbc90c
RV
6620 (source
6621 (origin
6622 (method url-fetch)
6623 (uri (string-append "https://hackage.haskell.org/package/json/"
6624 "json-" version ".tar.gz"))
6625 (sha256
6626 (base32
0ad3d574 6627 "1z8s3mfg76p2flqqd2wqsi96l5bg8k8w8m58zlv81pw3k7h1vbwb"))))
dddbc90c
RV
6628 (build-system haskell-build-system)
6629 (inputs
6630 `(("ghc-syb" ,ghc-syb)))
6631 (home-page "https://hackage.haskell.org/package/json")
6632 (synopsis "Serializes Haskell data to and from JSON")
6633 (description "This package provides a parser and pretty printer for
6634converting between Haskell values and JSON.
6635JSON (JavaScript Object Notation) is a lightweight data-interchange format.")
6636 (license license:bsd-3)))
6637
6638(define-public ghc-juicypixels
6639 (package
6640 (name "ghc-juicypixels")
b50b6004 6641 (version "3.3.4")
dddbc90c
RV
6642 (source (origin
6643 (method url-fetch)
6644 (uri (string-append "https://hackage.haskell.org/package/"
6645 "JuicyPixels/JuicyPixels-"
6646 version ".tar.gz"))
6647 (sha256
6648 (base32
b50b6004 6649 "0qacrnz2qcykj3f6c4k2p8qd31pa2slpv3ykfblgizrfh3401q6x"))))
dddbc90c 6650 (build-system haskell-build-system)
a023e7d0 6651 (outputs '("out" "static" "doc"))
dddbc90c
RV
6652 (inputs
6653 `(("ghc-zlib" ,ghc-zlib)
6654 ("ghc-vector" ,ghc-vector)
6655 ("ghc-primitive" ,ghc-primitive)
6656 ("ghc-mmap" ,ghc-mmap)))
6657 (home-page "https://github.com/Twinside/Juicy.Pixels")
6658 (synopsis "Picture loading and serialization library")
6659 (description
6660 "This library can load and store images in PNG, Bitmap, JPEG, Radiance,
6661TIFF and GIF formats.")
6662 (license license:bsd-3)))
6663
6664(define-public ghc-kan-extensions
6665 (package
6666 (name "ghc-kan-extensions")
6667 (version "5.2")
6668 (source
6669 (origin
6670 (method url-fetch)
6671 (uri (string-append
6672 "https://hackage.haskell.org/package/kan-extensions/kan-extensions-"
6673 version
6674 ".tar.gz"))
6675 (sha256
6676 (base32
6677 "1lyvyiwwh962j2nnnsqzlvp5zq6z8p3spvhmji99cjvldxc7wwkb"))))
6678 (build-system haskell-build-system)
6679 (inputs
6680 `(("ghc-adjunctions" ,ghc-adjunctions)
6681 ("ghc-comonad" ,ghc-comonad)
6682 ("ghc-contravariant" ,ghc-contravariant)
6683 ("ghc-distributive" ,ghc-distributive)
6684 ("ghc-free" ,ghc-free)
6685 ("ghc-invariant" ,ghc-invariant)
6686 ("ghc-semigroupoids" ,ghc-semigroupoids)
6687 ("ghc-tagged" ,ghc-tagged)
6688 ("ghc-transformers-compat" ,ghc-transformers-compat)))
6689 (home-page "https://github.com/ekmett/kan-extensions/")
6690 (synopsis "Kan extensions library")
6691 (description "This library provides Kan extensions, Kan lifts, various
6692forms of the Yoneda lemma, and (co)density (co)monads for Haskell.")
6693 (license license:bsd-3)))
6694
6695(define-public ghc-language-c
6696 (package
6697 (name "ghc-language-c")
4e1cf651 6698 (version "0.8.3")
dddbc90c
RV
6699 (source
6700 (origin
6701 (method url-fetch)
6702 (uri (string-append "https://hackage.haskell.org/package/"
6703 "language-c/language-c-" version ".tar.gz"))
6704 (sha256
6705 (base32
4e1cf651 6706 "0bi02jdirkys8v7flf39vrpla2a74z1z0sdhy9lb9v7cmcc6rmpk"))))
dddbc90c
RV
6707 (build-system haskell-build-system)
6708 (inputs `(("ghc-syb" ,ghc-syb)))
6709 (native-inputs
6710 `(("ghc-happy" ,ghc-happy)
6711 ("ghc-alex" ,ghc-alex)))
6712 (home-page "https://visq.github.io/language-c/")
6713 (synopsis "Analysis and generation of C code")
6714 (description
6715 "Language C is a Haskell library for the analysis and generation of C code.
6716It features a complete, well-tested parser and pretty printer for all of C99
6717and a large set of GNU extensions.")
6718 (license license:bsd-3)))
6719
6720(define-public ghc-language-glsl
6721 (package
6722 (name "ghc-language-glsl")
6723 (version "0.3.0")
6724 (source
6725 (origin
6726 (method url-fetch)
6727 (uri (string-append "https://hackage.haskell.org/package/"
6728 "language-glsl/language-glsl-" version ".tar.gz"))
6729 (sha256
6730 (base32
6731 "0hdg67ainlqpjjghg3qin6fg4p783m0zmjqh4rd5gyizwiplxkp1"))))
6732 (build-system haskell-build-system)
6733 (inputs `(("ghc-prettyclass" ,ghc-prettyclass)))
6734 (arguments
6735 `(#:tests? #f
6736 #:cabal-revision
6737 ("1" "10ac9pk4jy75k03j1ns4b5136l4kw8krr2d2nw2fdmpm5jzyghc5")))
3ef91e15 6738 (home-page "https://hackage.haskell.org/package/language-glsl")
dddbc90c
RV
6739 (synopsis "GLSL abstract syntax tree, parser, and pretty-printer")
6740 (description "This package is a Haskell library for the
6741representation, parsing, and pretty-printing of GLSL 1.50 code.")
6742 (license license:bsd-3)))
6743
6744(define-public ghc-language-haskell-extract
6745 (package
6746 (name "ghc-language-haskell-extract")
6747 (version "0.2.4")
6748 (source
6749 (origin
6750 (method url-fetch)
6751 (uri (string-append "https://hackage.haskell.org/package/"
6752 "language-haskell-extract-" version "/"
6753 "language-haskell-extract-" version ".tar.gz"))
6754 (sha256
6755 (base32
6756 "1nxcs7g8a1sp91bzpy4cj6s31k5pvc3gvig04cbrggv5cvjidnhl"))))
6757 (build-system haskell-build-system)
6758 (inputs
6759 `(("ghc-regex-posix" ,ghc-regex-posix)))
6760 (home-page "https://github.com/finnsson/template-helper")
6761 (synopsis "Haskell module to automatically extract functions from
6762the local code")
6763 (description "This package contains helper functions on top of
6764Template Haskell.
6765
6766For example, @code{functionExtractor} extracts all functions after a
6767regexp-pattern, which can be useful if you wish to extract all functions
6768beginning with @code{test} (for a test framework) or all functions beginning
6769with @code{wc} (for a web service).")
6770 (license license:bsd-3)))
6771
6772(define-public ghc-lens
6773 (package
6774 (name "ghc-lens")
262e6323 6775 (version "4.17.1")
dddbc90c
RV
6776 (source
6777 (origin
6778 (method url-fetch)
6779 (uri (string-append "https://hackage.haskell.org/package/lens/lens-"
6780 version ".tar.gz"))
6781 (sha256
6782 (base32
262e6323 6783 "1gpkc53l2cggnfrgg5k4ih82rycjbdvpj9pnbi5cq8ms0dbvs4a7"))))
dddbc90c 6784 (build-system haskell-build-system)
b35361e9 6785 (outputs '("out" "static" "doc"))
dddbc90c
RV
6786 (inputs
6787 `(("ghc-base-orphans" ,ghc-base-orphans)
6788 ("ghc-bifunctors" ,ghc-bifunctors)
6789 ("ghc-distributive" ,ghc-distributive)
6790 ("ghc-exceptions" ,ghc-exceptions)
6791 ("ghc-free" ,ghc-free)
6792 ("ghc-kan-extensions" ,ghc-kan-extensions)
6793 ("ghc-parallel" ,ghc-parallel)
6794 ("ghc-reflection" ,ghc-reflection)
6795 ("ghc-semigroupoids" ,ghc-semigroupoids)
6796 ("ghc-vector" ,ghc-vector)
6797 ("ghc-call-stack" ,ghc-call-stack)
6798 ("ghc-comonad" ,ghc-comonad)
6799 ("ghc-contravariant" ,ghc-contravariant)
6800 ("ghc-hashable" ,ghc-hashable)
6801 ("ghc-profunctors" ,ghc-profunctors)
6802 ("ghc-semigroups" ,ghc-semigroups)
6803 ("ghc-tagged" ,ghc-tagged)
6804 ("ghc-transformers-compat" ,ghc-transformers-compat)
6805 ("ghc-unordered-containers" ,ghc-unordered-containers)
6806 ("ghc-void" ,ghc-void)
6807 ("ghc-generic-deriving" ,ghc-generic-deriving)
6808 ("ghc-nats" ,ghc-nats)
6809 ("ghc-simple-reflect" ,ghc-simple-reflect)
6810 ("hlint" ,hlint)))
6811 (native-inputs
6812 `(("cabal-doctest" ,cabal-doctest)
6813 ("ghc-doctest" ,ghc-doctest)
6814 ("ghc-hunit" ,ghc-hunit)
6815 ("ghc-test-framework" ,ghc-test-framework)
6816 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
6817 ("ghc-test-framework-th" ,ghc-test-framework-th)
6818 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
6819 ("ghc-quickcheck" ,ghc-quickcheck)))
6820 (home-page "https://github.com/ekmett/lens/")
6821 (synopsis "Lenses, Folds and Traversals")
6822 (description "This library provides @code{Control.Lens}. The combinators
6823in @code{Control.Lens} provide a highly generic toolbox for composing families
6824of getters, folds, isomorphisms, traversals, setters and lenses and their
6825indexed variants.")
6826 (license license:bsd-3)))
6827
bcd35444
JS
6828(define-public ghc-lens-family-core
6829 (package
6830 (name "ghc-lens-family-core")
6831 (version "1.2.3")
6832 (source
6833 (origin
6834 (method url-fetch)
6835 (uri (string-append
6836 "mirror://hackage/package/lens-family-core/lens-family-core-"
6837 version
6838 ".tar.gz"))
6839 (sha256
6840 (base32
6841 "009rf10pj1cb50v44cc1pq7qvfrmkkk9dikahs9qmvbvgl3mykwi"))))
6842 (build-system haskell-build-system)
6843 (home-page
6844 "http://hackage.haskell.org/package/lens-family-core")
6845 (synopsis "Haskell 98 Lens Families")
6846 (description
6847 "This package provides first class functional references. In addition to
6848the usual operations of getting, setting and composition, plus integration
6849with the state monad, lens families provide some unique features:
6850
6851@itemize
6852@item Polymorphic updating
6853@item Traversals
6854@item Cast projection functions to read-only lenses
6855@item Cast @code{toList} functions to read-only traversals
6856@item Cast semantic editor combinators to modify-only traversals
6857@end itemize
6858
6859For optimal first-class support use the lens-family package with rank 2/rank N
6860polymorphism. @code{Lens.Family.Clone} allows for first-class support of
6861lenses and traversals for those who require Haskell 98.")
6862 (license license:bsd-3)))
6863
dddbc90c
RV
6864(define-public ghc-libffi
6865 (package
6866 (name "ghc-libffi")
6867 (version "0.1")
6868 (source
6869 (origin
6870 (method url-fetch)
6871 (uri (string-append "https://hackage.haskell.org/package/"
6872 "libffi/libffi-" version ".tar.gz"))
6873 (sha256
6874 (base32
6875 "0g7jnhng3j7z5517aaqga0144aamibsbpgm3yynwyfzkq1kp0f28"))))
6876 (build-system haskell-build-system)
6877 (native-inputs `(("pkg-config" ,pkg-config)))
6878 (inputs `(("libffi" ,libffi)))
3ef91e15 6879 (home-page "https://hackage.haskell.org/package/libffi")
dddbc90c
RV
6880 (synopsis "Haskell binding to libffi")
6881 (description
6882 "A binding to libffi, allowing C functions of types only known at runtime
6883to be called from Haskell.")
6884 (license license:bsd-3)))
6885
6886(define-public ghc-libmpd
6887 (package
6888 (name "ghc-libmpd")
bbf9845f 6889 (version "0.9.0.10")
dddbc90c
RV
6890 (source
6891 (origin
6892 (method url-fetch)
6893 (uri (string-append
6894 "mirror://hackage/package/libmpd/libmpd-"
6895 version
6896 ".tar.gz"))
6897 (sha256
6898 (base32
bbf9845f 6899 "0vy287mn1vk8kvij5i3hc0p02l886cpsq5dds7kl6g520si3abkb"))))
dddbc90c
RV
6900 (build-system haskell-build-system)
6901 ;; Tests fail on i686.
6902 ;; See https://github.com/vimus/libmpd-haskell/issues/112
6903 (arguments `(#:tests? #f))
6904 (inputs
6905 `(("ghc-attoparsec" ,ghc-attoparsec)
6906 ("ghc-old-locale" ,ghc-old-locale)
6907 ("ghc-data-default-class" ,ghc-data-default-class)
6908 ("ghc-network" ,ghc-network)
bbf9845f 6909 ("ghc-safe-exceptions" ,ghc-safe-exceptions)
dddbc90c
RV
6910 ("ghc-utf8-string" ,ghc-utf8-string)))
6911 (native-inputs
6912 `(("ghc-quickcheck" ,ghc-quickcheck)
6913 ("ghc-hspec" ,ghc-hspec)
6914 ("hspec-discover" ,hspec-discover)))
6915 (home-page "https://github.com/vimus/libmpd-haskell")
6916 (synopsis "Haskell client library for the Music Player Daemon")
6917 (description "This package provides a pure Haskell client library for the
6918Music Player Daemon.")
6919 (license license:expat)))
6920
e34df1c3
TS
6921(define-public ghc-lib-parser
6922 (package
6923 (name "ghc-lib-parser")
6924 (version "8.8.0.20190424")
6925 (source
6926 (origin
6927 (method url-fetch)
6928 (uri (string-append "https://hackage.haskell.org/package/"
6929 "ghc-lib-parser/ghc-lib-parser-" version ".tar.gz"))
6930 (sha256
6931 (base32
6932 "12gsh994pr13bsybwlravmi21la66dyw74pk74yfw2pnz682wv10"))))
6933 (build-system haskell-build-system)
7e62ebb3 6934 (outputs '("out" "static" "doc")) ; documentation is 39M
e34df1c3
TS
6935 (native-inputs
6936 `(("ghc-alex" ,ghc-alex)
6937 ("ghc-happy" ,ghc-happy)))
6938 (home-page "https://github.com/digital-asset/ghc-lib")
6939 (synopsis "The GHC API, decoupled from GHC versions")
6940 (description "This library implements the GHC API. It is like the
6941compiler-provided @code{ghc} package, but it can be loaded on many
6942compiler versions.")
6943 (license license:bsd-3)))
6944
dddbc90c
RV
6945(define-public ghc-libxml
6946 (package
6947 (name "ghc-libxml")
6948 (version "0.1.1")
6949 (source
6950 (origin
6951 (method url-fetch)
6952 (uri (string-append "https://hackage.haskell.org/package/libxml/"
6953 "libxml-" version ".tar.gz"))
6954 (sha256
6955 (base32
6956 "01zvk86kg726lf2vnlr7dxiz7g3xwi5a4ak9gcfbwyhynkzjmsfi"))))
6957 (build-system haskell-build-system)
6958 (inputs
6959 `(("libxml2" ,libxml2)))
6960 (arguments
6961 `(#:configure-flags
6962 `(,(string-append "--extra-include-dirs="
6963 (assoc-ref %build-inputs "libxml2")
6964 "/include/libxml2"))))
6965 (home-page "https://hackage.haskell.org/package/libxml")
6966 (synopsis "Haskell bindings to libxml2")
6967 (description
6968 "This library provides minimal Haskell binding to libxml2.")
6969 (license license:bsd-3)))
6970
0c2d6fc2
TS
6971(define-public ghc-libyaml
6972 (package
6973 (name "ghc-libyaml")
6974 (version "0.1.1.0")
6975 (source
6976 (origin
6977 (method url-fetch)
6978 (uri (string-append "https://hackage.haskell.org/package/"
6979 "libyaml/libyaml-" version ".tar.gz"))
6980 (sha256
6981 (base32
6982 "0psznm9c3yjsyj9aj8m2svvv9m2v0x90hnwarcx5sbswyi3l00va"))
6983 (modules '((guix build utils)))
6984 (snippet
6985 ;; Delete bundled LibYAML.
6986 '(begin
6987 (delete-file-recursively "libyaml_src")
6988 #t))))
6989 (build-system haskell-build-system)
6990 (arguments
54a5fd07
TS
6991 `(#:configure-flags `("--flags=system-libyaml")
6992 #:extra-directories ("libyaml")))
0c2d6fc2
TS
6993 (inputs
6994 `(("ghc-conduit" ,ghc-conduit)
6995 ("ghc-resourcet" ,ghc-resourcet)
1b35d303 6996 ("libyaml" ,libyaml)))
0c2d6fc2
TS
6997 (home-page "https://github.com/snoyberg/yaml#readme")
6998 (synopsis "Low-level, streaming YAML interface.")
6999 (description "This package provides a Haskell wrapper over the
7000LibYAML C library.")
7001 (license license:bsd-3)))
7002
dddbc90c
RV
7003(define-public ghc-lifted-async
7004 (package
7005 (name "ghc-lifted-async")
b5b6d7ea 7006 (version "0.10.0.4")
dddbc90c
RV
7007 (source
7008 (origin
7009 (method url-fetch)
7010 (uri (string-append
7011 "https://hackage.haskell.org/package/lifted-async/lifted-async-"
7012 version ".tar.gz"))
7013 (sha256
7014 (base32
b5b6d7ea 7015 "0cwl1d0wjpdk0v1l1qxiqiksmak950c8gx169c1q77cg0z18ijf9"))))
dddbc90c
RV
7016 (build-system haskell-build-system)
7017 (inputs
7018 `(("ghc-async" ,ghc-async)
7019 ("ghc-lifted-base" ,ghc-lifted-base)
7020 ("ghc-transformers-base" ,ghc-transformers-base)
7021 ("ghc-monad-control" ,ghc-monad-control)
7022 ("ghc-constraints" ,ghc-constraints)
7023 ("ghc-hunit" ,ghc-hunit)
7024 ("ghc-tasty" ,ghc-tasty)
7025 ("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)
7026 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7027 ("ghc-tasty-th" ,ghc-tasty-th)))
7028 (home-page "https://github.com/maoe/lifted-async")
7029 (synopsis "Run lifted IO operations asynchronously and wait for their results")
7030 (description
7031 "This package provides IO operations from @code{async} package lifted to any
7032instance of @code{MonadBase} or @code{MonadBaseControl}.")
7033 (license license:bsd-3)))
7034
7035(define-public ghc-lifted-base
7036 (package
7037 (name "ghc-lifted-base")
7038 (version "0.2.3.12")
7039 (source
7040 (origin
7041 (method url-fetch)
7042 (uri (string-append
7043 "https://hackage.haskell.org/package/lifted-base/lifted-base-"
7044 version
7045 ".tar.gz"))
7046 (sha256
7047 (base32
7048 "1i8p8d3rkdh21bhgjjh32vd7qqjr7jq7p59qds0aw2kmargsjd61"))))
7049 (build-system haskell-build-system)
7050 (arguments `(#:tests? #f)) ; FIXME: Missing testing libraries.
7051 (inputs
7052 `(("ghc-transformers-base" ,ghc-transformers-base)
7053 ("ghc-monad-control" ,ghc-monad-control)
7054 ("ghc-transformers-compat" ,ghc-transformers-compat)
7055 ("ghc-hunit" ,ghc-hunit)))
7056 (home-page "https://github.com/basvandijk/lifted-base")
7057 (synopsis "Lifted IO operations from the base library")
7058 (description "Lifted-base exports IO operations from the @code{base}
7059library lifted to any instance of @code{MonadBase} or @code{MonadBaseControl}.
7060Note that not all modules from @code{base} are converted yet. The package
7061includes a copy of the @code{monad-peel} test suite written by Anders
7062Kaseorg.")
7063 (license license:bsd-3)))
7064
7065(define-public ghc-linear
7066 (package
7067 (name "ghc-linear")
86526f37 7068 (version "1.20.9")
dddbc90c
RV
7069 (source
7070 (origin
7071 (method url-fetch)
7072 (uri (string-append "https://hackage.haskell.org/package/linear/"
7073 "linear-" version ".tar.gz"))
7074 (sha256
7075 (base32
86526f37 7076 "0h7yqigq593n7wsl7nz6a5f137wznm7y679wsii0ph0zsc4v5af5"))))
dddbc90c
RV
7077 (build-system haskell-build-system)
7078 (inputs
7079 `(("ghc-adjunctions" ,ghc-adjunctions)
7080 ("ghc-base-orphans" ,ghc-base-orphans)
7081 ("ghc-bytes" ,ghc-bytes)
7082 ("ghc-cereal" ,ghc-cereal)
7083 ("ghc-distributive" ,ghc-distributive)
7084 ("ghc-hashable" ,ghc-hashable)
7085 ("ghc-lens" ,ghc-lens)
7086 ("ghc-reflection" ,ghc-reflection)
7087 ("ghc-semigroups" ,ghc-semigroups)
7088 ("ghc-semigroupoids" ,ghc-semigroupoids)
7089 ("ghc-tagged" ,ghc-tagged)
7090 ("ghc-transformers-compat" ,ghc-transformers-compat)
7091 ("ghc-unordered-containers" ,ghc-unordered-containers)
7092 ("ghc-vector" ,ghc-vector)
7093 ("ghc-void" ,ghc-void)))
7094 (native-inputs
7095 `(("cabal-doctest" ,cabal-doctest)
7096 ("ghc-doctest" ,ghc-doctest)
7097 ("ghc-simple-reflect" ,ghc-simple-reflect)
7098 ("ghc-test-framework" ,ghc-test-framework)
7099 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
7100 ("ghc-hunit" ,ghc-hunit)))
702a1012 7101 (home-page "https://github.com/ekmett/linear/")
dddbc90c
RV
7102 (synopsis "Linear algebra library for Haskell")
7103 (description
7104 "This package provides types and combinators for linear algebra on free
7105vector spaces.")
7106 (license license:bsd-3)))
1307e4c7
JS
7107
7108(define-public ghc-listlike
7109 (package
7110 (name "ghc-listlike")
7111 (version "4.6.2")
7112 (source
7113 (origin
7114 (method url-fetch)
7115 (uri
7116 (string-append
7117 "https://hackage.haskell.org/package/ListLike/ListLike-"
7118 version ".tar.gz"))
7119 (sha256
7120 (base32
7121 "0m65x8yaq7q50gznln8mga2wrc8cvjx6gw9rim8s7xqcrx6y5zjh"))))
7122 (build-system haskell-build-system)
7123 (inputs
7124 `(("ghc-vector" ,ghc-vector)
7125 ("ghc-dlist" ,ghc-dlist)
7126 ("ghc-fmlist" ,ghc-fmlist)
7127 ("ghc-hunit" ,ghc-hunit)
7128 ("ghc-quickcheck" ,ghc-quickcheck)
7129 ("ghc-random" ,ghc-random)
7130 ("ghc-utf8-string" ,ghc-utf8-string)))
7131 (home-page "https://github.com/JohnLato/listlike")
7132 (synopsis "Generic support for list-like structures")
7133 (description "The ListLike module provides a common interface to the
7134various Haskell types that are list-like. Predefined interfaces include
7135standard Haskell lists, Arrays, ByteStrings, and lazy ByteStrings.
7136Custom types can easily be made ListLike instances as well.
7137
7138ListLike also provides for String-like types, such as String and
7139ByteString, for types that support input and output, and for types that
7140can handle infinite lists.")
7141 (license license:bsd-3)))
dddbc90c 7142
84436be0
J
7143(define-public ghc-llvm-hs-pure
7144 (package
7145 (name "ghc-llvm-hs-pure")
7146 (version "9.0.0")
7147 (source
7148 (origin
7149 (method url-fetch)
7150 (uri (string-append "https://hackage.haskell.org/package/llvm-hs-pure/"
7151 "llvm-hs-pure-" version ".tar.gz"))
7152 (sha256
7153 (base32
7154 "0pxb5ah8r5pzpz2ibqw3g9g1isigb4z7pbzfrwr8kmcjn74ab3kf"))))
7155 (build-system haskell-build-system)
7156 (inputs
7157 `(("ghc-attoparsec" ,ghc-attoparsec)
7158 ("ghc-fail" ,ghc-fail)
7159 ("ghc-unordered-containers" ,ghc-unordered-containers)))
7160 (native-inputs
7161 `(("ghc-tasty" ,ghc-tasty)
7162 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7163 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
7164 (home-page "https://github.com/llvm-hs/llvm-hs/")
7165 (synopsis "Pure Haskell LLVM functionality (no FFI)")
7166 (description "llvm-hs-pure is a set of pure Haskell types and functions
7167for interacting with LLVM. It includes an algebraic datatype (ADT) to represent
7168LLVM IR. The llvm-hs package builds on this one with FFI bindings to LLVM, but
7169llvm-hs-pure does not require LLVM to be available.")
7170 (license license:bsd-3)))
7171
e3ee8023
J
7172(define-public ghc-llvm-hs
7173 (package
7174 (name "ghc-llvm-hs")
7175 (version "9.0.1")
7176 (source
7177 (origin
7178 (method url-fetch)
7179 (uri (string-append "https://hackage.haskell.org/package/llvm-hs/llvm-hs-"
7180 version ".tar.gz"))
7181 (sha256
7182 (base32
7183 "0723xgh45h9cyxmmjsvxnsp8bpn1ljy4qgh7a7vqq3sj9d6wzq00"))))
7184 (build-system haskell-build-system)
7185 (inputs
7186 `(("ghc-attoparsec" ,ghc-attoparsec)
7187 ("ghc-exceptions" ,ghc-exceptions)
7188 ("ghc-utf8-string" ,ghc-utf8-string)
7189 ("ghc-llvm-hs-pure" ,ghc-llvm-hs-pure)
7190 ("llvm" ,llvm-9)))
7191 (native-inputs
7192 `(("ghc-tasty" ,ghc-tasty)
7193 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7194 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
7195 ("ghc-quickcheck" ,ghc-quickcheck)
7196 ("ghc-temporary" ,ghc-temporary)
7197 ("ghc-pretty-show" ,ghc-pretty-show)
7198 ("ghc-temporary" ,ghc-temporary)))
7199 (home-page "https://github.com/llvm-hs/llvm-hs/")
7200 (synopsis "General purpose LLVM bindings for Haskell")
7201 (description "llvm-hs is a set of Haskell bindings for LLVM. Unlike other
7202current Haskell bindings, it uses an algebraic datatype (ADT) to represent LLVM
7203IR, and so offers two advantages: it handles almost all of the stateful
7204complexities of using the LLVM API to build IR; and it supports moving IR not
7205only from Haskell into LLVM C++ objects, but the other direction - from LLVM C++
7206into Haskell.")
7207 (license license:bsd-3)))
7208
dddbc90c
RV
7209(define-public ghc-logging-facade
7210 (package
7211 (name "ghc-logging-facade")
7212 (version "0.3.0")
7213 (source (origin
7214 (method url-fetch)
7215 (uri (string-append "https://hackage.haskell.org/package/"
7216 "logging-facade/logging-facade-"
7217 version ".tar.gz"))
7218 (sha256
7219 (base32
7220 "0d0lwxxgd16is9aw6v3ps4r9prv3dj8xscmm45fvzq3nicjiawcf"))))
7221 (build-system haskell-build-system)
7222 (native-inputs
7223 `(("ghc-hspec" ,ghc-hspec)
7224 ("hspec-discover" ,hspec-discover)))
7225 (home-page "https://hackage.haskell.org/package/logging-facade")
7226 (synopsis "Simple logging abstraction that allows multiple back-ends")
7227 (description
7228 "This package provides a simple logging abstraction that allows multiple
7229back-ends.")
7230 (license license:expat)))
7231
7232(define-public ghc-logict
7233 (package
7234 (name "ghc-logict")
79d9326f 7235 (version "0.7.0.2")
dddbc90c
RV
7236 (source
7237 (origin
7238 (method url-fetch)
7239 (uri (string-append
7240 "https://hackage.haskell.org/package/logict/logict-"
7241 version
7242 ".tar.gz"))
7243 (sha256
7244 (base32
79d9326f 7245 "1xfgdsxg0lp8m0a2cb83rcxrnnc37asfikay2kydi933anh9ihfc"))))
dddbc90c 7246 (build-system haskell-build-system)
79d9326f
TS
7247 (native-inputs
7248 `(("ghc-tasty" ,ghc-tasty)
7249 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
dddbc90c
RV
7250 (home-page "http://code.haskell.org/~dolio/")
7251 (synopsis "Backtracking logic-programming monad")
7252 (description "This library provides a continuation-based, backtracking,
7253logic programming monad. An adaptation of the two-continuation implementation
7254found in the paper \"Backtracking, Interleaving, and Terminating Monad
7255Transformers\" available @uref{http://okmij.org/ftp/papers/LogicT.pdf,
7256online}.")
7257 (license license:bsd-3)))
7258
7259(define-public ghc-lzma
7260 (package
7261 (name "ghc-lzma")
7262 (version "0.0.0.3")
7263 (source
7264 (origin
7265 (method url-fetch)
7266 (uri (string-append "https://hackage.haskell.org/package/lzma/"
7267 "lzma-" version ".tar.gz"))
7268 (sha256
7269 (base32
7270 "0i416gqi8j55nd1pqbkxvf3f6hn6fjys6gq98lkkxphva71j30xg"))))
7271 (build-system haskell-build-system)
7272 (arguments
7273 '(#:tests? #f ; requires older versions of QuickCheck and tasty.
7274 #:cabal-revision
7275 ("3" "1sify6gnsalyp6dakfzi0mdy5jcz2kcp9jsdsgkmxd40nfzgd44m")))
7276 (native-inputs
7277 `(("ghc-hunit" ,ghc-hunit)
7278 ("ghc-quickcheck" ,ghc-quickcheck)
7279 ("ghc-tasty" ,ghc-tasty)
7280 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7281 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
7282 (home-page "https://github.com/hvr/lzma")
7283 (synopsis "LZMA/XZ compression and decompression")
7284 (description
7285 "This package provides a pure interface for compressing and
7286decompressing LZMA streams of data represented as lazy @code{ByteString}s. A
7287monadic incremental interface is provided as well.")
7288 (license license:bsd-3)))
7289
7290(define-public ghc-lzma-conduit
7291 (package
7292 (name "ghc-lzma-conduit")
7293 (version "1.2.1")
7294 (source
7295 (origin
7296 (method url-fetch)
7297 (uri (string-append "https://hackage.haskell.org/package/lzma-conduit/"
7298 "lzma-conduit-" version ".tar.gz"))
7299 (sha256
7300 (base32
7301 "0hm72da7xk9l3zxjh274yg444vf405djxqbkf3q3p2qhicmxlmg9"))))
7302 (build-system haskell-build-system)
7303 (inputs
7304 `(("ghc-conduit" ,ghc-conduit)
7305 ("ghc-lzma" ,ghc-lzma)
7306 ("ghc-resourcet" ,ghc-resourcet)))
7307 (native-inputs
7308 `(("ghc-base-compat" ,ghc-base-compat)
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 ("ghc-hunit" ,ghc-hunit)
7313 ("ghc-quickcheck" ,ghc-quickcheck)))
7314 (home-page "https://github.com/alphaHeavy/lzma-conduit")
7315 (synopsis "Conduit interface for lzma/xz compression")
7316 (description
7317 "This package provides a @code{Conduit} interface for the LZMA
7318compression algorithm used in the @code{.xz} file format.")
7319 (license license:bsd-3)))
7320
e405912c
KM
7321(define-public ghc-magic
7322 (package
7323 (name "ghc-magic")
7324 (version "1.1")
7325 (source
7326 (origin
7327 (method url-fetch)
7328 (uri (string-append
7329 "https://hackage.haskell.org/package/magic/magic-"
7330 version ".tar.gz"))
7331 (sha256
7332 (base32
7333 "10p0gjjjwr1dda7hahwrwn5njbfhl67arq3v3nf1jr3vymlkn75j"))))
7334 (build-system haskell-build-system)
3ef91e15 7335 (home-page "https://hackage.haskell.org/package/magic")
e405912c
KM
7336 (synopsis "Interface to C file/magic library")
7337 (description
7338 "This package provides a full-featured binding to the C libmagic library.
7339With it, you can determine the type of a file by examining its contents rather
7340than its name.")
7341 (license license:bsd-3)))
7342
bcfe9dba
JS
7343(define-public ghc-managed
7344 (package
7345 (name "ghc-managed")
7346 (version "1.0.6")
7347 (source
7348 (origin
7349 (method url-fetch)
7350 (uri (string-append
7351 "mirror://hackage/package/managed/managed-"
7352 version
7353 ".tar.gz"))
7354 (sha256
7355 (base32
7356 "1kbrw99yh5x5blykmx2n88mplbbi4ss1ij5j17b7asw6q0ihm9zi"))))
7357 (build-system haskell-build-system)
7358 (home-page "http://hackage.haskell.org/package/managed")
7359 (synopsis "Monad for managed values")
7360 (description
7361 "In Haskell you very often acquire values using the with... idiom using
7362functions of type (a -> IO r) -> IO r. This idiom forms a Monad, which is a
7363special case of the ContT monad (from transformers) or the Codensity
7364monad (from kan-extensions). The main purpose behind this package is to
7365provide a restricted form of these monads specialized to this unusually common
7366case.
7367
7368The reason this package defines a specialized version of these types
7369is to:
7370
7371@itemize
7372@item be more beginner-friendly,
7373@item simplify inferred types and error messages, and:
7374@item provide some additional type class instances that would otherwise be
7375orphan instances
7376@end itemize")
7377 (license license:bsd-3)))
7378
dddbc90c
RV
7379(define-public ghc-markdown-unlit
7380 (package
7381 (name "ghc-markdown-unlit")
7382 (version "0.5.0")
7383 (source (origin
7384 (method url-fetch)
7385 (uri (string-append
7386 "mirror://hackage/package/markdown-unlit/"
7387 "markdown-unlit-" version ".tar.gz"))
7388 (sha256
7389 (base32
7390 "1gy79vr85vcp13rdjh0hz7zv6daqqffww4j0cqn2lpjjh9xhsbg7"))))
7391 (build-system haskell-build-system)
7392 (inputs
7393 `(("ghc-base-compat" ,ghc-base-compat)
7394 ("ghc-hspec" ,ghc-hspec)
7395 ("ghc-quickcheck" ,ghc-quickcheck)
7396 ("ghc-silently" ,ghc-silently)
7397 ("ghc-stringbuilder" ,ghc-stringbuilder)
7398 ("ghc-temporary" ,ghc-temporary)
7399 ("hspec-discover" ,hspec-discover)))
7400 (home-page "https://github.com/sol/markdown-unlit#readme")
7401 (synopsis "Literate Haskell support for Markdown")
7402 (description "This package allows you to have a README.md that at the
7403same time is a literate Haskell program.")
7404 (license license:expat)))
7405
7406(define-public ghc-math-functions
7407 (package
7408 (name "ghc-math-functions")
b45de2bf 7409 (version "0.3.3.0")
dddbc90c
RV
7410 (source
7411 (origin
7412 (method url-fetch)
7413 (uri (string-append "https://hackage.haskell.org/package/"
7414 "math-functions-" version "/"
7415 "math-functions-" version ".tar.gz"))
7416 (sha256
7417 (base32
b45de2bf 7418 "1s5nbs40sc3r4z08n0j8bw40cy0zkp03fjjn3p27zkd4fvm9kib3"))))
dddbc90c
RV
7419 (build-system haskell-build-system)
7420 (arguments `(#:tests? #f)) ; FIXME: 1 test fails.
7421 (inputs
b45de2bf
TS
7422 `(("ghc-data-default-class" ,ghc-data-default-class)
7423 ("ghc-vector" ,ghc-vector)
dddbc90c
RV
7424 ("ghc-vector-th-unbox" ,ghc-vector-th-unbox)))
7425 (native-inputs
7426 `(("ghc-hunit" ,ghc-hunit)
7427 ("ghc-quickcheck" ,ghc-quickcheck)
7428 ("ghc-erf" ,ghc-erf)
7429 ("ghc-test-framework" ,ghc-test-framework)
7430 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
7431 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
7432 (home-page "https://github.com/bos/math-functions")
7433 (synopsis "Special functions and Chebyshev polynomials for Haskell")
7434 (description "This Haskell library provides implementations of
7435special mathematical functions and Chebyshev polynomials. These
7436functions are often useful in statistical and numerical computing.")
7437 (license license:bsd-3)))
7438
7439(define-public ghc-megaparsec
7440 (package
7441 (name "ghc-megaparsec")
03b0c92e 7442 (version "7.0.5")
dddbc90c
RV
7443 (source
7444 (origin
7445 (method url-fetch)
7446 (uri (string-append "https://hackage.haskell.org/package/"
7447 "megaparsec/megaparsec-"
7448 version ".tar.gz"))
7449 (sha256
7450 (base32
03b0c92e 7451 "0bqx1icbmk8s7wmbcdzsgnlh607c7kzg8l80cp02dxr5valjxp7j"))))
dddbc90c 7452 (build-system haskell-build-system)
dddbc90c
RV
7453 (inputs
7454 `(("ghc-case-insensitive" ,ghc-case-insensitive)
7455 ("ghc-parser-combinators" ,ghc-parser-combinators)
7456 ("ghc-scientific" ,ghc-scientific)))
7457 (native-inputs
7458 `(("ghc-quickcheck" ,ghc-quickcheck)
7459 ("ghc-hspec" ,ghc-hspec)
7460 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
7461 ("hspec-discover" ,hspec-discover)))
7462 (home-page "https://github.com/mrkkrp/megaparsec")
7463 (synopsis "Monadic parser combinators")
7464 (description
7465 "This is an industrial-strength monadic parser combinator library.
7466Megaparsec is a feature-rich package that strikes a nice balance between
7467speed, flexibility, and quality of parse errors.")
7468 (license license:bsd-2)))
7469
7470(define-public ghc-memory
7471 (package
7472 (name "ghc-memory")
d2c7d336 7473 (version "0.14.18")
dddbc90c
RV
7474 (source (origin
7475 (method url-fetch)
7476 (uri (string-append "https://hackage.haskell.org/package/"
7477 "memory/memory-" version ".tar.gz"))
7478 (sha256
7479 (base32
d2c7d336 7480 "01rmq3vagxzjmm96qnfxk4f0516cn12bp5m8inn8h5r918bqsigm"))))
dddbc90c
RV
7481 (build-system haskell-build-system)
7482 (inputs
7483 `(("ghc-basement" ,ghc-basement)
7484 ("ghc-foundation" ,ghc-foundation)))
7485 (native-inputs
7486 `(("ghc-tasty" ,ghc-tasty)
7487 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
7488 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
7489 (home-page "https://github.com/vincenthz/hs-memory")
7490 (synopsis "Memory abstractions for Haskell")
7491 (description
7492 "This package provides memory abstractions, such as chunk of memory,
7493polymorphic byte array management and manipulation functions. It contains a
7494polymorphic byte array abstraction and functions similar to strict ByteString,
7495different type of byte array abstraction, raw memory IO operations (memory
7496set, memory copy, ..) and more")
7497 (license license:bsd-3)))
7498
7499(define-public ghc-memotrie
7500 (package
7501 (name "ghc-memotrie")
7502 (version "0.6.9")
7503 (source
7504 (origin
7505 (method url-fetch)
7506 (uri (string-append
7507 "https://hackage.haskell.org/package/MemoTrie/MemoTrie-"
7508 version
7509 ".tar.gz"))
7510 (sha256
7511 (base32
7512 "157p0pi6rrq74a35mq6zkkycv4ah7xhkbrcmnkb9xf7pznw4aq0x"))))
7513 (build-system haskell-build-system)
7514 (inputs
7515 `(("ghc-newtype-generics" ,ghc-newtype-generics)))
7516 (home-page "https://github.com/conal/MemoTrie")
7517 (synopsis "Trie-based memo functions")
7518 (description "This package provides a functional library for creating
7519efficient memo functions using tries.")
7520 (license license:bsd-3)))
7521
7522(define-public ghc-microlens
7523 (package
7524 (name "ghc-microlens")
82478c58 7525 (version "0.4.10")
dddbc90c
RV
7526 (source
7527 (origin
7528 (method url-fetch)
7529 (uri (string-append "https://hackage.haskell.org/package/"
7530 "microlens-" version "/"
7531 "microlens-" version ".tar.gz"))
7532 (sha256
7533 (base32
82478c58 7534 "1v277yyy4p9q57xr2lfp6qs24agglfczmcabrapxrzci3jfshmcw"))))
dddbc90c
RV
7535 (build-system haskell-build-system)
7536 (home-page
7537 "https://github.com/aelve/microlens")
7538 (synopsis "Provides a tiny lens Haskell library with no dependencies")
7539 (description "This Haskell package provides a lens library, just like
7540@code{ghc-lens}, but smaller. It provides essential lenses and
7541traversals (like @code{_1} and @code{_Just}), as well as ones which are simply
7542nice to have (like @code{each}, @code{at}, and @code{ix}), and some
7543combinators (like @code{failing} and @code{singular}), but everything else is
7544stripped. As the result, this package has no dependencies.")
7545 (license license:bsd-3)))
7546
1cd3333e
TS
7547(define-public ghc-microlens-aeson
7548 (package
7549 (name "ghc-microlens-aeson")
7550 (version "2.3.0.4")
7551 (source
7552 (origin
7553 (method url-fetch)
7554 (uri (string-append "https://hackage.haskell.org/package/"
7555 "microlens-aeson/microlens-aeson-"
7556 version ".tar.gz"))
b4a00fec 7557 (patches (search-patches "ghc-microlens-aeson-fix-tests.patch"))
1cd3333e
TS
7558 (sha256
7559 (base32
7560 "0w630kk5bnily1qh41081gqgbwmslrh5ad21899gwnb2r3jripyw"))))
7561 (build-system haskell-build-system)
7562 (inputs
7563 `(("ghc-aeson" ,ghc-aeson)
7564 ("ghc-attoparsec" ,ghc-attoparsec)
7565 ("ghc-hashable" ,ghc-hashable)
7566 ("ghc-microlens" ,ghc-microlens)
7567 ("ghc-scientific" ,ghc-scientific)
7568 ("ghc-unordered-containers" ,ghc-unordered-containers)
7569 ("ghc-vector" ,ghc-vector)))
7570 (native-inputs
7571 `(("ghc-tasty" ,ghc-tasty)
7572 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
7573 (home-page "https://github.com/fosskers/microlens-aeson")
7574 (synopsis "Law-abiding lenses for Aeson, using microlens")
7575 (description "This library provides law-abiding lenses for Aeson, using
7576microlens.")
7577 (license license:expat)))
7578
dddbc90c
RV
7579(define-public ghc-microlens-ghc
7580 (package
7581 (name "ghc-microlens-ghc")
027beb55 7582 (version "0.4.10")
dddbc90c
RV
7583 (source
7584 (origin
7585 (method url-fetch)
7586 (uri (string-append
7587 "https://hackage.haskell.org/package/microlens-ghc/microlens-ghc-"
7588 version
7589 ".tar.gz"))
7590 (sha256
7591 (base32
027beb55 7592 "102dbrdsdadxbbhvx8avv1wbk84767a7lkb8ckp3zxk9g7qlly33"))))
dddbc90c
RV
7593 (build-system haskell-build-system)
7594 (inputs `(("ghc-microlens" ,ghc-microlens)))
7595 (home-page "https://github.com/monadfix/microlens")
7596 (synopsis "Use @code{microlens} with GHC libraries like @code{array}")
7597 (description "This library provides everything that @code{microlens}
7598provides plus instances to make @code{each}, @code{at}, and @code{ix}
7599usable with arrays, @code{ByteString}, and containers. This package is
7600a part of the @uref{http://hackage.haskell.org/package/microlens,
7601microlens} family; see the readme
7602@uref{https://github.com/aelve/microlens#readme, on Github}.")
7603 (license license:bsd-3)))
7604
7605(define-public ghc-microlens-mtl
7606 (package
7607 (name "ghc-microlens-mtl")
7608 (version "0.1.11.1")
7609 (source
7610 (origin
7611 (method url-fetch)
7612 (uri (string-append
7613 "https://hackage.haskell.org/package/microlens-mtl/microlens-mtl-"
7614 version
7615 ".tar.gz"))
7616 (sha256
7617 (base32
7618 "0l6z1gkzwcpv89bxf5vgfrjb6gq2pj7sjjc53nvi5b9alx34zryk"))))
7619 (build-system haskell-build-system)
7620 (inputs
7621 `(("ghc-microlens" ,ghc-microlens)
7622 ("ghc-transformers-compat" ,ghc-transformers-compat)))
7623 (home-page "https://github.com/monadfix/microlens")
7624 (synopsis
7625 "@code{microlens} support for Reader/Writer/State from mtl")
7626 (description
7627 "This package contains functions (like @code{view} or @code{+=}) which
7628work on @code{MonadReader}, @code{MonadWriter}, and @code{MonadState} from the
7629mtl package. This package is a part of the
7630@uref{http://hackage.haskell.org/package/microlens, microlens} family; see the
7631readme @uref{https://github.com/aelve/microlens#readme, on Github}.")
7632 (license license:bsd-3)))
7633
7634(define-public ghc-microlens-platform
7635 (package
7636 (name "ghc-microlens-platform")
85decc1f 7637 (version "0.3.11")
dddbc90c
RV
7638 (source
7639 (origin
7640 (method url-fetch)
7641 (uri (string-append
7642 "https://hackage.haskell.org/package/"
7643 "microlens-platform/microlens-platform-" version ".tar.gz"))
7644 (sha256
7645 (base32
85decc1f 7646 "18950lxgmsg5ksvyyi3zs1smjmb1qf1q73a3p3g44bh21miz0xwb"))))
dddbc90c
RV
7647 (build-system haskell-build-system)
7648 (inputs
7649 `(("ghc-hashable" ,ghc-hashable)
7650 ("ghc-microlens" ,ghc-microlens)
7651 ("ghc-microlens-ghc" ,ghc-microlens-ghc)
7652 ("ghc-microlens-mtl" ,ghc-microlens-mtl)
7653 ("ghc-microlens-th" ,ghc-microlens-th)
7654 ("ghc-unordered-containers" ,ghc-unordered-containers)
7655 ("ghc-vector" ,ghc-vector)))
7656 (home-page "https://github.com/monadfix/microlens")
7657 (synopsis "Feature-complete microlens")
7658 (description
7659 "This package exports a module which is the recommended starting point
7660for using @uref{http://hackage.haskell.org/package/microlens, microlens} if
7661you aren't trying to keep your dependencies minimal. By importing
7662@code{Lens.Micro.Platform} you get all functions and instances from
7663@uref{http://hackage.haskell.org/package/microlens, microlens},
7664@uref{http://hackage.haskell.org/package/microlens-th, microlens-th},
7665@uref{http://hackage.haskell.org/package/microlens-mtl, microlens-mtl},
7666@uref{http://hackage.haskell.org/package/microlens-ghc, microlens-ghc}, as
7667well as instances for @code{Vector}, @code{Text}, and @code{HashMap}. The
7668minor and major versions of @code{microlens-platform} are incremented whenever
7669the minor and major versions of any other @code{microlens} package are
7670incremented, so you can depend on the exact version of
7671@code{microlens-platform} without specifying the version of @code{microlens}
7672you need. This package is a part of the
7673@uref{http://hackage.haskell.org/package/microlens, microlens} family; see the
7674readme @uref{https://github.com/aelve/microlens#readme, on Github}.")
7675 (license license:bsd-3)))
7676
7677(define-public ghc-microlens-th
7678 (package
7679 (name "ghc-microlens-th")
7ae52867 7680 (version "0.4.2.3")
dddbc90c
RV
7681 (source
7682 (origin
7683 (method url-fetch)
7684 (uri (string-append "https://hackage.haskell.org/package/"
7685 "microlens-th-" version "/"
7686 "microlens-th-" version ".tar.gz"))
7687 (sha256
7688 (base32
7ae52867 7689 "13qw0pwcgd6f6i39rwgqwcwk1d4da5x7wv3gna7gdlxaq331h41j"))))
dddbc90c 7690 (build-system haskell-build-system)
7ae52867
TS
7691 (arguments
7692 `(#:cabal-revision
7693 ("1" "167in7b1qhgrspx81bdm2jyg9qji66sk7id282c0s99kmp0d01n6")))
dddbc90c
RV
7694 (inputs `(("ghc-microlens" ,ghc-microlens)
7695 ("ghc-th-abstraction" ,ghc-th-abstraction)))
7696 (home-page
7697 "https://github.com/aelve/microlens")
7698 (synopsis "Automatic generation of record lenses for
7699@code{ghc-microlens}")
7700 (description "This Haskell package lets you automatically generate lenses
7701for data types; code was extracted from the lens package, and therefore
7702generated lenses are fully compatible with ones generated by lens (and can be
7703used both from lens and microlens).")
7704 (license license:bsd-3)))
7705
7706(define-public ghc-missingh
7707 (package
7708 (name "ghc-missingh")
641207cb 7709 (version "1.4.1.0")
dddbc90c
RV
7710 (source
7711 (origin
7712 (method url-fetch)
7713 (uri (string-append "https://hackage.haskell.org/package/MissingH/"
7714 "MissingH-" version ".tar.gz"))
7715 (sha256
7716 (base32
641207cb 7717 "1jp0vk6w9a7fzrbxfhx773105jp2s1n50klq9ak6spfl7bgx5v29"))))
dddbc90c
RV
7718 (build-system haskell-build-system)
7719 ;; Tests require the unmaintained testpack package, which depends on the
7720 ;; outdated QuickCheck version 2.7, which can no longer be built with
7721 ;; recent versions of GHC and Haskell libraries.
7722 (arguments '(#:tests? #f))
7723 (inputs
7724 `(("ghc-network" ,ghc-network)
7725 ("ghc-hunit" ,ghc-hunit)
7726 ("ghc-regex-compat" ,ghc-regex-compat)
7727 ("ghc-hslogger" ,ghc-hslogger)
7728 ("ghc-random" ,ghc-random)
7729 ("ghc-old-time" ,ghc-old-time)
7730 ("ghc-old-locale" ,ghc-old-locale)))
7731 (native-inputs
7732 `(("ghc-errorcall-eq-instance" ,ghc-errorcall-eq-instance)
7733 ("ghc-quickcheck" ,ghc-quickcheck)
7734 ("ghc-hunit" ,ghc-hunit)))
f1841ccf
TGR
7735 ;; ‘Official’ <http://software.complete.org/missingh> redirects to a 404.
7736 (home-page "https://github.com/haskell-hvr/missingh")
dddbc90c
RV
7737 (synopsis "Large utility library")
7738 (description
7739 "MissingH is a library of all sorts of utility functions for Haskell
7740programmers. It is written in pure Haskell and thus should be extremely
7741portable and easy to use.")
7742 (license license:bsd-3)))
7743
7744(define-public ghc-mmap
7745 (package
7746 (name "ghc-mmap")
7747 (version "0.5.9")
7748 (source (origin
7749 (method url-fetch)
7750 (uri (string-append "https://hackage.haskell.org/package/"
7751 "mmap/mmap-" version ".tar.gz"))
7752 (sha256
7753 (base32
7754 "1y5mk3yf4b8r6rzmlx1xqn4skaigrqnv08sqq0v7r3nbw42bpz2q"))))
7755 (build-system haskell-build-system)
7756 (home-page "https://hackage.haskell.org/package/mmap")
7757 (synopsis "Memory mapped files for Haskell")
7758 (description
7759 "This library provides a wrapper to @code{mmap}, allowing files or
7760devices to be lazily loaded into memory as strict or lazy @code{ByteStrings},
7761@code{ForeignPtrs} or plain @code{Ptrs}, using the virtual memory subsystem to
7762do on-demand loading.")
7763 (license license:bsd-3)))
7764
7765(define-public ghc-mmorph
7766 (package
7767 (name "ghc-mmorph")
e0389704 7768 (version "1.1.3")
dddbc90c
RV
7769 (source
7770 (origin
7771 (method url-fetch)
7772 (uri (string-append
7773 "https://hackage.haskell.org/package/mmorph/mmorph-"
7774 version
7775 ".tar.gz"))
7776 (sha256
7777 (base32
e0389704 7778 "0rfsy9n9mlinpmqi2s17fhc67fzma2ig5fbmh6m5m830canzf8vr"))))
dddbc90c
RV
7779 (build-system haskell-build-system)
7780 (inputs
7781 `(("ghc-transformers-compat" ,ghc-transformers-compat)))
7782 (home-page "https://hackage.haskell.org/package/mmorph")
7783 (synopsis "Monad morphisms")
7784 (description
7785 "This library provides monad morphism utilities, most commonly used for
7786manipulating monad transformer stacks.")
7787 (license license:bsd-3)))
7788
7789(define-public ghc-mockery
7790 (package
7791 (name "ghc-mockery")
7792 (version "0.3.5")
7793 (source (origin
7794 (method url-fetch)
7795 (uri (string-append "https://hackage.haskell.org/package/"
7796 "mockery/mockery-" version ".tar.gz"))
7797 (sha256
7798 (base32
7799 "09ypgm3z69gq8mj6y66ss58kbjnk15r8frwcwbqcfbfksfnfv8dp"))))
7800 (build-system haskell-build-system)
7801 (inputs
7802 `(("ghc-temporary" ,ghc-temporary)
7803 ("ghc-logging-facade" ,ghc-logging-facade)
7804 ("ghc-base-compat" ,ghc-base-compat)))
7805 (native-inputs
7806 `(("ghc-hspec" ,ghc-hspec)
7807 ("hspec-discover" ,hspec-discover)))
7808 (home-page "https://hackage.haskell.org/package/mockery")
7809 (synopsis "Support functions for automated testing")
7810 (description
7811 "The mockery package provides support functions for automated testing.")
7812 (license license:expat)))
7813
7814(define-public ghc-monad-control
7815 (package
7816 (name "ghc-monad-control")
7817 (version "1.0.2.3")
7818 (source
7819 (origin
7820 (method url-fetch)
7821 (uri (string-append
7822 "https://hackage.haskell.org/package/monad-control"
7823 "/monad-control-" version ".tar.gz"))
7824 (sha256
7825 (base32
7826 "1c92833gr6cadidjdp8mlznkpp8lyxl0w3y7d19y8yi3klc3843c"))))
7827 (build-system haskell-build-system)
7828 (inputs
7829 `(("ghc-transformers-base" ,ghc-transformers-base)
7830 ("ghc-transformers-compat" ,ghc-transformers-compat)))
7831 (home-page "https://github.com/basvandijk/monad-control")
7832 (synopsis "Monad transformers to lift control operations like exception
7833catching")
7834 (description "This package defines the type class @code{MonadBaseControl},
7835a subset of @code{MonadBase} into which generic control operations such as
7836@code{catch} can be lifted from @code{IO} or any other base monad.")
7837 (license license:bsd-3)))
7838
7839(define-public ghc-monad-logger
7840 (package
7841 (name "ghc-monad-logger")
26980aae 7842 (version "0.3.30")
dddbc90c
RV
7843 (source
7844 (origin
7845 (method url-fetch)
7846 (uri (string-append "https://hackage.haskell.org/package/"
7847 "monad-logger-" version "/"
7848 "monad-logger-" version ".tar.gz"))
7849 (sha256
7850 (base32
26980aae 7851 "102l0v75hbvkmrypiyg4ybb6rbc7nij5nxs1aihmqfdpg04rkkp7"))))
dddbc90c
RV
7852 (build-system haskell-build-system)
7853 (inputs `(("ghc-transformers-compat" ,ghc-transformers-compat)
7854 ("ghc-stm-chans" ,ghc-stm-chans)
7855 ("ghc-lifted-base" ,ghc-lifted-base)
7856 ("ghc-resourcet" ,ghc-resourcet)
7857 ("ghc-conduit" ,ghc-conduit)
7858 ("ghc-conduit-extra" ,ghc-conduit-extra)
7859 ("ghc-fast-logger" ,ghc-fast-logger)
7860 ("ghc-transformers-base" ,ghc-transformers-base)
7861 ("ghc-monad-control" ,ghc-monad-control)
7862 ("ghc-monad-loops" ,ghc-monad-loops)
7863 ("ghc-blaze-builder" ,ghc-blaze-builder)
7864 ("ghc-exceptions" ,ghc-exceptions)))
7865 (home-page "https://github.com/kazu-yamamoto/logger")
7866 (synopsis "Provides a class of monads which can log messages for Haskell")
7867 (description "This Haskell package uses a monad transformer approach
7868for logging.
7869
7870This package provides Template Haskell functions for determining source
7871code locations of messages.")
7872 (license license:expat)))
7873
7874(define-public ghc-monad-loops
7875 (package
7876 (name "ghc-monad-loops")
7877 (version "0.4.3")
7878 (source
7879 (origin
7880 (method url-fetch)
7881 (uri (string-append "https://hackage.haskell.org/package/"
7882 "monad-loops-" version "/"
7883 "monad-loops-" version ".tar.gz"))
7884 (sha256
7885 (base32
7886 "062c2sn3hc8h50p1mhqkpyv6x8dydz2zh3ridvlfjq9nqimszaky"))))
7887 (build-system haskell-build-system)
7888 (native-inputs `(("ghc-tasty" ,ghc-tasty)
7889 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
7890 (home-page "https://github.com/mokus0/monad-loops")
7891 (synopsis "Monadic loops for Haskell")
7892 (description "This Haskell package provides some useful control
7893operators for looping.")
7894 (license license:public-domain)))
7895
7896(define-public ghc-monad-par
7897 (package
7898 (name "ghc-monad-par")
7899 (version "0.3.4.8")
7900 (source
7901 (origin
7902 (method url-fetch)
7903 (uri (string-append "https://hackage.haskell.org/package/"
7904 "monad-par-" version "/"
7905 "monad-par-" version ".tar.gz"))
faac56f3 7906 (patches (search-patches "ghc-monad-par-fix-tests.patch"))
dddbc90c
RV
7907 (sha256
7908 (base32
7909 "0ldrzqy24fsszvn2a2nr77m2ih7xm0h9bgkjyv1l274aj18xyk7q"))))
7910 (build-system haskell-build-system)
7911 (inputs `(("ghc-abstract-par" ,ghc-abstract-par)
7912 ("ghc-abstract-deque" ,ghc-abstract-deque)
7913 ("ghc-monad-par-extras" ,ghc-monad-par-extras)
7914 ("ghc-mwc-random" ,ghc-mwc-random)
7915 ("ghc-parallel" ,ghc-parallel)))
7916 (native-inputs `(("ghc-quickcheck" ,ghc-quickcheck)
7917 ("ghc-hunit" ,ghc-hunit)
7918 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
7919 ("ghc-test-framework-quickcheck2"
7920 ,ghc-test-framework-quickcheck2)
7921 ("ghc-test-framework" ,ghc-test-framework)
7922 ("ghc-test-framework-th" ,ghc-test-framework-th)))
7923 (home-page "https://github.com/simonmar/monad-par")
7924 (synopsis "Haskell library for parallel programming based on a monad")
7925 (description "The @code{Par} monad offers an API for parallel
7926programming. The library works for parallelising both pure and @code{IO}
7927computations, although only the pure version is deterministic. The default
7928implementation provides a work-stealing scheduler and supports forking tasks
7929that are much lighter weight than IO-threads.")
7930 (license license:bsd-3)))
7931
7932(define-public ghc-monad-par-extras
7933 (package
7934 (name "ghc-monad-par-extras")
7935 (version "0.3.3")
7936 (source
7937 (origin
7938 (method url-fetch)
7939 (uri (string-append "https://hackage.haskell.org/package/"
7940 "monad-par-extras-" version "/"
7941 "monad-par-extras-" version ".tar.gz"))
7942 (sha256
7943 (base32
7944 "0bl4bd6jzdc5zm20q1g67ppkfh6j6yn8fwj6msjayj621cck67p2"))))
7945 (build-system haskell-build-system)
7946 (inputs `(("ghc-abstract-par" ,ghc-abstract-par)
7947 ("ghc-cereal" ,ghc-cereal)
7948 ("ghc-random" ,ghc-random)))
7949 (home-page "https://github.com/simonmar/monad-par")
7950 (synopsis "Combinators and extra features for Par monads for Haskell")
7951 (description "This Haskell package provides additional data structures,
7952and other added capabilities layered on top of the @code{Par} monad.")
7953 (license license:bsd-3)))
7954
dddbc90c
RV
7955(define-public ghc-monadrandom
7956 (package
7957 (name "ghc-monadrandom")
7958 (version "0.5.1.1")
7959 (source
7960 (origin
7961 (method url-fetch)
7962 (uri (string-append "https://hackage.haskell.org/package/"
7963 "MonadRandom-" version "/"
7964 "MonadRandom-" version ".tar.gz"))
7965 (sha256
7966 (base32
7967 "0w44jl1n3kqvqaflh82l1wj3xxbhzfs3kf4m8rk7w6fgg8llmnmb"))))
7968 (build-system haskell-build-system)
7969 (inputs `(("ghc-transformers-compat" ,ghc-transformers-compat)
7970 ("ghc-primitive" ,ghc-primitive)
7971 ("ghc-fail" ,ghc-fail)
7972 ("ghc-random" ,ghc-random)))
7973 (home-page "https://github.com/byorgey/MonadRandom")
7974 (synopsis "Random-number generation monad for Haskell")
7975 (description "This Haskell package provides support for computations
7976which consume random values.")
7977 (license license:bsd-3)))
7978
7979(define-public ghc-monads-tf
7980 (package
7981 (name "ghc-monads-tf")
7982 (version "0.1.0.3")
7983 (source
7984 (origin
7985 (method url-fetch)
7986 (uri (string-append
7987 "https://hackage.haskell.org/package/monads-tf/monads-tf-"
7988 version ".tar.gz"))
7989 (sha256
7990 (base32
7991 "1wdhskwa6dw8qljbvwpyxj8ca6y95q2np7z4y4q6bpf4anmd5794"))))
7992 (build-system haskell-build-system)
7993 (home-page "https://hackage.haskell.org/package/monads-tf")
7994 (synopsis "Monad classes, using type families")
7995 (description
7996 "Monad classes using type families, with instances for various monad transformers,
7997inspired by the paper 'Functional Programming with Overloading and Higher-Order
7998Polymorphism', by Mark P Jones. This package is almost a compatible replacement for
7999the @code{mtl-tf} package.")
8000 (license license:bsd-3)))
8001
8002(define-public ghc-mono-traversable
8003 (package
8004 (name "ghc-mono-traversable")
23bb445b 8005 (version "1.0.13.0")
dddbc90c
RV
8006 (source
8007 (origin
8008 (method url-fetch)
8009 (uri (string-append "https://hackage.haskell.org/package/"
8010 "mono-traversable-" version "/"
8011 "mono-traversable-" version ".tar.gz"))
8012 (sha256
8013 (base32
23bb445b 8014 "1bqy982lpdb83lacfy76n8kqw5bvd31avxj25kg8gkgycdh0g0ma"))))
dddbc90c 8015 (build-system haskell-build-system)
3e6ecfeb 8016 (outputs '("out" "static" "doc"))
dddbc90c
RV
8017 (inputs `(("ghc-unordered-containers" ,ghc-unordered-containers)
8018 ("ghc-hashable" ,ghc-hashable)
8019 ("ghc-vector" ,ghc-vector)
8020 ("ghc-vector-algorithms" ,ghc-vector-algorithms)
8021 ("ghc-split" ,ghc-split)))
8022 (native-inputs `(("ghc-hspec" ,ghc-hspec)
8023 ("ghc-hunit" ,ghc-hunit)
8024 ("ghc-quickcheck" ,ghc-quickcheck)
8025 ("ghc-semigroups" ,ghc-semigroups)
8026 ("ghc-foldl" ,ghc-foldl)))
8027 (home-page "https://github.com/snoyberg/mono-traversable")
8028 (synopsis "Haskell classes for mapping, folding, and traversing monomorphic
8029containers")
8030 (description "This Haskell package provides Monomorphic variants of the
8031Functor, Foldable, and Traversable typeclasses. If you understand Haskell's
8032basic typeclasses, you understand mono-traversable. In addition to what
8033you are used to, it adds on an IsSequence typeclass and has code for marking
8034data structures as non-empty.")
8035 (license license:expat)))
8036
471e77cf
TS
8037(define-public ghc-monoid-extras
8038 (package
8039 (name "ghc-monoid-extras")
8040 (version "0.5.1")
8041 (source
8042 (origin
8043 (method url-fetch)
8044 (uri (string-append "https://hackage.haskell.org/package/"
8045 "monoid-extras/monoid-extras-" version ".tar.gz"))
8046 (sha256
8047 (base32
8048 "0xfrkgqn9d31z54l617m3w3kkd5m9vjb4yl247r3zzql3mpb1f37"))))
8049 (build-system haskell-build-system)
8050 (inputs
8051 `(("ghc-groups" ,ghc-groups)
8052 ("ghc-semigroups" ,ghc-semigroups)
8053 ("ghc-semigroupoids" ,ghc-semigroupoids)))
8054 (arguments
8055 `(#:cabal-revision
8056 ("1" "0b8x5d6vh7mpigvjvcd8f38a1nyzn1vfdqypslw7z9fgsr742913")))
8057 (home-page "https://hackage.haskell.org/package/monoid-extras")
8058 (synopsis "Various extra monoid-related definitions and utilities")
8059 (description "This package provides various extra monoid-related
8060definitions and utilities, such as monoid actions, monoid coproducts,
8061semi-direct products, \"deletable\" monoids, \"split\" monoids, and
8062\"cut\" monoids.")
8063 (license license:bsd-3)))
8064
4759b617
JS
8065(define-public ghc-mtl-compat
8066 (package
8067 (name "ghc-mtl-compat")
8068 (version "0.2.2")
8069 (source
8070 (origin
8071 (method url-fetch)
8072 (uri (string-append
8073 "mirror://hackage/package/mtl-compat/mtl-compat-"
8074 version
8075 ".tar.gz"))
8076 (sha256
8077 (base32
8078 "17iszr5yb4f17g8mq6i74hsamii8z6m2qfsmgzs78mhiwa7kjm8r"))))
8079 (build-system haskell-build-system)
8080 (home-page
8081 "https://github.com/haskell-compat/mtl-compat")
8082 (synopsis
8083 "Backported Control.Monad.Except module from mtl")
8084 (description
8085 "This package backports the Control.Monad.Except module from mtl (if
8086using mtl-2.2.0.1 or earlier), which reexports the ExceptT monad transformer
8087and the MonadError class.
8088
8089This package should only be used if there is a need to use the
8090Control.Monad.Except module specifically. If you just want the mtl class
8091instances for ExceptT, use transformers-compat instead, since mtl-compat does
8092nothing but reexport the instances from that package.
8093
8094Note that unlike how mtl-2.2 or later works, the Control.Monad.Except
8095module defined in this package exports all of ExceptT's monad class instances.
8096Therefore, you may have to declare @code{import Control.Monad.Except ()} at
8097the top of your file to get all of the ExceptT instances in scope.")
8098 (license license:bsd-3)))
8099
dddbc90c
RV
8100(define-public ghc-murmur-hash
8101 (package
8102 (name "ghc-murmur-hash")
8103 (version "0.1.0.9")
8104 (source
8105 (origin
8106 (method url-fetch)
8107 (uri (string-append "https://hackage.haskell.org/package/murmur-hash"
8108 "/murmur-hash-" version ".tar.gz"))
8109 (sha256
8110 (base32 "1bb58kfnzvx3mpc0rc0dhqc1fk36nm8prd6gvf20gk6lxaadpfc9"))))
8111 (build-system haskell-build-system)
8112 (home-page "https://github.com/nominolo/murmur-hash")
8113 (synopsis "MurmurHash2 implementation for Haskell")
8114 (description
8115 "This package provides an implementation of MurmurHash2, a good, fast,
8116general-purpose, non-cryptographic hashing function. See
8117@url{https://sites.google.com/site/murmurhash/} for details. This
8118implementation is pure Haskell, so it might be a bit slower than a C FFI
8119binding.")
8120 (license license:bsd-3)))
8121
8122(define-public ghc-mwc-random
8123 (package
8124 (name "ghc-mwc-random")
33268e2c 8125 (version "0.14.0.0")
dddbc90c
RV
8126 (source
8127 (origin
8128 (method url-fetch)
8129 (uri (string-append "https://hackage.haskell.org/package/"
8130 "mwc-random-" version "/"
8131 "mwc-random-" version ".tar.gz"))
8132 (sha256
8133 (base32
33268e2c 8134 "18pg24sw3b79b32cwx8q01q4k0lm34mwr3l6cdkchl8alvd0wdq0"))))
dddbc90c
RV
8135 (build-system haskell-build-system)
8136 (inputs
8137 `(("ghc-primitive" ,ghc-primitive)
8138 ("ghc-vector" ,ghc-vector)
8139 ("ghc-math-functions" ,ghc-math-functions)))
8140 (arguments
8141 `(#:tests? #f)) ; FIXME: Test-Suite `spec` fails.
8142 (native-inputs
8143 `(("ghc-hunit" ,ghc-hunit)
8144 ("ghc-quickcheck" ,ghc-quickcheck)
8145 ("ghc-test-framework" ,ghc-test-framework)
8146 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
8147 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
8148 (home-page "https://github.com/bos/mwc-random")
8149 (synopsis "Random number generation library for Haskell")
8150 (description "This Haskell package contains code for generating
8151high quality random numbers that follow either a uniform or normal
8152distribution. The generated numbers are suitable for use in
8153statistical applications.
8154
8155The uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222)
8156multiply-with-carry generator, which has a period of 2^{8222} and
8157fares well in tests of randomness. It is also extremely fast,
8158between 2 and 3 times faster than the Mersenne Twister.")
8159 (license license:bsd-3)))
8160
8161(define-public ghc-nats
8162 (package
8163 (name "ghc-nats")
8164 (version "1.1.2")
8165 (source
8166 (origin
8167 (method url-fetch)
8168 (uri (string-append
8169 "https://hackage.haskell.org/package/nats/nats-"
8170 version
8171 ".tar.gz"))
8172 (sha256
8173 (base32
8174 "1v40drmhixck3pz3mdfghamh73l4rp71mzcviipv1y8jhrfxilmr"))))
8175 (build-system haskell-build-system)
8176 (arguments `(#:haddock? #f))
8177 (inputs
8178 `(("ghc-hashable" ,ghc-hashable)))
8179 (home-page "https://hackage.haskell.org/package/nats")
8180 (synopsis "Natural numbers")
8181 (description "This library provides the natural numbers for Haskell.")
8182 (license license:bsd-3)))
8183
8184(define-public ghc-nats-bootstrap
8185 (package
8186 (inherit ghc-nats)
8187 (name "ghc-nats-bootstrap")
8188 (inputs
8189 `(("ghc-hashable" ,ghc-hashable-bootstrap)))
8190 (properties '((hidden? #t)))))
8191
52915062
EF
8192(define-public ghc-ncurses
8193 (package
8194 (name "ghc-ncurses")
8195 (version "0.2.16")
8196 (source
8197 (origin
8198 (method url-fetch)
8199 (uri (string-append
8200 "https://hackage.haskell.org/package/ncurses/ncurses-"
8201 version ".tar.gz"))
8202 (sha256
8203 (base32
8204 "0gsyyaqyh5r9zc0rhwpj5spyd6i4w2vj61h4nihgmmh0yyqvf3z5"))))
8205 (build-system haskell-build-system)
8206 (arguments
54a5fd07
TS
8207 '(#:extra-directories ("ncurses")
8208 #:phases
52915062
EF
8209 (modify-phases %standard-phases
8210 (add-before 'build 'fix-includes
8211 (lambda _
8212 (substitute* '("cbits/hsncurses-shim.h"
8213 "lib/UI/NCurses.chs"
8214 "lib/UI/NCurses/Enums.chs"
8215 "lib/UI/NCurses/Panel.chs")
8216 (("<ncursesw/") "<"))
8217 #t)))
8218 #:cabal-revision
8219 ("1"
8220 "1wfdy716s5p1sqp2gsg43x8wch2dxg0vmbbndlb2h3d8c9jzxnca")))
8221 (inputs `(("ncurses" ,ncurses)))
8222 (native-inputs `(("ghc-c2hs" ,ghc-c2hs)))
8223 (home-page "https://john-millikin.com/software/haskell-ncurses/")
8224 (synopsis "Modernised bindings to GNU ncurses")
8225 (description "GNU ncurses is a library for creating command-line application
8226with pseudo-graphical interfaces. This package is a nice, modern binding to GNU
8227ncurses.")
8228 (license license:gpl3)))
8229
dddbc90c
RV
8230(define-public ghc-network
8231 (package
8232 (name "ghc-network")
d4473202 8233 (version "2.8.0.1")
534d6caa 8234 (outputs '("out" "static" "doc"))
dddbc90c
RV
8235 (source
8236 (origin
8237 (method url-fetch)
8238 (uri (string-append
8239 "https://hackage.haskell.org/package/network/network-"
8240 version
8241 ".tar.gz"))
8242 (sha256
8243 (base32
d4473202 8244 "0im8k51rw3ahmr23ny10pshwbz09jfg0fdpam0hzf2hgxnzmvxb1"))))
dddbc90c
RV
8245 (build-system haskell-build-system)
8246 ;; The regression tests depend on an unpublished module.
8247 (arguments `(#:tests? #f))
8248 (native-inputs
8249 `(("ghc-hunit" ,ghc-hunit)
8250 ("ghc-doctest" ,ghc-doctest)
8251 ("ghc-test-framework" ,ghc-test-framework)
8252 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
8253 (home-page "https://github.com/haskell/network")
8254 (synopsis "Low-level networking interface")
8255 (description
8256 "This package provides a low-level networking interface.")
8257 (license license:bsd-3)))
4780db2c 8258
30eebbe6
TS
8259(define-public ghc-network-bsd
8260 (package
8261 (name "ghc-network-bsd")
8262 (version "2.8.0.0")
8263 (source
8264 (origin
8265 (method url-fetch)
8266 (uri (string-append "https://hackage.haskell.org/package/"
8267 "network-bsd/network-bsd-" version ".tar.gz"))
8268 (sha256
8269 (base32
8270 "0dfbwgrr28y6ypw7p1ppqg7v746qf14569q4xazj4ahdjw2xkpi5"))))
8271 (build-system haskell-build-system)
8272 (inputs
8273 `(("ghc-network" ,ghc-network)))
8274 (home-page "https://github.com/haskell/network-bsd")
8275 (synopsis "POSIX network database (<netdb.h>) API")
8276 (description "This package provides Haskell bindings to the the POSIX
8277network database (<netdb.h>) API.")
8278 (license license:bsd-3)))
8279
096781a1
TS
8280(define-public ghc-network-byte-order
8281 (package
8282 (name "ghc-network-byte-order")
8283 (version "0.1.1.1")
8284 (source
8285 (origin
8286 (method url-fetch)
8287 (uri (string-append "https://hackage.haskell.org/package/"
8288 "network-byte-order/network-byte-order-"
8289 version ".tar.gz"))
8290 (sha256
8291 (base32
8292 "19cs6157amcc925vwr92q1azwwzkbam5g0k70i6qi80fhpikh37c"))))
8293 (build-system haskell-build-system)
8294 (native-inputs
8295 `(("ghc-doctest" ,ghc-doctest)))
3ef91e15 8296 (home-page "https://hackage.haskell.org/package/network-byte-order")
096781a1
TS
8297 (synopsis "Network byte order utilities")
8298 (description "This library provides peek and poke functions for network
8299byte order.")
8300 (license license:bsd-3)))
8301
dddbc90c
RV
8302(define-public ghc-network-info
8303 (package
8304 (name "ghc-network-info")
8305 (version "0.2.0.10")
8306 (source
8307 (origin
8308 (method url-fetch)
8309 (uri (string-append "https://hackage.haskell.org/package/"
8310 "network-info-" version "/"
8311 "network-info-" version ".tar.gz"))
8312 (sha256
8313 (base32
8314 "0anmgzcpnz7nw3n6vq0r25m1s9l2svpwi83wza0lzkrlbnbzd02n"))))
8315 (build-system haskell-build-system)
8316 (home-page "https://github.com/jystic/network-info")
8317 (synopsis "Access the local computer's basic network configuration")
8318 (description "This Haskell library provides simple read-only access to the
8319local computer's networking configuration. It is currently capable of
8320getting a list of all the network interfaces and their respective
8321IPv4, IPv6 and MAC addresses.")
8322 (license license:bsd-3)))
8323
8324(define-public ghc-network-uri
8325 (package
8326 (name "ghc-network-uri")
8327 (version "2.6.1.0")
534d6caa 8328 (outputs '("out" "static" "doc"))
dddbc90c
RV
8329 (source
8330 (origin
8331 (method url-fetch)
8332 (uri (string-append
8333 "https://hackage.haskell.org/package/network-uri/network-uri-"
8334 version
8335 ".tar.gz"))
8336 (sha256
8337 (base32
8338 "1w27zkvn39kjr9lmw9421y8w43h572ycsfafsb7kyvr3a4ihlgj2"))))
8339 (build-system haskell-build-system)
8340 (arguments
8341 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
8342 (inputs
8343 `(("ghc-network" ,ghc-network)))
8344 (native-inputs
8345 `(("ghc-hunit" ,ghc-hunit)))
8346 (home-page
8347 "https://github.com/haskell/network-uri")
8348 (synopsis "Library for URI manipulation")
8349 (description "This package provides an URI manipulation interface. In
8350@code{network-2.6} the @code{Network.URI} module was split off from the
8351@code{network} package into this package.")
8352 (license license:bsd-3)))
8353
8354(define-public ghc-newtype-generics
8355 (package
8356 (name "ghc-newtype-generics")
c07e16dd 8357 (version "0.5.4")
dddbc90c
RV
8358 (source
8359 (origin
8360 (method url-fetch)
8361 (uri (string-append "https://hackage.haskell.org/package/"
8362 "newtype-generics/newtype-generics-"
8363 version ".tar.gz"))
8364 (sha256
8365 (base32
c07e16dd 8366 "0cprfg4n0z62cnix1qrbc79bfdd4s50b05fj9m9hk6vm1pc3szq0"))))
dddbc90c
RV
8367 (build-system haskell-build-system)
8368 (native-inputs
8369 `(("ghc-hspec" ,ghc-hspec)
8370 ("hspec-discover" ,hspec-discover)))
702a1012 8371 (home-page "https://github.com/sjakobi/newtype-generics")
dddbc90c
RV
8372 (synopsis "Typeclass and set of functions for working with newtypes")
8373 (description "The @code{Newtype} typeclass represents the packing and
8374unpacking of a newtype, and allows you to operate under that newtype with
8375functions such as @code{ala}. Generics support was added in version 0.4,
8376making this package a full replacement for the original newtype package,
8377and an alternative to newtype-th.")
8378 (license license:bsd-3)))
8379
6b652f5a
JS
8380(define-public ghc-non-negative
8381 (package
8382 (name "ghc-non-negative")
8383 (version "0.1.2")
8384 (source
8385 (origin
8386 (method url-fetch)
8387 (uri
8388 (string-append
8389 "https://hackage.haskell.org/package/non-negative/non-negative-"
8390 version ".tar.gz"))
8391 (sha256
8392 (base32
8393 "0f01q916dzkl1i0v15qrw9cviycki5g3fgi6x8gs45iwbzssq52n"))))
8394 (build-system haskell-build-system)
8395 (inputs
8396 `(("ghc-semigroups" ,ghc-semigroups)
8397 ("ghc-utility-ht" ,ghc-utility-ht)
8398 ("ghc-quickcheck" ,ghc-quickcheck)))
8399 (home-page "https://hackage.haskell.org/package/non-negative")
8400 (synopsis "Non-negative numbers class")
8401 (description "This library provides a class for non-negative numbers,
8402a wrapper which can turn any ordered numeric type into a member of that
8403class, and a lazy number type for non-negative numbers (a generalization
8404of Peano numbers).")
8405 (license license:gpl3+)))
8406
49bcca84
ASM
8407(define-public ghc-nonce
8408 (package
8409 (name "ghc-nonce")
8410 (version "1.0.7")
8411 (source
8412 (origin
8413 (method url-fetch)
8414 (uri (string-append
8415 "https://hackage.haskell.org/package/nonce/"
8416 "nonce-" version ".tar.gz"))
8417 (sha256
8418 (base32
8419 "1q9ph0aq51mvdvydnriqd12sfin36pfb8f588zgac1ybn8r64ksb"))))
8420 (build-system haskell-build-system)
8421 (inputs
8422 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
8423 ("ghc-entropy" ,ghc-entropy)
8424 ("ghc-unliftio" ,ghc-unliftio)
8425 ("ghc-unliftio-core" ,ghc-unliftio-core)))
8426 (home-page "https://github.com/prowdsponsor/nonce")
8427 (synopsis "Generate cryptographic nonces in Haskell")
8428 (description
8429 "A nonce is an arbitrary number used only once in a cryptographic
8430communication. This package contain helper functions for generating nonces.
8431There are many kinds of nonces used in different situations. It's not
8432guaranteed that by using the nonces from this package you won't have any
8433security issues. Please make sure that the nonces generated via this
8434package are usable on your design.")
8435 (license license:bsd-3)))
8436
194a82e6
TS
8437(define-public ghc-numeric-extras
8438 (package
8439 (name "ghc-numeric-extras")
8440 (version "0.1")
8441 (source
8442 (origin
8443 (method url-fetch)
8444 (uri (string-append "https://hackage.haskell.org/package/"
8445 "numeric-extras/numeric-extras-"
8446 version ".tar.gz"))
8447 (sha256
8448 (base32
8449 "1mk11c0gz1yjy5b8dvq6czfny57pln0bs7x28fz38qyr44872067"))))
8450 (build-system haskell-build-system)
8451 (home-page "https://github.com/ekmett/numeric-extras")
8452 (synopsis "Useful tools from the C standard library")
8453 (description "This library provides some useful tools from the C
8454standard library.")
8455 (license license:bsd-3)))
8456
dddbc90c
RV
8457(define-public ghc-objectname
8458 (package
8459 (name "ghc-objectname")
8460 (version "1.1.0.1")
8461 (source
8462 (origin
8463 (method url-fetch)
8464 (uri (string-append
8465 "https://hackage.haskell.org/package/ObjectName/ObjectName-"
8466 version
8467 ".tar.gz"))
8468 (sha256
8469 (base32
8470 "046jm94rmm46cicd31pl54vdvfjvhd9ffbfycy2lxzc0fliyznvj"))))
8471 (build-system haskell-build-system)
8472 (home-page "https://hackage.haskell.org/package/ObjectName")
8473 (synopsis "Helper library for Haskell OpenGL")
8474 (description "This tiny package contains the class ObjectName, which
8475corresponds to the general notion of explicitly handled identifiers for API
8476objects, e.g. a texture object name in OpenGL or a buffer object name in
8477OpenAL.")
8478 (license license:bsd-3)))
8479
8480(define-public ghc-old-locale
8481 (package
8482 (name "ghc-old-locale")
8483 (version "1.0.0.7")
8484 (source
8485 (origin
8486 (method url-fetch)
8487 (uri (string-append
8488 "https://hackage.haskell.org/package/old-locale/old-locale-"
8489 version
8490 ".tar.gz"))
8491 (sha256
8492 (base32 "0l3viphiszvz5wqzg7a45zp40grwlab941q5ay29iyw8p3v8pbyv"))))
8493 (build-system haskell-build-system)
8494 (arguments
8495 `(#:cabal-revision
8496 ("2" "04b9vn007hlvsrx4ksd3r8r3kbyaj2kvwxchdrmd4370qzi8p6gs")))
8497 (home-page "https://hackage.haskell.org/package/old-locale")
8498 (synopsis "Adapt to locale conventions")
8499 (description
8500 "This package provides the ability to adapt to locale conventions such as
8501date and time formats.")
8502 (license license:bsd-3)))
8503
8504(define-public ghc-old-time
8505 (package
8506 (name "ghc-old-time")
8507 (version "1.1.0.3")
8508 (source
8509 (origin
8510 (method url-fetch)
8511 (uri (string-append
8512 "https://hackage.haskell.org/package/old-time/old-time-"
8513 version
8514 ".tar.gz"))
8515 (sha256
8516 (base32
8517 "1h9b26s3kfh2k0ih4383w90ibji6n0iwamxp6rfp2lbq1y5ibjqw"))))
8518 (build-system haskell-build-system)
8519 (arguments
8520 `(#:cabal-revision
8521 ("2" "1j6ln1dkvhdvnwl33bp0xf9lhc4sybqk0aw42p8cq81xwwzbn7y9")))
8522 (inputs
8523 `(("ghc-old-locale" ,ghc-old-locale)))
8524 (home-page "https://hackage.haskell.org/package/old-time")
8525 (synopsis "Time compatibility library for Haskell")
8526 (description "Old-time is a package for backwards compatibility with the
8527old @code{time} library. For new projects, the newer
8528@uref{https://hackage.haskell.org/package/time, time library} is recommended.")
8529 (license license:bsd-3)))
8530
8531(define-public ghc-opengl
8532 (package
8533 (name "ghc-opengl")
79a06910 8534 (version "3.0.3.0")
dddbc90c
RV
8535 (source
8536 (origin
8537 (method url-fetch)
8538 (uri (string-append
8539 "https://hackage.haskell.org/package/OpenGL/OpenGL-"
8540 version
8541 ".tar.gz"))
8542 (sha256
8543 (base32
79a06910 8544 "069fg8jcxqq2z9iikynd8vi3jxm2b5y3qywdh4bdviyzab3zy1as"))))
dddbc90c 8545 (build-system haskell-build-system)
79a06910
TS
8546 (arguments
8547 `(#:cabal-revision
8548 ("1" "1748mrb6r9mpf5jbrx436lwbg8w6dadyy8dhxw2dwnrj5z7zf741")))
dddbc90c
RV
8549 (inputs
8550 `(("ghc-objectname" ,ghc-objectname)
8551 ("ghc-gluraw" ,ghc-gluraw)
8552 ("ghc-statevar" ,ghc-statevar)
8553 ("ghc-openglraw" ,ghc-openglraw)))
228d2901 8554 (home-page "https://wiki.haskell.org/Opengl")
dddbc90c
RV
8555 (synopsis "Haskell bindings for the OpenGL graphics system")
8556 (description "This package provides Haskell bindings for the OpenGL
8557graphics system (GL, version 4.5) and its accompanying utility library (GLU,
8558version 1.3).")
8559 (license license:bsd-3)))
8560
8561(define-public ghc-openglraw
8562 (package
8563 (name "ghc-openglraw")
15ebc815 8564 (version "3.3.3.0")
dddbc90c
RV
8565 (source
8566 (origin
8567 (method url-fetch)
8568 (uri (string-append
8569 "https://hackage.haskell.org/package/OpenGLRaw/OpenGLRaw-"
8570 version
8571 ".tar.gz"))
8572 (sha256
8573 (base32
15ebc815 8574 "0zgllb4bcash2i2cispa3j565aw3dpxs41ghmhpvyvi4a6xmyldx"))))
dddbc90c 8575 (build-system haskell-build-system)
54a5fd07
TS
8576 (arguments
8577 `(#:extra-directories ("glu")))
dddbc90c
RV
8578 (inputs
8579 `(("ghc-half" ,ghc-half)
8580 ("ghc-fixed" ,ghc-fixed)
8581 ("glu" ,glu)))
228d2901 8582 (home-page "https://wiki.haskell.org/Opengl")
dddbc90c
RV
8583 (synopsis "Raw Haskell bindings for the OpenGL graphics system")
8584 (description "OpenGLRaw is a raw Haskell binding for the OpenGL 4.5
8585graphics system and lots of OpenGL extensions. It is basically a 1:1 mapping
8586of OpenGL's C API, intended as a basis for a nicer interface. OpenGLRaw
8587offers access to all necessary functions, tokens and types plus a general
8588facility for loading extension entries. The module hierarchy closely mirrors
8589the naming structure of the OpenGL extensions, making it easy to find the
8590right module to import. All API entries are loaded dynamically, so no special
8591C header files are needed for building this package. If an API entry is not
8592found at runtime, a userError is thrown.")
8593 (license license:bsd-3)))
8594
8595(define-public ghc-operational
8596 (package
8597 (name "ghc-operational")
8598 (version "0.2.3.5")
8599 (source
8600 (origin
8601 (method url-fetch)
8602 (uri (string-append "https://hackage.haskell.org/package/operational/"
8603 "operational-" version ".tar.gz"))
8604 (sha256
8605 (base32
8606 "1x2abg2q9d26h1vzj40r6k7k3gqgappbs4g9d853vvg77837km4i"))))
8607 (build-system haskell-build-system)
8608 (inputs
8609 `(("ghc-random" ,ghc-random)))
8610 (home-page "http://wiki.haskell.org/Operational")
8611 (synopsis "Implementation of difficult monads made easy with operational semantics")
8612 (description
8613 "This library makes it easy to implement monads with tricky control
8614flow. This is useful for: writing web applications in a sequential style,
8615programming games with a uniform interface for human and AI players and easy
8616replay capababilities, implementing fast parser monads, designing monadic
8617DSLs, etc.")
8618 (license license:bsd-3)))
8619
6f1477d2
JS
8620(define-public ghc-optional-args
8621 (package
8622 (name "ghc-optional-args")
8623 (version "1.0.2")
8624 (source
8625 (origin
8626 (method url-fetch)
8627 (uri (string-append
8628 "mirror://hackage/package/optional-args/optional-args-"
8629 version
8630 ".tar.gz"))
8631 (sha256
8632 (base32
8633 "1r5hhn6xvc01grggxdyy48daibwzi0aikgidq0ahpa6bfynm8d1f"))))
8634 (build-system haskell-build-system)
8635 (home-page
8636 "http://hackage.haskell.org/package/optional-args")
8637 (synopsis "Optional function arguments")
8638 (description
8639 "This library provides a type for specifying @code{Optional} function
8640arguments.")
8641 (license license:bsd-3)))
8642
dddbc90c
RV
8643(define-public ghc-options
8644 (package
8645 (name "ghc-options")
8646 (version "1.2.1.1")
8647 (source
8648 (origin
8649 (method url-fetch)
8650 (uri (string-append
8651 "https://hackage.haskell.org/package/options/options-"
8652 version ".tar.gz"))
8653 (sha256
8654 (base32
8655 "0qjs0v1ny52w51n5582d4z8wy9h6n0zw1xb5dh686ff5wadflgi8"))))
8656 (build-system haskell-build-system)
24cf2a8b
TS
8657 (arguments
8658 `(#:phases
8659 (modify-phases %standard-phases
8660 (add-before 'configure 'update-constraints
8661 (lambda _
8662 (substitute* "options.cabal"
8663 (("chell >= 0\\.4 && < 0\\.5") "chell >= 0.4 && < 0.6"))
8664 #t)))))
dddbc90c
RV
8665 (inputs
8666 `(("ghc-monads-tf" ,ghc-monads-tf)
8667 ("ghc-chell" ,ghc-chell)
8668 ("ghc-chell-quickcheck" ,ghc-chell-quickcheck)))
8669 (home-page "https://john-millikin.com/software/haskell-options/")
8670 (synopsis "Powerful and easy-to-use command-line option parser")
8671 (description
8672 "The @code{options} package lets library and application developers
8673easily work with command-line options.")
8674 (license license:expat)))
8675
8676;; See ghc-system-filepath-bootstrap, chell and chell-quickcheck are required for tests.
8677(define ghc-options-bootstrap
8678 (package
8679 (name "ghc-options-bootstrap")
8680 (version "1.2.1.1")
8681 (source
8682 (origin
8683 (method url-fetch)
8684 (uri (string-append
8685 "https://hackage.haskell.org/package/options/options-"
8686 version ".tar.gz"))
8687 (sha256
8688 (base32
8689 "0qjs0v1ny52w51n5582d4z8wy9h6n0zw1xb5dh686ff5wadflgi8"))))
8690 (build-system haskell-build-system)
8691 (arguments
8692 `(#:tests? #f))
8693 (inputs
8694 `(("ghc-monads-tf" ,ghc-monads-tf)))
8695 (home-page "https://john-millikin.com/software/haskell-options/")
8696 (synopsis "Powerful and easy-to-use command-line option parser")
8697 (description
8698 "The @code{options} package lets library and application developers
8699easily work with command-line options.")
8700 (license license:expat)))
8701
8702
8703(define-public ghc-optparse-applicative
8704 (package
8705 (name "ghc-optparse-applicative")
74bf6965 8706 (version "0.14.3.0")
dddbc90c
RV
8707 (source
8708 (origin
8709 (method url-fetch)
8710 (uri (string-append
8711 "https://hackage.haskell.org/package/optparse-applicative"
8712 "/optparse-applicative-" version ".tar.gz"))
8713 (sha256
8714 (base32
74bf6965 8715 "0qvn1s7jwrabbpmqmh6d6iafln3v3h9ddmxj2y4m0njmzq166ivj"))))
dddbc90c 8716 (build-system haskell-build-system)
74bf6965
TS
8717 (arguments
8718 `(#:cabal-revision
8719 ("2" "1a08dqjly1xy730f6jf45frr8g8gap0n1vg9b0mpzpydv0kgzmrp")))
dddbc90c
RV
8720 (inputs
8721 `(("ghc-transformers-compat" ,ghc-transformers-compat)
8722 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)))
8723 (native-inputs
8724 `(("ghc-quickcheck" ,ghc-quickcheck)))
8725 (home-page "https://github.com/pcapriotti/optparse-applicative")
8726 (synopsis "Utilities and combinators for parsing command line options")
8727 (description "This package provides utilities and combinators for parsing
8728command line options in Haskell.")
8729 (license license:bsd-3)))
8730
d56c8120
NG
8731(define-public ghc-jira-wiki-markup
8732 (package
8733 (name "ghc-jira-wiki-markup")
8734 (version "1.0.0")
8735 (source
8736 (origin
8737 (method url-fetch)
8738 (uri (string-append
8739 "https://hackage.haskell.org/package/jira-wiki-markup/"
8740 "jira-wiki-markup-" version ".tar.gz"))
8741 (sha256
8742 (base32 "1sl2jjcsqg61si33mxjwpf8zdn56kbbgcwqqqzbgifx2qbv4wmf8"))))
8743 (build-system haskell-build-system)
8744 (native-inputs
8745 `(("ghc-tasty" ,ghc-tasty)
8746 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
8747 (home-page "https://github.com/tarleb/jira-wiki-markup")
8748 (synopsis "Handle Jira wiki markup")
8749 (description
8750 "Parse jira wiki text into an abstract syntax tree for easy transformation
8751to other formats.")
8752 (license license:expat)))
8753
20690771
NG
8754(define-public ghc-emojis
8755 (package
8756 (name "ghc-emojis")
8757 (version "0.1")
8758 (source
8759 (origin
8760 (method url-fetch)
8761 (uri (string-append
8762 "https://hackage.haskell.org/package/emojis/"
8763 "emojis-" version ".tar.gz"))
8764 (sha256
8765 (base32 "1c6zkj9gmk1y90gbdrn50hyp7mw1mggzhnr2khqd728ryipw60ss"))))
8766 (build-system haskell-build-system)
8767 (native-inputs
8768 `(("ghc-hunit" ,ghc-hunit)))
8769 (home-page "https://github.com/jgm/emojis#readme")
8770 (synopsis "Conversion between emoji characters and their names.")
8771 (description
8772 "This package provides functions for converting emoji names to emoji
8773characters and vice versa.
8774
8775How does it differ from the @code{emoji} package?
8776@itemize
8777@item It supports a fuller range of emojis, including all those supported by
8778GitHub
8779@item It supports lookup of emoji aliases from emoji
8780@item It uses Text rather than String
8781@item It has a lighter dependency footprint: in particular, it does not
8782require aeson
8783@item It does not require TemplateHaskell
8784@end itemize")
8785 (license license:bsd-3)))
8786
e90a06fc
NG
8787(define-public ghc-text-conversions
8788 (package
8789 (name "ghc-text-conversions")
8790 (version "0.3.0")
8791 (source
8792 (origin
8793 (method url-fetch)
8794 (uri (string-append
8795 "https://hackage.haskell.org/package/text-conversions/"
8796 "text-conversions-" version ".tar.gz"))
8797 (sha256
8798 (base32 "089c56vdj9xysqfr1hnvbnrghlg83q6w10xk02gflpsidcpvwmhp"))))
8799 (build-system haskell-build-system)
8800 (inputs
8801 `(("ghc-base16-bytestring" ,ghc-base16-bytestring)
8802 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
8803 ("ghc-errors" ,ghc-errors)))
8804 (native-inputs
8805 `(("ghc-hspec" ,ghc-hspec)
27b09f3a 8806 ("hspec-discover" ,hspec-discover)))
e90a06fc
NG
8807 (home-page "https://github.com/cjdev/text-conversions#readme")
8808 (synopsis "Safe conversions between textual types")
8809 (description "Safe conversions between textual types")
8810 (license license:isc)))
8811
ba7cbae3
NG
8812(define-public ghc-doclayout
8813 (package
8814 (name "ghc-doclayout")
8815 (version "0.3")
8816 (source
8817 (origin
8818 (method url-fetch)
8819 (uri (string-append
8820 "https://hackage.haskell.org/package/doclayout/"
8821 "doclayout-" version ".tar.gz"))
8822 (sha256
8823 (base32 "1wmnwq28jcyd6c80srivsnd5znmyl9sgmwwnlk2crwiiwqadbal7"))))
8824 (build-system haskell-build-system)
8825 (inputs
8826 `(("ghc-safe" ,ghc-safe)))
8827 (native-inputs
8828 `(("ghc-tasty" ,ghc-tasty)
8829 ("ghc-tasty-golden" ,ghc-tasty-golden)
8830 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
8831 (home-page "https://github.com/jgm/doclayout")
8832 (synopsis "Pretty-printing library for laying out text documents")
8833 (description
8834 "doclayout is a pretty-printing library for laying out text documents,
8835with several features not present in pretty-printing libraries designed for
8836code. It was designed for use in @code{Pandoc}.")
8837 (license license:bsd-3)))
8838
dddbc90c
RV
8839(define-public ghc-pandoc
8840 (package
8841 (name "ghc-pandoc")
d9b1567a 8842 (version "2.7.3")
dddbc90c
RV
8843 (source
8844 (origin
8845 (method url-fetch)
8846 (uri (string-append "https://hackage.haskell.org/package/pandoc/pandoc-"
8847 version ".tar.gz"))
d9b1567a
TS
8848 (patches (search-patches "ghc-pandoc-fix-html-tests.patch"
8849 "ghc-pandoc-fix-latex-test.patch"))
dddbc90c
RV
8850 (sha256
8851 (base32
d9b1567a 8852 "0dpjrr40h54cljzhvixyym07z792a9izg6b9dmqpjlgcg4rj0xx8"))))
dddbc90c 8853 (build-system haskell-build-system)
c18e4f3e
RW
8854 (arguments
8855 `(#:phases
8856 (modify-phases %standard-phases
8857 (add-after 'unpack 'find-library
8858 (lambda _
8859 (substitute* "test/Tests/Command.hs"
8860 (("= dynlibEnv")
8861 (format #f "= [(\"LD_LIBRARY_PATH\" , \"~a/dist/build\")]"
8862 (getcwd))))
8863 #t)))))
8864 (outputs '("out" "static" "doc"))
dddbc90c
RV
8865 (inputs
8866 `(("ghc-aeson" ,ghc-aeson)
8867 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
8868 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
8869 ("ghc-blaze-html" ,ghc-blaze-html)
8870 ("ghc-blaze-markup" ,ghc-blaze-markup)
8871 ("ghc-cmark-gfm" ,ghc-cmark-gfm)
8872 ("ghc-data-default" ,ghc-data-default)
dddbc90c
RV
8873 ("ghc-diff" ,ghc-diff)
8874 ("ghc-doctemplates" ,ghc-doctemplates)
8875 ("ghc-executable-path" ,ghc-executable-path)
8876 ("ghc-glob" ,ghc-glob)
8877 ("ghc-haddock-library" ,ghc-haddock-library)
8878 ("ghc-hslua" ,ghc-hslua)
d9b1567a 8879 ("ghc-hslua-module-system" ,ghc-hslua-module-system)
dddbc90c 8880 ("ghc-hslua-module-text" ,ghc-hslua-module-text)
d9b1567a 8881 ("ghc-hsyaml" ,ghc-hsyaml)
dddbc90c
RV
8882 ("ghc-http" ,ghc-http)
8883 ("ghc-http-client" ,ghc-http-client)
8884 ("ghc-http-client-tls" ,ghc-http-client-tls)
8885 ("ghc-http-types" ,ghc-http-types)
d9b1567a 8886 ("ghc-ipynb" ,ghc-ipynb)
dddbc90c
RV
8887 ("ghc-juicypixels" ,ghc-juicypixels)
8888 ("ghc-network" ,ghc-network)
8889 ("ghc-network-uri" ,ghc-network-uri)
dddbc90c
RV
8890 ("ghc-pandoc-types" ,ghc-pandoc-types)
8891 ("ghc-random" ,ghc-random)
8892 ("ghc-scientific" ,ghc-scientific)
8893 ("ghc-sha" ,ghc-sha)
8894 ("ghc-skylighting" ,ghc-skylighting)
8895 ("ghc-split" ,ghc-split)
8896 ("ghc-syb" ,ghc-syb)
8897 ("ghc-tagsoup" ,ghc-tagsoup)
8898 ("ghc-temporary" ,ghc-temporary)
8899 ("ghc-texmath" ,ghc-texmath)
d9b1567a 8900 ("ghc-unicode-transforms" ,ghc-unicode-transforms)
dddbc90c
RV
8901 ("ghc-unordered-containers" ,ghc-unordered-containers)
8902 ("ghc-vector" ,ghc-vector)
8903 ("ghc-xml" ,ghc-xml)
dddbc90c
RV
8904 ("ghc-zip-archive" ,ghc-zip-archive)
8905 ("ghc-zlib" ,ghc-zlib)))
8906 (native-inputs
8907 `(("ghc-tasty" ,ghc-tasty)
8908 ("ghc-tasty-golden" ,ghc-tasty-golden)
8909 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
d9b1567a 8910 ("ghc-tasty-lua" ,ghc-tasty-lua)
dddbc90c
RV
8911 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
8912 ("ghc-quickcheck" ,ghc-quickcheck)
8913 ("ghc-hunit" ,ghc-hunit)))
8914 (home-page "https://pandoc.org")
8915 (synopsis "Conversion between markup formats")
8916 (description
8917 "Pandoc is a Haskell library for converting from one markup format to
8918another, and a command-line tool that uses this library. It can read and
8919write Markdown and (subsets of) other formats, such as HTML, reStructuredText,
8920LaTeX, DocBook, and many more.
8921
8922Pandoc extends standard Markdown syntax with footnotes, embedded LaTeX,
8923definition lists, tables, and other features. A compatibility mode is
8924provided for those who need a drop-in replacement for Markdown.pl.")
8925 (license license:gpl2+)))
8926
d4e4a382
RW
8927(define-public pandoc
8928 (package
8929 (inherit ghc-pandoc)
8930 (name "pandoc")
8931 (arguments
8932 `(#:configure-flags
8933 (list "-fstatic"
8934 ;; Do not build trypandoc; this is the default but it's better to
8935 ;; be explicit.
8936 "-f-trypandoc"
8937 ;; TODO: Without these we cannot link the Haskell libraries
8938 ;; statically. It would be nice if we could also build the
8939 ;; shared libraries.
8940 "--disable-shared"
8941 "--disable-executable-dynamic"
8942 ;; That's where we place all static libraries
8943 "--extra-lib-dirs=static-libs/"
8944 "--ghc-option=-static")
8945 #:modules ((guix build haskell-build-system)
8946 (guix build utils)
8947 (ice-9 match)
8948 (srfi srfi-1))
8949 #:phases
8950 (modify-phases %standard-phases
8951 (add-after 'unpack 'create-simple-paths-module
8952 (lambda* (#:key outputs #:allow-other-keys)
8953 (call-with-output-file "Paths_pandoc.hs"
8954 (lambda (port)
8955 (format port "\
8956{-# LANGUAGE CPP #-}
8957{-# LANGUAGE NoRebindableSyntax #-}
8958{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
8959module Paths_pandoc (version,getDataDir,getDataFileName) where
8960import Prelude
8961import Data.Version (Version(..))
8962import System.Info
8963version :: Version
8964version = Version [~a] []
8965
8966datadir :: FilePath
8967datadir = \"~a/share/\" ++
8968 arch ++ \"-\" ++
8969 os ++ \"-\" ++
8970 compilerName ++ \"-~a/pandoc-~a\"
8971
8972getDataDir :: IO FilePath
8973getDataDir = return datadir
8974
8975getDataFileName :: FilePath -> IO FilePath
8976getDataFileName name = do
8977 dir <- getDataDir
8978 return (dir ++ \"/\" ++ name)
8979"
8980 (string-map (lambda (chr) (if (eq? chr #\.) #\, chr))
8981 ,(package-version ghc-pandoc))
8982 (assoc-ref outputs "out")
8983 ,(package-version ghc)
8984 ,(package-version ghc-pandoc))))
8985 #t))
8986 (add-after 'unpack 'prepare-static-libraries
8987 (lambda* (#:key inputs #:allow-other-keys)
8988 (mkdir-p (string-append (getcwd) "/static-libs"))
8989 (for-each
8990 (lambda (input)
8991 (when (or (string-prefix? "static-" (car input))
8992 (string-prefix? "ghc" (car input)))
8993 (match (find-files (cdr input) "\\.a$")
8994 ((and (first . rest) libs)
8995 (for-each (lambda (lib)
8996 (let ((target (string-append (getcwd) "/static-libs/"
8997 (basename lib))))
8998 (unless (file-exists? target)
8999 (symlink first target))))
9000 libs))
9001 (_ #f))))
9002 inputs)
9003 #t))
9004 (delete 'check)
9005 (add-after 'install 'post-install-check
9006 (assoc-ref %standard-phases 'check)))))
9007 (outputs '("out" "lib" "static" "doc"))
9008 (inputs
9009 (let* ((direct-inputs (package-inputs ghc-pandoc))
9010 (all-static-inputs
9011 (map (lambda (pkg)
9012 (list (string-append "static-" (package-name pkg))
9013 pkg "static"))
9014 (delete-duplicates
9015 (append (map cadr direct-inputs)
9016 (filter (lambda (pkg)
9017 (string-prefix? "ghc-" (package-name pkg)))
9018 (package-closure
9019 (map cadr direct-inputs))))))))
9020 `(("zlib:static" ,zlib "static")
9021 ,@all-static-inputs
9022 ,@direct-inputs)))
9023 (native-inputs
9024 (let* ((direct-inputs (package-native-inputs ghc-pandoc))
9025 (all-static-inputs
9026 (map (lambda (pkg)
9027 (list (string-append "static-" (package-name pkg))
9028 pkg "static"))
9029 (delete-duplicates
9030 (append (map cadr direct-inputs)
9031 (filter (lambda (pkg)
9032 (string-prefix? "ghc-" (package-name pkg)))
9033 (package-closure
9034 (map cadr direct-inputs))))))))
9035 `(,@all-static-inputs
9036 ,@direct-inputs)))))
9037
dddbc90c
RV
9038(define-public ghc-pandoc-citeproc
9039 (package
9040 (name "ghc-pandoc-citeproc")
2da02d09 9041 (version "0.16.2")
dddbc90c
RV
9042 (source
9043 (origin
9044 (method url-fetch)
9045 (uri (string-append "https://hackage.haskell.org/package/"
9046 "pandoc-citeproc/pandoc-citeproc-"
9047 version ".tar.gz"))
9048 (sha256
9049 (base32
2da02d09 9050 "15mm17awgi1b5yazwhr5nh8b59qml1qk6pz6gpyijks70fq2arsv"))))
dddbc90c
RV
9051 (build-system haskell-build-system)
9052 (arguments
9053 `(#:phases
9054 (modify-phases %standard-phases
9055 ;; Many YAML tests (44) are failing do to changes in ghc-yaml:
9056 ;; <https://github.com/jgm/pandoc-citeproc/issues/342>.
9057 (add-before 'configure 'patch-tests
9058 (lambda _
9059 (substitute* "tests/test-pandoc-citeproc.hs"
9060 (("let allTests = citeprocTests \\+\\+ biblio2yamlTests")
9061 "let allTests = citeprocTests"))))
9062 ;; Tests need to be run after installation.
9063 (delete 'check)
9064 (add-after 'install 'post-install-check
9065 (assoc-ref %standard-phases 'check)))))
9066 (inputs
9067 `(("ghc-pandoc-types" ,ghc-pandoc-types)
9068 ("ghc-pandoc" ,ghc-pandoc)
9069 ("ghc-tagsoup" ,ghc-tagsoup)
9070 ("ghc-aeson" ,ghc-aeson)
9071 ("ghc-vector" ,ghc-vector)
9072 ("ghc-xml-conduit" ,ghc-xml-conduit)
9073 ("ghc-unordered-containers" ,ghc-unordered-containers)
9074 ("ghc-data-default" ,ghc-data-default)
9075 ("ghc-setenv" ,ghc-setenv)
9076 ("ghc-split" ,ghc-split)
9077 ("ghc-yaml" ,ghc-yaml)
9078 ("ghc-hs-bibutils" ,ghc-hs-bibutils)
9079 ("ghc-rfc5051" ,ghc-rfc5051)
9080 ("ghc-syb" ,ghc-syb)
9081 ("ghc-old-locale" ,ghc-old-locale)
9082 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
9083 ("ghc-attoparsec" ,ghc-attoparsec)
9084 ("ghc-temporary" ,ghc-temporary)))
9085 (home-page "https://github.com/jgm/pandoc-citeproc")
9086 (synopsis "Library for using pandoc with citeproc")
9087 (description
9088 "The @code{pandoc-citeproc} library exports functions for using the
9089citeproc system with pandoc. It relies on @code{citeproc-hs}, a library for
9090rendering bibliographic reference citations into a variety of styles using a
9091macro language called @dfn{Citation Style Language} (CSL). This package also
9092contains an executable @code{pandoc-citeproc}, which works as a pandoc filter,
9093and also has a mode for converting bibliographic databases a YAML format
9094suitable for inclusion in pandoc YAML metadata.")
9095 (license license:bsd-3)))
9096
e380ef14
RW
9097(define-public pandoc-citeproc
9098 (package (inherit ghc-pandoc-citeproc)
9099 (name "pandoc-citeproc")
9100 (arguments
9101 `(#:configure-flags
9102 (list "-fstatic"
9103 "--disable-shared"
9104 "--disable-executable-dynamic"
9105 ;; That's where we place all static libraries
9106 "--extra-lib-dirs=static-libs/"
9107 "--ghc-option=-static")
9108 #:modules ((guix build haskell-build-system)
9109 (guix build utils)
9110 (ice-9 match)
9111 (srfi srfi-1))
9112 #:phases
9113 (modify-phases %standard-phases
9114 ;; Many YAML tests (44) are failing do to changes in ghc-yaml:
9115 ;; <https://github.com/jgm/pandoc-citeproc/issues/342>.
9116 (add-before 'configure 'patch-tests
9117 (lambda _
9118 (substitute* "tests/test-pandoc-citeproc.hs"
9119 (("let allTests = citeprocTests \\+\\+ biblio2yamlTests")
9120 "let allTests = citeprocTests"))))
9121 ;; Tests need to be run after installation.
9122 (delete 'check)
9123 (add-after 'install 'post-install-check
9124 (assoc-ref %standard-phases 'check))
9125 (add-after 'unpack 'create-simple-paths-module
9126 (lambda* (#:key outputs #:allow-other-keys)
9127 (call-with-output-file "Paths_pandoc_citeproc.hs"
9128 (lambda (port)
9129 (format port "\
9130{-# LANGUAGE CPP #-}
9131{-# LANGUAGE NoRebindableSyntax #-}
9132{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
9133module Paths_pandoc_citeproc (version,getDataFileName) where
9134import Prelude
9135import Data.Version (Version(..))
9136import System.Info
9137version :: Version
9138version = Version [~a] []
9139
9140datadir :: FilePath
9141datadir = \"~a/share/\" ++
9142 arch ++ \"-\" ++
9143 os ++ \"-\" ++
9144 compilerName ++ \"-~a/pandoc-citeproc-~a\"
9145
9146getDataDir :: IO FilePath
9147getDataDir = return datadir
9148
9149getDataFileName :: FilePath -> IO FilePath
9150getDataFileName name = do
9151 dir <- getDataDir
9152 return (dir ++ \"/\" ++ name)
9153"
9154 (string-map (lambda (chr) (if (eq? chr #\.) #\, chr))
9155 ,(package-version ghc-pandoc-citeproc))
9156 (assoc-ref outputs "out")
9157 ,(package-version ghc)
9158 ,(package-version ghc-pandoc-citeproc))))
9159 #t))
9160 (add-after 'unpack 'prepare-static-libraries
9161 (lambda* (#:key inputs #:allow-other-keys)
9162 (mkdir-p (string-append (getcwd) "/static-libs"))
9163 (for-each
9164 (lambda (input)
9165 (when (or (string-prefix? "static-" (car input))
9166 (string-prefix? "ghc" (car input)))
9167 (match (find-files (cdr input) "\\.a$")
9168 ((and (first . rest) libs)
9169 (for-each (lambda (lib)
9170 (let ((target (string-append (getcwd) "/static-libs/"
9171 (basename lib))))
9172 (unless (file-exists? target)
9173 (symlink first target))))
9174 libs))
9175 (_ #f))))
9176 inputs)
9177 #t)))))
9178 (inputs
9179 (let* ((direct-inputs
9180 (cons `("ghc-pandoc" ,pandoc)
9181 (alist-delete "ghc-pandoc"
9182 (package-inputs ghc-pandoc-citeproc))))
9183 (all-static-inputs
9184 (map (lambda (pkg)
9185 (list (string-append "static-" (package-name pkg))
9186 pkg "static"))
9187 (delete-duplicates
9188 (append (map cadr direct-inputs)
9189 (filter (lambda (pkg)
9190 (string-prefix? "ghc-" (package-name pkg)))
9191 (package-closure
9192 (map cadr direct-inputs))))))))
9193 `(("zlib:static" ,zlib "static")
9194 ("pandoc" ,pandoc "lib")
9195 ,@all-static-inputs
9196 ,@direct-inputs)))
9197 (synopsis "Pandoc filter for bibliographic references")))
9198
dddbc90c
RV
9199(define-public ghc-pandoc-types
9200 (package
9201 (name "ghc-pandoc-types")
0eaa88c8 9202 (version "1.17.6.1")
dddbc90c
RV
9203 (source (origin
9204 (method url-fetch)
9205 (uri (string-append "https://hackage.haskell.org/package/"
9206 "pandoc-types/pandoc-types-"
9207 version ".tar.gz"))
9208 (sha256
9209 (base32
0eaa88c8 9210 "1d6ygq991ddria71l7hg9yd7lq94sjy4m71rdws1v8hq943c4d0q"))))
dddbc90c 9211 (build-system haskell-build-system)
c7891956
RW
9212 (arguments
9213 `(#:phases
9214 (modify-phases %standard-phases
9215 ;; None of the directory names are actually used. By generating a
9216 ;; simpler module without references to store names we avoid
9217 ;; introducing references in the pandoc executable.
9218 (add-after 'unpack 'create-simple-paths-module
9219 (lambda _
9220 (call-with-output-file "Paths_pandoc_types.hs"
9221 (lambda (port)
9222 (format port "\
9223{-# LANGUAGE CPP #-}
9224{-# LANGUAGE NoRebindableSyntax #-}
9225{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
9226module Paths_pandoc_types (version) where
9227import Data.Version (Version(..))
9228version :: Version
9229version = Version [~a] []
9230" (string-map (lambda (chr) (if (eq? chr #\.) #\, chr)) ,version))))
9231 #t)))))
dddbc90c
RV
9232 (inputs
9233 `(("ghc-syb" ,ghc-syb)
9234 ("ghc-aeson" ,ghc-aeson)
9235 ("ghc-string-qq" ,ghc-string-qq)))
9236 (native-inputs
9237 `(("ghc-quickcheck" ,ghc-quickcheck)
9238 ("ghc-test-framework" ,ghc-test-framework)
9239 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
9240 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
9241 ("ghc-hunit" ,ghc-hunit)))
d48b5c8a 9242 (home-page "https://johnmacfarlane.net/pandoc")
dddbc90c
RV
9243 (synopsis "Types for representing a structured document")
9244 (description
9245 "This module defines the @code{Pandoc} data structure, which is used by
9246pandoc to represent structured documents. It also provides functions for
9247building up, manipulating and serialising @code{Pandoc} structures.")
9248 (license license:bsd-3)))
9249
9250(define-public ghc-parallel
9251 (package
9252 (name "ghc-parallel")
9253 (version "3.2.2.0")
534d6caa 9254 (outputs '("out" "static" "doc"))
dddbc90c
RV
9255 (source
9256 (origin
9257 (method url-fetch)
9258 (uri (string-append
9259 "https://hackage.haskell.org/package/parallel/parallel-"
9260 version
9261 ".tar.gz"))
9262 (sha256
9263 (base32
9264 "1xkfi96w6yfpppd0nw1rnszdxmvifwzm699ilv6332ra3akm610p"))))
9265 (build-system haskell-build-system)
9266 (home-page "https://hackage.haskell.org/package/parallel")
9267 (synopsis "Parallel programming library")
9268 (description
9269 "This package provides a library for parallel programming.")
9270 (license license:bsd-3)))
9271
9272(define-public ghc-parsec-numbers
9273 (package
9274 (name "ghc-parsec-numbers")
9275 (version "0.1.0")
9276 (source
9277 (origin
9278 (method url-fetch)
9279 (uri (string-append "https://hackage.haskell.org/package/"
9280 "parsec-numbers/parsec-numbers-" version ".tar.gz"))
9281 (sha256
9282 (base32 "1gzy4v3r02kvdxvgg1nj83mmb6aph2v4ilf9c7y6nbvi2x49l0bp"))))
9283 (build-system haskell-build-system)
9284 (home-page "https://hackage.haskell.org/package/parsec-numbers")
9285 (synopsis "Utilities for parsing numbers from strings")
9286 (description
9287 "This package provides the number parsers without the need to use a large
9288(and unportable) token parser.")
9289 (license license:bsd-3)))
9290
9291(define-public ghc-parser-combinators
9292 (package
9293 (name "ghc-parser-combinators")
2f173160 9294 (version "1.1.0")
dddbc90c
RV
9295 (source
9296 (origin
9297 (method url-fetch)
9298 (uri (string-append "https://hackage.haskell.org/package/"
9299 "parser-combinators/parser-combinators-"
9300 version ".tar.gz"))
9301 (sha256
9302 (base32
2f173160 9303 "149yhbnrrl108h1jinrsxni3rwrldhphpk9bbmbpr90q5fbl4xmc"))))
dddbc90c
RV
9304 (build-system haskell-build-system)
9305 (home-page "https://github.com/mrkkrp/parser-combinators")
9306 (synopsis "Commonly useful parser combinators")
9307 (description
9308 "This is a lightweight package providing commonly useful parser
9309combinators.")
9310 (license license:bsd-3)))
9311
9312(define-public ghc-parsers
9313 (package
9314 (name "ghc-parsers")
6818f970 9315 (version "0.12.10")
dddbc90c
RV
9316 (source
9317 (origin
9318 (method url-fetch)
9319 (uri (string-append
9320 "https://hackage.haskell.org/package/parsers/parsers-"
9321 version
9322 ".tar.gz"))
9323 (sha256
9324 (base32
6818f970 9325 "0v0smxbzk1qpdfkfqqmrzd2dngv3vxba10mkjn9nfm6a309izf8p"))))
dddbc90c
RV
9326 (build-system haskell-build-system)
9327 (arguments `(#:tests? #f)) ; FIXME: Test fails with "cannot satisfy
9328 ; -package attoparsec-0.13.0.1"
9329 (inputs
9330 `(("ghc-base-orphans" ,ghc-base-orphans)
9331 ("ghc-attoparsec" ,ghc-attoparsec)
9332 ("ghc-scientific" ,ghc-scientific)
9333 ("ghc-charset" ,ghc-charset)
9334 ("ghc-unordered-containers" ,ghc-unordered-containers)))
9335 (home-page "https://github.com/ekmett/parsers/")
9336 (synopsis "Parsing combinators")
9337 (description "This library provides convenient combinators for working
9338with and building parsing combinator libraries. Given a few simple instances,
9339you get access to a large number of canned definitions. Instances exist for
9340the parsers provided by @code{parsec}, @code{attoparsec} and @code{base}'s
9341@code{Text.Read}.")
9342 (license license:bsd-3)))
9343
9344(define-public ghc-path
9345 (package
9346 (name "ghc-path")
9347 (version "0.6.1")
9348 (source
9349 (origin
9350 (method url-fetch)
9351 (uri (string-append
9352 "https://hackage.haskell.org/package/path/path-"
9353 version
9354 ".tar.gz"))
9355 (sha256
9356 (base32
9357 "0nayla4k1gb821k8y5b9miflv1bi8f0czf9rqr044nrr2dddi2sb"))))
9358 (build-system haskell-build-system)
9359 (arguments
9360 ;; TODO: There are some Windows-related tests and modules that need to be
9361 ;; danced around.
9362 `(#:tests? #f
9363 #:cabal-revision
9364 ("1" "05b1zwx2a893h4h5wvgpc5g5pyx71hfmx409rqisd8s1bq1hn463")))
9365 (inputs
9366 `(("ghc-aeson" ,ghc-aeson)
9367 ("ghc-exceptions" ,ghc-exceptions)
9368 ("ghc-hashable" ,ghc-hashable)))
9369 (native-inputs
9370 `(("ghc-hspec" ,ghc-hspec)
9371 ("ghc-quickcheck" ,ghc-quickcheck)
9372 ("ghc-genvalidity" ,ghc-genvalidity)
9373 ("ghc-genvalidity-property" ,ghc-genvalidity-property)
9374 ("ghc-hspec" ,ghc-hspec)
9375 ("ghc-validity" ,ghc-validity)))
9376 (home-page
3ef91e15 9377 "https://hackage.haskell.org/package/path")
dddbc90c
RV
9378 (synopsis "Support for well-typed paths")
9379 (description "This package introduces a type for paths upholding useful
9380invariants.")
9381 (license license:bsd-3)))
9382
9383(define-public ghc-path-io
9384 (package
9385 (name "ghc-path-io")
a06613ea 9386 (version "1.4.2")
dddbc90c
RV
9387 (source
9388 (origin
9389 (method url-fetch)
9390 (uri (string-append
9391 "https://hackage.haskell.org/package/path-io/path-io-"
9392 version
9393 ".tar.gz"))
9394 (sha256
9395 (base32
a06613ea 9396 "0jqx3mi4an4kb3kg78n1p3xrz832yrfrnvj795b0xhkv6h1z5ir3"))))
dddbc90c
RV
9397 (build-system haskell-build-system)
9398 (inputs
9399 `(("ghc-dlist" ,ghc-dlist)
9400 ("ghc-exceptions" ,ghc-exceptions)
9401 ("ghc-path" ,ghc-path)
9402 ("ghc-transformers-base" ,ghc-transformers-base)
9403 ("ghc-unix-compat" ,ghc-unix-compat)
9404 ("ghc-temporary" ,ghc-temporary)))
9405 (native-inputs
9406 `(("ghc-hspec" ,ghc-hspec)))
dddbc90c
RV
9407 (home-page
9408 "https://github.com/mrkkrp/path-io")
9409 (synopsis "Functions for manipulating well-typed paths")
9410 (description "This package provides an interface to the @code{directory}
9411package for users of @code{path}. It also implements some missing stuff like
9412recursive scanning and copying of directories, working with temporary
9413files/directories, and more.")
9414 (license license:bsd-3)))
9415
9416(define-public ghc-paths
9417 (package
9418 (name "ghc-paths")
9a8adeb1 9419 (version "0.1.0.12")
534d6caa 9420 (outputs '("out" "static" "doc"))
dddbc90c
RV
9421 (source
9422 (origin
9423 (method url-fetch)
9424 (uri (string-append
9425 "https://hackage.haskell.org/package/ghc-paths/ghc-paths-"
9426 version
9427 ".tar.gz"))
9428 (sha256
9429 (base32
9a8adeb1 9430 "1164w9pqnf7rjm05mmfjznz7rrn415blrkk1kjc0gjvks1vfdjvf"))))
dddbc90c
RV
9431 (build-system haskell-build-system)
9432 (home-page "https://github.com/simonmar/ghc-paths")
9433 (synopsis
9434 "Knowledge of GHC's installation directories")
9435 (description
9436 "Knowledge of GHC's installation directories.")
9437 (license license:bsd-3)))
9438
9439(define-public ghc-patience
9440 (package
9441 (name "ghc-patience")
484476f3 9442 (version "0.3")
dddbc90c
RV
9443 (source
9444 (origin
9445 (method url-fetch)
9446 (uri (string-append
9447 "https://hackage.haskell.org/package/patience/patience-"
9448 version ".tar.gz"))
9449 (sha256
9450 (base32
484476f3 9451 "1i1b37lgi31c17yrjyf8pdm4nf5lq8vw90z3rri78hf0k66d0p3i"))))
dddbc90c
RV
9452 (build-system haskell-build-system)
9453 (home-page "https://hackage.haskell.org/package/patience")
9454 (synopsis "Patience diff and longest increasing subsequence")
9455 (description
9456 "This library implements the 'patience diff' algorithm, as well as the
9457patience algorithm for the longest increasing subsequence problem.
9458Patience diff computes the difference between two lists, for example the lines
9459of two versions of a source file. It provides a good balance between
9460performance, nice output for humans, and simplicity of implementation.")
9461 (license license:bsd-3)))
9462
25a221a8
JS
9463(define-public ghc-pattern-arrows
9464 (package
9465 (name "ghc-pattern-arrows")
9466 (version "0.0.2")
9467 (source
9468 (origin
9469 (method url-fetch)
9470 (uri (string-append
9471 "mirror://hackage/package/pattern-arrows/pattern-arrows-"
9472 version
9473 ".tar.gz"))
9474 (sha256
9475 (base32
9476 "13q7bj19hd60rnjfc05wxlyck8llxy11z3mns8kxg197wxrdkhkg"))))
9477 (build-system haskell-build-system)
9478 (home-page
9479 "https://blog.functorial.com/posts/2013-10-27-Pretty-Printing-Arrows.html")
9480 (synopsis "Arrows for Pretty Printing")
9481 (description
9482 "A library for generating concise pretty printers based on precedence
9483rules.")
9484 (license license:expat)))
9485
dddbc90c
RV
9486(define-public ghc-pcre-light
9487 (package
9488 (name "ghc-pcre-light")
9489 (version "0.4.0.4")
9490 (source
9491 (origin
9492 (method url-fetch)
9493 (uri (string-append
9494 "https://hackage.haskell.org/package/pcre-light/pcre-light-"
9495 version
9496 ".tar.gz"))
9497 (sha256
9498 (base32
9499 "0xcyi1fivwg7a92mch5bcqzmrfxzqj42rmb3m8kgs61x4qwpxj82"))))
9500 (build-system haskell-build-system)
a928f35b
TS
9501 (arguments
9502 `(#:extra-directories ("pcre")))
dddbc90c
RV
9503 (inputs
9504 `(("pcre" ,pcre)))
9505 (native-inputs
9506 `(("pkg-config" ,pkg-config)))
9507 (home-page "https://github.com/Daniel-Diaz/pcre-light")
9508 (synopsis "Haskell library for Perl 5 compatible regular expressions")
9509 (description "This package provides a small, efficient, and portable regex
9510library for Perl 5 compatible regular expressions. The PCRE library is a set
9511of functions that implement regular expression pattern matching using the same
9512syntax and semantics as Perl 5.")
9513 (license license:bsd-3)))
9514
9515(define-public ghc-persistent
9516 (package
9517 (name "ghc-persistent")
8c9697a9 9518 (version "2.10.4")
dddbc90c
RV
9519 (source
9520 (origin
9521 (method url-fetch)
8c9697a9
ASM
9522 (uri (string-append
9523 "https://hackage.haskell.org/package/persistent/"
9524 "persistent-" version ".tar.gz"))
dddbc90c
RV
9525 (sha256
9526 (base32
8c9697a9 9527 "1cxswz72sqdg2z1nbpgp1k5qr41djgk8qbf8nz7wfppsrhacyffi"))))
dddbc90c 9528 (build-system haskell-build-system)
8c9697a9
ASM
9529 (inputs
9530 `(("ghc-aeson" ,ghc-aeson)
9531 ("ghc-attoparsec" ,ghc-attoparsec)
9532 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
9533 ("ghc-blaze-html" ,ghc-blaze-html)
9534 ("ghc-conduit" ,ghc-conduit)
9535 ("ghc-fast-logger" ,ghc-fast-logger)
9536 ("ghc-http-api-data" ,ghc-http-api-data)
9537 ("ghc-monad-logger" ,ghc-monad-logger)
9538 ("ghc-path-pieces" ,ghc-path-pieces)
9539 ("ghc-resource-pool" ,ghc-resource-pool)
9540 ("ghc-resourcet" ,ghc-resourcet)
9541 ("ghc-scientific" ,ghc-scientific)
9542 ("ghc-silently" ,ghc-silently)
9543 ("ghc-unliftio-core" ,ghc-unliftio-core)
9544 ("ghc-unliftio" ,ghc-unliftio)
9545 ("ghc-unordered-containers"
9546 ,ghc-unordered-containers)
9547 ("ghc-vector" ,ghc-vector)))
dddbc90c
RV
9548 (native-inputs `(("ghc-hspec" ,ghc-hspec)))
9549 (home-page "https://www.yesodweb.com/book/persistent")
9550 (synopsis "Type-safe, multi-backend data serialization for Haskell")
9551 (description "This Haskell package allows Haskell programs to access data
9552storage systems like PostgreSQL, SQLite, MySQL and MongoDB in a type-safe
9553way.")
9554 (license license:expat)))
9555
9556(define-public ghc-persistent-sqlite
9557 (package
9558 (name "ghc-persistent-sqlite")
78858787 9559 (version "2.10.5.2")
dddbc90c
RV
9560 (source
9561 (origin
9562 (method url-fetch)
78858787
ASM
9563 (uri (string-append
9564 "https://hackage.haskell.org/package/persistent-sqlite/"
9565 "persistent-sqlite-" version ".tar.gz"))
dddbc90c
RV
9566 (sha256
9567 (base32
78858787 9568 "0agag3cgivl6mk38pqzr0qw5lxps9p2bgdwvi5658l46hs7bixxn"))))
dddbc90c 9569 (build-system haskell-build-system)
78858787
ASM
9570 (inputs
9571 `(("ghc-persistent" ,ghc-persistent)
9572 ("ghc-aeson" ,ghc-aeson)
9573 ("ghc-conduit" ,ghc-conduit)
9574 ("ghc-microlens-th" ,ghc-microlens-th)
9575 ("ghc-monad-logger" ,ghc-monad-logger)
9576 ("ghc-resource-pool" ,ghc-resource-pool)
9577 ("ghc-resourcet" ,ghc-resourcet)
9578 ("ghc-unliftio-core" ,ghc-unliftio-core)
9579 ("ghc-unordered-containers"
9580 ,ghc-unordered-containers)))
9581 (native-inputs
9582 `(("ghc-persistent-template"
9583 ,ghc-persistent-template)
9584 ("ghc-persistent-test" ,ghc-persistent-test)
9585 ("ghc-exceptions" ,ghc-exceptions)
9586 ("ghc-fast-logger" ,ghc-fast-logger)
9587 ("ghc-hspec" ,ghc-hspec)
9588 ("ghc-hunit" ,ghc-hunit)
9589 ("ghc-quickcheck" ,ghc-quickcheck)
9590 ("ghc-system-fileio" ,ghc-system-fileio)
9591 ("ghc-system-filepath" ,ghc-system-filepath)
9592 ("ghc-temporary" ,ghc-temporary)))
dddbc90c
RV
9593 (home-page
9594 "https://www.yesodweb.com/book/persistent")
9595 (synopsis "Backend for the persistent library using sqlite3")
9596 (description "This Haskell package includes a thin sqlite3 wrapper based
9597on the direct-sqlite package, as well as the entire C library, so there are no
9598system dependencies.")
9599 (license license:expat)))
9600
9601(define-public ghc-persistent-template
9602 (package
9603 (name "ghc-persistent-template")
d5378e98 9604 (version "2.8.0")
dddbc90c
RV
9605 (source
9606 (origin
9607 (method url-fetch)
d5378e98
ASM
9608 (uri (string-append
9609 "https://hackage.haskell.org/package/persistent-template/"
9610 "persistent-template-" version ".tar.gz"))
dddbc90c
RV
9611 (sha256
9612 (base32
d5378e98 9613 "16yjrl0gh4jbs4skr7iv6a55lny59bqhd6hjmvch1cl9j5d0c0g3"))))
dddbc90c 9614 (build-system haskell-build-system)
d5378e98
ASM
9615 (inputs
9616 `(("ghc-persistent" ,ghc-persistent)
9617 ("ghc-aeson" ,ghc-aeson)
9618 ("ghc-http-api-data" ,ghc-http-api-data)
9619 ("ghc-monad-control" ,ghc-monad-control)
9620 ("ghc-monad-logger" ,ghc-monad-logger)
9621 ("ghc-path-pieces" ,ghc-path-pieces)
9622 ("ghc-th-lift-instances" ,ghc-th-lift-instances)
9623 ("ghc-unordered-containers"
9624 ,ghc-unordered-containers)))
9625 (native-inputs
9626 `(("ghc-hspec" ,ghc-hspec)
9627 ("ghc-quickcheck" ,ghc-quickcheck)))
dddbc90c
RV
9628 (home-page "https://www.yesodweb.com/book/persistent")
9629 (synopsis "Type-safe, non-relational, multi-backend persistence")
9630 (description "This Haskell package provides interfaces and helper
9631functions for the ghc-persistent package.")
9632 (license license:expat)))
9633
ce32f7c7
ASM
9634(define-public ghc-persistent-test
9635 (package
9636 (name "ghc-persistent-test")
9637 (version "2.0.3.1")
9638 (source
9639 (origin
9640 (method url-fetch)
9641 (uri (string-append
9642 "https://hackage.haskell.org/package/persistent-test/"
9643 "persistent-test-" version ".tar.gz"))
9644 (sha256
9645 (base32
9646 "11aq5cy0n43jamf6mg4sr4300bc2zdbjxsczzxwjkb4hzs0ijsdv"))))
9647 (build-system haskell-build-system)
9648 (inputs
9649 `(("ghc-aeson" ,ghc-aeson)
9650 ("ghc-blaze-html" ,ghc-blaze-html)
9651 ("ghc-conduit" ,ghc-conduit)
9652 ("ghc-monad-control" ,ghc-monad-control)
9653 ("ghc-monad-logger" ,ghc-monad-logger)
9654 ("ghc-path-pieces" ,ghc-path-pieces)
9655 ("ghc-persistent" ,ghc-persistent)
9656 ("ghc-persistent-template" ,ghc-persistent-template)
9657 ("ghc-random" ,ghc-random)
9658 ("ghc-resourcet" ,ghc-resourcet)
9659 ("ghc-transformers-base" ,ghc-transformers-base)
9660 ("ghc-unliftio" ,ghc-unliftio)
9661 ("ghc-unliftio-core" ,ghc-unliftio-core)
9662 ("ghc-unordered-containers" ,ghc-unordered-containers)))
9663 (native-inputs
9664 `(("ghc-quickcheck" ,ghc-quickcheck)
9665 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
9666 ("ghc-hspec" ,ghc-hspec)
9667 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
9668 ("ghc-hunit" ,ghc-hunit)))
9669 (home-page "https://www.yesodweb.com/book/persistent")
9670 (synopsis "Tests for the Persistent database library")
9671 (description
9672 "This is only for use in developing libraries that should conform to
9673the persistent interface, not for users of the persistent suite of database
9674libraries.")
9675 (license license:expat)))
9676
0fb34235
JS
9677(define-public ghc-pgp-wordlist
9678 (package
9679 (name "ghc-pgp-wordlist")
9680 (version "0.1.0.3")
9681 (source
9682 (origin
9683 (method url-fetch)
9684 (uri (string-append
9685 "mirror://hackage/package/pgp-wordlist/pgp-wordlist-"
9686 version
9687 ".tar.gz"))
9688 (sha256
9689 (base32
9690 "15g6qh0fb7kjj3l0w8cama7cxgnhnhybw760md9yy7cqfq15cfzg"))))
9691 (build-system haskell-build-system)
9692 (inputs
9693 `(("ghc-vector" ,ghc-vector)))
9694 (native-inputs
9695 `(("ghc-hunit" ,ghc-hunit)
9696 ("ghc-tasty" ,ghc-tasty)
9697 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
9698 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
9699 ("ghc-doctest" ,ghc-doctest)))
9700 (home-page
9701 "https://github.com/quchen/pgp-wordlist")
9702 (synopsis
9703 "Translate between binary data and a human-readable collection of words")
9704 (description
9705 "The PGP Word List consists of two phonetic alphabets, each with one word
9706per possible byte value. A string of bytes is translated with these
9707alphabets, alternating between them at each byte.
9708
9709The PGP words corresponding to the bytes 5B 1D CA 6E are \"erase breakaway
9710spellbind headwaters\", for example.
9711
9712For further information, see
9713@url{http://en.wikipedia.org/wiki/PGP_word_list}.")
9714 (license license:bsd-3)))
9715
4639fa32
ASM
9716(define-public ghc-pipes
9717 (package
9718 (name "ghc-pipes")
9719 (version "4.3.13")
9720 (source
9721 (origin
9722 (method url-fetch)
9723 (uri (string-append
9724 "https://hackage.haskell.org/package/pipes/"
9725 "pipes-" version ".tar.gz"))
9726 (sha256
9727 (base32
9728 "1ch3xr5f5if0psd3lsyrpkwrgh36synnzqcpimghprys68l4zfkn"))))
9729 (build-system haskell-build-system)
9730 (inputs
9731 `(("ghc-exceptions" ,ghc-exceptions)
9732 ("ghc-mmorph" ,ghc-mmorph)
9733 ("ghc-void" ,ghc-void)
9734 ("ghc-semigroups" ,ghc-semigroups)))
9735 (native-inputs
9736 `(("ghc-quickcheck" ,ghc-quickcheck)
9737 ("ghc-test-framework" ,ghc-test-framework)
9738 ("ghc-test-framework-quickcheck2"
9739 ,ghc-test-framework-quickcheck2)))
9740 (home-page
9741 "https://hackage.haskell.org/package/pipes")
9742 (synopsis "Compositional pipelines")
9743 (description
9744 "A clean and powerful stream processing library that lets you build
9745and connect reusable streaming components. Advantages over traditional streaming
9746libraries:
9747@itemize
9748@item Concise API: Use simple commands like @code{for}, (@code{>->}), @code{await},
9749and @code{yield}
9750@item Blazing fast: Implementation tuned for speed, including shortcut fusion
9751@item Lightweight Dependency: pipes is small and compiles very rapidly, including
9752dependencies
9753@item Elegant semantics: Use practical category theory
9754@item ListT: Correct implementation of @code{ListT} that interconverts with pipes
9755@item Bidirectionality: Implement duplex channels
9756@end itemize")
9757 (license license:bsd-3)))
9758
451775a5
ASM
9759(define-public ghc-pointedlist
9760 (package
9761 (name "ghc-pointedlist")
9762 (version "0.6.1")
9763 (source
9764 (origin
9765 (method url-fetch)
9766 (uri (string-append
9767 "https://hackage.haskell.org/package/pointedlist/"
9768 "pointedlist-" version ".tar.gz"))
9769 (sha256
9770 (base32
9771 "16xsrzqql7i4z6a3xy07sqnbyqdmcar1jiacla58y4mvkkwb0g3l"))))
9772 (build-system haskell-build-system)
9773 (home-page
3ef91e15 9774 "https://hackage.haskell.org/package/pointedlist")
451775a5
ASM
9775 (synopsis
9776 "Zipper-like comonad which works as a list, tracking a position")
9777 (description
9778 "A PointedList tracks the position in a non-empty list which works
9779similarly to a zipper. A current item is always required, and therefore
9780the list may never be empty. A circular PointedList wraps around to the
9781other end when progressing past the actual edge.")
9782 (license license:bsd-3)))
9783
dddbc90c
RV
9784(define-public ghc-polyparse
9785 (package
9786 (name "ghc-polyparse")
9822b9ca 9787 (version "1.12.1")
dddbc90c
RV
9788 (source
9789 (origin
9790 (method url-fetch)
9791 (uri (string-append
9792 "https://hackage.haskell.org/package/polyparse/polyparse-"
9793 version
9794 ".tar.gz"))
9795 (sha256
9796 (base32
9822b9ca 9797 "19fs18g7fvfdkm9zy28cgighjcxfa6mcpqgyp6whmsjkb3h393fx"))))
dddbc90c
RV
9798 (build-system haskell-build-system)
9799 (home-page
9800 "http://code.haskell.org/~malcolm/polyparse/")
9801 (synopsis
9802 "Alternative parser combinator libraries")
9803 (description
9804 "This package provides a variety of alternative parser combinator
9805libraries, including the original HuttonMeijer set. The Poly sets have
9806features like good error reporting, arbitrary token type, running state, lazy
9807parsing, and so on. Finally, Text.Parse is a proposed replacement for the
9808standard Read class, for better deserialisation of Haskell values from
9809Strings.")
9810 (license license:lgpl2.1)))
9811
9812(define-public ghc-pqueue
9813 (package
9814 (name "ghc-pqueue")
142415b0 9815 (version "1.4.1.2")
dddbc90c
RV
9816 (source
9817 (origin
9818 (method url-fetch)
9819 (uri (string-append "https://hackage.haskell.org/package/"
9820 "pqueue/pqueue-" version ".tar.gz"))
9821 (sha256
9822 (base32
142415b0 9823 "1v4zhv2sc1zsw91hvnarkjhayx2dnf7ccxz6rrhsqpcs0szaranj"))))
dddbc90c
RV
9824 (build-system haskell-build-system)
9825 (native-inputs
9826 `(("ghc-quickcheck" ,ghc-quickcheck)))
9827 (home-page "https://hackage.haskell.org/package/pqueue")
9828 (synopsis "Reliable, persistent, fast priority queues")
9829 (description
9830 "This package provides a fast, reliable priority queue implementation
9831based on a binomial heap.")
9832 (license license:bsd-3)))
9833
9834(define-public ghc-prelude-extras
9835 (package
9836 (name "ghc-prelude-extras")
9837 (version "0.4.0.3")
9838 (source
9839 (origin
9840 (method url-fetch)
9841 (uri (string-append
9842 "https://hackage.haskell.org/package/prelude-extras/prelude-extras-"
9843 version
9844 ".tar.gz"))
9845 (sha256
9846 (base32
9847 "0xzqdf3nl2h0ra4gnslm1m1nsxlsgc0hh6ky3vn578vh11zhifq9"))))
9848 (build-system haskell-build-system)
9849 (home-page "https://github.com/ekmett/prelude-extras")
9850 (synopsis "Higher order versions of Prelude classes")
9851 (description "This library provides higher order versions of
9852@code{Prelude} classes to ease programming with polymorphic recursion and
9853reduce @code{UndecidableInstances}.")
9854 (license license:bsd-3)))
9855
9856(define-public ghc-prettyclass
9857 (package
9858 (name "ghc-prettyclass")
9859 (version "1.0.0.0")
9860 (source
9861 (origin
9862 (method url-fetch)
9863 (uri (string-append "https://hackage.haskell.org/package/"
9864 "prettyclass/prettyclass-" version ".tar.gz"))
9865 (sha256
9866 (base32
9867 "11l9ajci7nh1r547hx8hgxrhq8mh5gdq30pdf845wvilg9p48dz5"))))
9868 (build-system haskell-build-system)
3ef91e15 9869 (home-page "https://hackage.haskell.org/package/prettyclass")
dddbc90c
RV
9870 (synopsis "Pretty printing class similar to Show")
9871 (description "This package provides a pretty printing class similar
9872to @code{Show}, based on the HughesPJ pretty printing library. It
9873provides the pretty printing class and instances for the Prelude
9874types.")
9875 (license license:bsd-3)))
9876
2fad2bf7
JS
9877(define-public ghc-prettyprinter
9878 (package
9879 (name "ghc-prettyprinter")
9880 (version "1.2.1.1")
9881 (source
9882 (origin
9883 (method url-fetch)
9884 (uri (string-append
9885 "mirror://hackage/package/prettyprinter/prettyprinter-"
9886 version
9887 ".tar.gz"))
9888 (sha256
9889 (base32 "1p9c3q55hba4c0zyxc624g5df7wgsclpsmd8wqpdnmib882q9d1v"))))
9890 (build-system haskell-build-system)
9891 (native-inputs
9892 `(("ghc-doctest" ,ghc-doctest)
9893 ("ghc-pgp-wordlist" ,ghc-pgp-wordlist)
9894 ("ghc-tasty" ,ghc-tasty)
9895 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
9896 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
9897 (home-page "https://github.com/quchen/prettyprinter")
9898 (synopsis
9899 "Modern, easy to use, well-documented, extensible pretty-printer")
9900 (description
9901 "A prettyprinter/text rendering engine. Easy to use, well-documented,
9902ANSI terminal backend exists, HTML backend is trivial to implement, no name
9903clashes, @code{Text}-based, extensible.")
9904 (license license:bsd-2)))
9905
2496e49f
JS
9906(define-public ghc-prettyprinter-1.6
9907 (package
9908 (inherit ghc-prettyprinter)
9909 (version "1.6.1")
9910 (source
9911 (origin
9912 (method url-fetch)
9913 (uri (string-append
9914 "mirror://hackage/package/prettyprinter/prettyprinter-"
9915 version
9916 ".tar.gz"))
9917 (sha256
9918 (base32 "10fphxh8lvdaw7i8jyllwmj87w02db92mf99zfw5vddp9mv6b5rz"))))
9919 (inputs
9920 `(("ghc-quickckeck-instances" , ghc-quickcheck-instances)
9921 ,@(package-inputs ghc-prettyprinter)))))
9922
b4f24d66
JS
9923(define-public ghc-prettyprinter-ansi-terminal
9924 (package
9925 (name "ghc-prettyprinter-ansi-terminal")
9926 (version "1.1.1.2")
9927 (source
9928 (origin
9929 (method url-fetch)
9930 (uri (string-append
9931 "mirror://hackage/package/prettyprinter-ansi-terminal/"
9932 "prettyprinter-ansi-terminal-" version ".tar.gz"))
9933 (sha256
9934 (base32 "0ha6vz707qzb5ky7kdsnw2zgphg2dnxrpbrxy8gaw119vwhb9q6k"))))
9935 (build-system haskell-build-system)
9936 (inputs
9937 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
9938 ("ghc-prettyprinter" ,ghc-prettyprinter-1.6)))
9939 (native-inputs `(("ghc-doctest" ,ghc-doctest)))
9940 (home-page
9941 "https://github.com/quchen/prettyprinter")
9942 (synopsis
9943 "ANSI terminal backend for the prettyprinter package")
9944 (description "ANSI terminal backend for the prettyprinter package.")
9945 (license license:bsd-2)))
9946
dddbc90c
RV
9947(define-public ghc-pretty-hex
9948 (package
9949 (name "ghc-pretty-hex")
9950 (version "1.0")
9951 (source
9952 (origin
9953 (method url-fetch)
9954 (uri (string-append "https://hackage.haskell.org/package/"
9955 "pretty-hex-" version "/"
9956 "pretty-hex-" version ".tar.gz"))
9957 (sha256
9958 (base32
9959 "0ylwkvvjvmpprha9nx83xb8gkhyanhk5fffc0r7lb96n4ch5z6pz"))))
9960 (build-system haskell-build-system)
9961 (home-page "https://github.com/GaloisInc/hexdump")
9962 (synopsis "Haskell library for hex dumps of ByteStrings")
9963 (description "This Haskell library generates pretty hex dumps of
9964ByteStrings in the style of other common *nix hex dump tools.")
9965 (license license:bsd-3)))
9966
9967(define-public ghc-pretty-show
9968 (package
9969 (name "ghc-pretty-show")
7683a084 9970 (version "1.9.5")
dddbc90c
RV
9971 (source
9972 (origin
9973 (method url-fetch)
9974 (uri (string-append "https://hackage.haskell.org/package/pretty-show/"
9975 "pretty-show-" version ".tar.gz"))
9976 (sha256
9977 (base32
7683a084 9978 "0gs2pabi4qa4b0r5vffpf9b1cf5n9y2939a3lljjw7cmg6xvx5dh"))))
dddbc90c
RV
9979 (build-system haskell-build-system)
9980 (inputs
9981 `(("ghc-haskell-lexer" ,ghc-haskell-lexer)
9982 ("ghc-happy" ,ghc-happy)))
702a1012 9983 (home-page "https://wiki.github.com/yav/pretty-show")
dddbc90c
RV
9984 (synopsis "Tools for working with derived `Show` instances")
9985 (description
9986 "This package provides a library and an executable for working with
9987derived @code{Show} instances. By using the library, derived @code{Show}
9988instances can be parsed into a generic data structure. The @code{ppsh} tool
9989uses the library to produce human-readable versions of @code{Show} instances,
9990which can be quite handy for debugging Haskell programs. We can also render
9991complex generic values into an interactive Html page, for easier
9992examination.")
9993 (license license:expat)))
9994
f011e3d6
JS
9995(define-public ghc-pretty-simple
9996 (package
9997 (name "ghc-pretty-simple")
9998 (version "2.2.0.1")
9999 (source
10000 (origin
10001 (method url-fetch)
10002 (uri (string-append
10003 "mirror://hackage/package/pretty-simple/"
10004 "pretty-simple-" version ".tar.gz"))
10005 (sha256
10006 (base32 "0wsi9235ihm15s145lxi7325vv2k4bhighc5m88kn1lk0pl81aqq"))))
10007 (build-system haskell-build-system)
10008 (inputs
10009 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
10010 ("ghc-glob" ,ghc-glob)
10011 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
10012 ("ghc-aeson" ,ghc-aeson)))
10013 (native-inputs
10014 `(("ghc-doctest" ,ghc-doctest)))
10015 (home-page "https://github.com/cdepillabout/pretty-simple")
10016 (synopsis "Pretty printer for data types with a 'Show' instance")
10017 (description
10018 "Pretty-simple is a pretty printer for Haskell data types that have a
10019Show instance.")
10020 (license license:bsd-3)))
10021
dddbc90c
RV
10022(define-public ghc-primitive
10023 (package
10024 (name "ghc-primitive")
10025 (version "0.6.4.0")
534d6caa 10026 (outputs '("out" "static" "doc"))
dddbc90c
RV
10027 (source
10028 (origin
10029 (method url-fetch)
10030 (uri (string-append
10031 "https://hackage.haskell.org/package/primitive/primitive-"
10032 version
10033 ".tar.gz"))
10034 (sha256
10035 (base32
10036 "0r0cda7acvplgwaxy69kviv4jp7kkfi038by68gj4yfx4iwszgjc"))))
10037 (build-system haskell-build-system)
6cf0daa4
TS
10038 (arguments
10039 `(#:cabal-revision
10040 ("1" "18a14k1yiam1m4l29rin9a0y53yp3nxvkz358nysld8aqwy2qsjv")))
dddbc90c
RV
10041 (home-page
10042 "https://github.com/haskell/primitive")
10043 (synopsis "Primitive memory-related operations")
10044 (description
10045 "This package provides various primitive memory-related operations.")
10046 (license license:bsd-3)))
10047
21f5b9a9
JS
10048(define-public ghc-process-extras
10049 (package
10050 (name "ghc-process-extras")
10051 (version "0.7.4")
10052 (source
10053 (origin
10054 (method url-fetch)
10055 (uri
10056 (string-append
10057 "https://hackage.haskell.org/package/process-extras/"
10058 "process-extras-" version ".tar.gz"))
10059 (sha256
10060 (base32
10061 "0klqgr37f1z2z6i0a9b0giapmq0p35l5k9kz1p7f0k1597w7agi9"))))
10062 (build-system haskell-build-system)
10063 (inputs
10064 `(("ghc-data-default" ,ghc-data-default)
10065 ("ghc-generic-deriving" ,ghc-generic-deriving)
10066 ("ghc-hunit" ,ghc-hunit)
10067 ("ghc-listlike" ,ghc-listlike)))
10068 (home-page "https://github.com/seereason/process-extras")
10069 (synopsis "Extra tools for managing processes")
f74b6983 10070 (description "This package extends
21f5b9a9
JS
10071@url{http://hackage.haskell.org/package/process}. It allows you to read
10072process input and output as ByteStrings or Text, or write your own
10073ProcessOutput instance. It also provides lazy process input and output,
10074and a ProcessMaker class for more flexibility in the process creation
10075API.")
10076 (license license:expat)))
10077
dddbc90c
RV
10078(define-public ghc-profunctors
10079 (package
10080 (name "ghc-profunctors")
899b5297 10081 (version "5.3")
dddbc90c
RV
10082 (source
10083 (origin
10084 (method url-fetch)
10085 (uri (string-append
10086 "https://hackage.haskell.org/package/profunctors/profunctors-"
10087 version
10088 ".tar.gz"))
10089 (sha256
10090 (base32
899b5297 10091 "1dx3nkc27yxsrbrhh3iwhq7dl1xn6bj7n62yx6nh8vmpbg62lqvl"))))
dddbc90c 10092 (build-system haskell-build-system)
1ad496e5 10093 (outputs '("out" "static" "doc"))
dddbc90c
RV
10094 (inputs
10095 `(("ghc-base-orphans" ,ghc-base-orphans)
10096 ("ghc-bifunctors" ,ghc-bifunctors)
10097 ("ghc-comonad" ,ghc-comonad)
10098 ("ghc-contravariant" ,ghc-contravariant)
10099 ("ghc-distributive" ,ghc-distributive)
10100 ("ghc-semigroups" ,ghc-semigroups)
10101 ("ghc-tagged" ,ghc-tagged)))
10102 (home-page "https://github.com/ekmett/profunctors/")
10103 (synopsis "Profunctors for Haskell")
10104 (description "This library provides profunctors for Haskell.")
10105 (license license:bsd-3)))
10106
fbe32d46
ASM
10107(define-public ghc-project-template
10108 (package
10109 (name "ghc-project-template")
10110 (version "0.2.0.1")
10111 (source
10112 (origin
10113 (method url-fetch)
10114 (uri (string-append
10115 "https://hackage.haskell.org/package/project-template/project-template-"
10116 version ".tar.gz"))
10117 (sha256
10118 (base32
10119 "1p69ww4rhah2qxragl615wl4a6mk4x9w09am8knmz3s4lxpljlpb"))))
10120 (build-system haskell-build-system)
10121 (inputs
10122 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
10123 ("ghc-conduit" ,ghc-conduit)
10124 ("ghc-conduit-extra" ,ghc-conduit-extra)
10125 ("ghc-resourcet" ,ghc-resourcet)))
10126 (native-inputs
10127 `(("ghc-hspec" ,ghc-hspec)
10128 ("hspec-discover" ,hspec-discover)
10129 ("ghc-quickcheck" ,ghc-quickcheck)))
10130 (arguments
10131 `(#:cabal-revision
10132 ("1"
10133 "0lq3sqnq0nr0gbvgzp0lqdl3j3mqdmdlf8xsw0j3pjh581xj3k0a")))
10134 (home-page "https://github.com/fpco/haskell-ide")
10135 (synopsis "Specify Haskell project templates and generate files")
10136 (description
10137 "Haskell library for both generating and consuming project templates.
10138
10139ost IDEs provide the concept of a project template: instead of writing all
10140of the code for a project from scratch, you select a template, answer a few
10141questions, and a bunch of files are automatically generated.
10142
10143project-template tries to provide a canonical Haskell library for implementing
10144the ideal templating system.")
10145 (license license:bsd-3)))
10146
8a6e745d
JS
10147(define-public ghc-protolude
10148 (package
10149 (name "ghc-protolude")
10150 (version "0.2.3")
10151 (source
10152 (origin
10153 (method url-fetch)
10154 (uri (string-append
10155 "mirror://hackage/package/protolude/protolude-"
10156 version
10157 ".tar.gz"))
10158 (sha256
10159 (base32
10160 "0zzkyxz0vmcbncpid7gp72fpjj0fla3gqhlfkij5c5lg12skjgfj"))))
10161 (build-system haskell-build-system)
10162 (inputs
10163 `(("ghc-async" ,ghc-async)
10164 ("ghc-hashable" ,ghc-hashable)
10165 ("ghc-mtl-compat" ,ghc-mtl-compat)
10166 ("ghc-transformers-compat" ,ghc-transformers-compat)))
10167 (home-page "https://github.com/protolude/protolude")
10168 (synopsis "Sensible set of defaults for writing custom Preludes")
10169 (description
10170 "Protolude gives you sensible defaults for writing custom Preludes to
10171replace the standard one provided by GHC.")
10172 (license license:expat)))
10173
cf123e32
MB
10174(define-public ghc-psqueue
10175 (package
10176 (name "ghc-psqueue")
10177 (version "1.1.0.1")
10178 (source (origin
10179 (method url-fetch)
10180 (uri (string-append "mirror://hackage/package/PSQueue-"
10181 version "/PSQueue-" version ".tar.gz"))
10182 (sha256
10183 (base32
10184 "1cik7sw10sacsijmfhghzy54gm1qcyxw14shlp86lx8z89kcnkza"))))
10185 (build-system haskell-build-system)
10186 (home-page "https://hackage.haskell.org/package/PSQueue")
10187 (synopsis "Priority search queue")
10188 (description
10189 "A @dfn{priority search queue} efficiently supports the operations of
10190both a search tree and a priority queue. A @code{Binding} is a product of
10191a key and a priority. Bindings can be inserted, deleted, modified and queried
10192in logarithmic time, and the binding with the least priority can be retrieved
10193in constant time. A queue can be built from a list of bindings, sorted by
10194keys, in linear time.")
10195 (license license:bsd-3)))
10196
dddbc90c
RV
10197(define-public ghc-psqueues
10198 (package
10199 (name "ghc-psqueues")
5d133942 10200 (version "0.2.7.2")
dddbc90c
RV
10201 (source
10202 (origin
10203 (method url-fetch)
10204 (uri (string-append "https://hackage.haskell.org/package/"
10205 "psqueues-" version "/"
10206 "psqueues-" version ".tar.gz"))
10207 (sha256
10208 (base32
5d133942 10209 "1yckx2csqswghiy9nfj03cybmza8104nmnpbpcc9ngwlbmakn9i6"))))
dddbc90c
RV
10210 (build-system haskell-build-system)
10211 (inputs
10212 `(("ghc-hashable" ,ghc-hashable)))
10213 (native-inputs
10214 `(("ghc-hunit" ,ghc-hunit)
10215 ("ghc-quickcheck" ,ghc-quickcheck)
10216 ("ghc-tagged" ,ghc-tagged)
5d133942
TS
10217 ("ghc-tasty" ,ghc-tasty)
10218 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
10219 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
dddbc90c
RV
10220 (home-page "https://github.com/jaspervdj/psqueues")
10221 (synopsis "Pure priority search queues")
10222 (description "The psqueues package provides
10223@uref{https://en.wikipedia.org/wiki/Priority_queue, Priority Search Queues} in
10224three different flavors:
10225
10226@itemize
10227@item @code{OrdPSQ k p v}, which uses the @code{Ord k} instance to provide
10228fast insertion, deletion and lookup. This implementation is based on Ralf
10229Hinze's @uref{http://citeseer.ist.psu.edu/hinze01simple.html, A Simple
10230Implementation Technique for Priority Search Queues}.
10231
10232Hence, it is similar to the @uref{https://hackage.haskell.org/package/PSQueue,
10233PSQueue} library, although it is considerably faster and provides a slightly
10234different API.
10235
10236@item @code{IntPSQ p v} is a far more efficient implementation. It fixes the
10237key type to @code{Int} and uses a
10238@code{https://en.wikipedia.org/wiki/Radix_tree, radix tree} (like @code{IntMap})
10239with an additional min-heap property.
10240
10241@item @code{HashPSQ k p v} is a fairly straightforward extension
10242of @code{IntPSQ}: it simply uses the keys' hashes as indices in the
10243@code{IntPSQ}. If there are any hash collisions, it uses an
10244@code{OrdPSQ} to resolve those. The performance of this implementation
10245is comparable to that of @code{IntPSQ}, but it is more widely
10246applicable since the keys are not restricted to @code{Int},
10247but rather to any @code{Hashable} datatype.
10248@end itemize
10249
10250Each of the three implementations provides the same API, so they can
10251be used interchangeably.
10252
10253Typical applications of Priority Search Queues include:
10254
10255@itemize
10256@item Caches, and more specifically LRU Caches;
10257@item Schedulers;
10258@item Pathfinding algorithms, such as Dijkstra's and A*.
10259@end itemize")
10260 (license license:bsd-3)))
b1dbc9f5
ASM
10261
10262(define-public ghc-pwstore-fast
10263 (package
10264 (name "ghc-pwstore-fast")
10265 (version "2.4.4")
10266 (source
10267 (origin
10268 (method url-fetch)
10269 (uri (string-append
10270 "https://hackage.haskell.org/package/pwstore-fast/"
10271 "pwstore-fast-" version ".tar.gz"))
10272 (sha256
10273 (base32
10274 "1cpvlwzg3qznhygrr78f75p65mnljd9v5cvnagfxjqppnrkay6bj"))))
10275 (build-system haskell-build-system)
10276 (inputs
10277 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
10278 ("ghc-cryptohash" ,ghc-cryptohash)
10279 ("ghc-random" ,ghc-random)
10280 ("ghc-byteable" ,ghc-byteable)))
10281 (home-page "https://github.com/PeterScott/pwstore")
10282 (synopsis "Secure password storage")
10283 (description
10284 "To store passwords securely, they should be salted, then hashed with
10285a slow hash function. This library uses PBKDF1-SHA256, and handles all the
10286details. It uses the cryptohash package for speed; if you need a pure
10287Haskell library, pwstore-purehaskell has the exact same API, but uses only
10288pure Haskell. It is about 25 times slower than this package, but still quite
10289usable.")
10290 (license license:bsd-3)))
dddbc90c
RV
10291
10292(define-public ghc-random
10293 (package
10294 (name "ghc-random")
10295 (version "1.1")
534d6caa 10296 (outputs '("out" "static" "doc"))
dddbc90c
RV
10297 (source
10298 (origin
10299 (method url-fetch)
10300 (uri (string-append
10301 "https://hackage.haskell.org/package/random/random-"
10302 version
10303 ".tar.gz"))
10304 (sha256
10305 (base32 "0nis3lbkp8vfx8pkr6v7b7kr5m334bzb0fk9vxqklnp2aw8a865p"))))
10306 (build-system haskell-build-system)
10307 (home-page "https://hackage.haskell.org/package/random")
10308 (synopsis "Random number library")
10309 (description "This package provides a basic random number generation
10310library, including the ability to split random number generators.")
10311 (license license:bsd-3)))
10312
10313(define-public ghc-raw-strings-qq
10314 (package
10315 (name "ghc-raw-strings-qq")
10316 (version "1.1")
10317 (source
10318 (origin
10319 (method url-fetch)
10320 (uri (string-append "https://hackage.haskell.org/package/"
10321 "raw-strings-qq/raw-strings-qq-"
10322 version ".tar.gz"))
10323 (sha256
10324 (base32
10325 "1lxy1wy3awf52968iy5y9r5z4qgnn2sxkdrh7js3m9gadb11w09f"))))
10326 (build-system haskell-build-system)
10327 (native-inputs `(("ghc-hunit" ,ghc-hunit)))
10328 (home-page "https://github.com/23Skidoo/raw-strings-qq")
10329 (synopsis "Raw string literals for Haskell")
10330 (description
10331 "This package provides a quasiquoter for raw string literals, i.e. string
10332literals that don't recognise the standard escape sequences. Basically, they
10333make your code more readable by freeing you from the responsibility to escape
10334backslashes. They are useful when working with regular expressions,
10335DOS/Windows paths and markup languages (such as XML).")
10336 (license license:bsd-3)))
10337
10338(define-public ghc-readable
10339 (package
10340 (name "ghc-readable")
10341 (version "0.3.1")
10342 (source
10343 (origin
10344 (method url-fetch)
10345 (uri (string-append "https://hackage.haskell.org/package/"
10346 "readable/readable-" version ".tar.gz"))
10347 (sha256
10348 (base32
10349 "1ja39cg26wy2fs00gi12x7iq5k8i366pbqi3p916skfa5jnkfc3h"))))
10350 (build-system haskell-build-system)
10351 (home-page "https://github.com/mightybyte/readable")
10352 (synopsis "Type class for reading from Text and ByteString")
10353 (description "This package provides a @code{Readable} type class for
10354reading data types from @code{ByteString} and @code{Text}. It also
10355includes efficient implementations for common data types.")
10356 (license license:bsd-3)))
10357
10358(define-public ghc-rebase
10359 (package
10360 (name "ghc-rebase")
8d2ae3fe 10361 (version "1.3.1.1")
dddbc90c
RV
10362 (source
10363 (origin
10364 (method url-fetch)
10365 (uri (string-append "https://hackage.haskell.org/package/"
10366 "rebase-" version "/"
10367 "rebase-" version ".tar.gz"))
10368 (sha256
10369 (base32
8d2ae3fe 10370 "0q4m2fa7wkgxs0grir8rlqwibasmi3s1x7c107ynndwfm62nzv0a"))))
dddbc90c 10371 (build-system haskell-build-system)
e396e936 10372 (outputs '("out" "static" "doc"))
dddbc90c
RV
10373 (inputs `(("ghc-hashable" ,ghc-hashable)
10374 ("ghc-vector" ,ghc-vector)
10375 ("ghc-unordered-containers" ,ghc-unordered-containers)
10376 ("ghc-scientific" ,ghc-scientific)
10377 ("ghc-uuid" ,ghc-uuid)
10378 ("ghc-dlist" ,ghc-dlist)
10379 ("ghc-void" ,ghc-void)
10380 ("ghc-bifunctors" ,ghc-bifunctors)
10381 ("ghc-profunctors" ,ghc-profunctors)
10382 ("ghc-contravariant" ,ghc-contravariant)
10383 ("ghc-contravariant-extras" ,ghc-contravariant-extras)
10384 ("ghc-semigroups" ,ghc-semigroups)
10385 ("ghc-either" ,ghc-either)
10386 ("ghc-fail" ,ghc-fail)
10387 ("ghc-base-prelude" ,ghc-base-prelude)))
10388 (home-page "https://github.com/nikita-volkov/rebase")
10389 (synopsis "Progressive alternative to the base package
10390for Haskell")
10391 (description "This Haskell package is intended for those who are
10392tired of keeping long lists of dependencies to the same essential libraries
10393in each package as well as the endless imports of the same APIs all over again.
10394
10395It also supports the modern tendencies in the language.
10396
10397To solve those problems this package does the following:
10398
10399@itemize
10400@item Reexport the original APIs under the @code{Rebase} namespace.
10401
10402@item Export all the possible non-conflicting symbols from the
10403@code{Rebase.Prelude} module.
10404
10405@item Give priority to the modern practices in the conflicting cases.
10406@end itemize
10407
10408The policy behind the package is only to reexport the non-ambiguous and
10409non-controversial APIs, which the community has obviously settled on.
10410The package is intended to rapidly evolve with the contribution from
10411the community, with the missing features being added with pull-requests.")
10412 (license license:expat)))
10413
10414(define-public ghc-reducers
10415 (package
10416 (name "ghc-reducers")
10417 (version "3.12.3")
10418 (source
10419 (origin
10420 (method url-fetch)
10421 (uri (string-append
10422 "https://hackage.haskell.org/package/reducers/reducers-"
10423 version
10424 ".tar.gz"))
10425 (sha256
10426 (base32
10427 "09wf8pl9ycglcv6qj5ba26gkg2s5iy81hsx9xp0q8na0cwvp71ki"))))
10428 (build-system haskell-build-system)
10429 (inputs
10430 `(("ghc-fingertree" ,ghc-fingertree)
10431 ("ghc-hashable" ,ghc-hashable)
10432 ("ghc-unordered-containers" ,ghc-unordered-containers)
10433 ("ghc-semigroupoids" ,ghc-semigroupoids)
10434 ("ghc-semigroups" ,ghc-semigroups)))
10435 (home-page "https://github.com/ekmett/reducers/")
10436 (synopsis "Semigroups, specialized containers and a general map/reduce framework")
10437 (description "This library provides various semigroups, specialized
10438containers and a general map/reduce framework for Haskell.")
10439 (license license:bsd-3)))
10440
10441(define-public ghc-refact
10442 (package
10443 (name "ghc-refact")
10444 (version "0.3.0.2")
10445 (source
10446 (origin
10447 (method url-fetch)
10448 (uri (string-append "https://hackage.haskell.org/package/"
10449 "refact/refact-"
10450 version ".tar.gz"))
10451 (sha256
10452 (base32
10453 "0v0zxcx29b8jxs2kgy9csykqcp8kzhdvyylw2xfwmj4pfxr2kl0a"))))
10454 (build-system haskell-build-system)
3ef91e15 10455 (home-page "https://hackage.haskell.org/package/refact")
dddbc90c
RV
10456 (synopsis "Specify refactorings to perform with apply-refact")
10457 (description
10458 "This library provides a datatype which can be interpreted by
10459@code{apply-refact}. It exists as a separate library so that applications can
10460specify refactorings without depending on GHC.")
10461 (license license:bsd-3)))
10462
10463(define-public ghc-reflection
10464 (package
10465 (name "ghc-reflection")
d215f1cc 10466 (version "2.1.5")
dddbc90c
RV
10467 (source
10468 (origin
10469 (method url-fetch)
10470 (uri (string-append
10471 "https://hackage.haskell.org/package/reflection/reflection-"
10472 version
10473 ".tar.gz"))
10474 (sha256
10475 (base32
d215f1cc 10476 "0xr947nj1vww5b8fwqmypxm3y3j5sxl4z8wnf834f83jzfzyjbi7"))))
dddbc90c
RV
10477 (build-system haskell-build-system)
10478 (inputs `(("ghc-tagged" ,ghc-tagged)))
d215f1cc
TS
10479 (native-inputs
10480 `(("ghc-hspec" ,ghc-hspec)
10481 ("ghc-quickcheck" ,ghc-quickcheck)
10482 ("hspec-discover" ,hspec-discover)))
dddbc90c
RV
10483 (home-page "https://github.com/ekmett/reflection")
10484 (synopsis "Reify arbitrary terms into types that can be reflected back
10485into terms")
10486 (description "This package addresses the 'configuration problem' which is
10487propagating configurations that are available at run-time, allowing multiple
10488configurations to coexist without resorting to mutable global variables or
10489@code{System.IO.Unsafe.unsafePerformIO}.")
10490 (license license:bsd-3)))
10491
10492(define-public ghc-regex
10493 (package
10494 (name "ghc-regex")
b9a5e634 10495 (version "1.0.2.0")
dddbc90c
RV
10496 (source
10497 (origin
10498 (method url-fetch)
10499 (uri (string-append "https://hackage.haskell.org/package/regex/"
10500 "regex-" version ".tar.gz"))
10501 (sha256
10502 (base32
b9a5e634 10503 "1f2z025hif1fr24b5khq3qxxyvpxrnhyx8xmbms332arw28rpkda"))))
dddbc90c
RV
10504 (build-system haskell-build-system)
10505 (arguments
10506 `(#:phases
10507 (modify-phases %standard-phases
10508 (add-after 'unpack 'relax-dependencies
10509 (lambda _
10510 (substitute* "regex.cabal"
10511 (("base-compat.*>=.*0.6.*")
10512 "base-compat >= 0.6\n")
10513 (("template-haskell.*>=.*2.7.*")
10514 "template-haskell >= 2.7\n"))
10515 #t)))))
10516 (inputs
10517 `(("ghc-base-compat" ,ghc-base-compat)
10518 ("ghc-hashable" ,ghc-hashable)
10519 ("ghc-regex-base" ,ghc-regex-base)
10520 ("ghc-regex-pcre-builtin" ,ghc-regex-pcre-builtin)
10521 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
10522 ("ghc-regex-tdfa-text" ,ghc-regex-tdfa-text)
10523 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
10524 ("ghc-unordered-containers" ,ghc-unordered-containers)
10525 ("ghc-utf8-string" ,ghc-utf8-string)))
10526 (home-page "http://regex.uk")
10527 (synopsis "Toolkit for regex-base")
10528 (description
10529 "This package provides a regular expression toolkit for @code{regex-base}
10530with compile-time checking of regular expression syntax, data types for
10531matches and captures, a text replacement toolkit, portable options, high-level
10532AWK-like tools for building text processing apps, regular expression macros
10533with parsers and test bench, comprehensive documentation, tutorials and
10534copious examples.")
10535 (license license:bsd-3)))
10536
10537(define-public ghc-regex-applicative
10538 (package
10539 (name "ghc-regex-applicative")
30f60e42 10540 (version "0.3.3.1")
dddbc90c
RV
10541 (source
10542 (origin
10543 (method url-fetch)
10544 (uri (string-append
10545 "https://hackage.haskell.org/package/regex-applicative/"
10546 "regex-applicative-" version ".tar.gz"))
10547 (sha256
10548 (base32
30f60e42 10549 "0p0anx5vamrhrdvviwkh2zn6pa3pv2bjb7nfyc7dvz2q7g14y1lg"))))
dddbc90c
RV
10550 (build-system haskell-build-system)
10551 (inputs
10552 `(("ghc-smallcheck" ,ghc-smallcheck)
10553 ("ghc-tasty" ,ghc-tasty)
10554 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
10555 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
10556 (home-page "https://github.com/feuerbach/regex-applicative")
10557 (synopsis "Regex-based parsing with applicative interface")
10558 (description
10559 "@code{regex-applicative} is a Haskell library for parsing using
10560regular expressions. Parsers can be built using Applicative interface.")
10561 (license license:expat)))
10562
10563(define-public ghc-regex-base
10564 (package
10565 (name "ghc-regex-base")
10566 (version "0.93.2")
10567 (source
10568 (origin
10569 (method url-fetch)
10570 (uri (string-append
10571 "https://hackage.haskell.org/package/regex-base/regex-base-"
10572 version
10573 ".tar.gz"))
10574 (sha256
10575 (base32
10576 "0y1j4h2pg12c853nzmczs263di7xkkmlnsq5dlp5wgbgl49mgp10"))))
10577 (build-system haskell-build-system)
10578 (home-page
10579 "https://sourceforge.net/projects/lazy-regex")
10580 (synopsis "Replaces/Enhances Text.Regex")
10581 (description "@code{Text.Regex.Base} provides the interface API for
10582regex-posix, regex-pcre, regex-parsec, regex-tdfa, regex-dfa.")
10583 (license license:bsd-3)))
10584
10585(define-public ghc-regex-compat
10586 (package
10587 (name "ghc-regex-compat")
10588 (version "0.95.1")
10589 (source
10590 (origin
10591 (method url-fetch)
10592 (uri (string-append
10593 "https://hackage.haskell.org/package/regex-compat/regex-compat-"
10594 version
10595 ".tar.gz"))
10596 (sha256
10597 (base32
10598 "0fwmima3f04p9y4h3c23493n1xj629ia2dxaisqm6rynljjv2z6m"))))
10599 (build-system haskell-build-system)
10600 (inputs
10601 `(("ghc-regex-base" ,ghc-regex-base)
10602 ("ghc-regex-posix" ,ghc-regex-posix)))
10603 (home-page "https://sourceforge.net/projects/lazy-regex")
10604 (synopsis "Replaces/Enhances Text.Regex")
10605 (description "This library provides one module layer over
10606@code{regex-posix} to replace @code{Text.Regex}.")
10607 (license license:bsd-3)))
10608
10609(define-public ghc-regex-compat-tdfa
10610 (package
10611 (name "ghc-regex-compat-tdfa")
10612 (version "0.95.1.4")
10613 (source
10614 (origin
10615 (method url-fetch)
10616 (uri (string-append
10617 "https://hackage.haskell.org/package/regex-compat-tdfa/regex-compat-tdfa-"
10618 version ".tar.gz"))
10619 (sha256
10620 (base32
10621 "1p90fn90yhp7fvljjdqjp41cszidcfz4pw7fwvzyx4739b98x8sg"))))
10622 (build-system haskell-build-system)
10623 (inputs
10624 `(("ghc-regex-base" ,ghc-regex-base)
10625 ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
10626 (home-page "https://hub.darcs.net/shelarcy/regex-compat-tdfa")
10627 (synopsis "Unicode Support version of Text.Regex, using regex-tdfa")
10628 (description
10629 "One module layer over @code{regex-tdfa} to replace @code{Text.Regex}.
10630@code{regex-compat} can't use Unicode characters correctly because of using regex-posix.
10631This is not good for Unicode users. This modified regex-compat uses regex-tdfa to solve
10632this problem.")
10633 (license license:bsd-3)))
10634
ddd79836
MB
10635(define-public ghc-regex-pcre
10636 (package
10637 (name "ghc-regex-pcre")
10638 (version "0.94.4")
10639 (source (origin
10640 (method url-fetch)
10641 (uri (string-append "https://hackage.haskell.org/package/"
10642 "regex-pcre/regex-pcre-" version ".tar.gz"))
10643 (sha256
10644 (base32
10645 "1h16w994g9s62iwkdqa7bar2n9cfixmkzz2rm8svm960qr57valf"))))
10646 (build-system haskell-build-system)
991ca499
TS
10647 (arguments
10648 `(#:extra-directories ("pcre")))
ddd79836
MB
10649 (inputs
10650 `(("ghc-regex-base" ,ghc-regex-base)
10651 ("pcre" ,pcre)))
10652 (home-page "https://hackage.haskell.org/package/regex-pcre")
10653 (synopsis "Enhancement of the builtin Text.Regex library")
10654 (description
10655 "This package is an enhancement of the @code{Text.Regex} library.
10656It wraps the @code{PCRE} C library providing Perl-compatible regular
10657expressions.")
10658 (license license:bsd-3)))
10659
dddbc90c
RV
10660(define-public ghc-regex-pcre-builtin
10661 (package
10662 (name "ghc-regex-pcre-builtin")
ee946143 10663 (version "0.94.5.8.8.35")
dddbc90c
RV
10664 (source (origin
10665 (method url-fetch)
10666 (uri (string-append "https://hackage.haskell.org/package/"
10667 "regex-pcre-builtin/regex-pcre-builtin-"
10668 version ".tar.gz"))
10669 (sha256
10670 (base32
ee946143 10671 "1s755qdg1mxrf125sh83bsc5kjkrj8fkq8wf6dg1jan86c7p7gl4"))))
dddbc90c
RV
10672 (build-system haskell-build-system)
10673 (inputs
10674 `(("ghc-regex-base" ,ghc-regex-base)))
4723766b 10675 (home-page "https://hackage.haskell.org/package/regex-pcre-builtin")
dddbc90c
RV
10676 (synopsis "Enhancement of the builtin Text.Regex library")
10677 (description
10678 "This package is an enhancement of the @code{Text.Regex} library,
10679providing the PCRE backend to accompany regex-base, with bundled code from
10680@url{https://www.pcre.org}.")
10681 (license license:bsd-3)))
10682
10683(define-public ghc-regex-posix
10684 (package
10685 (name "ghc-regex-posix")
10686 (version "0.95.2")
10687 (source
10688 (origin
10689 (method url-fetch)
10690 (uri (string-append
10691 "https://hackage.haskell.org/package/regex-posix/regex-posix-"
10692 version
10693 ".tar.gz"))
10694 (sha256
10695 (base32
10696 "0gkhzhj8nvfn1ija31c7xnl6p0gadwii9ihyp219ck2arlhrj0an"))))
10697 (build-system haskell-build-system)
10698 (inputs
10699 `(("ghc-regex-base" ,ghc-regex-base)))
10700 (home-page "https://sourceforge.net/projects/lazy-regex")
10701 (synopsis "POSIX regular expressions for Haskell")
10702 (description "This library provides the POSIX regex backend used by the
10703Haskell library @code{regex-base}.")
10704 (license license:bsd-3)))
10705
10706(define-public ghc-regex-tdfa
10707 (package
10708 (name "ghc-regex-tdfa")
ce684db0 10709 (version "1.2.3.2")
dddbc90c
RV
10710 (source
10711 (origin
10712 (method url-fetch)
10713 (uri (string-append
10714 "https://hackage.haskell.org/package/regex-tdfa/regex-tdfa-"
10715 version ".tar.gz"))
10716 (sha256
10717 (base32
ce684db0 10718 "03yhpqrqz977nwlnhnyz9dacnbzw8xb6j18h365rkgmbc05sb3hf"))))
dddbc90c 10719 (build-system haskell-build-system)
54c8209e 10720 (outputs '("out" "static" "doc"))
dddbc90c
RV
10721 (inputs
10722 `(("ghc-regex-base" ,ghc-regex-base)))
90b74c6f 10723 (home-page "https://github.com/haskell-hvr/regex-tdfa")
dddbc90c
RV
10724 (synopsis "POSIX extended regular expressions in Haskell.")
10725 (description
10726 "Regex-tdfa is a pure Haskell regular expression library implementing POSIX
10727extended regular expressions. It is a \"tagged\" DFA regex engine. It is
10728inspired by libtre.")
10729 (license license:bsd-3)))
10730
10731(define-public ghc-regex-tdfa-text
10732 (package
10733 (name "ghc-regex-tdfa-text")
10734 (version "1.0.0.3")
10735 (source
10736 (origin
10737 (method url-fetch)
10738 (uri (string-append
10739 "https://hackage.haskell.org/package/regex-tdfa-text/"
10740 "regex-tdfa-text-" version ".tar.gz"))
10741 (sha256
10742 (base32
10743 "0090g6lgbdm9lywpqm2d3724nnnh24nx3vnlqr96qc2w486pmmrq"))))
10744 (build-system haskell-build-system)
10745 (inputs
10746 `(("ghc-regex-base" ,ghc-regex-base)
10747 ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
10748 (home-page
3ef91e15 10749 "https://hackage.haskell.org/package/regex-tdfa-text")
dddbc90c
RV
10750 (synopsis "Text interface for regex-tdfa")
10751 (description
10752 "This provides an extra text interface for regex-tdfa.")
10753 (license license:bsd-3)))
10754
798a2df4
JS
10755(define-public ghc-repline
10756 (package
10757 (name "ghc-repline")
10758 (version "0.2.0.0")
10759 (source
10760 (origin
10761 (method url-fetch)
10762 (uri (string-append
10763 "mirror://hackage/package/repline/repline-"
10764 version
10765 ".tar.gz"))
10766 (sha256
10767 (base32
10768 "1ph21kbbanlcs8n5lwk16g9vqkb98mkbz5mzwrp8j2rls2921izc"))))
10769 (build-system haskell-build-system)
10770 (home-page "https://github.com/sdiehl/repline")
10771 (synopsis "Haskeline wrapper for GHCi-like REPL interfaces")
10772 (description
10773 "Haskeline wrapper for GHCi-like REPL interfaces. Composable with
10774normal mtl transformers.")
10775 (license license:expat)))
10776
6c0858dd
JS
10777(define-public ghc-repline-0.3
10778 (package
10779 (inherit ghc-repline)
10780 (version "0.3.0.0")
10781 (source
10782 (origin
10783 (method url-fetch)
10784 (uri (string-append
10785 "mirror://hackage/package/repline/repline-"
10786 version
10787 ".tar.gz"))
10788 (sha256
10789 (base32
10790 "0niihfyggg2qisadg7w49cr5k5qyyynia93iip0ng2bbmzwi88g8"))))
10791 (inputs
10792 `(("ghc-exceptions" ,ghc-exceptions)
10793 ("ghc-haskeline" ,ghc-haskeline-0.8)))))
10794
dddbc90c
RV
10795(define-public ghc-rerebase
10796 (package
10797 (name "ghc-rerebase")
cdec7b8c 10798 (version "1.3.1.1")
dddbc90c
RV
10799 (source
10800 (origin
10801 (method url-fetch)
10802 (uri (string-append
10803 "https://hackage.haskell.org/package/rerebase/rerebase-"
10804 version ".tar.gz"))
10805 (sha256
10806 (base32
cdec7b8c 10807 "1jbqif6k249rkknm2zwk8v8jil3kgi9ar53358v8l4ffx346rm82"))))
dddbc90c 10808 (build-system haskell-build-system)
af2f91ec 10809 (outputs '("out" "static" "doc"))
dddbc90c
RV
10810 (inputs
10811 `(("ghc-rebase" ,ghc-rebase)))
10812 (home-page "https://github.com/nikita-volkov/rerebase")
10813 (synopsis "Reexports from ``base'' with many other standard libraries")
10814 (description "A rich drop-in replacement for @code{base}. For details and
10815documentation please visit @uref{https://github.com/nikita-volkov/rerebase,
10816the project's home page}.")
10817 (license license:expat)))
10818
10819(define-public ghc-resolv
10820 (package
10821 (name "ghc-resolv")
87309478 10822 (version "0.1.1.2")
dddbc90c
RV
10823 (source
10824 (origin
10825 (method url-fetch)
10826 (uri (string-append
10827 "https://hackage.haskell.org/package/resolv/resolv-"
10828 version ".tar.gz"))
10829 (sha256
10830 (base32
87309478 10831 "0wczdy3vmpfcfwjn1m95bygc5d83m97xxmavhdvy5ayn8c402fp4"))))
dddbc90c
RV
10832 (build-system haskell-build-system)
10833 (arguments
87309478
TS
10834 `(#:phases
10835 (modify-phases %standard-phases
10836 (add-before 'configure 'update-constraints
10837 (lambda _
10838 (substitute* "resolv.cabal"
10839 (("tasty >= 1\\.1 && < 1\\.2")
10840 "tasty >= 1.1 && < 1.3"))
10841 #t)))))
dddbc90c
RV
10842 (inputs
10843 `(("ghc-base16-bytestring" ,ghc-base16-bytestring)))
87309478
TS
10844 (native-inputs
10845 `(("ghc-tasty" ,ghc-tasty)
10846 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
dddbc90c
RV
10847 (home-page "https://github.com/haskell/hackage-security")
10848 (synopsis "Domain Name Service (DNS) lookup via @code{libresolv}")
10849 (description "This package implements an API for accessing the
10850@uref{https://tools.ietf.org/html/rfc1035, Domain Name Service (DNS)}
10851resolver service via the standard @code{libresolv} system library (whose
10852API is often available directly via the standard @code{libc} C library) on
10853Unix systems.")
10854 (license license:gpl3)))
10855
10856(define-public ghc-resource-pool
10857 (package
10858 (name "ghc-resource-pool")
10859 (version "0.2.3.2")
10860 (source
10861 (origin
10862 (method url-fetch)
10863 (uri (string-append "https://hackage.haskell.org/package/"
10864 "resource-pool-" version "/"
10865 "resource-pool-" version ".tar.gz"))
10866 (sha256
10867 (base32
10868 "04mw8b9djb14zp4rdi6h7mc3zizh597ffiinfbr4m0m8psifw9w6"))))
10869 (build-system haskell-build-system)
10870 (inputs `(("ghc-hashable" ,ghc-hashable)
10871 ("ghc-monad-control" ,ghc-monad-control)
10872 ("ghc-transformers-base" ,ghc-transformers-base)
10873 ("ghc-vector" ,ghc-vector)))
10874 (home-page "https://github.com/bos/pool")
10875 (synopsis "Striped resource pooling implementation in Haskell")
10876 (description "This Haskell package provides striped pooling abstraction
10877for managing flexibly-sized collections of resources such as database
10878connections.")
10879 (license license:bsd-3)))
10880
10881(define-public ghc-resourcet
10882 (package
10883 (name "ghc-resourcet")
9ac341ac 10884 (version "1.2.2")
dddbc90c
RV
10885 (source
10886 (origin
10887 (method url-fetch)
10888 (uri (string-append "https://hackage.haskell.org/package/resourcet/"
10889 "resourcet-" version ".tar.gz"))
10890 (sha256
10891 (base32
9ac341ac 10892 "1rfbfcv3r1h29y0yqr3x6a1s04lbc3vzm3jqnfg4f9rqp9d448qk"))))
dddbc90c
RV
10893 (build-system haskell-build-system)
10894 (inputs
10895 `(("ghc-transformers-base" ,ghc-transformers-base)
10896 ("ghc-monad-control" ,ghc-monad-control)
10897 ("ghc-transformers-compat" ,ghc-transformers-compat)
10898 ("ghc-mmorph" ,ghc-mmorph)
10899 ("ghc-exceptions" ,ghc-exceptions)
10900 ("ghc-unliftio-core" ,ghc-unliftio-core)))
10901 (native-inputs
10902 `(("ghc-lifted-base" ,ghc-lifted-base)
10903 ("ghc-hspec" ,ghc-hspec)))
10904 (home-page "https://github.com/snoyberg/conduit")
10905 (synopsis "Deterministic allocation and freeing of scarce resources")
10906 (description "ResourceT is a monad transformer which creates a region of
10907code where you can safely allocate resources.")
10908 (license license:bsd-3)))
10909
b9debc37
TS
10910(define-public ghc-retry
10911 (package
10912 (name "ghc-retry")
10913 (version "0.8.1.0")
10914 (source
10915 (origin
10916 (method url-fetch)
10917 (uri (string-append "https://hackage.haskell.org/package/"
10918 "retry/retry-" version ".tar.gz"))
10919 (sha256
10920 (base32
10921 "02k03r86amg1vbrsvb644342ym13d9jwkzki9sk93pdg5l8j35dj"))))
10922 (build-system haskell-build-system)
10923 (inputs
10924 `(("ghc-exceptions" ,ghc-exceptions)
10925 ("ghc-random" ,ghc-random)))
10926 (native-inputs
10927 `(("ghc-hunit" ,ghc-hunit)
10928 ("ghc-tasty" ,ghc-tasty)
10929 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
10930 ("ghc-tasty-hedgehog" ,ghc-tasty-hedgehog)
10931 ("ghc-hedgehog" ,ghc-hedgehog)))
702a1012 10932 (home-page "https://github.com/Soostone/retry")
b9debc37
TS
10933 (synopsis "Retry combinators for monadic actions that may fail")
10934 (description "This package exposes combinators that can wrap
10935arbitrary monadic actions. They run the action and potentially retry
10936running it with some configurable delay for a configurable number of
10937times. The purpose is to make it easier to work with IO and especially
10938network IO actions that often experience temporary failure and warrant
10939retrying of the original action. For example, a database query may time
10940out for a while, in which case we should hang back for a bit and retry
10941the query instead of simply raising an exception.")
10942 (license license:bsd-3)))
10943
dddbc90c
RV
10944(define-public ghc-rfc5051
10945 (package
10946 (name "ghc-rfc5051")
ec42ab7c 10947 (version "0.1.0.4")
dddbc90c
RV
10948 (source
10949 (origin
10950 (method url-fetch)
10951 (uri (string-append "https://hackage.haskell.org/package/rfc5051/"
10952 "rfc5051-" version ".tar.gz"))
10953 (sha256
10954 (base32
ec42ab7c 10955 "1lxkq414ni986ciml4gbvf463fn55z299knky7pq3ixb1qislpb1"))))
dddbc90c
RV
10956 (build-system haskell-build-system)
10957 (home-page "https://hackage.haskell.org/package/rfc5051")
10958 (synopsis "Simple unicode collation as per RFC5051")
10959 (description
10960 "This library implements @code{unicode-casemap}, the simple, non
10961locale-sensitive unicode collation algorithm described in RFC 5051. Proper
10962unicode collation can be done using @code{text-icu}, but that is a big
10963dependency that depends on a large C library, and @code{rfc5051} might be
10964better for some purposes.")
10965 (license license:bsd-3)))
10966
10967(define-public ghc-rio
10968 (package
10969 (name "ghc-rio")
8bda2fa7 10970 (version "0.1.12.0")
dddbc90c
RV
10971 (source
10972 (origin
10973 (method url-fetch)
10974 (uri (string-append
10975 "https://hackage.haskell.org/package/rio/rio-"
10976 version ".tar.gz"))
10977 (sha256
10978 (base32
8bda2fa7 10979 "0xzjkh6aavynpyskikhs8dmv0zhkiqiwz9zdn80zbd25b2182pif"))))
dddbc90c
RV
10980 (build-system haskell-build-system)
10981 (inputs
10982 `(("ghc-exceptions" ,ghc-exceptions)
10983 ("ghc-hashable" ,ghc-hashable)
10984 ("ghc-microlens" ,ghc-microlens)
10985 ("ghc-primitive" ,ghc-primitive)
10986 ("ghc-typed-process" ,ghc-typed-process)
10987 ("ghc-unliftio" ,ghc-unliftio)
10988 ("ghc-unordered-containers" ,ghc-unordered-containers)
10989 ("ghc-vector" ,ghc-vector)))
10990 (native-inputs
10991 `(("ghc-hspec" ,ghc-hspec)
10992 ("hspec-discover" ,hspec-discover)))
10993 (home-page "https://github.com/commercialhaskell/rio#readme")
10994 (synopsis "A standard library for Haskell")
10995 (description "This package works as a prelude replacement for Haskell,
10996providing more functionality and types out of the box than the standard
10997prelude (such as common data types like @code{ByteString} and
10998@code{Text}), as well as removing common ``gotchas'', like partial
10999functions and lazy I/O. The guiding principle here is:
11000@itemize
11001@item If something is safe to use in general and has no expected naming
11002conflicts, expose it.
11003@item If something should not always be used, or has naming conflicts,
11004expose it from another module in the hierarchy.
11005@end itemize")
11006 (license license:expat)))
11007
11008(define-public ghc-safe
11009 (package
11010 (name "ghc-safe")
11011 (version "0.3.17")
11012 (source
11013 (origin
11014 (method url-fetch)
11015 (uri (string-append
11016 "https://hackage.haskell.org/package/safe/safe-"
11017 version
11018 ".tar.gz"))
11019 (sha256
11020 (base32
11021 "0p3yaf5slvyz1cyy51jq64c5rlp8yzwim8iy2dlnk42if4gc9ibr"))))
11022 (build-system haskell-build-system)
11023 (native-inputs
11024 `(("ghc-quickcheck" ,ghc-quickcheck)))
11025 (home-page "https://github.com/ndmitchell/safe#readme")
11026 (synopsis "Library of safe (exception free) functions")
11027 (description "This library provides wrappers around @code{Prelude} and
11028@code{Data.List} functions, such as @code{head} and @code{!!}, that can throw
11029exceptions.")
11030 (license license:bsd-3)))
11031
11032(define-public ghc-safe-exceptions
11033 (package
11034 (name "ghc-safe-exceptions")
11035 (version "0.1.7.0")
11036 (source
11037 (origin
11038 (method url-fetch)
11039 (uri (string-append "https://hackage.haskell.org/package/"
11040 "safe-exceptions/safe-exceptions-"
11041 version ".tar.gz"))
11042 (sha256
11043 (base32
11044 "0sd0zfsm9pcll5bzzj523rbn45adjrnavdkz52hgmdjjgdcdrk8q"))))
11045 (build-system haskell-build-system)
11046 (arguments
11047 '(#:cabal-revision
11048 ("4" "0fid41gishzsyb47wzxhd5falandfirqcp760hcja81qjpfmqd32")))
11049 (inputs `(("ghc-exceptions" ,ghc-exceptions)))
11050 (native-inputs
11051 `(("ghc-hspec" ,ghc-hspec)
11052 ("ghc-void" ,ghc-void)
11053 ("hspec-discover" ,hspec-discover)))
11054 (home-page "https://github.com/fpco/safe-exceptions")
11055 (synopsis "Safe, consistent, and easy exception handling")
11056 (description "Runtime exceptions - as exposed in @code{base} by the
11057@code{Control.Exception} module - have long been an intimidating part of the
11058Haskell ecosystem. This package is intended to overcome this. It provides a
11059safe and simple API on top of the existing exception handling machinery. The
11060API is equivalent to the underlying implementation in terms of power but
11061encourages best practices to minimize the chances of getting the exception
11062handling wrong.")
11063 (license license:expat)))
11064
11065(define-public ghc-safeio
11066 (package
11067 (name "ghc-safeio")
11068 (version "0.0.5.0")
11069 (source
11070 (origin
11071 (method url-fetch)
11072 (uri (string-append "https://hackage.haskell.org/package/safeio/"
11073 "safeio-" version ".tar.gz"))
11074 (sha256
11075 (base32
11076 "04g3070cbjdqj0h9l9ii6470xcbn40xfv4fr89a8yvnkdim9nyfm"))))
11077 (build-system haskell-build-system)
11078 (inputs
11079 `(("ghc-conduit" ,ghc-conduit)
11080 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
11081 ("ghc-exceptions" ,ghc-exceptions)
11082 ("ghc-resourcet" ,ghc-resourcet)))
11083 (native-inputs
11084 `(("ghc-hunit" ,ghc-hunit)
11085 ("ghc-test-framework" ,ghc-test-framework)
11086 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
11087 ("ghc-test-framework-th" ,ghc-test-framework-th)))
11088 (home-page "https://github.com/luispedro/safeio")
11089 (synopsis "Write output to disk atomically")
11090 (description
11091 "This package implements utilities to perform atomic output so as to
11092avoid the problem of partial intermediate files.")
11093 (license license:expat)))
11094
11095(define-public ghc-safesemaphore
11096 (package
11097 (name "ghc-safesemaphore")
11098 (version "0.10.1")
11099 (source
11100 (origin
11101 (method url-fetch)
11102 (uri (string-append "https://hackage.haskell.org/package/"
11103 "SafeSemaphore/SafeSemaphore-" version ".tar.gz"))
11104 (sha256
11105 (base32
11106 "0rpg9j6fy70i0b9dkrip9d6wim0nac0snp7qzbhykjkqlcvvgr91"))))
11107 (build-system haskell-build-system)
11108 (native-inputs
11109 `(("ghc-hunit" ,ghc-hunit)))
11110 (home-page "https://github.com/ChrisKuklewicz/SafeSemaphore")
11111 (synopsis "Exception safe semaphores")
11112 (description "This library provides exception safe semaphores that can be
11113used in place of @code{QSem}, @code{QSemN}, and @code{SampleVar}, all of which
11114are not exception safe and can be broken by @code{killThread}.")
11115 (license license:bsd-3)))
11116
11117(define-public ghc-sandi
11118 (package
11119 (name "ghc-sandi")
b867c2b0 11120 (version "0.5")
dddbc90c
RV
11121 (source
11122 (origin
11123 (method url-fetch)
11124 (uri (string-append
11125 "https://hackage.haskell.org/package/sandi/sandi-"
11126 version ".tar.gz"))
11127 (sha256
11128 (base32
b867c2b0 11129 "1ndgai8idlxyccvkz5zsgq06v58blc30i6hkky5b1sf5x6gs2h29"))))
dddbc90c
RV
11130 (build-system haskell-build-system)
11131 (inputs
11132 `(("ghc-stringsearch" ,ghc-stringsearch)
11133 ("ghc-conduit" ,ghc-conduit)
11134 ("ghc-exceptions" ,ghc-exceptions)
11135 ("ghc-hunit" ,ghc-hunit)
11136 ("ghc-tasty" ,ghc-tasty)
11137 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
11138 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
11139 ("ghc-tasty-th" ,ghc-tasty-th)))
11140 (home-page "https://hackage.haskell.org/package/sandi")
11141 (synopsis "Data encoding library")
11142 (description "Reasonably fast data encoding library.")
11143 (license license:bsd-3)))
11144
4da75228
ASM
11145(define-public ghc-say
11146 (package
11147 (name "ghc-say")
11148 (version "0.1.0.1")
11149 (source
11150 (origin
11151 (method url-fetch)
11152 (uri (string-append
11153 "https://hackage.haskell.org/package/say/say-"
11154 version
11155 ".tar.gz"))
11156 (sha256
11157 (base32
11158 "1r5kffjfwpas45g74sip8glrj1m9nygrnxjm7xgw898rq9pnafgn"))))
11159 (build-system haskell-build-system)
11160 (native-inputs
11161 `(("ghc-hspec" ,ghc-hspec)
11162 ("hspec-discover" ,hspec-discover)
11163 ("ghc-unliftio" ,ghc-unliftio)))
11164 (home-page "https://github.com/fpco/say")
11165 (synopsis
11166 "Send textual messages to a Handle in a thread-friendly way")
11167 (description
11168 "A thread safe API to write a line of textual data to a Handle, such
11169as sending some messages to the terminal - that has the following properties:
11170@itemize
11171@item Properly handle character encoding settings on the Handle
11172@item For reasonably sized messages, ensure that the entire message is written
11173 in one chunk to avoid interleaving data with other threads
11174@item Avoid unnecessary memory allocations and copies
11175@item Minimize locking.
11176@end itemize")
11177 (license license:expat)))
11178
dddbc90c
RV
11179(define-public ghc-scientific
11180 (package
11181 (name "ghc-scientific")
11182 (version "0.3.6.2")
11183 (source
11184 (origin
11185 (method url-fetch)
11186 (uri (string-append
11187 "https://hackage.haskell.org/package/scientific/scientific-"
11188 version
11189 ".tar.gz"))
11190 (sha256
11191 (base32
11192 "03ql2f0ac8bsl524idy9xxa3kxisb2sj3avflzw580j5hzy0m397"))))
11193 (build-system haskell-build-system)
11194 (inputs
11195 `(("ghc-integer-logarithms" ,ghc-integer-logarithms)
11196 ("ghc-hashable" ,ghc-hashable)
11197 ("ghc-primitive" ,ghc-primitive)))
11198 (native-inputs
11199 `(("ghc-tasty" ,ghc-tasty)
11200 ("ghc-tasty-ant-xml" ,ghc-tasty-ant-xml)
11201 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
11202 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
11203 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
11204 ("ghc-smallcheck" ,ghc-smallcheck)
11205 ("ghc-quickcheck" ,ghc-quickcheck)))
11206 (home-page "https://github.com/basvandijk/scientific")
11207 (synopsis "Numbers represented using scientific notation")
11208 (description "This package provides @code{Data.Scientific}, which provides
11209the number type @code{Scientific}. Scientific numbers are arbitrary precision
11210and space efficient. They are represented using
11211@uref{https://en.wikipedia.org/wiki/Scientific_notation, scientific
11212notation}.")
11213 (license license:bsd-3)))
11214
11215(define-public ghc-scientific-bootstrap
11216 (package
11217 (inherit ghc-scientific)
11218 (name "ghc-scientific-bootstrap")
11219 (arguments `(#:tests? #f))
11220 (inputs
11221 `(("ghc-integer-logarithms" ,ghc-integer-logarithms-bootstrap)
11222 ("ghc-hashable" ,ghc-hashable)
11223 ("ghc-primitive" ,ghc-primitive)))
11224 (native-inputs '())
799d8d3c 11225 (properties '((hidden? #t)))))
dddbc90c
RV
11226
11227(define-public ghc-sdl
11228 (package
11229 (name "ghc-sdl")
11230 (version "0.6.7.0")
11231 (source
11232 (origin
11233 (method url-fetch)
11234 (uri (string-append
11235 "https://hackage.haskell.org/package/SDL/SDL-"
11236 version
11237 ".tar.gz"))
11238 (sha256
11239 (base32
11240 "00y67v80a8l09i3k76z09lg25kw72ivl09nag8ckdlk4a0cfnzfq"))))
11241 (build-system haskell-build-system)
11242 (inputs
11243 `(("sdl" ,sdl)))
11244 (home-page "https://hackage.haskell.org/package/SDL")
11245 (synopsis "LibSDL for Haskell")
11246 (description "Simple DirectMedia Layer (libSDL) is a cross-platform
11247multimedia library designed to provide low level access to audio, keyboard,
11248mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used
11249by MPEG playback software, emulators, and many popular games, including the
11250award winning Linux port of \"Civilization: Call To Power.\"")
11251 (license license:bsd-3)))
11252
1874cdc1
RV
11253(define-public ghc-sdl2
11254 (package
11255 (name "ghc-sdl2")
145148ca 11256 (version "2.5.0.0")
1874cdc1
RV
11257 (source
11258 (origin
11259 (method url-fetch)
11260 (uri (string-append "https://hackage.haskell.org/package/"
11261 "sdl2/sdl2-" version ".tar.gz"))
11262 (sha256
11263 (base32
145148ca 11264 "1x368yhdd55b3cvx8dvj1sj6nzygzigbhrwhssjs4k0rcxlwqfw8"))))
1874cdc1
RV
11265 (build-system haskell-build-system)
11266 (arguments '(#:tests? #f)) ; tests require graphical environment
11267 (inputs
11268 `(("ghc-exceptions" ,ghc-exceptions)
11269 ("ghc-linear" ,ghc-linear)
11270 ("ghc-statevar" ,ghc-statevar)
11271 ("ghc-vector" ,ghc-vector)
11272 ("sdl2" ,sdl2)))
11273 (native-inputs
11274 `(("ghc-weigh" ,ghc-weigh)
11275 ("pkg-config" ,pkg-config)))
35437dbf 11276 (home-page "https://hackage.haskell.org/package/sdl2")
1874cdc1
RV
11277 (synopsis "High- and low-level bindings to the SDL library")
11278 (description
11279 "This package contains bindings to the SDL 2 library, in both high- and
11280low-level forms. The @code{SDL} namespace contains high-level bindings, where
11281enumerations are split into sum types, and we perform automatic
11282error-checking. The @code{SDL.Raw} namespace contains an almost 1-1
11283translation of the C API into Haskell FFI calls. As such, this does not
11284contain sum types nor error checking. Thus this namespace is suitable for
11285building your own abstraction over SDL, but is not recommended for day-to-day
11286programming.")
11287 (license license:bsd-3)))
11288
11289(define-public ghc-sdl2-image
11290 (package
11291 (name "ghc-sdl2-image")
11292 (version "2.0.0")
11293 (source
11294 (origin
11295 (method url-fetch)
11296 (uri (string-append "https://hackage.haskell.org/package/sdl2-image/"
11297 "sdl2-image-" version ".tar.gz"))
11298 (sha256
11299 (base32
11300 "1pr6dkg73cy9z0w54lrkj9c5bhxj56nl92lxikjy8kz6nyr455rr"))))
11301 (build-system haskell-build-system)
11302 (inputs
11303 `(("ghc-sdl2" ,ghc-sdl2)
11304 ("sdl2-image" ,sdl2-image)))
11305 (native-inputs
11306 `(("pkg-config" ,pkg-config)))
3ef91e15 11307 (home-page "https://hackage.haskell.org/package/sdl2-image")
1874cdc1
RV
11308 (synopsis "Bindings to SDL2_image")
11309 (description "This package provides Haskell bindings to
11310@code{SDL2_image}.")
11311 (license license:expat)))
11312
11313(define-public ghc-sdl2-mixer
11314 (package
11315 (name "ghc-sdl2-mixer")
11316 (version "1.1.0")
11317 (source
11318 (origin
11319 (method url-fetch)
11320 (uri (string-append "https://hackage.haskell.org/package/sdl2-mixer/"
11321 "sdl2-mixer-" version ".tar.gz"))
11322 (sha256
11323 (base32
11324 "1k8avyccq5l9z7bwxigim312yaancxl1sr3q6a96bcm7pnhiak0g"))))
11325 (build-system haskell-build-system)
11326 (inputs
11327 `(("ghc-data-default-class" ,ghc-data-default-class)
11328 ("ghc-lifted-base" ,ghc-lifted-base)
11329 ("ghc-monad-control" ,ghc-monad-control)
11330 ("ghc-sdl2" ,ghc-sdl2)
11331 ("ghc-vector" ,ghc-vector)
11332 ("sdl2-mixer" ,sdl2-mixer)))
11333 (native-inputs
11334 `(("pkg-config" ,pkg-config)))
3ef91e15 11335 (home-page "https://hackage.haskell.org/package/sdl2-mixer")
1874cdc1
RV
11336 (synopsis "Bindings to SDL2 mixer")
11337 (description "This package provides Haskell bindings to
11338@code{SDL2_mixer}.")
11339 (license license:bsd-3)))
11340
dddbc90c
RV
11341(define-public ghc-sdl-image
11342 (package
11343 (name "ghc-sdl-image")
11344 (version "0.6.2.0")
11345 (source
11346 (origin
11347 (method url-fetch)
11348 (uri (string-append
11349 "https://hackage.haskell.org/package/SDL-image/SDL-image-"
11350 version
11351 ".tar.gz"))
11352 (sha256
11353 (base32
11354 "1gxwrvswgwjw6g7ym52gik22l9l3ljy592phv97jdmcf3gi6qcg1"))))
11355 (build-system haskell-build-system)
11356 (arguments
11357 `(#:configure-flags
11358 (let* ((sdl-image (assoc-ref %build-inputs "sdl-image"))
11359 (sdl-image-include (string-append sdl-image "/include/SDL")))
11360 (list (string-append "--extra-include-dirs=" sdl-image-include)))))
11361 (inputs
11362 `(("ghc-sdl" ,ghc-sdl)
11363 ("sdl-image" ,sdl-image)))
11364 (home-page "https://hackage.haskell.org/package/SDL-image")
11365 (synopsis "Haskell bindings to libSDL_image")
11366 (description "SDL_image is an image file loading library. It loads images
11367as SDL surfaces, and supports the following formats: BMP, GIF, JPEG, LBM, PCX,
11368PNG, PNM, TGA, TIFF, XCF, XPM, XV.")
11369 (license license:bsd-3)))
11370
11371(define-public ghc-sdl-mixer
11372 (package
11373 (name "ghc-sdl-mixer")
11374 (version "0.6.3.0")
11375 (source
11376 (origin
11377 (method url-fetch)
11378 (uri (string-append
11379 "https://hackage.haskell.org/package/SDL-mixer/SDL-mixer-"
11380 version
11381 ".tar.gz"))
11382 (sha256
11383 (base32
11384 "0k26hqgdh789ka3mv4dsk6rin6x6vwcs6hjmnsqq7j3mnrh1342r"))))
11385 (build-system haskell-build-system)
11386 (arguments
11387 `(#:configure-flags
11388 (let* ((sdl-mixer (assoc-ref %build-inputs "sdl-mixer"))
11389 (sdl-mixer-include (string-append sdl-mixer "/include/SDL")))
11390 (list (string-append "--extra-include-dirs=" sdl-mixer-include)))))
11391 (inputs
11392 `(("ghc-sdl" ,ghc-sdl)
11393 ("sdl-mixer" ,sdl-mixer)))
11394 (home-page "https://hackage.haskell.org/package/SDL-mixer")
11395 (synopsis "Haskell bindings to libSDL_mixer")
11396 (description "SDL_mixer is a sample multi-channel audio mixer library. It
11397supports any number of simultaneously playing channels of 16 bit stereo audio,
11398plus a single channel of music, mixed by the popular MikMod MOD, Timidity
11399MIDI, Ogg Vorbis, and SMPEG MP3 libraries.")
11400 (license license:bsd-3)))
11401
11402(define-public ghc-securemem
11403 (package
11404 (name "ghc-securemem")
11405 (version "0.1.10")
11406 (source
11407 (origin
11408 (method url-fetch)
11409 (uri (string-append "https://hackage.haskell.org/package/"
11410 "securemem-" version "/"
11411 "securemem-" version ".tar.gz"))
11412 (sha256
11413 (base32
11414 "19hnw2cfbsfjynxq1bq9f6djbxhsc1k751ml0y1ab3ah913mm29j"))))
11415 (build-system haskell-build-system)
11416 (inputs `(("ghc-byteable" ,ghc-byteable)
11417 ("ghc-memory" ,ghc-memory)))
11418 (home-page "https://github.com/vincenthz/hs-securemem")
11419 (synopsis "Auto-scrubbing and const-time-eq memory chunk abstraction for
11420Haskell")
11421 (description "SecureMem is similar to ByteString, except that it provides
11422a memory chunk that will be auto-scrubbed after it run out of scope.")
11423 (license license:bsd-3)))
11424
3cf7219c
JS
11425(define-public ghc-semialign
11426 (package
11427 (name "ghc-semialign")
11428 (version "1")
11429 (source
11430 (origin
11431 (method url-fetch)
11432 (uri (string-append
11433 "https://hackage.haskell.org/package/semialign/semialign-"
11434 version
11435 ".tar.gz"))
11436 (sha256
11437 (base32
11438 "004x0a80sqqdgvsyk4z0nasxpi6z3g1d8kgwj804bj9ka8dlc75m"))))
11439 (build-system haskell-build-system)
11440 (inputs
11441 `(("ghc-these" ,ghc-these)
11442 ("ghc-base-compat" ,ghc-base-compat)
11443 ("ghc-hashable" ,ghc-hashable)
11444 ("ghc-tagged" ,ghc-tagged)
11445 ("ghc-unordered-containers" ,ghc-unordered-containers)
11446 ("ghc-vector" ,ghc-vector)
11447 ("ghc-semigroupoids" ,ghc-semigroupoids)))
11448 (arguments
11449 `(#:cabal-revision
11450 ("1"
11451 "0qnqnyfng4kwy2h2anrcy5id2ijnawava3zcc5h5b8ri1y6ks6zi")))
11452 (home-page
11453 "https://github.com/isomorphism/these")
11454 (synopsis
11455 "Align and Zip type-classes from the common Semialign ancestor ")
11456 (description
11457 "The major use of @code{These} of this is provided by the
11458@code{align} member of @code{Semialign} class, representing a
11459generalized notion of \"zipping with padding\" that combines
11460structures without truncating to the size of the smaller input. It
11461turns out that @code{zip} operation fits well the @code{Semialign}
11462class, forming lattice-like structure.")
11463 (license license:bsd-3)))
11464
dddbc90c
RV
11465(define-public ghc-semigroupoids
11466 (package
11467 (name "ghc-semigroupoids")
a8aaadf2 11468 (version "5.3.3")
dddbc90c
RV
11469 (source
11470 (origin
11471 (method url-fetch)
11472 (uri (string-append
11473 "https://hackage.haskell.org/package/semigroupoids/semigroupoids-"
11474 version
11475 ".tar.gz"))
11476 (sha256
11477 (base32
a8aaadf2 11478 "016hc4imr9l4szs3p7f1aahvxr5wv4clvr3qzrm3nibssg5vrs61"))))
dddbc90c 11479 (build-system haskell-build-system)
95eb946b 11480 (outputs '("out" "static" "doc"))
dddbc90c
RV
11481 (inputs
11482 `(("ghc-base-orphans" ,ghc-base-orphans)
11483 ("ghc-transformers-compat" ,ghc-transformers-compat)
11484 ("ghc-bifunctors" ,ghc-bifunctors)
11485 ("ghc-comonad" ,ghc-comonad)
11486 ("ghc-contravariant" ,ghc-contravariant)
11487 ("ghc-distributive" ,ghc-distributive)
11488 ("ghc-hashable" ,ghc-hashable)
11489 ("ghc-semigroups" ,ghc-semigroups)
11490 ("ghc-tagged" ,ghc-tagged)
11491 ("ghc-unordered-containers" ,ghc-unordered-containers)))
11492 (native-inputs
11493 `(("cabal-doctest" ,cabal-doctest)
11494 ("ghc-doctest" ,ghc-doctest)))
11495 (home-page "https://github.com/ekmett/semigroupoids")
11496 (synopsis "Semigroupoids operations for Haskell")
11497 (description "This library provides a wide array of (semi)groupoids and
11498operations for working with them. A @code{Semigroupoid} is a @code{Category}
11499without the requirement of identity arrows for every object in the category.
11500A @code{Category} is any @code{Semigroupoid} for which the Yoneda lemma holds.
11501Finally, to work with these weaker structures it is beneficial to have
11502containers that can provide stronger guarantees about their contents, so
11503versions of @code{Traversable} and @code{Foldable} that can be folded with
11504just a @code{Semigroup} are added.")
11505 (license license:bsd-3)))
11506
11507(define-public ghc-semigroups
11508 (package
11509 (name "ghc-semigroups")
11510 (version "0.18.5")
11511 (source
11512 (origin
11513 (method url-fetch)
11514 (uri (string-append
11515 "https://hackage.haskell.org/package/semigroups/semigroups-"
11516 version
11517 ".tar.gz"))
11518 (sha256
11519 (base32
11520 "17g29h62g1k51ghhvzkw72zksjgi6vs6bfipkj81pqw1dsprcamb"))))
11521 (build-system haskell-build-system)
11522 (inputs
11523 `(("ghc-nats" ,ghc-nats)
11524 ("ghc-tagged" ,ghc-tagged)
11525 ("ghc-unordered-containers" ,ghc-unordered-containers)
11526 ("ghc-hashable" ,ghc-hashable)))
11527 (home-page "https://github.com/ekmett/semigroups/")
11528 (synopsis "Semigroup operations for Haskell")
11529 (description "This package provides semigroups for Haskell. In
11530mathematics, a semigroup is an algebraic structure consisting of a set
11531together with an associative binary operation. A semigroup generalizes a
11532monoid in that there might not exist an identity element. It
11533also (originally) generalized a group (a monoid with all inverses) to a type
11534where every element did not have to have an inverse, thus the name
11535semigroup.")
11536 (license license:bsd-3)))
11537
11538(define-public ghc-semigroups-bootstrap
11539 (package
11540 (inherit ghc-semigroups)
11541 (name "ghc-semigroups-bootstrap")
11542 (inputs
11543 `(("ghc-nats" ,ghc-nats-bootstrap)
11544 ("ghc-tagged" ,ghc-tagged)
11545 ("ghc-unordered-containers" ,ghc-unordered-containers-bootstrap)
11546 ("ghc-hashable" ,ghc-hashable-bootstrap)))
799d8d3c 11547 (properties '((hidden? #t)))))
dddbc90c 11548
47c526df
JS
11549(define-public ghc-serialise
11550 (package
11551 (name "ghc-serialise")
11552 (version "0.2.1.0")
11553 (source
11554 (origin
11555 (method url-fetch)
11556 (uri (string-append
11557 "mirror://hackage/package/serialise/serialise-"
11558 version
11559 ".tar.gz"))
11560 (sha256
11561 (base32
11562 "19ary6ivzk8z7wcxhm860qmh7pwqj0qjqzav1h42y85l608zqgh4"))))
11563 (build-system haskell-build-system)
11564 (inputs
11565 `(("ghc-cborg" ,ghc-cborg)
11566 ("ghc-half" ,ghc-half)
11567 ("ghc-hashable" ,ghc-hashable)
11568 ("ghc-primitive" ,ghc-primitive)
11569 ("ghc-unordered-containers" ,ghc-unordered-containers)
11570 ("ghc-vector" ,ghc-vector)))
11571 (native-inputs
11572 `(("ghc-quickcheck" ,ghc-quickcheck)
11573 ("ghc-tasty" ,ghc-tasty)
11574 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
11575 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
11576 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)))
11577 (arguments
11578 `(#:cabal-revision
11579 ("1" "1rknhad1i8bpknsnphmcmb6dnb48c2p2c13ia2qqch3hkhsvfpr6")))
11580 (home-page "https://github.com/well-typed/cborg")
11581 (synopsis "Binary serialisation library for Haskell values")
11582 (description
11583 "This package (formerly binary-serialise-cbor) provides pure,
11584efficient serialization of Haskell values directly into ByteStrings for
11585storage or transmission purposes. By providing a set of type class instances,
11586you can also serialise any custom data type you have as well.
11587
11588The underlying binary format used is the 'Concise Binary Object
11589Representation', or CBOR, specified in RFC 7049. As a result, serialised
11590Haskell values have implicit structure outside of the Haskell program itself,
11591meaning they can be inspected or analyzed without custom tools.
11592
11593An implementation of the standard bijection between CBOR and JSON is
11594provided by the https://hackage.haskell.org/package/cborg-json
11595package. Also see https://hackage.haskell.org/package/cbor-tool for a
11596convenient command-line utility for working with CBOR data.")
11597 (license license:bsd-3)))
11598
dddbc90c
RV
11599(define-public ghc-setenv
11600 (package
11601 (name "ghc-setenv")
11602 (version "0.1.1.3")
11603 (source
11604 (origin
11605 (method url-fetch)
11606 (uri (string-append
11607 "https://hackage.haskell.org/package/setenv/setenv-"
11608 version
11609 ".tar.gz"))
11610 (sha256
11611 (base32
11612 "0cnbgrvb9byyahb37zlqrj05rj25v190crgcw8wmlgf0mwwxyn73"))))
11613 (build-system haskell-build-system)
11614 (home-page "https://hackage.haskell.org/package/setenv")
11615 (synopsis "Library for setting environment variables")
11616 (description "This package provides a Haskell library for setting
11617environment variables.")
11618 (license license:expat)))
11619
11620(define-public ghc-setlocale
11621 (package
11622 (name "ghc-setlocale")
9d7cfc9b 11623 (version "1.0.0.9")
dddbc90c
RV
11624 (source (origin
11625 (method url-fetch)
11626 (uri (string-append
11627 "https://hackage.haskell.org/package/setlocale-"
11628 version "/setlocale-" version ".tar.gz"))
11629 (sha256
11630 (base32
9d7cfc9b 11631 "18b6xafspzxrmz5m9r9nzy3z053crqi59xc8n8aqd4gw0pvqdcrv"))))
dddbc90c
RV
11632 (build-system haskell-build-system)
11633 (home-page "https://hackage.haskell.org/package/setlocale")
11634 (synopsis "Haskell bindings to setlocale")
11635 (description "This package provides Haskell bindings to the
11636@code{setlocale} C function.")
11637 (license license:bsd-3)))
11638
11639(define-public ghc-shakespeare
11640 (package
11641 (name "ghc-shakespeare")
f680955f 11642 (version "2.0.22")
dddbc90c
RV
11643 (source
11644 (origin
11645 (method url-fetch)
11646 (uri (string-append "https://hackage.haskell.org/package/"
11647 "shakespeare-" version "/"
11648 "shakespeare-" version ".tar.gz"))
11649 (sha256
11650 (base32
f680955f 11651 "1mc1a0vv070gcawwcx6vzpj6gpfh1qnlqrndiyfic3p500y656vh"))))
dddbc90c
RV
11652 (build-system haskell-build-system)
11653 (inputs `(("ghc-aeson" ,ghc-aeson)
11654 ("ghc-blaze-markup" ,ghc-blaze-markup)
11655 ("ghc-blaze-html" ,ghc-blaze-html)
11656 ("ghc-exceptions" ,ghc-exceptions)
11657 ("ghc-vector" ,ghc-vector)
11658 ("ghc-unordered-containers" ,ghc-unordered-containers)
11659 ("ghc-scientific" ,ghc-scientific)))
11660 (native-inputs `(("ghc-hspec" ,ghc-hspec)
11661 ("ghc-hunit" ,ghc-hunit)
11662 ("hspec-discover" ,hspec-discover)))
11663 (home-page "https://www.yesodweb.com/book/shakespearean-templates")
11664 (synopsis "Family of type-safe template languages for Haskell")
11665 (description "This Haskell package provides a family of type-safe
11666templates with simple variable interpolation. Shakespeare templates can
11667be used inline with a quasi-quoter or in an external file and it
11668interpolates variables according to the type being inserted.")
11669 (license license:expat)))
11670
11671(define-public ghc-shelly
11672 (package
11673 (name "ghc-shelly")
11674 (version "1.8.1")
11675 (source
11676 (origin
11677 (method url-fetch)
11678 (uri (string-append
11679 "https://hackage.haskell.org/package/shelly/shelly-"
11680 version ".tar.gz"))
11681 (sha256
11682 (base32
11683 "023fbvbqs5gdwm30j5517gbdcc7fvz0md70dgwgpypkskj3i926y"))))
11684 (build-system haskell-build-system)
11685 (inputs
11686 `(("ghc-unix-compat" ,ghc-unix-compat)
11687 ("ghc-system-filepath-bootstrap" ,ghc-system-filepath-bootstrap)
11688 ("ghc-system-fileio-bootstrap" ,ghc-system-fileio-bootstrap)
11689 ("ghc-monad-control" ,ghc-monad-control)
11690 ("ghc-lifted-base" ,ghc-lifted-base)
11691 ("ghc-lifted-async" ,ghc-lifted-async)
11692 ("ghc-exceptions" ,ghc-exceptions)
11693 ("ghc-enclosed-exceptions" ,ghc-enclosed-exceptions)
11694 ("ghc-async" ,ghc-async)
11695 ("ghc-transformers-base" ,ghc-transformers-base)
11696 ("ghc-hunit" ,ghc-hunit)
11697 ("ghc-hspec" ,ghc-hspec)
11698 ("ghc-hspec-contrib" ,ghc-hspec-contrib)))
11699 (home-page "https://github.com/yesodweb/Shelly.hs")
11700 (synopsis "Shell-like (systems) programming in Haskell")
11701 (description
11702 "Shelly provides convenient systems programming in Haskell, similar in
11703spirit to POSIX shells. Shelly is originally forked from the Shellish package.")
11704 (license license:bsd-3)))
11705
11706(define-public ghc-silently
11707 (package
11708 (name "ghc-silently")
544bb369 11709 (version "1.2.5.1")
dddbc90c
RV
11710 (source
11711 (origin
11712 (method url-fetch)
11713 (uri (string-append
11714 "https://hackage.haskell.org/package/silently/silently-"
11715 version
11716 ".tar.gz"))
11717 (sha256
11718 (base32
544bb369 11719 "1lgs1gsr5dp0x21diqn4l03fxgai2kgdmj85gqp0iz3zykvbmjbz"))))
dddbc90c
RV
11720 (build-system haskell-build-system)
11721 (arguments `(#:tests? #f)) ;; circular dependency with nanospec
11722 ;; (inputs
11723 ;; `(("ghc-temporary" ,ghc-temporary)))
11724 (home-page "https://github.com/hspec/silently")
11725 (synopsis "Prevent writing to stdout")
11726 (description "This package provides functions to prevent or capture
11727writing to stdout and other handles.")
11728 (license license:bsd-3)))
11729
11730(define-public ghc-simple-reflect
11731 (package
11732 (name "ghc-simple-reflect")
11733 (version "0.3.3")
11734 (source
11735 (origin
11736 (method url-fetch)
11737 (uri (string-append
11738 "https://hackage.haskell.org/package/simple-reflect/simple-reflect-"
11739 version
11740 ".tar.gz"))
11741 (sha256
11742 (base32
11743 "0ayvrx5cm8n6db21jiyjmk5h93pw7cz1707hih09hlhk9jh5x0h7"))))
11744 (build-system haskell-build-system)
11745 (home-page
11746 "https://twanvl.nl/blog/haskell/simple-reflection-of-expressions")
11747 (synopsis
11748 "Simple reflection of expressions containing variables")
11749 (description
11750 "This package allows simple reflection of expressions containing
11751variables. Reflection here means that a Haskell expression is turned into a
11752string. The primary aim of this package is teaching and understanding; there
11753are no options for manipulating the reflected expressions beyond showing
11754them.")
11755 (license license:bsd-3)))
11756
11757(define-public ghc-simple-sendfile
11758 (package
11759 (name "ghc-simple-sendfile")
08f54390 11760 (version "0.2.30")
dddbc90c
RV
11761 (source
11762 (origin
11763 (method url-fetch)
11764 (uri (string-append "https://hackage.haskell.org/package/"
11765 "simple-sendfile-" version "/"
11766 "simple-sendfile-" version ".tar.gz"))
11767 (sha256
11768 (base32
08f54390 11769 "112j0qfsjazf9wg1zywf7hjybgsiywk9wkm27yi8xzv27hmlv1mn"))))
dddbc90c
RV
11770 (build-system haskell-build-system)
11771 (inputs
11772 `(("ghc-conduit" ,ghc-conduit)
11773 ("ghc-conduit-extra" ,ghc-conduit-extra)
11774 ("ghc-network" ,ghc-network)
11775 ("ghc-resourcet" ,ghc-resourcet)))
11776 (native-inputs
11777 `(("ghc-hspec" ,ghc-hspec)
11778 ("hspec-discover" ,hspec-discover)))
11779 (home-page "https://github.com/kazu-yamamoto/simple-sendfile")
11780 (synopsis "Cross platform library for the sendfile system call")
11781 (description "This library tries to call minimum system calls which
11782are the bottleneck of web servers.")
11783 (license license:bsd-3)))
11784
06966c05
TS
11785(define-public ghc-size-based
11786 (package
11787 (name "ghc-size-based")
11788 (version "0.1.2.0")
11789 (source
11790 (origin
11791 (method url-fetch)
11792 (uri (string-append "https://hackage.haskell.org/package/"
11793 "size-based/size-based-" version ".tar.gz"))
11794 (sha256
11795 (base32
11796 "06hmlic0n73ncwlkpx49xlv09bzsrr27ncnp5byhzlknak2gd7vp"))))
11797 (build-system haskell-build-system)
11798 (inputs
11799 `(("ghc-dictionary-sharing" ,ghc-dictionary-sharing)
11800 ("ghc-testing-type-modifiers" ,ghc-testing-type-modifiers)
11801 ("ghc-semigroups" ,ghc-semigroups)))
11802 (arguments
11803 `(#:cabal-revision
11804 ("1" "0kax1ypjyglkn6iff1x4yz12y7f2n249m95xvdhrc63hsa4xlcqv")))
11805 (home-page "https://hackage.haskell.org/package/size-based")
11806 (synopsis "Sized functors for size-based enumerations")
11807 (description "This library provides a framework for size-based
11808enumerations.")
11809 (license license:bsd-3)))
11810
dddbc90c
RV
11811(define-public ghc-skylighting-core
11812 (package
11813 (name "ghc-skylighting-core")
1826c2a8 11814 (version "0.8.2.1")
dddbc90c
RV
11815 (source (origin
11816 (method url-fetch)
11817 (uri (string-append "https://hackage.haskell.org/package/"
11818 "skylighting-core/skylighting-core-"
11819 version ".tar.gz"))
11820 (sha256
11821 (base32
1826c2a8 11822 "0hdchivb4af9w7v5v7lrwfwawd3kcwmpzk69m1vkkm3pis8lcr1s"))))
dddbc90c
RV
11823 (build-system haskell-build-system)
11824 (inputs
11825 `(("ghc-aeson" ,ghc-aeson)
11826 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
11827 ("ghc-attoparsec" ,ghc-attoparsec)
11828 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
11829 ("ghc-blaze-html" ,ghc-blaze-html)
11830 ("ghc-case-insensitive" ,ghc-case-insensitive)
11831 ("ghc-colour" ,ghc-colour)
11832 ("ghc-hxt" ,ghc-hxt)
11833 ("ghc-regex-pcre-builtin" ,ghc-regex-pcre-builtin)
11834 ("ghc-safe" ,ghc-safe)
11835 ("ghc-utf8-string" ,ghc-utf8-string)))
11836 (native-inputs
11837 `(("ghc-diff" ,ghc-diff)
11838 ("ghc-hunit" ,ghc-hunit)
11839 ("ghc-pretty-show" ,ghc-pretty-show)
11840 ("ghc-quickcheck" ,ghc-quickcheck)
11841 ("ghc-tasty" ,ghc-tasty)
11842 ("ghc-tasty-golden" ,ghc-tasty-golden)
11843 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
11844 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
11845 (home-page "https://github.com/jgm/skylighting")
11846 (synopsis "Syntax highlighting library")
11847 (description "Skylighting is a syntax highlighting library with support
11848for over one hundred languages. It derives its tokenizers from XML syntax
11849definitions used by KDE's @code{KSyntaxHighlighting} framework, so any syntax
11850supported by that framework can be added. An optional command-line program is
11851provided. Skylighting is intended to be the successor to highlighting-kate.")
11852 (license license:gpl2)))
11853
11854(define-public ghc-skylighting
11855 (package
11856 (inherit ghc-skylighting-core)
11857 (name "ghc-skylighting")
36c940cf 11858 (version "0.8.2.1")
dddbc90c
RV
11859 (source (origin
11860 (method url-fetch)
11861 (uri (string-append "https://hackage.haskell.org/package/skylighting-"
11862 version "/skylighting-" version ".tar.gz"))
11863 (sha256
11864 (base32
36c940cf 11865 "1xls8ycad77m55ax4hp55k60h3pi5sm3m32hycbc8baixbgfx5xz"))))
dddbc90c
RV
11866 (inputs
11867 `(("ghc-skylighting-core" ,ghc-skylighting-core)
11868 ,@(package-inputs ghc-skylighting-core)))))
11869
11870(define-public ghc-smallcheck
11871 (package
11872 (name "ghc-smallcheck")
11873 (version "1.1.5")
11874 (source
11875 (origin
11876 (method url-fetch)
11877 (uri (string-append
11878 "https://hackage.haskell.org/package/smallcheck/smallcheck-"
11879 version
11880 ".tar.gz"))
11881 (sha256
11882 (base32
11883 "195fj7w3v03d1y1nm2ylavzrwxjcdbq0lb6zsw1dwyx5jmwfc84h"))))
11884 (build-system haskell-build-system)
11885 (inputs
11886 `(("ghc-logict" ,ghc-logict)))
11887 (home-page
11888 "https://github.com/feuerbach/smallcheck")
11889 (synopsis "Property-based testing library")
a84be333 11890 (description "SmallCheck is a testing library that verifies
dddbc90c
RV
11891properties for all test cases up to some depth. The test cases are generated
11892automatically by SmallCheck.")
11893 (license license:bsd-3)))
11894
11895(define-public ghc-socks
11896 (package
11897 (name "ghc-socks")
ab761e9d 11898 (version "0.6.1")
dddbc90c
RV
11899 (source (origin
11900 (method url-fetch)
11901 (uri (string-append "https://hackage.haskell.org/package/"
11902 "socks/socks-" version ".tar.gz"))
11903 (sha256
11904 (base32
ab761e9d 11905 "0wvaxy3dkv97wrncjv1rxrmjr4014hgxz82kixvcwqdhidalfi3k"))))
dddbc90c
RV
11906 (build-system haskell-build-system)
11907 (inputs
11908 `(("ghc-cereal" ,ghc-cereal)
ab761e9d 11909 ("ghc-basement" ,ghc-basement)
dddbc90c
RV
11910 ("ghc-network" ,ghc-network)))
11911 (home-page "https://github.com/vincenthz/hs-socks")
11912 (synopsis "SOCKS proxy (version 5) implementation")
11913 (description
11914 "This library provides a SOCKS proxy (version 5) implementation.")
11915 (license license:bsd-3)))
11916
081d85d6
TS
11917(define-public ghc-sop-core
11918 (package
11919 (name "ghc-sop-core")
11920 (version "0.4.0.0")
11921 (source
11922 (origin
11923 (method url-fetch)
11924 (uri (string-append "https://hackage.haskell.org/package/"
11925 "sop-core/sop-core-" version ".tar.gz"))
11926 (sha256
11927 (base32
11928 "07ci2mh8cbjvipb576rxsj3iyhkj5c5dnsns4xkdppp2p3pv10d3"))))
11929 (build-system haskell-build-system)
3ef91e15 11930 (home-page "https://hackage.haskell.org/package/sop-core")
081d85d6
TS
11931 (synopsis "True Sums of Products")
11932 (description "This package provides an implementation of
11933@math{n}-ary sums and @math{n}-ary products. The module @code{Data.SOP}
11934is the main module of this library and contains more detailed
11935documentation. The main use case of this package is to serve as the
11936core of @url{https://hackage.haskell.org/package/generics-sop,
11937generics-sop}.")
11938 (license license:bsd-3)))
11939
4c77a1a0
JS
11940(define-public ghc-special-values
11941 (package
11942 (name "ghc-special-values")
11943 (version "0.1.0.0")
11944 (source
11945 (origin
11946 (method url-fetch)
11947 (uri (string-append
11948 "https://hackage.haskell.org/package/special-values/"
11949 "special-values-" version ".tar.gz"))
11950 (sha256
11951 (base32
11952 "1kkdw2c4d2hha99v9f89ahmifjxp7fxmxyfwq9a8xk6s0h9xs51w"))))
11953 (build-system haskell-build-system)
11954 (inputs
11955 `(("ghc-scientific" ,ghc-scientific)
11956 ("ghc-ieee754" ,ghc-ieee754)
11957 ("ghc-nats" ,ghc-nats)))
11958 (home-page
11959 "https://github.com/minad/special-values#readme")
11960 (synopsis "Typeclass providing special values")
11961 (description
11962 "Special values are provided by a SpecialValues typeclass. Those can be
11963used for example by QuickCheck, see quickcheck-special." )
11964 (license license:expat)))
11965
dddbc90c
RV
11966(define-public ghc-split
11967 (package
11968 (name "ghc-split")
11969 (version "0.2.3.3")
534d6caa 11970 (outputs '("out" "static" "doc"))
dddbc90c
RV
11971 (source
11972 (origin
11973 (method url-fetch)
11974 (uri (string-append
11975 "https://hackage.haskell.org/package/split/split-"
11976 version
11977 ".tar.gz"))
11978 (sha256
11979 (base32
11980 "04qlmkcyklznl03gsjg95b4nzb6i96gdapqg60rny9szgi7ngk8x"))))
11981 (build-system haskell-build-system)
9bbc21a7
TS
11982 (arguments
11983 `(#:cabal-revision
11984 ("2" "1c8bcssxq5rkxkixgms6w6x6lzf4n7cxk6cx6av1dp3lixdy9j34")))
dddbc90c
RV
11985 (native-inputs
11986 `(("ghc-quickcheck" ,ghc-quickcheck)))
11987 (home-page "https://hackage.haskell.org/package/split")
11988 (synopsis "Combinator library for splitting lists")
11989 (description "This package provides a collection of Haskell functions for
11990splitting lists into parts, akin to the @code{split} function found in several
11991mainstream languages.")
11992 (license license:bsd-3)))
11993
7799d17f 11994(define-public ghc-splitmix
49367c92 11995 (package
7799d17f 11996 (name "ghc-splitmix")
49367c92
TS
11997 (version "0.0.3")
11998 (source
11999 (origin
12000 (method url-fetch)
12001 (uri (string-append "https://hackage.haskell.org/package/"
12002 "splitmix/splitmix-" version ".tar.gz"))
12003 (sha256
12004 (base32
12005 "1k0amgkz7rvyz3lnw7m786ilnr1cibwhx9sc4qynq329gxan5r7w"))))
49367c92 12006 (build-system haskell-build-system)
49367c92
TS
12007 (inputs
12008 `(("ghc-random" ,ghc-random)))
7799d17f
TS
12009 (native-inputs
12010 `(("ghc-hunit" ,ghc-hunit)
12011 ("ghc-async" ,ghc-async)
12012 ("ghc-base-compat-batteries" ,ghc-base-compat-batteries)
12013 ("ghc-tf-random" ,ghc-tf-random)
12014 ("ghc-vector" ,ghc-vector)))
92a79fee 12015 (home-page "https://hackage.haskell.org/package/splitmix")
49367c92
TS
12016 (synopsis "Fast and splittable pseudorandom number generator")
12017 (description "This package provides a Pure Haskell implementation of the
12018SplitMix pseudorandom number generator. SplitMix is a \"splittable\"
12019pseudorandom number generator that is quite fast: 9 64-bit
12020arithmetic/logical operations per 64 bits generated. SplitMix is tested
12021with two standard statistical test suites (DieHarder and TestU01, this
12022implementation only using the former) and it appears to be adequate for
12023\"everyday\" use, such as Monte Carlo algorithms and randomized data
12024structures where speed is important. In particular, it @strong{should not
12025be used for cryptographic or security applications}, because generated
12026sequences of pseudorandom values are too predictable (the mixing functions
12027are easily inverted, and two successive outputs suffice to reconstruct the
12028internal state).")
12029 (license license:bsd-3)))
12030
7799d17f
TS
12031(define-public ghc-splitmix-bootstrap
12032 (package
12033 (inherit ghc-splitmix)
12034 (name "ghc-splitmix-bootstrap")
12035 (arguments `(#:tests? #f))
12036 (native-inputs '())
12037 (properties '((hidden? #t)))))
12038
a152258b
JS
12039(define-public ghc-spoon
12040 (package
12041 (name "ghc-spoon")
12042 (version "0.3.1")
12043 (source
12044 (origin
12045 (method url-fetch)
12046 (uri (string-append
12047 "https://hackage.haskell.org/package/spoon/spoon-"
12048 version
12049 ".tar.gz"))
12050 (sha256
12051 (base32
12052 "1m41k0mfy6fpfrv2ym4m5jsjaj9xdfl2iqpppd3c4d0fffv51cxr"))))
12053 (build-system haskell-build-system)
12054 (arguments
12055 `(#:cabal-revision
12056 ("1"
12057 "09s5jjcsg4g4qxchq9g2l4i9d5zh3rixpkbiysqcgl69kj8mwv74")))
12058 (home-page
12059 "http://hackage.haskell.org/package/spoon")
12060 (synopsis
12061 "Catch errors thrown from pure computations")
12062 (description
12063 "Takes an error-throwing expression and puts it back in the Maybe it
12064belongs in.
12065
12066Note that this suffers from the
12067@url{https://ghc.haskell.org/trac/ghc/ticket/5902}. Buyer beware.")
12068 (license license:bsd-3)))
12069
dddbc90c
RV
12070(define-public ghc-statevar
12071 (package
12072 (name "ghc-statevar")
19419709 12073 (version "1.2")
dddbc90c
RV
12074 (source
12075 (origin
12076 (method url-fetch)
12077 (uri (string-append
12078 "https://hackage.haskell.org/package/StateVar/StateVar-"
12079 version
12080 ".tar.gz"))
12081 (sha256
12082 (base32
19419709 12083 "12sz6zkc9j5z3lwrjvljrkfxa5vhwnir5wsarigz2f6d3w13dh5g"))))
dddbc90c
RV
12084 (build-system haskell-build-system)
12085 (home-page "https://hackage.haskell.org/package/StateVar")
12086 (synopsis "State variables for Haskell")
12087 (description "This package provides state variables, which are references
12088in the @code{IO} monad, like @code{IORef}s or parts of the OpenGL state.")
12089 (license license:bsd-3)))
12090
12091(define-public ghc-statistics
12092 (package
12093 (name "ghc-statistics")
60e78e68 12094 (version "0.15.1.1")
dddbc90c
RV
12095 (source
12096 (origin
12097 (method url-fetch)
12098 (uri (string-append "https://hackage.haskell.org/package/"
12099 "statistics-" version "/"
12100 "statistics-" version ".tar.gz"))
12101 (sha256
12102 (base32
60e78e68 12103 "015rn74f1glii26j4b2fh1fc63xvxzrh2xckiancz48kc8jdzabj"))))
dddbc90c
RV
12104 (build-system haskell-build-system)
12105 (arguments
60e78e68 12106 '(;; Two tests fail: "Discrete CDF is OK" and "Quantile is CDF inverse".
dddbc90c
RV
12107 #:tests? #f))
12108 (inputs
12109 `(("ghc-aeson" ,ghc-aeson)
60e78e68 12110 ("ghc-async" ,ghc-async)
dddbc90c 12111 ("ghc-base-orphans" ,ghc-base-orphans)
60e78e68 12112 ("ghc-dense-linear-algebra" ,ghc-dense-linear-algebra)
dddbc90c
RV
12113 ("ghc-math-functions" ,ghc-math-functions)
12114 ("ghc-monad-par" ,ghc-monad-par)
12115 ("ghc-mwc-random" ,ghc-mwc-random)
12116 ("ghc-primitive" ,ghc-primitive)
12117 ("ghc-vector" ,ghc-vector)
12118 ("ghc-vector-algorithms" ,ghc-vector-algorithms)
12119 ("ghc-vector-th-unbox" ,ghc-vector-th-unbox)
12120 ("ghc-vector-binary-instances" ,ghc-vector-binary-instances)))
12121 (native-inputs
12122 `(("ghc-hunit" ,ghc-hunit)
12123 ("ghc-quickcheck" ,ghc-quickcheck)
12124 ("ghc-ieee754" ,ghc-ieee754)
12125 ("ghc-test-framework" ,ghc-test-framework)
12126 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
12127 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
12128 (home-page "https://github.com/bos/mwc-random")
12129 (synopsis "Haskell library of statistical types, data, and functions")
12130 (description "This library provides a number of common functions
12131and types useful in statistics. We focus on high performance, numerical
12132robustness, and use of good algorithms. Where possible, we provide references
12133to the statistical literature.
12134
12135The library's facilities can be divided into four broad categories:
12136
12137@itemize
12138@item Working with widely used discrete and continuous probability
12139distributions. (There are dozens of exotic distributions in use; we focus
12140on the most common.)
12141
12142@item Computing with sample data: quantile estimation, kernel density
12143estimation, histograms, bootstrap methods, significance testing,
12144and regression and autocorrelation analysis.
12145
12146@item Random variate generation under several different distributions.
12147
12148@item Common statistical tests for significant differences between samples.
12149@end itemize")
12150 (license license:bsd-2)))
12151
12152(define-public ghc-stm-chans
12153 (package
12154 (name "ghc-stm-chans")
12155 (version "3.0.0.4")
12156 (source
12157 (origin
12158 (method url-fetch)
12159 (uri (string-append "https://hackage.haskell.org/package/"
12160 "stm-chans-" version "/"
12161 "stm-chans-" version ".tar.gz"))
12162 (sha256
12163 (base32
12164 "0f27sp09yha43xk9q55sc185jyjs5h7gq2dhsyx6bm9kz9dzqi13"))))
12165 (build-system haskell-build-system)
12166 (home-page "https://hackage.haskell.org/package/stm-chans")
12167 (synopsis "Additional types of channels for ghc-stm")
12168 (description "This Haskell package offers a collection of channel types,
12169similar to @code{Control.Concurrent.STM.@{TChan,TQueue@}} but with additional
12170features.")
12171 (license license:bsd-3)))
12172
12173(define-public ghc-stm-conduit
12174 (package
12175 (name "ghc-stm-conduit")
cd518e95 12176 (version "4.0.1")
dddbc90c
RV
12177 (source
12178 (origin
12179 (method url-fetch)
12180 (uri (string-append "https://hackage.haskell.org/package/stm-conduit/"
12181 "stm-conduit-" version ".tar.gz"))
12182 (sha256
12183 (base32
cd518e95 12184 "0hhlxvpp7mah8dcvkknh6skx44jfk3092zz2w52zlr255bkmn3p8"))))
dddbc90c
RV
12185 (build-system haskell-build-system)
12186 (inputs
12187 `(("ghc-stm-chans" ,ghc-stm-chans)
12188 ("ghc-cereal" ,ghc-cereal)
12189 ("ghc-cereal-conduit" ,ghc-cereal-conduit)
12190 ("ghc-conduit" ,ghc-conduit)
12191 ("ghc-conduit-extra" ,ghc-conduit-extra)
12192 ("ghc-exceptions" ,ghc-exceptions)
12193 ("ghc-resourcet" ,ghc-resourcet)
12194 ("ghc-async" ,ghc-async)
12195 ("ghc-monad-loops" ,ghc-monad-loops)
12196 ("ghc-unliftio" ,ghc-unliftio)))
12197 (native-inputs
12198 `(("ghc-doctest" ,ghc-doctest)
12199 ("ghc-quickcheck" ,ghc-quickcheck)
12200 ("ghc-hunit" ,ghc-hunit)
12201 ("ghc-test-framework" ,ghc-test-framework)
12202 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
12203 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
12204 (home-page "https://github.com/cgaebel/stm-conduit")
12205 (synopsis "Introduces conduits to channels and promotes using conduits concurrently")
12206 (description
12207 "This package provides two simple conduit wrappers around STM channels: a
12208source and a sink.")
12209 (license license:bsd-3)))
12210
12211(define-public ghc-stmonadtrans
12212 (package
12213 (name "ghc-stmonadtrans")
12214 (version "0.4.3")
12215 (source
12216 (origin
12217 (method url-fetch)
12218 (uri (string-append "https://hackage.haskell.org/package/STMonadTrans"
12219 "/STMonadTrans-" version ".tar.gz"))
12220 (sha256
12221 (base32 "1nr26fnmi5fdjc6d00w13kjhmfyvb5b837d0006w4dj0yxndaksp"))))
12222 (build-system haskell-build-system)
12223 (home-page "https://hackage.haskell.org/package/STMonadTrans")
12224 (synopsis "Monad transformer version of the ST monad")
12225 (description
12226 "This package provides a monad transformer version of the @code{ST} monad
12227for strict state threads.")
12228 (license license:bsd-3)))
12229
12230(define-public ghc-storable-complex
12231 (package
12232 (name "ghc-storable-complex")
4a35e3c3 12233 (version "0.2.3.0")
dddbc90c
RV
12234 (source
12235 (origin
12236 (method url-fetch)
12237 (uri (string-append
12238 "https://hackage.haskell.org/package/storable-complex/storable-complex-"
12239 version ".tar.gz"))
12240 (sha256
4a35e3c3 12241 (base32 "0fnwbfmd5vsaaqvf9182qdcjrzcfjd1zhdyvjwzifbwvn6r9kx4s"))))
dddbc90c 12242 (build-system haskell-build-system)
4a35e3c3
TS
12243 (inputs
12244 `(("ghc-base-orphans" ,ghc-base-orphans)))
dddbc90c
RV
12245 (home-page "https://github.com/cartazio/storable-complex")
12246 (synopsis "Haskell Storable instance for Complex")
12247 (description "This package provides a Haskell library including a
12248Storable instance for Complex which is binary compatible with C99, C++
12249and Fortran complex data types.")
12250 (license license:bsd-3)))
12251
ad80074a
JS
12252(define-public ghc-storable-record
12253 (package
12254 (name "ghc-storable-record")
12255 (version "0.0.4")
12256 (source
12257 (origin
12258 (method url-fetch)
12259 (uri
12260 (string-append
12261 "https://hackage.haskell.org/package/storable-record/"
12262 "storable-record-" version ".tar.gz"))
12263 (sha256
12264 (base32
12265 "0hjs1km0fc9ch0i1rbycxia5w3939hk4p4md73ikgg4aipqb5zyf"))))
12266 (build-system haskell-build-system)
12267 (inputs
12268 `(("ghc-semigroups" ,ghc-semigroups)
12269 ("ghc-utility-ht" ,ghc-utility-ht)
12270 ("ghc-storablevector" ,ghc-storablevector)
12271 ("ghc-timeit" ,ghc-timeit)))
12272 (home-page "https://hackage.haskell.org/package/storable-record")
12273 (synopsis "Elegant definition of Storable instances for records")
12274 (description "With this package you can build a Storable instance of
12275a record type from Storable instances of its elements in an elegant way.
12276It does not do any magic, just a bit arithmetic to compute the right
12277offsets, that would be otherwise done manually or by a preprocessor like
12278C2HS. There is no guarantee that the generated memory layout is
12279compatible with that of a corresponding C struct. However, the module
12280generates the smallest layout that is possible with respect to the
12281alignment of the record elements.")
12282 (license license:bsd-3)))
12283
55f4c653
JS
12284(define-public ghc-storable-tuple
12285 (package
12286 (name "ghc-storable-tuple")
12287 (version "0.0.3.3")
12288 (source
12289 (origin
12290 (method url-fetch)
12291 (uri
12292 (string-append
12293 "https://hackage.haskell.org/package/storable-tuple/"
12294 "storable-tuple-" version ".tar.gz"))
12295 (sha256
12296 (base32
12297 "0dfzhxgkn1l6ls7zh6iifhyvhm8l47n40z0ar23c6ibsa94w1ynw"))))
12298 (build-system haskell-build-system)
12299 (inputs
12300 `(("ghc-storable-record" ,ghc-storable-record)
12301 ("ghc-utility-ht" ,ghc-utility-ht)
12302 ("ghc-base-orphans" ,ghc-base-orphans)))
12303 (home-page "https://hackage.haskell.org/package/storable-tuple")
12304 (synopsis "Storable instance for pairs and triples")
12305 (description "This package provides a Storable instance for pairs
12306and triples which should be binary compatible with C99 and C++. The
12307only purpose of this package is to provide a standard location for this
12308instance so that other packages needing this instance can play nicely
12309together.")
12310 (license license:bsd-3)))
12311
bc06ca45
JS
12312(define-public ghc-storablevector
12313 (package
12314 (name "ghc-storablevector")
12315 (version "0.2.13")
12316 (source
12317 (origin
12318 (method url-fetch)
12319 (uri
12320 (string-append
12321 "https://hackage.haskell.org/package/storablevector/storablevector-"
12322 version ".tar.gz"))
12323 (sha256
12324 (base32
12325 "1zmr738vwnhnyxbikayqnaz31ilv2qlmscp6iqgl7adcfbal4dzq"))))
12326 (build-system haskell-build-system)
12327 (inputs
12328 `(("ghc-non-negative" ,ghc-non-negative)
12329 ("ghc-utility-ht" ,ghc-utility-ht)
12330 ("ghc-semigroups" ,ghc-semigroups)
12331 ("ghc-unsafe" ,ghc-unsafe)
12332 ("ghc-quickcheck" ,ghc-quickcheck)
12333 ("ghc-syb" ,ghc-syb)))
228d2901 12334 (home-page "https://wiki.haskell.org/Storable_Vector")
bc06ca45
JS
12335 (synopsis "Fast, packed, strict storable arrays with a list interface")
12336 (description "This library provides fast, packed, strict storable
12337arrays with a list interface, a chunky lazy list interface with variable
12338chunk size and an interface for write access via the ST monad. This is
12339much like bytestring and binary but can be used for every
12340@code{Foreign.Storable.Storable} type. See also
12341@url{http://hackage.haskell.org/package/vector}, a library with a
12342similar intention.
12343
12344This library does not do advanced fusion optimization, since especially
12345for lazy vectors this would either be incorrect or not applicable. See
12346@url{http://hackage.haskell.org/package/storablevector-streamfusion} for
12347a library that provides fusion with lazy lists.")
12348 (license license:bsd-3)))
12349
dddbc90c
RV
12350(define-public ghc-streaming-commons
12351 (package
12352 (name "ghc-streaming-commons")
12353 (version "0.2.1.1")
12354 (source
12355 (origin
12356 (method url-fetch)
12357 (uri (string-append "https://hackage.haskell.org/package/"
12358 "streaming-commons/streaming-commons-"
12359 version ".tar.gz"))
12360 (sha256
12361 (base32
12362 "1lmyx3wkjsayhy5yilzvy0kf8qwmycwlk26r1d8f3cxbfhkr7s52"))))
12363 (build-system haskell-build-system)
12364 (inputs
12365 `(("ghc-async" ,ghc-async)
12366 ("ghc-blaze-builder" ,ghc-blaze-builder)
12367 ("ghc-network" ,ghc-network)
12368 ("ghc-random" ,ghc-random)
12369 ("ghc-zlib" ,ghc-zlib)))
12370 (native-inputs
12371 `(("ghc-quickcheck" ,ghc-quickcheck)
12372 ("ghc-hspec" ,ghc-hspec)
12373 ("hspec-discover" ,hspec-discover)))
12374 (home-page "https://hackage.haskell.org/package/streaming-commons")
12375 (synopsis "Conduit and pipes needed by some streaming data libraries")
12376 (description "This package provides low-dependency functionality commonly
12377needed by various Haskell streaming data libraries, such as @code{conduit} and
12378@code{pipe}s.")
12379 (license license:expat)))
12380
12381(define-public ghc-strict
12382 (package
12383 (name "ghc-strict")
12384 (version "0.3.2")
12385 (source
12386 (origin
12387 (method url-fetch)
12388 (uri (string-append "https://hackage.haskell.org/package/strict/strict-"
12389 version ".tar.gz"))
12390 (sha256
12391 (base32 "08cjajqz9h47fkq98mlf3rc8n5ghbmnmgn8pfsl3bdldjdkmmlrc"))))
12392 (build-system haskell-build-system)
12393 (home-page "https://hackage.haskell.org/package/strict")
12394 (synopsis "Strict data types and String IO")
12395 (description
12396 "This package provides strict versions of some standard Haskell data
12397types, such as pairs, @code{Maybe} and @code{Either}. It also contains strict
12398IO operations.")
12399 (license license:bsd-3)))
12400
12401(define-public ghc-stringbuilder
12402 (package
12403 (name "ghc-stringbuilder")
12404 (version "0.5.1")
12405 (source
12406 (origin
12407 (method url-fetch)
12408 (uri (string-append
12409 "https://hackage.haskell.org/package/stringbuilder/stringbuilder-"
12410 version
12411 ".tar.gz"))
12412 (sha256
12413 (base32
12414 "1fh3csx1wcssn8xyvl4ip4aprh9l4qyz2kk8mgjvqvc0vb2bsy6q"))))
12415 (build-system haskell-build-system)
12416 (arguments `(#:tests? #f)) ; FIXME: circular dependencies with tests
12417 ; enabled
12418 (home-page "https://hackage.haskell.org/package/stringbuilder")
12419 (synopsis "Writer monad for multi-line string literals")
12420 (description "This package provides a writer monad for multi-line string
12421literals.")
12422 (license license:expat)))
12423
12424(define-public ghc-string-qq
12425 (package
12426 (name "ghc-string-qq")
4d6fddc3 12427 (version "0.0.4")
dddbc90c
RV
12428 (source
12429 (origin
12430 (method url-fetch)
12431 (uri (string-append
12432 "https://hackage.haskell.org/package/string-qq/string-qq-"
12433 version
12434 ".tar.gz"))
12435 (sha256
12436 (base32
4d6fddc3 12437 "0wfxkw4x6j6jq9nd82k83g2k3hskpsvk1dp4cpkshvjr4wg9qny8"))))
dddbc90c 12438 (build-system haskell-build-system)
4d6fddc3
TS
12439 (native-inputs
12440 `(("ghc-hunit" ,ghc-hunit)))
3ef91e15 12441 (home-page "https://hackage.haskell.org/package/string-qq")
dddbc90c
RV
12442 (synopsis
12443 "QuasiQuoter for non-interpolated strings, texts and bytestrings.")
12444 (description
12445 "This package provides a quasiquoter for non-interpolated strings, texts
12446and bytestrings.")
12447 (license license:public-domain)))
12448
12449(define-public ghc-stringsearch
12450 (package
12451 (name "ghc-stringsearch")
12452 (version "0.3.6.6")
12453 (source
12454 (origin
12455 (method url-fetch)
12456 (uri (string-append
12457 "https://hackage.haskell.org/package/stringsearch/stringsearch-"
12458 version
12459 ".tar.gz"))
12460 (sha256
12461 (base32
12462 "0jpy9xjcjdbpi3wk6mg7xwd7wfi2mma70p97v1ij5i8bj9qijpr9"))))
12463 (build-system haskell-build-system)
e2303abb
TS
12464 (arguments
12465 `(#:cabal-revision
12466 ("1" "0z5pz5dccapz9k39r2zmf056m0x2m2lj3jahhnw3mfxlmps07378")))
dddbc90c
RV
12467 (home-page "https://bitbucket.org/dafis/stringsearch")
12468 (synopsis "Fast searching, splitting and replacing of ByteStrings")
12469 (description "This package provides several functions to quickly search
12470for substrings in strict or lazy @code{ByteStrings}. It also provides
12471functions for breaking or splitting on substrings and replacing all
12472occurrences of a substring (the first in case of overlaps) with another.")
12473 (license license:bsd-3)))
12474
dcf3f8f4
TS
12475(define-public ghc-svg-builder
12476 (package
12477 (name "ghc-svg-builder")
12478 (version "0.1.1")
12479 (source
12480 (origin
12481 (method url-fetch)
12482 (uri (string-append "https://hackage.haskell.org/package/"
12483 "svg-builder/svg-builder-" version ".tar.gz"))
12484 (sha256
12485 (base32
12486 "1k420f497lzkymmxin88ql6ib8dziic43avykv31yq65rgrf7l2g"))))
12487 (build-system haskell-build-system)
12488 (inputs
12489 `(("ghc-blaze-builder" ,ghc-blaze-builder)
12490 ("ghc-hashable" ,ghc-hashable)
12491 ("ghc-unordered-containers" ,ghc-unordered-containers)))
12492 (arguments
12493 `(#:cabal-revision
12494 ("1" "1bhp9gvid2iis411k1vvyj5krzc4ahxcqcd9cwx9h37jxg180xw1")))
12495 (home-page "https://github.com/diagrams/svg-builder.git")
12496 (synopsis "Domain-specific language for building Scalable Vector Graphics")
12497 (description "Easy-to-write domain-specific language (DSL) for
12498building Scalable Vector Graphics (SVG).")
12499 (license license:bsd-3)))
12500
dddbc90c
RV
12501(define-public ghc-syb
12502 (package
12503 (name "ghc-syb")
07d65eef 12504 (version "0.7.1")
534d6caa 12505 (outputs '("out" "static" "doc"))
dddbc90c
RV
12506 (source
12507 (origin
12508 (method url-fetch)
12509 (uri (string-append
12510 "https://hackage.haskell.org/package/syb/syb-"
12511 version
12512 ".tar.gz"))
12513 (sha256
12514 (base32
07d65eef 12515 "0077vxzyi9ppbphi2ialac3p376k49qly1kskdgf57wdwix9qjp0"))))
dddbc90c
RV
12516 (build-system haskell-build-system)
12517 (inputs
12518 `(("ghc-hunit" ,ghc-hunit)))
12519 (home-page
12520 "http://www.cs.uu.nl/wiki/GenericProgramming/SYB")
12521 (synopsis "Scrap Your Boilerplate")
12522 (description "This package contains the generics system described in the
12523/Scrap Your Boilerplate/ papers (see
12524@uref{http://www.cs.uu.nl/wiki/GenericProgramming/SYB, the website}). It
12525defines the @code{Data} class of types permitting folding and unfolding of
12526constructor applications, instances of this class for primitive types, and a
12527variety of traversals.")
12528 (license license:bsd-3)))
12529
12530(define-public ghc-system-fileio
12531 (package
12532 (name "ghc-system-fileio")
dcfb99d4 12533 (version "0.3.16.4")
dddbc90c
RV
12534 (source
12535 (origin
12536 (method url-fetch)
12537 (uri (string-append
12538 "https://hackage.haskell.org/package/system-fileio/system-fileio-"
12539 version ".tar.gz"))
12540 (sha256
12541 (base32
dcfb99d4 12542 "1iy6g1f35gzyj12g9mdiw4zf75mmxpv1l8cyaldgyscsl648pr9l"))))
dddbc90c 12543 (build-system haskell-build-system)
dcfb99d4
TS
12544 (arguments
12545 `(#:phases
12546 (modify-phases %standard-phases
12547 (add-before 'configure 'update-constraints
12548 (lambda _
12549 (substitute* "system-fileio.cabal"
12550 (("chell >= 0\\.4 && < 0\\.5") "chell >= 0.4"))
12551 #t)))))
dddbc90c
RV
12552 (inputs
12553 `(("ghc-system-filepath" ,ghc-system-filepath)
12554 ("ghc-chell" ,ghc-chell)
12555 ("ghc-temporary" ,ghc-temporary)))
12556 (home-page "https://github.com/fpco/haskell-filesystem")
12557 (synopsis "Consistent file system interaction across GHC versions")
12558 (description
12559 "This is a small wrapper around the directory, unix, and Win32 packages,
12560for use with system-filepath. It provides a consistent API to the various
12561versions of these packages distributed with different versions of GHC.
12562In particular, this library supports working with POSIX files that have paths
12563which can't be decoded in the current locale encoding.")
12564 (license license:expat)))
12565
12566;; See ghc-system-filepath-bootstrap. In addition this package depends on
12567;; ghc-system-filepath.
12568(define ghc-system-fileio-bootstrap
12569 (package
12570 (name "ghc-system-fileio-bootstrap")
12571 (version "0.3.16.3")
12572 (source
12573 (origin
12574 (method url-fetch)
12575 (uri (string-append
12576 "https://hackage.haskell.org/package/system-fileio/system-fileio-"
12577 version ".tar.gz"))
12578 (sha256
12579 (base32
12580 "1484hcl27s2qcby8ws5djj11q9bz68bspcifz9h5gii2ndy70x9i"))))
12581 (build-system haskell-build-system)
12582 (arguments
12583 `(#:tests? #f))
12584 (inputs
12585 `(("ghc-system-filepath-bootstrap" ,ghc-system-filepath-bootstrap)
12586 ("ghc-temporary" ,ghc-temporary)))
12587 (home-page "https://github.com/fpco/haskell-filesystem")
12588 (synopsis "Consistent file system interaction across GHC versions")
12589 (description
12590 "This is a small wrapper around the directory, unix, and Win32 packages,
12591for use with system-filepath. It provides a consistent API to the various
12592versions of these packages distributed with different versions of GHC.
12593In particular, this library supports working with POSIX files that have paths
12594which can't be decoded in the current locale encoding.")
12595 (license license:expat)))
12596
12597
12598(define-public ghc-system-filepath
12599 (package
12600 (name "ghc-system-filepath")
12601 (version "0.4.14")
12602 (source
12603 (origin
12604 (method url-fetch)
12605 (uri (string-append
12606 "https://hackage.haskell.org/package/system-filepath/system-filepath-"
12607 version ".tar.gz"))
12608 (sha256
12609 (base32
12610 "14yras4pz2dh55xpwmazcgxijvi8913pjgzb9iw50mjq1lycwmhn"))))
12611 (build-system haskell-build-system)
12612 ;; FIXME: One of the tests fails:
12613 ;; [ FAIL ] tests.validity.posix
12614 ;; note: seed=7310214548328823169
12615 ;; *** Failed! Falsifiable (after 24 tests):
12616 ;; 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"
12617 (arguments `(#:tests? #f))
12618 (inputs
12619 `(("ghc-chell" ,ghc-chell)
12620 ("ghc-chell-quickcheck" ,ghc-chell-quickcheck)
12621 ("ghc-quickcheck" ,ghc-quickcheck)))
12622 (home-page "https://github.com/fpco/haskell-filesystem")
12623 (synopsis "High-level, byte-based file and directory path manipulations")
12624 (description
12625 "Provides a FilePath datatype and utility functions for operating on it.
12626Unlike the filepath package, this package does not simply reuse String,
12627increasing type safety.")
12628 (license license:expat)))
12629
12630;; Ghc-shelly depends on ghc-system-filepath and ghc-system-fileio, who in turn depend on
12631;; ghc-chell and ghc-chell-quickcheck for the test phase. Ghc-chell depends on ghc-options
12632;; which depends on ghc-chell and ghc-chell-quickcheck.
12633;; Therefore we bootstrap it with tests disabled.
12634(define ghc-system-filepath-bootstrap
12635 (package
12636 (name "ghc-system-filepath-bootstrap")
12637 (version "0.4.14")
12638 (source
12639 (origin
12640 (method url-fetch)
12641 (uri (string-append
12642 "https://hackage.haskell.org/package/system-filepath/system-filepath-"
12643 version ".tar.gz"))
12644 (sha256
12645 (base32
12646 "14yras4pz2dh55xpwmazcgxijvi8913pjgzb9iw50mjq1lycwmhn"))))
12647 (build-system haskell-build-system)
12648 (arguments
12649 `(#:tests? #f))
12650 (inputs
12651 `(("ghc-quickcheck" ,ghc-quickcheck)))
12652 (home-page "https://github.com/fpco/haskell-filesystem")
12653 (synopsis "High-level, byte-based file and directory path manipulations")
12654 (description
12655 "Provides a FilePath datatype and utility functions for operating on it.
12656Unlike the filepath package, this package does not simply reuse String,
12657increasing type safety.")
12658 (license license:expat)))
12659
12660
12661(define-public ghc-tagged
12662 (package
12663 (name "ghc-tagged")
f0f3756a 12664 (version "0.8.6")
dddbc90c
RV
12665 (source
12666 (origin
12667 (method url-fetch)
12668 (uri (string-append
12669 "https://hackage.haskell.org/package/tagged/tagged-"
12670 version
12671 ".tar.gz"))
12672 (sha256
12673 (base32
f0f3756a 12674 "1pciqzxf9ncv954v4r527xkxkn7r5hcr13mfw5dg1xjci3qdw5md"))))
dddbc90c
RV
12675 (build-system haskell-build-system)
12676 (arguments
12677 `(#:cabal-revision
f0f3756a 12678 ("1" "070xwfw7y81hd63il76dmwbdl9ca1rd07c54zynfx6vpr4wyx4vh")))
dddbc90c
RV
12679 (inputs
12680 `(("ghc-transformers-compat" ,ghc-transformers-compat)))
12681 (home-page "https://hackage.haskell.org/package/tagged")
12682 (synopsis "Haskell phantom types to avoid passing dummy arguments")
12683 (description "This library provides phantom types for Haskell 98, to avoid
12684having to unsafely pass dummy arguments.")
12685 (license license:bsd-3)))
12686
12687(define-public ghc-tar
12688 (package
12689 (name "ghc-tar")
ec83929f 12690 (version "0.5.1.1")
dddbc90c
RV
12691 (source
12692 (origin
12693 (method url-fetch)
12694 (uri (string-append
12695 "https://hackage.haskell.org/package/tar/tar-"
12696 version ".tar.gz"))
12697 (sha256
12698 (base32
ec83929f 12699 "1ppim7cgmn7ng8zbdrwkxhhizc30h15h1c9cdlzamc5jcagl915k"))))
dddbc90c
RV
12700 (build-system haskell-build-system)
12701 ;; FIXME: 2/24 tests fail.
12702 (arguments `(#:tests? #f))
12703 (inputs
12704 `(("ghc-bytestring-handle" ,ghc-bytestring-handle)
12705 ("ghc-quickcheck" ,ghc-quickcheck)
12706 ("ghc-tasty" ,ghc-tasty)
12707 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
12708 (home-page "https://hackage.haskell.org/package/tar")
12709 (synopsis "Reading, writing and manipulating \".tar\" archive files")
12710 (description
12711 "This library is for working with \\\"@.tar@\\\" archive files.
12712It can read and write a range of common variations of the tar archive format
12713including V7, POSIX USTAR and GNU formats. It provides support for packing and
12714unpacking portable archives. This makes it suitable for distribution but not
12715backup because details like file ownership and exact permissions are not
12716preserved. It also provides features for random access to archive content using
12717an index.")
12718 (license license:bsd-3)))
12719
f8d17902
TS
12720(define-public ghc-tar-conduit
12721 (package
12722 (name "ghc-tar-conduit")
12723 (version "0.3.2")
12724 (source
12725 (origin
12726 (method url-fetch)
12727 (uri (string-append "https://hackage.haskell.org/package/"
12728 "tar-conduit/tar-conduit-" version ".tar.gz"))
12729 (sha256
12730 (base32
12731 "0bgn3hyf20g1gfnzy8f41s7nj54kfcyjk2izw99svrw8f3dphi80"))))
12732 (build-system haskell-build-system)
12733 (inputs
12734 `(("ghc-conduit" ,ghc-conduit)
12735 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
12736 ("ghc-safe-exceptions" ,ghc-safe-exceptions)))
12737 (native-inputs
12738 `(("ghc-quickcheck" ,ghc-quickcheck)
12739 ("ghc-conduit-extra" ,ghc-conduit-extra)
12740 ("ghc-hspec" ,ghc-hspec)
12741 ("ghc-hspec" ,ghc-hspec)
12742 ("ghc-weigh" ,ghc-weigh)))
12743 (home-page "https://github.com/snoyberg/tar-conduit#readme")
12744 (synopsis "Extract and create tar files using conduit for streaming")
12745 (description "This library provides a conduit-based, streaming
12746interface for extracting and creating tar files.")
12747 (license license:expat)))
12748
dddbc90c
RV
12749(define-public ghc-temporary
12750 (package
12751 (name "ghc-temporary")
12752 (version "1.3")
12753 (source
12754 (origin
12755 (method url-fetch)
12756 (uri (string-append
12757 "https://hackage.haskell.org/package/temporary/temporary-"
12758 version
12759 ".tar.gz"))
12760 (sha256
12761 (base32
12762 "144qhwfwg37l3k313raf4ssiz16jbgwlm1nf4flgqpsbd69jji4c"))))
12763 (build-system haskell-build-system)
12764 (inputs
12765 `(("ghc-exceptions" ,ghc-exceptions)
12766 ("ghc-random" ,ghc-random)))
12767 (native-inputs
12768 `(("ghc-base-compat" ,ghc-base-compat)
12769 ("ghc-tasty" ,ghc-tasty)
12770 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
12771 (home-page "https://www.github.com/batterseapower/temporary")
12772 (synopsis "Temporary file and directory support")
12773 (description "The functions for creating temporary files and directories
12774in the Haskelll base library are quite limited. This library just repackages
12775the Cabal implementations of its own temporary file and folder functions so
12776that you can use them without linking against Cabal or depending on it being
12777installed.")
12778 (license license:bsd-3)))
12779
12780(define-public ghc-temporary-rc
12781 (package
12782 (name "ghc-temporary-rc")
12783 (version "1.2.0.3")
12784 (source
12785 (origin
12786 (method url-fetch)
12787 (uri (string-append
12788 "https://hackage.haskell.org/package/temporary-rc/temporary-rc-"
12789 version
12790 ".tar.gz"))
12791 (sha256
12792 (base32
12793 "1nqih0qks439k3pr5kmbbc8rjdw730slrxlflqb27fbxbzb8skqs"))))
12794 (build-system haskell-build-system)
12795 (inputs `(("ghc-exceptions" ,ghc-exceptions)))
12796 (home-page
12797 "https://www.github.com/feuerbach/temporary")
12798 (synopsis
12799 "Portable temporary file and directory support")
12800 (description
12801 "The functions for creating temporary files and directories in the base
12802library are quite limited. The unixutils package contains some good ones, but
12803they aren't portable to Windows. This library just repackages the Cabal
12804implementations of its own temporary file and folder functions so that you can
12805use them without linking against Cabal or depending on it being installed.
12806This is a better maintained fork of the \"temporary\" package.")
12807 (license license:bsd-3)))
12808
12809(define-public ghc-terminal-size
12810 (package
12811 (name "ghc-terminal-size")
12812 (version "0.3.2.1")
12813 (source (origin
12814 (method url-fetch)
12815 (uri (string-append
12816 "https://hackage.haskell.org/package/terminal-size/"
12817 "terminal-size-" version ".tar.gz"))
12818 (sha256
12819 (base32
12820 "0n4nvj3dbj9gxfnprgish45asn9z4dipv9j98s8i7g2n8yb3xhmm"))))
12821 (build-system haskell-build-system)
12822 (home-page "https://hackage.haskell.org/package/terminal-size")
12823 (synopsis "Get terminal window height and width")
12824 (description "Get terminal window height and width without ncurses
12825dependency.")
12826 (license license:bsd-3)))
12827
12828(define-public ghc-texmath
12829 (package
12830 (name "ghc-texmath")
7fec7e66 12831 (version "0.11.3")
dddbc90c
RV
12832 (source (origin
12833 (method url-fetch)
12834 (uri (string-append "https://hackage.haskell.org/package/"
12835 "texmath/texmath-" version ".tar.gz"))
12836 (sha256
12837 (base32
7fec7e66 12838 "03rpxbp43bjs62mmw4hv4785n6f6nbf8kj2y9mma5nzk6i2xs09f"))))
dddbc90c
RV
12839 (build-system haskell-build-system)
12840 (inputs
12841 `(("ghc-syb" ,ghc-syb)
12842 ("ghc-network-uri" ,ghc-network-uri)
12843 ("ghc-split" ,ghc-split)
12844 ("ghc-temporary" ,ghc-temporary)
12845 ("ghc-utf8-string" ,ghc-utf8-string)
12846 ("ghc-xml" ,ghc-xml)
12847 ("ghc-pandoc-types" ,ghc-pandoc-types)))
12848 (home-page "https://github.com/jgm/texmath")
12849 (synopsis "Conversion between formats used to represent mathematics")
12850 (description
12851 "The texmath library provides functions to read and write TeX math,
12852presentation MathML, and OMML (Office Math Markup Language, used in Microsoft
12853Office). Support is also included for converting math formats to pandoc's
12854native format (allowing conversion, via pandoc, to a variety of different
12855markup formats). The TeX reader supports basic LaTeX and AMS extensions, and
12856it can parse and apply LaTeX macros.")
12857 (license license:gpl2+)))
12858
12859(define-public ghc-text-binary
12860 (package
12861 (name "ghc-text-binary")
12862 (version "0.2.1.1")
12863 (source
12864 (origin
12865 (method url-fetch)
12866 (uri (string-append "https://hackage.haskell.org/package/"
12867 "text-binary/text-binary-"
12868 version ".tar.gz"))
12869 (sha256
12870 (base32
12871 "18gl10pwg3qwsk0za3c70j4n6a9129wwf1b7d3a461h816yv55xn"))))
12872 (build-system haskell-build-system)
12873 (home-page "https://github.com/kawu/text-binary")
12874 (synopsis "Binary instances for text types")
12875 (description
12876 "This package provides a compatibility layer providing @code{Binary}
12877instances for strict and lazy text types for versions older than 1.2.1 of the
12878text package.")
12879 (license license:bsd-2)))
12880
714e5605
JS
12881(define-public ghc-text-manipulate
12882 (package
12883 (name "ghc-text-manipulate")
12884 (version "0.2.0.1")
12885 (source
12886 (origin
12887 (method url-fetch)
12888 (uri (string-append
12889 "https://hackage.haskell.org/package/text-manipulate"
12890 "/text-manipulate-"
12891 version
12892 ".tar.gz"))
12893 (sha256
12894 (base32
12895 "0bwxyjj3ll45srxhsp2ihikgqglvjc6m02ixr8xpvyqwkcfwgsg0"))))
12896 (build-system haskell-build-system)
12897 (native-inputs
12898 `(("ghc-tasty" ,ghc-tasty)
12899 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
12900 (home-page
12901 "https://github.com/brendanhay/text-manipulate")
12902 (synopsis
12903 "Case conversion, word boundary manipulation, and textual subjugation")
12904 (description
12905 "Manipulate identifiers and structurally non-complex pieces of text by
12906delimiting word boundaries via a combination of whitespace,
12907control-characters, and case-sensitivity.
12908
12909Has support for common idioms like casing of programmatic variable names,
12910taking, dropping, and splitting by word, and modifying the first character of
12911a piece of text.
12912
12913Caution: this library makes heavy use of the text library's internal loop
12914optimisation framework. Since internal modules are not guaranteed to have a
12915stable API there is potential for build breakage when the text dependency is
12916upgraded. Consider yourself warned!")
12917 (license license:mpl2.0)))
12918
bdc877c4
TS
12919(define-public ghc-text-metrics
12920 (package
12921 (name "ghc-text-metrics")
12922 (version "0.3.0")
12923 (source
12924 (origin
12925 (method url-fetch)
12926 (uri (string-append "https://hackage.haskell.org/package/"
12927 "text-metrics/text-metrics-" version ".tar.gz"))
12928 (sha256
12929 (base32
12930 "18mzxwkdvjp31r720ai9bnxr638qq8x3a2v408bz0d8f0rsayx1q"))))
12931 (build-system haskell-build-system)
12932 (inputs
12933 `(("ghc-vector" ,ghc-vector)))
12934 (native-inputs
12935 `(("ghc-quickcheck" ,ghc-quickcheck)
12936 ("ghc-hspec" ,ghc-hspec)))
12937 (arguments
12938 `(#:cabal-revision
12939 ("4" "017drxq9x56b345d8w5m8xdsi1zzs0z16pbdx8j35cd1lsnh3kf1")))
12940 (home-page "https://github.com/mrkkrp/text-metrics")
12941 (synopsis "Calculate various string metrics efficiently")
12942 (description "This library provides tools to calculate various
12943string metrics efficiently.")
12944 (license license:bsd-3)))
12945
dddbc90c
RV
12946(define-public ghc-tf-random
12947 (package
12948 (name "ghc-tf-random")
12949 (version "0.5")
534d6caa 12950 (outputs '("out" "static" "doc"))
dddbc90c
RV
12951 (source
12952 (origin
12953 (method url-fetch)
12954 (uri (string-append
12955 "https://hackage.haskell.org/package/tf-random/tf-random-"
12956 version
12957 ".tar.gz"))
12958 (sha256
12959 (base32 "0445r2nns6009fmq0xbfpyv7jpzwv0snccjdg7hwj4xk4z0cwc1f"))))
12960 (build-system haskell-build-system)
12961 (inputs
12962 `(("ghc-primitive" ,ghc-primitive)
12963 ("ghc-random" ,ghc-random)))
12964 (home-page "https://hackage.haskell.org/package/tf-random")
12965 (synopsis "High-quality splittable pseudorandom number generator")
12966 (description "This package contains an implementation of a high-quality
12967splittable pseudorandom number generator. The generator is based on a
12968cryptographic hash function built on top of the ThreeFish block cipher. See
12969the paper \"Splittable Pseudorandom Number Generators Using Cryptographic
12970Hashing\" by Claessen, Pałka for details and the rationale of the design.")
12971 (license license:bsd-3)))
12972
12973(define-public ghc-th-abstraction
12974 (package
12975 (name "ghc-th-abstraction")
1188eabb 12976 (version "0.3.1.0")
dddbc90c
RV
12977 (source
12978 (origin
12979 (method url-fetch)
12980 (uri (string-append "https://hackage.haskell.org/package/"
12981 "th-abstraction/th-abstraction-"
12982 version ".tar.gz"))
12983 (sha256
12984 (base32
1188eabb 12985 "1f81w0gshvc816cf9qz0f19jsrzh6wpzmmy317xrgn63dv61p7jb"))))
dddbc90c
RV
12986 (build-system haskell-build-system)
12987 (home-page "https://github.com/glguy/th-abstraction")
12988 (synopsis "Nicer interface for reified information about data types")
12989 (description
12990 "This package normalizes variations in the interface for inspecting
12991datatype information via Template Haskell so that packages and support a
12992single, easier to use informational datatype while supporting many versions of
12993Template Haskell.")
12994 (license license:isc)))
12995
12996(define-public ghc-th-expand-syns
12997 (package
12998 (name "ghc-th-expand-syns")
8c766600 12999 (version "0.4.5.0")
dddbc90c
RV
13000 (source (origin
13001 (method url-fetch)
13002 (uri (string-append "https://hackage.haskell.org/package/"
13003 "th-expand-syns/th-expand-syns-"
13004 version ".tar.gz"))
13005 (sha256
13006 (base32
8c766600 13007 "1p4wfyycan8zsp9wi7npx36qwbfsbcgdyxi3ii51scf69dkrx42y"))))
dddbc90c
RV
13008 (build-system haskell-build-system)
13009 (inputs
13010 `(("ghc-syb" ,ghc-syb)))
13011 (home-page "https://hackage.haskell.org/package/th-expand-syns")
13012 (synopsis "Expands type synonyms in Template Haskell ASTs")
13013 (description
13014 "This package enables users to expand type synonyms in Template Haskell
13015@dfn{abstract syntax trees} (ASTs).")
13016 (license license:bsd-3)))
13017
13018(define-public ghc-th-lift
13019 (package
13020 (name "ghc-th-lift")
bd76b20a 13021 (version "0.8.0.1")
dddbc90c
RV
13022 (source (origin
13023 (method url-fetch)
13024 (uri (string-append "https://hackage.haskell.org/package/"
13025 "th-lift/th-lift-" version ".tar.gz"))
13026 (sha256
13027 (base32
bd76b20a 13028 "1a6qlbdg15cfr5rvl9g3blgwx4v1p0xic0pzv13zx165xbc36ld0"))))
dddbc90c
RV
13029 (build-system haskell-build-system)
13030 (inputs
13031 `(("ghc-th-abstraction" ,ghc-th-abstraction)))
13032 (home-page "https://github.com/mboes/th-lift")
13033 (synopsis "Derive Template Haskell's Lift class for datatypes")
13034 (description
13035 "This is a Haskell library to derive Template Haskell's Lift class for
13036datatypes.")
13037 (license license:bsd-3)))
13038
13039(define-public ghc-th-lift-instances
13040 (package
13041 (name "ghc-th-lift-instances")
d3db399e 13042 (version "0.1.14")
dddbc90c
RV
13043 (source
13044 (origin
13045 (method url-fetch)
13046 (uri (string-append "https://hackage.haskell.org/package/"
13047 "th-lift-instances/th-lift-instances-"
13048 version ".tar.gz"))
13049 (sha256
13050 (base32
d3db399e 13051 "0r1b4jnvcj64wp4hfccwkl4a70n1p1q7qzyx6ax7cmd8k961jz78"))))
dddbc90c
RV
13052 (build-system haskell-build-system)
13053 (inputs
13054 `(("ghc-th-lift" ,ghc-th-lift)
13055 ("ghc-vector" ,ghc-vector)
13056 ("ghc-quickcheck" ,ghc-quickcheck)))
13057 (home-page "https://github.com/bennofs/th-lift-instances/")
13058 (synopsis "Lift instances for template-haskell for common data types.")
13059 (description "Most data types in the Haskell platform do not have Lift
13060instances. This package provides orphan instances for @code{containers},
13061@code{text}, @code{bytestring} and @code{vector}.")
13062 (license license:bsd-3)))
13063
13064(define-public ghc-th-orphans
13065 (package
13066 (name "ghc-th-orphans")
882b23e2 13067 (version "0.13.9")
dddbc90c
RV
13068 (source (origin
13069 (method url-fetch)
13070 (uri (string-append "https://hackage.haskell.org/package/"
13071 "th-orphans/th-orphans-" version ".tar.gz"))
13072 (sha256
13073 (base32
882b23e2 13074 "1xj1gssv77hdx1r3ndg8k49v3ipj3a6r7crkyvx13jrps3m6ng1z"))))
dddbc90c
RV
13075 (build-system haskell-build-system)
13076 (inputs
13077 `(("ghc-th-lift" ,ghc-th-lift)
13078 ("ghc-th-lift-instances" ,ghc-th-lift-instances)
13079 ("ghc-th-reify-many" ,ghc-th-reify-many)
13080 ("ghc-generic-deriving" ,ghc-generic-deriving)))
13081 (native-inputs
13082 `(("ghc-hspec" ,ghc-hspec)))
13083 (home-page "https://hackage.haskell.org/package/th-orphans")
13084 (synopsis "Orphan instances for TH datatypes")
13085 (description
13086 "This package provides orphan instances for Template Haskell datatypes. In particular,
13087instances for @code{Ord} and @code{Lift}, as well as a few missing @code{Show}
13088and @code{Eq} instances. These instances used to live in the haskell-src-meta
13089package, and that's where the version number started.")
13090 (license license:bsd-3)))
13091
20c440ea
JS
13092(define-public ghc-these
13093 (package
13094 (name "ghc-these")
13095 (version "1.0.1")
13096 (source
13097 (origin
13098 (method url-fetch)
13099 (uri (string-append
13100 "https://hackage.haskell.org/package/these/these-"
13101 version
13102 ".tar.gz"))
13103 (sha256
13104 (base32
13105 "1k0pi65g7cm9hzdw6my6bzz2zvddkmj1qs45ymqmi316bpiixk3r"))))
13106 (build-system haskell-build-system)
13107 (inputs
13108 `(("ghc-base-compat" ,ghc-base-compat)
13109 ("ghc-hashable" ,ghc-hashable)
13110 ("ghc-aeson" ,ghc-aeson)
13111 ("ghc-unordered-containers" ,ghc-unordered-containers)
13112 ("ghc-assoc" ,ghc-assoc)
13113 ("ghc-semigroupoids" ,ghc-semigroupoids)
13114 ("ghc-quickcheck" ,ghc-quickcheck)))
13115 (arguments
13116 `(#:cabal-revision
13117 ("1"
13118 "0923r86fnmgpx0msm68aszirh2n19nn5bccgjxfh2146jw4z7w3z")))
13119 (home-page
13120 "https://github.com/isomorphism/these")
13121 (synopsis "Either-or-both data type")
13122 (description
13123 "This package provides a data type @code{These a b} which can
13124hold a value of either type or values of each type. This is usually
13125thought of as an \"inclusive or\" type (contrasting @code{Either a b} as
13126\"exclusive or\") or as an \"outer join\" type (contrasting @code{(a, b)}
13127as \"inner join\").
13128
13129@code{data These a b = This a | That b | These a b}
13130
13131Since version 1, this package was split into parts:
13132
13133@itemize
13134@item
13135https://hackage.haskell.org/package/semialign For @code{Align} and
13136@code{Zip} type-classes.
13137@item
13138https://hackage.haskell.org/package/semialign-indexed For
13139@code{SemialignWithIndex} class, providing @code{ialignWith} and
13140@code{izipWith}
13141@item
13142https://hackage.haskell.org/package/these-lens For lens combinators.
13143@item
13144http://hackage.haskell.org/package/monad-chronicle For transformers
13145variant of @code{These}.
13146@end itemize")
13147 (license license:bsd-3)))
13148
dddbc90c
RV
13149(define-public ghc-threads
13150 (package
13151 (name "ghc-threads")
13152 (version "0.5.1.6")
13153 (source
13154 (origin
13155 (method url-fetch)
13156 (uri (string-append "https://hackage.haskell.org/package/"
13157 "threads/threads-" version ".tar.gz"))
13158 (sha256
13159 (base32
13160 "0bjnjhnq3km6xqk0fn1fgyz5xdw4h6lylbwwbcmkkfzwcz0c76hk"))))
13161 (build-system haskell-build-system)
13162 (native-inputs
13163 `(("ghc-concurrent-extra" ,ghc-concurrent-extra)
13164 ("ghc-hunit" ,ghc-hunit)
13165 ("ghc-test-framework" ,ghc-test-framework)
13166 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
13167 (home-page "https://github.com/basvandijk/threads")
13168 (synopsis "Fork threads and wait for their result")
13169 (description "This package provides functions to fork threads and
13170wait for their result, whether it's an exception or a normal value.
13171Besides waiting for the termination of a single thread this package also
13172provides functions to wait for a group of threads to terminate. This
bbf8bf31
RV
13173package is similar to the @code{threadmanager}, @code{async} and
13174@code{spawn} packages. The advantages of this package are:
13175
dddbc90c
RV
13176@itemize
13177@item Simpler API.
13178@item More efficient in both space and time.
13179@item No space-leak when forking a large number of threads.
13180@item Correct handling of asynchronous exceptions.
13181@item GHC specific functionality like @code{forkOn} and
13182@code{forkIOWithUnmask}.
13183@end itemize")
13184 (license license:bsd-3)))
13185
13186(define-public ghc-th-reify-many
13187 (package
13188 (name "ghc-th-reify-many")
32d4a6ae 13189 (version "0.1.9")
dddbc90c
RV
13190 (source (origin
13191 (method url-fetch)
13192 (uri (string-append "https://hackage.haskell.org/package/"
13193 "th-reify-many/th-reify-many-"
13194 version ".tar.gz"))
13195 (sha256
13196 (base32
32d4a6ae 13197 "0hxf56filzqnyrc8q7766vai80y6cgrrbrczx6n93caskl1dv2gq"))))
dddbc90c
RV
13198 (build-system haskell-build-system)
13199 (inputs
13200 `(("ghc-safe" ,ghc-safe)
13201 ("ghc-th-expand-syns" ,ghc-th-expand-syns)))
13202 (home-page "https://github.com/mgsloan/th-reify-many")
13203 (synopsis "Recurseively reify template haskell datatype info")
13204 (description
13205 "th-reify-many provides functions for recursively reifying top level
13206declarations. The main intended use case is for enumerating the names of
13207datatypes reachable from an initial datatype, and passing these names to some
13208function which generates instances.")
13209 (license license:bsd-3)))
13210
75cfc9a2
TS
13211(define-public ghc-time-compat
13212 (package
13213 (name "ghc-time-compat")
13214 (version "1.9.2.2")
13215 (source
13216 (origin
13217 (method url-fetch)
13218 (uri (string-append "https://hackage.haskell.org/package/"
13219 "time-compat/time-compat-" version ".tar.gz"))
13220 (sha256
13221 (base32
13222 "05va0rqs759vbridbcl6hksp967j9anjvys8vx72fnfkhlrn2s52"))))
13223 (build-system haskell-build-system)
13224 (inputs
13225 `(("ghc-base-orphans" ,ghc-base-orphans)))
13226 (native-inputs
13227 `(("ghc-hunit" ,ghc-hunit)
13228 ("ghc-base-compat" ,ghc-base-compat)
13229 ("ghc-quickcheck" ,ghc-quickcheck)
13230 ("ghc-tagged" ,ghc-tagged)
13231 ("ghc-tasty" ,ghc-tasty)
13232 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
13233 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
13234 (arguments
13235 `(#:cabal-revision
13236 ("1" "0k8ph4sydaiqp8dav4if6hpiaq8h1xsr93khmdr7a1mmfwdxr64r")))
13237 (home-page "https://github.com/phadej/time-compat")
13238 (synopsis "Compatibility package for time")
a8d73e69 13239 (description "This package tries to compat as many @code{time}
75cfc9a2
TS
13240features as possible.")
13241 (license license:bsd-3)))
13242
dddbc90c
RV
13243(define-public ghc-time-locale-compat
13244 (package
13245 (name "ghc-time-locale-compat")
13246 (version "0.1.1.5")
13247 (source
13248 (origin
13249 (method url-fetch)
13250 (uri (string-append "https://hackage.haskell.org/package/"
13251 "time-locale-compat/time-locale-compat-"
13252 version ".tar.gz"))
13253 (sha256
13254 (base32
13255 "0b2hmj8wwrfkndwzgm11qr496ca2ahwdxcj3m0ii91bxvrk1bzq7"))))
13256 (build-system haskell-build-system)
13257 (inputs `(("ghc-old-locale" ,ghc-old-locale)))
13258 (home-page "https://github.com/khibino/haskell-time-locale-compat")
13259 (synopsis "Compatibility of TimeLocale between old-locale and time-1.5")
13260 (description "This package contains a wrapped name module for
13261@code{TimeLocale}.")
13262 (license license:bsd-3)))
13263
c022a4d4
TS
13264(define-public ghc-time-manager
13265 (package
13266 (name "ghc-time-manager")
13267 (version "0.0.0")
13268 (source
13269 (origin
13270 (method url-fetch)
13271 (uri (string-append "https://hackage.haskell.org/package/"
13272 "time-manager/time-manager-" version ".tar.gz"))
13273 (sha256
13274 (base32
13275 "1nzwj0fxz370ks6vr1sylcidx33rnqq45y3q9yv9n4dj43nid9lh"))))
13276 (build-system haskell-build-system)
13277 (inputs
13278 `(("ghc-auto-update" ,ghc-auto-update)))
13279 (home-page "https://github.com/yesodweb/wai")
13280 (synopsis "Scalable timer")
13281 (description "This library contains scalable timer functions provided by a
13282timer manager.")
13283 (license license:expat)))
13284
7bbfa392
JS
13285(define-public ghc-timeit
13286 (package
13287 (name "ghc-timeit")
13288 (version "2.0")
13289 (source
13290 (origin
13291 (method url-fetch)
13292 (uri
13293 (string-append
13294 "https://hackage.haskell.org/package/timeit/timeit-"
13295 version ".tar.gz"))
13296 (sha256
13297 (base32
13298 "1sliqpvl501rlcj6s0lhmsf5ym24j4h881wzc1f1wdyvg3jz8kd1"))))
13299 (build-system haskell-build-system)
13300 (home-page "https://github.com/merijn/timeit")
13301 (synopsis "Time monadic computations with an IO base")
13302 (description "This package provides a simple wrapper to show the
13303used CPU time of monadic computation with an IO base.")
13304 (license license:bsd-3)))
13305
2ed8bd2d
JS
13306(define-public ghc-timezone-series
13307 (package
13308 (name "ghc-timezone-series")
13309 (version "0.1.9")
13310 (source
13311 (origin
13312 (method url-fetch)
13313 (uri
13314 (string-append
13315 "mirror://hackage/package/timezone-series/timezone-series-"
13316 version ".tar.gz"))
13317 (sha256
13318 (base32
13319 "1blwgnyzqn917rgqkl4dncv9whv3xmk0lav040qq0214vksmvlz5"))))
13320 (build-system haskell-build-system)
13321 (home-page "https://archives.haskell.org/projects.haskell.org/time-ng/")
13322 (synopsis "Enhanced timezone handling for Time")
13323 (description
13324 "This package endows @code{Data.Time}, from the time package, with several
13325data types and functions for enhanced processing of timezones. For one way to
13326create timezone series, see the ghc-timezone-olson package.")
13327 (license license:bsd-3)))
13328
ff0f5786
JS
13329(define-public ghc-timezone-olson
13330 (package
13331 (name "ghc-timezone-olson")
13332 (version "0.1.9")
13333 (source
13334 (origin
13335 (method url-fetch)
13336 (uri
13337 (string-append
13338 "mirror://hackage/package/timezone-olson/timezone-olson-"
13339 version ".tar.gz"))
13340 (sha256
13341 (base32
13342 "05abywx1nrcaz0nqzfy4zw62bc5qd7pdfnjvv4drxkwv084ha8rj"))))
13343 (build-system haskell-build-system)
13344 (inputs
13345 `(("ghc-timezone-series" ,ghc-timezone-series)
13346 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)))
13347 (home-page "https://archives.haskell.org/projects.haskell.org/time-ng/")
13348 (synopsis "Parser and renderer for binary Olson timezone files")
13349 (description
13350 "A parser and renderer for binary Olson timezone files whose format
13351is specified by the tzfile(5) man page on Unix-like systems. For more
13352information about this format, see
13353@url{http://www.iana.org/time-zones/repository/tz-link.html}. Functions
13354are provided for converting the parsed data into @code{TimeZoneSeries}
13355objects from the timezone-series package.")
13356 (license license:bsd-3)))
13357
dddbc90c
RV
13358(define-public ghc-tldr
13359 (package
13360 (name "ghc-tldr")
871ceb31 13361 (version "0.4.0.2")
dddbc90c
RV
13362 (source
13363 (origin
13364 (method url-fetch)
13365 (uri (string-append
13366 "https://hackage.haskell.org/package/tldr/tldr-"
13367 version
13368 ".tar.gz"))
13369 (sha256
13370 (base32
871ceb31 13371 "1zy9yyg7bxiyz1prkvrscggsb9p0f8y0nqxxxzlgzvnh2nmqf8f2"))))
dddbc90c
RV
13372 (build-system haskell-build-system)
13373 (inputs
13374 `(("ghc-cmark" ,ghc-cmark)
13375 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
13376 ("ghc-typed-process" ,ghc-typed-process)
13377 ("ghc-semigroups" ,ghc-semigroups)))
13378 (native-inputs
13379 `(("ghc-tasty" ,ghc-tasty)
13380 ("ghc-tasty-golden" ,ghc-tasty-golden)))
13381 (home-page "https://github.com/psibi/tldr-hs#readme")
13382 (synopsis "Haskell tldr client")
13383 (description "This package provides the @command{tldr} command and a
13384Haskell client library allowing users to update and view @code{tldr} pages
13385from a shell. The @code{tldr} pages are a community effort to simplify the
13386man pages with practical examples.")
13387 (license license:bsd-3)))
13388
460e4e42
JS
13389(define-public ghc-transformers
13390 (package
13391 (name "ghc-transformers")
13392 (version "0.5.6.2")
13393 (source
13394 (origin
13395 (method url-fetch)
13396 (uri (string-append
13397 "mirror://hackage/package/transformers/transformers-"
13398 version
13399 ".tar.gz"))
13400 (sha256
13401 (base32
13402 "0v66j5k0xqk51pmca55wq192qyw2p43s2mgxlz4f95q2c1fpjs5n"))))
13403 (build-system haskell-build-system)
13404 (home-page
13405 "http://hackage.haskell.org/package/transformers")
13406 (synopsis "Concrete functor and monad transformers")
13407 (description
13408 "Transformers provides functor and monad transformers, inspired by the
13409paper \"Functional Programming with Overloading and Higher-Order
13410Polymorphism\", by Mark P Jones, in Advanced School of Functional Programming,
134111995 @url{http://web.cecs.pdx.edu/~mpj/pubs/springschool.html}.
13412
13413This package contains:
13414@itemize
13415@item the monad transformer class (in @code{Control.Monad.Trans.Class})
13416@item concrete functor and monad transformers, each with associated operations
13417and functions to lift operations associated with other transformers.
13418@end itemize
13419
13420This package can be used on its own in portable Haskell code, in which case
13421operations need to be manually lifted through transformer stacks (see
13422@code{Control.Monad.Trans.Class} for some examples). Alternatively, it can be
13423used with the non-portable monad classes in the mtl or monads-tf packages,
13424which automatically lift operations introduced by monad transformers through
13425other transformers.")
13426 (license license:bsd-3)))
13427
dddbc90c
RV
13428(define-public ghc-transformers-base
13429 (package
13430 (name "ghc-transformers-base")
13431 (version "0.4.5.2")
13432 (source
13433 (origin
13434 (method url-fetch)
13435 (uri (string-append
13436 "https://hackage.haskell.org/package/transformers-base/transformers-base-"
13437 version
13438 ".tar.gz"))
13439 (sha256
13440 (base32
13441 "1s256bi0yh0x2hp2gwd30f3mg1cv53zz397dv1yhfsnfzmihrj6h"))))
13442 (build-system haskell-build-system)
13443 (inputs
13444 `(("ghc-transformers-compat" ,ghc-transformers-compat)))
13445 (home-page
13446 "https://hackage.haskell.org/package/transformers-compat")
13447 (synopsis
13448 "Backported transformer library")
13449 (description
13450 "Backported versions of types that were added to transformers in
13451transformers 0.3 and 0.4 for users who need strict transformers 0.2 or 0.3
13452compatibility to run on old versions of the platform.")
13453 (license license:bsd-3)))
13454
13455(define-public ghc-transformers-compat
13456 (package
13457 (name "ghc-transformers-compat")
1c9c4d58 13458 (version "0.6.5")
dddbc90c
RV
13459 (source
13460 (origin
13461 (method url-fetch)
13462 (uri (string-append
13463 "https://hackage.haskell.org/package/transformers-compat"
13464 "/transformers-compat-" version ".tar.gz"))
13465 (sha256
13466 (base32
1c9c4d58 13467 "02v2fjbvcrlpvhcsssap8dy8y9pp95jykrlc5arm39sxa48wyrys"))))
dddbc90c
RV
13468 (build-system haskell-build-system)
13469 (home-page "https://github.com/ekmett/transformers-compat/")
13470 (synopsis "Small compatibility shim between transformers 0.3 and 0.4")
13471 (description "This package includes backported versions of types that were
13472added to transformers in transformers 0.3 and 0.4 for users who need strict
13473transformers 0.2 or 0.3 compatibility to run on old versions of the platform,
13474but also need those types.")
13475 (license license:bsd-3)))
13476
13477(define-public ghc-tree-diff
13478 (package
13479 (name "ghc-tree-diff")
b4e26067 13480 (version "0.1")
dddbc90c
RV
13481 (source
13482 (origin
13483 (method url-fetch)
13484 (uri (string-append
13485 "https://hackage.haskell.org/package/tree-diff/tree-diff-"
13486 version
13487 ".tar.gz"))
13488 (sha256
13489 (base32
b4e26067 13490 "1156nbqn0pn9lp4zjsy4vv5g5wmy4zxwmbqdgvq349rydynh3ng3"))))
dddbc90c 13491 (build-system haskell-build-system)
dddbc90c
RV
13492 (inputs
13493 `(("ghc-aeson" ,ghc-aeson)
13494 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
13495 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
13496 ("ghc-base-compat" ,ghc-base-compat)
b4e26067 13497 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
dddbc90c 13498 ("ghc-hashable" ,ghc-hashable)
dddbc90c
RV
13499 ("ghc-parsers" ,ghc-parsers)
13500 ("ghc-quickcheck" ,ghc-quickcheck)
13501 ("ghc-scientific" ,ghc-scientific)
13502 ("ghc-tagged" ,ghc-tagged)
13503 ("ghc-unordered-containers" ,ghc-unordered-containers)
13504 ("ghc-uuid-types" ,ghc-uuid-types)
13505 ("ghc-vector" ,ghc-vector)))
13506 (native-inputs
13507 `(("ghc-base-compat" ,ghc-base-compat)
13508 ("ghc-quickcheck" ,ghc-quickcheck)
13509 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
13510 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
13511 ("ghc-trifecta" ,ghc-trifecta)
13512 ("ghc-tasty" ,ghc-tasty)
13513 ("ghc-tasty-golden" ,ghc-tasty-golden)
13514 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
13515 (home-page "https://github.com/phadej/tree-diff")
13516 (synopsis "Compute difference between (expression) trees")
13517 (description "This Haskell library provides a function for computing
13518the difference between (expression) trees. It also provides a way to
13519compute the difference between arbitrary abstract datatypes (ADTs) using
13520@code{Generics}-derivable helpers.")
13521 (license license:bsd-3)))
13522
13523(define-public ghc-trifecta
13524 (package
13525 (name "ghc-trifecta")
13526 (version "2")
13527 (source (origin
13528 (method url-fetch)
13529 (uri (string-append
13530 "https://hackage.haskell.org/package/trifecta/"
13531 "trifecta-" version ".tar.gz"))
13532 (sha256
13533 (base32
13534 "0hznd8i65s81xy13i2qc7cvipw3lfb2yhkv53apbdsh6sbljz5sk"))))
13535 (build-system haskell-build-system)
5ffe8cfd
TS
13536 (arguments
13537 `(#:tests? #f ; doctest suite fails to build on i686
13538 #:cabal-revision
13539 ("4" "0xbwyvwl6f2zylk60f2akwgq03qv49113xil7b1z1s3vlwbn5aj1")))
dddbc90c
RV
13540 (inputs
13541 `(("ghc-reducers" ,ghc-reducers)
13542 ("ghc-semigroups" ,ghc-semigroups)
13543 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
13544 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
13545 ("ghc-blaze-builder" ,ghc-blaze-builder)
13546 ("ghc-blaze-html" ,ghc-blaze-html)
13547 ("ghc-blaze-markup" ,ghc-blaze-markup)
13548 ("ghc-charset" ,ghc-charset)
13549 ("ghc-comonad" ,ghc-comonad)
13550 ("ghc-fingertree" ,ghc-fingertree)
13551 ("ghc-hashable" ,ghc-hashable)
13552 ("ghc-lens" ,ghc-lens)
13553 ("ghc-parsers" ,ghc-parsers)
13554 ("ghc-profunctors" ,ghc-profunctors)
13555 ("ghc-unordered-containers" ,ghc-unordered-containers)
13556 ("ghc-utf8-string" ,ghc-utf8-string)))
13557 (native-inputs
13558 `(("cabal-doctest" ,cabal-doctest)
13559 ("ghc-doctest" ,ghc-doctest)
13560 ("ghc-quickcheck" ,ghc-quickcheck)))
13561 (home-page "https://github.com/ekmett/trifecta/")
13562 (synopsis "Parser combinator library with convenient diagnostics")
13563 (description "Trifecta is a modern parser combinator library for Haskell,
13564with slicing and Clang-style colored diagnostics.")
13565 (license license:bsd-3)))
13566
13567(define-public ghc-tuple-th
13568 (package
13569 (name "ghc-tuple-th")
13570 (version "0.2.5")
13571 (source
13572 (origin
13573 (method url-fetch)
13574 (uri (string-append "https://hackage.haskell.org/package/"
13575 "tuple-th-" version "/"
13576 "tuple-th-" version ".tar.gz"))
13577 (sha256
13578 (base32
13579 "1mrl4vvxmby7sf1paf7hklzidnr6wq55822i73smqyz0xpf3gsjn"))))
13580 (build-system haskell-build-system)
13581 (home-page "https://github.com/DanielSchuessler/tuple-th")
13582 (synopsis "Generate utility functions for tuples of statically known size
13583for Haskell")
13584 (description "This Haskell package contains Template Haskell functions for
13585generating functions similar to those in @code{Data.List} for tuples of
13586statically known size.")
13587 (license license:bsd-3)))
13588
9f776fe2
JS
13589(define-public ghc-turtle
13590 (package
13591 (name "ghc-turtle")
13592 (version "1.5.15")
13593 (source
13594 (origin
13595 (method url-fetch)
13596 (uri (string-append
13597 "mirror://hackage/package/turtle/turtle-"
13598 version
13599 ".tar.gz"))
13600 (sha256
13601 (base32
13602 "0yckgsc2a4g5x867gni80ldp226bsnhncfbil4ql6v2zwm4r8p7f"))))
13603 (build-system haskell-build-system)
13604 (inputs
13605 `(("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
13606 ("ghc-async" ,ghc-async)
13607 ("ghc-clock" ,ghc-clock)
13608 ("ghc-exceptions" ,ghc-exceptions)
13609 ("ghc-foldl" ,ghc-foldl)
13610 ("ghc-hostname" ,ghc-hostname)
13611 ("ghc-managed" ,ghc-managed)
13612 ("ghc-semigroups" ,ghc-semigroups)
13613 ("ghc-system-filepath" ,ghc-system-filepath)
13614 ("ghc-system-fileio" ,ghc-system-fileio)
13615 ("ghc-streaming-commons" ,ghc-streaming-commons)
13616 ("ghc-temporary" ,ghc-temporary)
13617 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
13618 ("ghc-optional-args" ,ghc-optional-args)
13619 ("ghc-unix-compat" ,ghc-unix-compat)))
13620 (native-inputs
13621 `(("ghc-doctest" ,ghc-doctest)
13622 ("ghc-fail" ,ghc-fail)))
13623 (arguments
13624 `(#:cabal-revision
13625 ("1" "02q1rv7zx31xz9wnmcqwd4w3iw7623p07iyi21zr0cqlignic5pg")))
13626 (home-page
13627 "http://hackage.haskell.org/package/turtle")
13628 (synopsis "Shell programming, Haskell-style")
13629 (description
13630 "Turtle is a reimplementation of the Unix command line environment in
13631Haskell so that you can use Haskell as both a shell and a scripting
13632language. Features include:
13633
13634@itemize
13635@item Batteries included: Command an extended suite of predefined utilities.
13636@item Interoperability: You can still run external shell commands.
13637@item Portability: Works on Windows, OS X, and Linux.
13638@item Exception safety: Safely acquire and release resources.
13639@item Streaming: Transform or fold command output in constant space.
13640@item Patterns: Use typed regular expressions that can parse structured values.
13641@item Formatting: Type-safe printf-style text formatting.
13642@item Modern: Supports text and system-filepath.
13643@end itemize
13644
13645Read \"Turtle.Tutorial\" for a detailed tutorial or \"Turtle.Prelude\" for a
13646quick-start guide. Turtle is designed to be beginner-friendly, but as a
13647result lacks certain features, like tracing commands. If you feel comfortable
13648using turtle then you should also check out the Shelly library which provides
13649similar functionality.")
13650 (license license:bsd-3)))
13651
dddbc90c
RV
13652(define-public ghc-typed-process
13653 (package
13654 (name "ghc-typed-process")
72fb84a5 13655 (version "0.2.6.0")
dddbc90c
RV
13656 (source
13657 (origin
13658 (method url-fetch)
13659 (uri (string-append "https://hackage.haskell.org/package/"
13660 "typed-process/typed-process-"
13661 version ".tar.gz"))
13662 (sha256
13663 (base32
72fb84a5 13664 "1cf2pfym8zdxvvy7xv72ixj7wy3rjrdss6f57k1ysgs66cgsi8ii"))))
dddbc90c
RV
13665 (build-system haskell-build-system)
13666 (inputs
72fb84a5
TS
13667 `(("ghc-async" ,ghc-async)
13668 ("ghc-unliftio-core" ,ghc-unliftio-core)))
dddbc90c
RV
13669 (native-inputs
13670 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
13671 ("ghc-hspec" ,ghc-hspec)
13672 ("hspec-discover" ,hspec-discover)
13673 ("ghc-temporary" ,ghc-temporary)))
13674 (home-page "https://haskell-lang.org/library/typed-process")
13675 (synopsis "Run external processes with strong typing of streams")
13676 (description
13677 "This library provides the ability to launch and interact with external
13678processes. It wraps around the @code{process} library, and intends to improve
13679upon it.")
13680 (license license:expat)))
13681
d392f803
AG
13682(define-public ghc-unagi-chan
13683 (package
13684 (name "ghc-unagi-chan")
13685 (version "0.4.1.2")
13686 (source
13687 (origin
13688 (method url-fetch)
13689 (uri (string-append "https://hackage.haskell.org/package/unagi-chan"
13690 "/unagi-chan-" version ".tar.gz"))
13691 (sha256
13692 (base32
13693 "1lnl5n4jnjmm4chp461glcwkrrw63rjz3fvprwxcy3lkpbkrqvgn"))))
13694 (build-system haskell-build-system)
13695 (inputs
13696 `(("ghc-atomic-primops" ,ghc-atomic-primops)
13697 ("ghc-primitive" ,ghc-primitive)))
13698 (arguments
13699 `(#:tests? #f ; FIXME: Tests expect primitive 0.7
13700 #:cabal-revision
13701 ("1"
13702 "09pqi867wskwgc5lpn197f895mbn1174ydgllvcppcsmrz2b6yr6")))
3ef91e15 13703 (home-page "https://hackage.haskell.org/package/unagi-chan")
d392f803
AG
13704 (synopsis "Fast concurrent queues with a Chan-like API, and more")
13705 (description
13706 "This library provides implementations of concurrent FIFO queues (for
13707both general boxed and primitive unboxed values) that are fast, perform well
13708under contention, and offer a Chan-like interface. The library may be of
13709limited usefulness outside of x86 architectures where the fetch-and-add
13710instruction is not available.")
13711 (license license:bsd-3)))
13712
dddbc90c
RV
13713(define-public ghc-unbounded-delays
13714 (package
13715 (name "ghc-unbounded-delays")
13716 (version "0.1.1.0")
13717 (source
13718 (origin
13719 (method url-fetch)
13720 (uri (string-append
13721 "https://hackage.haskell.org/package/unbounded-delays/unbounded-delays-"
13722 version
13723 ".tar.gz"))
13724 (sha256
13725 (base32
13726 "1ir9fghbrc214c97bwafk5ck6cacxz1pdnq4i18p604d1b8zg9wa"))))
13727 (build-system haskell-build-system)
13728 (home-page "https://github.com/basvandijk/unbounded-delays")
13729 (synopsis "Unbounded thread delays and timeouts")
13730 (description "The @code{threadDelay} and @code{timeout} functions from the
13731Haskell base library use the bounded @code{Int} type for specifying the delay
13732or timeout period. This package provides alternative functions which use the
13733unbounded @code{Integer} type.")
13734 (license license:bsd-3)))
13735
13736(define-public ghc-unexceptionalio
13737 (package
13738 (name "ghc-unexceptionalio")
13739 (version "0.4.0")
13740 (source
13741 (origin
13742 (method url-fetch)
13743 (uri (string-append "https://hackage.haskell.org/package/"
13744 "unexceptionalio-" version "/" "unexceptionalio-"
13745 version ".tar.gz"))
13746 (sha256 (base32 "09gynk472l7nn5l2w320n4dwigwp0wh0shfp6dyw6r5h2jdxz18p"))))
13747 (build-system haskell-build-system)
13748 (home-page "https://github.com/singpolyma/unexceptionalio")
13749 (synopsis "IO without any non-error, synchronous exceptions")
13750 (description "When you've caught all the exceptions that can be
13751handled safely, this is what you're left with.")
13752 (license license:isc)))
13753
b69d4aa7
TS
13754(define-public ghc-unicode-transforms
13755 (package
13756 (name "ghc-unicode-transforms")
13757 (version "0.3.6")
13758 (source
13759 (origin
13760 (method url-fetch)
13761 (uri (string-append "https://hackage.haskell.org/package/"
13762 "unicode-transforms/unicode-transforms-"
13763 version ".tar.gz"))
13764 (sha256
13765 (base32
13766 "1akscvyssif4hki3g6hy0jmjyr8cqly1whzvzj0km2b3qh0x09l3"))))
13767 (build-system haskell-build-system)
13768 (inputs
13769 `(("ghc-bitarray" ,ghc-bitarray)))
13770 (native-inputs
13771 `(("ghc-quickcheck" ,ghc-quickcheck)
13772 ("ghc-getopt-generics" ,ghc-getopt-generics)
13773 ("ghc-split" ,ghc-split)))
13774 (home-page "https://github.com/composewell/unicode-transforms")
13775 (synopsis "Unicode normalization")
13776 (description "This library provides tools for fast Unicode 12.1.0
13777normalization in Haskell (normalization forms C, KC, D, and KD).")
13778 (license license:bsd-3)))
13779
dddbc90c
RV
13780(define-public ghc-union-find
13781 (package
13782 (name "ghc-union-find")
13783 (version "0.2")
13784 (source (origin
13785 (method url-fetch)
13786 (uri (string-append
13787 "https://hackage.haskell.org/package/union-find/union-find-"
13788 version ".tar.gz"))
13789 (sha256
13790 (base32
13791 "1v7hj42j9w6jlzi56jg8rh4p58gfs1c5dx30wd1qqvn0p0mnihp6"))))
13792 (build-system haskell-build-system)
13793 (home-page "https://github.com/nominolo/union-find")
13794 (synopsis "Efficient union and equivalence testing of sets")
13795 (description
13796 "The Union/Find algorithm implements these operations in (effectively)
13797constant-time:
13798@enumerate
13799@item Check whether two elements are in the same equivalence class.
13800@item Create a union of two equivalence classes.
13801@item Look up the descriptor of the equivalence class.
13802@end enumerate\n")
13803 (license license:bsd-3)))
13804
13805(define-public ghc-uniplate
13806 (package
13807 (name "ghc-uniplate")
13808 (version "1.6.12")
13809 (source
13810 (origin
13811 (method url-fetch)
13812 (uri (string-append
13813 "https://hackage.haskell.org/package/uniplate/uniplate-"
13814 version
13815 ".tar.gz"))
13816 (sha256
13817 (base32
13818 "1dx8f9aw27fz8kw0ad1nm6355w5rdl7bjvb427v2bsgnng30pipw"))))
13819 (build-system haskell-build-system)
13820 (inputs
13821 `(("ghc-syb" ,ghc-syb)
13822 ("ghc-hashable" ,ghc-hashable)
13823 ("ghc-unordered-containers" ,ghc-unordered-containers)))
f5d88758 13824 (home-page "https://github.com/ndmitchell/uniplate")
dddbc90c
RV
13825 (synopsis "Simple, concise and fast generic operations")
13826 (description "Uniplate is a library for writing simple and concise generic
13827operations. Uniplate has similar goals to the original Scrap Your Boilerplate
13828work, but is substantially simpler and faster.")
13829 (license license:bsd-3)))
13830
13831(define-public ghc-unix-compat
13832 (package
13833 (name "ghc-unix-compat")
bc82e9f5 13834 (version "0.5.2")
dddbc90c
RV
13835 (source
13836 (origin
13837 (method url-fetch)
13838 (uri (string-append
13839 "https://hackage.haskell.org/package/unix-compat/unix-compat-"
13840 version
13841 ".tar.gz"))
13842 (sha256
13843 (base32
bc82e9f5 13844 "1a8brv9fax76b1fymslzyghwa6ma8yijiyyhn12msl3i5x24x6k5"))))
dddbc90c
RV
13845 (build-system haskell-build-system)
13846 (home-page
13847 "https://github.com/jystic/unix-compat")
13848 (synopsis "Portable POSIX-compatibility layer")
13849 (description
13850 "This package provides portable implementations of parts of the unix
13851package. This package re-exports the unix package when available. When it
13852isn't available, portable implementations are used.")
13853 (license license:bsd-3)))
13854
13855(define-public ghc-unix-time
13856 (package
13857 (name "ghc-unix-time")
fad9cff2 13858 (version "0.4.7")
dddbc90c
RV
13859 (source
13860 (origin
13861 (method url-fetch)
13862 (uri (string-append
13863 "https://hackage.haskell.org/package/unix-time/unix-time-"
13864 version
13865 ".tar.gz"))
13866 (sha256
13867 (base32
fad9cff2 13868 "02fyh298lm8jsg52i3z0ikazwz477ljqjmhnqr2d88grmn5ky8qr"))))
dddbc90c
RV
13869 (build-system haskell-build-system)
13870 (arguments
13871 `(#:tests? #f)) ; FIXME: Test fails with "System.Time not found". This
13872 ; is weird, that should be provided by GHC 7.10.2.
13873 (inputs
13874 `(("ghc-old-time" ,ghc-old-time)
13875 ("ghc-old-locale" ,ghc-old-locale)))
13876 (home-page "https://hackage.haskell.org/package/unix-time")
13877 (synopsis "Unix time parser/formatter and utilities")
13878 (description "This library provides fast parsing and formatting utilities
13879for Unix time in Haskell.")
13880 (license license:bsd-3)))
13881
13882(define-public ghc-unliftio
13883 (package
13884 (name "ghc-unliftio")
a4084db1 13885 (version "0.2.12")
dddbc90c
RV
13886 (source
13887 (origin
13888 (method url-fetch)
13889 (uri (string-append
13890 "https://hackage.haskell.org/package/unliftio/unliftio-"
13891 version
13892 ".tar.gz"))
13893 (sha256
13894 (base32
a4084db1 13895 "02gy1zrxgzg4xmzm8lafsf1nyr3as1q20r8ld73xg3q7rkag9acg"))))
dddbc90c
RV
13896 (build-system haskell-build-system)
13897 (arguments `(#:tests? #f)) ; FIXME: hspec-discover not in PATH
2b3466de 13898 (outputs '("out" "static" "doc"))
dddbc90c
RV
13899 (inputs
13900 `(("ghc-async" ,ghc-async)
13901 ("ghc-unliftio-core" ,ghc-unliftio-core)))
13902 (native-inputs `(("ghc-hspec" ,ghc-hspec)))
13903 (home-page "https://github.com/fpco/unliftio")
13904 (synopsis "Provides MonadUnliftIO typecplass for unlifting monads to
13905IO (batteries included)")
13906 (description "This Haskell package provides the core @code{MonadUnliftIO}
13907typeclass, a number of common instances, and a collection of common functions
13908working with it.")
13909 (license license:expat)))
13910
13911(define-public ghc-unliftio-core
13912 (package
13913 (name "ghc-unliftio-core")
2ae42618 13914 (version "0.1.2.0")
dddbc90c
RV
13915 (source
13916 (origin
13917 (method url-fetch)
13918 (uri (string-append "https://hackage.haskell.org/package/"
13919 "unliftio-core-" version "/"
13920 "unliftio-core-" version ".tar.gz"))
13921 (sha256
13922 (base32
2ae42618 13923 "0y3siyx3drkw7igs380a87h8qfbbgcyxxlcnshp698hcc4yqphr4"))))
dddbc90c
RV
13924 (build-system haskell-build-system)
13925 (arguments
13926 `(#:cabal-revision
2ae42618 13927 ("2" "0jqrjjbgicx48wzcjxs1xmih48ay79rhmrz6081dldlfxynli6vz")))
dddbc90c
RV
13928 (home-page
13929 "https://github.com/fpco/unliftio/tree/master/unliftio-core#readme")
13930 (synopsis "The MonadUnliftIO typeclass for unlifting monads to IO")
13931 (description "This Haskell package provides the core @code{MonadUnliftIO}
13932typeclass, instances for base and transformers, and basic utility
13933functions.")
13934 (license license:expat)))
13935
13936(define-public ghc-unordered-containers
13937 (package
13938 (name "ghc-unordered-containers")
ca01f8d3 13939 (version "0.2.10.0")
534d6caa 13940 (outputs '("out" "static" "doc"))
dddbc90c
RV
13941 (source
13942 (origin
13943 (method url-fetch)
13944 (uri (string-append
13945 "https://hackage.haskell.org/package/unordered-containers"
13946 "/unordered-containers-" version ".tar.gz"))
13947 (sha256
13948 (base32
ca01f8d3 13949 "0wy5hfrs880hh8hvp648bl07ws777n3kkmczzdszr7papnyigwb5"))))
dddbc90c
RV
13950 (build-system haskell-build-system)
13951 (inputs
13952 `(("ghc-chasingbottoms" ,ghc-chasingbottoms)
13953 ("ghc-hunit" ,ghc-hunit)
13954 ("ghc-quickcheck" ,ghc-quickcheck)
13955 ("ghc-test-framework" ,ghc-test-framework)
13956 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
13957 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
13958 ("ghc-hashable" ,ghc-hashable)))
13959 (home-page
13960 "https://github.com/tibbe/unordered-containers")
13961 (synopsis
13962 "Efficient hashing-based container types")
13963 (description
13964 "Efficient hashing-based container types. The containers have been
13965optimized for performance critical use, both in terms of large data quantities
13966and high speed.")
13967 (license license:bsd-3)))
13968
13969(define-public ghc-unordered-containers-bootstrap
13970 (package
13971 (inherit ghc-unordered-containers)
13972 (name "ghc-unordered-containers-bootstrap")
13973 (arguments `(#:tests? #f))
13974 (inputs
13975 `(("ghc-hashable" ,ghc-hashable-bootstrap)))
799d8d3c 13976 (properties '((hidden? #t)))))
dddbc90c 13977
a52f4c57
JS
13978(define-public ghc-unsafe
13979 (package
13980 (name "ghc-unsafe")
13981 (version "0.0")
13982 (source
13983 (origin
13984 (method url-fetch)
13985 (uri
13986 (string-append
13987 "https://hackage.haskell.org/package/unsafe/unsafe-"
13988 version ".tar.gz"))
13989 (sha256
13990 (base32
13991 "0hc6xr1i3hkz25gdgfx1jqgpsc9mwa05bkfynp0mcfdlyz6782nz"))))
13992 (build-system haskell-build-system)
13993 (home-page "https://hackage.haskell.org/package/unsafe")
13994 (synopsis "Unified interface to unsafe functions")
13995 (description "Safe Haskell introduced the notion of safe and unsafe
13996modules. In order to make as many as possible modules ``safe'', the
13997well-known unsafe functions were moved to distinguished modules. This
13998makes it hard to write packages that work with both old and new versions
13999of GHC. This package provides a single module System.Unsafe that
14000exports the unsafe functions from the base package. It provides them in
14001a style ready for qualification, that is, you should import them by
14002@code{import qualified System.Unsafe as Unsafe}.")
14003 (license license:bsd-3)))
14004
dddbc90c
RV
14005(define-public ghc-uri-bytestring
14006 (package
14007 (name "ghc-uri-bytestring")
d35ffd39 14008 (version "0.3.2.2")
dddbc90c
RV
14009 (source
14010 (origin
14011 (method url-fetch)
14012 (uri (string-append "https://hackage.haskell.org/package/"
14013 "uri-bytestring-" version "/"
14014 "uri-bytestring-" version ".tar.gz"))
14015 (sha256
14016 (base32
d35ffd39 14017 "0spzv3mwlpxiamd7347sxwcy2xri16ak1y7p1v4fisnvq4jprm67"))))
dddbc90c
RV
14018 (build-system haskell-build-system)
14019 (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
dddbc90c
RV
14020 ("ghc-blaze-builder" ,ghc-blaze-builder)
14021 ("ghc-th-lift-instances" ,ghc-th-lift-instances)))
d35ffd39 14022 (native-inputs `(("ghc-hunit" ,ghc-hunit)
dddbc90c
RV
14023 ("ghc-tasty" ,ghc-tasty)
14024 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
d35ffd39
TS
14025 ("ghc-hedgehog" ,ghc-hedgehog)
14026 ("ghc-tasty-hedgehog" ,ghc-tasty-hedgehog)
dddbc90c 14027 ("ghc-base-compat" ,ghc-base-compat)
dddbc90c 14028 ("ghc-semigroups" ,ghc-semigroups)
d35ffd39 14029 ("ghc-safe" ,ghc-safe)))
dddbc90c
RV
14030 (home-page "https://github.com/Soostone/uri-bytestring")
14031 (synopsis "Haskell URI parsing as ByteStrings")
14032 (description "This Haskell package aims to be an RFC3986 compliant URI
14033parser that uses ByteStrings for parsing and representing the URI data.")
14034 (license license:bsd-3)))
14035
d7ad0823
JS
14036(define-public ghc-utf8-light
14037 (package
14038 (name "ghc-utf8-light")
14039 (version "0.4.2")
14040 (source
14041 (origin
14042 (method url-fetch)
14043 (uri (string-append
14044 "mirror://hackage/package/utf8-light/utf8-light-"
14045 version
14046 ".tar.gz"))
14047 (sha256
14048 (base32
14049 "0rwyc5z331yfnm4hpx0sph6i1zvkd1z10vvglhnp0vc9wy644k0q"))))
14050 (build-system haskell-build-system)
14051 (home-page
14052 "http://hackage.haskell.org/package/utf8-light")
14053 (synopsis "Lightweight unicode support for Haskell")
14054 (description
14055 "This package profides a class for encoding and decoding UTF8 strings
14056with instances for several common types. It also includes several functions
14057for working with UTF8. It aims to be lightweight, depending only on Base and
14058including only one module.")
14059 (license license:bsd-3)))
14060
dddbc90c
RV
14061(define-public ghc-utf8-string
14062 (package
14063 (name "ghc-utf8-string")
14064 (version "1.0.1.1")
14065 (source
14066 (origin
14067 (method url-fetch)
14068 (uri (string-append
14069 "https://hackage.haskell.org/package/utf8-string/utf8-string-"
14070 version
14071 ".tar.gz"))
14072 (sha256
14073 (base32 "0h7imvxkahiy8pzr8cpsimifdfvv18lizrb33k6mnq70rcx9w2zv"))))
14074 (build-system haskell-build-system)
14075 (arguments
14076 `(#:cabal-revision
14077 ("3" "02vhj5gykkqa2dyn7s6gn8is1b5fdn9xcqqvlls268g7cpv6rk38")))
14078 (home-page "https://github.com/glguy/utf8-string/")
14079 (synopsis "Support for reading and writing UTF8 Strings")
14080 (description
14081 "A UTF8 layer for Strings. The utf8-string package provides operations
14082for encoding UTF8 strings to Word8 lists and back, and for reading and writing
14083UTF8 without truncation.")
14084 (license license:bsd-3)))
14085
14086(define-public ghc-utility-ht
14087 (package
14088 (name "ghc-utility-ht")
14089 (version "0.0.14")
14090 (home-page "https://hackage.haskell.org/package/utility-ht")
14091 (source
14092 (origin
14093 (method url-fetch)
14094 (uri (string-append home-page "/utility-ht-" version ".tar.gz"))
14095 (sha256
14096 (base32 "1a7bgk7wv7sqbxbiv7kankiimr3wij7zdm7s83zwsf886ghyxhk9"))))
14097 (build-system haskell-build-system)
14098 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
14099 (synopsis "Haskell helper functions for Lists, Maybes, Tuples, Functions")
14100 (description "This package includes Hakell modules providing various
14101helper functions for Lists, Maybes, Tuples, Functions.")
14102 (license license:bsd-3)))
14103
14104(define-public ghc-uuid
14105 (package
14106 (name "ghc-uuid")
14107 (version "1.3.13")
14108 (source
14109 (origin
14110 (method url-fetch)
14111 (uri (string-append "https://hackage.haskell.org/package/"
14112 "uuid-" version "/"
14113 "uuid-" version ".tar.gz"))
14114 (sha256
14115 (base32
14116 "09xhk42yhxvqmka0iqrv3338asncz8cap3j0ic0ps896f2581b6z"))))
14117 (build-system haskell-build-system)
14118 (arguments
14119 `(#:cabal-revision
14120 ("2" "0m185q62jkfb5jsv358nxbnrkv8y8hd0qqvgvh22wvc5g9ipz0r9")
14121 #:phases
14122 (modify-phases %standard-phases
14123 (add-before 'configure 'strip-test-framework-constraints
14124 (lambda _
14125 (substitute* "uuid.cabal"
14126 (("HUnit >= 1\\.2 && < 1\\.4") "HUnit")
14127 (("QuickCheck >= 2\\.4 && < 2\\.10") "QuickCheck")
14128 (("tasty >= 0\\.10 && < 0\\.12") "tasty")
14129 (("tasty-hunit == 0\\.9\\.\\*") "tasty-hunit")
14130 (("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
14131 (inputs `(("ghc-cryptohash-sha1" ,ghc-cryptohash-sha1)
14132 ("ghc-cryptohash-md5" ,ghc-cryptohash-md5)
14133 ("ghc-entropy" ,ghc-entropy)
14134 ("ghc-network-info" ,ghc-network-info)
14135 ("ghc-random" ,ghc-random)
14136 ("ghc-uuid-types" ,ghc-uuid-types)))
14137 (native-inputs `(("ghc-hunit" ,ghc-hunit)
14138 ("ghc-quickcheck" ,ghc-quickcheck)
14139 ("ghc-tasty" ,ghc-tasty)
14140 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
14141 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
14142 (home-page "https://github.com/hvr/uuid")
14143 (synopsis "Haskell library to create, compare, parse, and print UUIDs")
14144 (description "This Haskell library provides utilities creating, comparing,
14145parsing and printing @dfn{Universally Unique Identifiers} or UUIDs.")
14146 (license license:bsd-3)))
14147
14148(define-public ghc-uuid-types
14149 (package
14150 (name "ghc-uuid-types")
14151 (version "1.0.3")
14152 (source
14153 (origin
14154 (method url-fetch)
14155 (uri (string-append "https://hackage.haskell.org/package/"
14156 "uuid-types-" version "/"
14157 "uuid-types-" version ".tar.gz"))
14158 (sha256
14159 (base32
14160 "1zdka5jnm1h6k36w3nr647yf3b5lqb336g3fkprhd6san9x52xlj"))))
14161 (build-system haskell-build-system)
14162 (arguments
14163 `(#:phases
14164 (modify-phases %standard-phases
14165 (add-before 'configure 'strip-test-framework-constraints
14166 (lambda _
14167 (substitute* "uuid-types.cabal"
14168 (("HUnit >=1\\.2 && < 1\\.4") "HUnit")
14169 (("QuickCheck >=2\\.4 && < 2\\.9") "QuickCheck")
14170 (("tasty >= 0\\.10 && < 0\\.12") "tasty")
14171 (("tasty-hunit == 0\\.9\\.\\*") "tasty-hunit")
14172 (("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
14173 (inputs `(("ghc-hashable" ,ghc-hashable)
14174 ("ghc-random" ,ghc-random)))
14175 (native-inputs `(("ghc-hunit" ,ghc-hunit)
14176 ("ghc-quickcheck" ,ghc-quickcheck)
14177 ("ghc-tasty" ,ghc-tasty)
14178 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
14179 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
14180 (home-page "https://github.com/hvr/uuid")
14181 (synopsis "Haskell type definitions for UUIDs")
14182 (description "This Haskell library contains type definitions for
14183@dfn{Universally Unique Identifiers} or
14184@uref{https://en.wikipedia.org/wiki/UUID, UUIDs}, and basic conversion
14185functions.")
14186 (license license:bsd-3)))
14187
14188(define-public ghc-validation
14189 (package
14190 (name "ghc-validation")
08397fde 14191 (version "1.1")
dddbc90c
RV
14192 (source
14193 (origin
14194 (method url-fetch)
14195 (uri (string-append
14196 "mirror://hackage/package/validation/validation-"
14197 version
14198 ".tar.gz"))
14199 (sha256
14200 (base32
08397fde 14201 "1acj7mh3581ks405xswxw6667z7y1y0slisg6jvp6chc191ji9l5"))))
dddbc90c
RV
14202 (build-system haskell-build-system)
14203 (arguments
14204 `(#:cabal-revision
08397fde 14205 ("1" "1rrjg9z399k6pb55nv85mlr5bkmdqbjwkvl1cy7ydccdx6ks4syp")))
dddbc90c
RV
14206 (inputs
14207 `(("ghc-semigroups" ,ghc-semigroups)
14208 ("ghc-semigroupoids" ,ghc-semigroupoids)
14209 ("ghc-bifunctors" ,ghc-bifunctors)
14210 ("ghc-lens" ,ghc-lens)))
14211 (native-inputs
14212 `(("ghc-hedgehog" ,ghc-hedgehog)
14213 ("ghc-hunit" ,ghc-hunit)))
14214 (home-page "https://github.com/qfpl/validation")
14215 (synopsis
14216 "Data-type like Either but with an accumulating Applicative")
14217 (description
14218 "A data-type like Either but with differing properties and type-class
14219instances.
14220
14221Library support is provided for this different representation, including
14222@code{lens}-related functions for converting between each and abstracting over
14223their similarities.
14224
14225The @code{Validation} data type is isomorphic to @code{Either}, but has an
14226instance of @code{Applicative} that accumulates on the error side. That is to
14227say, if two (or more) errors are encountered, they are appended using a
14228@{Semigroup} operation.
14229
14230As a consequence of this @code{Applicative} instance, there is no
14231corresponding @code{Bind} or @code{Monad} instance. @code{Validation} is an
14232example of, \"An applicative functor that is not a monad.\"")
14233 (license license:bsd-3)))
14234
14235(define-public ghc-validity
14236 (package
14237 (name "ghc-validity")
3f1ba75d 14238 (version "0.9.0.2")
dddbc90c
RV
14239 (source
14240 (origin
14241 (method url-fetch)
14242 (uri (string-append
14243 "https://hackage.haskell.org/package/validity/validity-"
14244 version
14245 ".tar.gz"))
14246 (sha256
14247 (base32
3f1ba75d 14248 "1aa93lp1pqwv7vhx19nazlig8qhbp3psblbz360s5lii3s5rli2v"))))
dddbc90c
RV
14249 (build-system haskell-build-system)
14250 (native-inputs `(("ghc-hspec" ,ghc-hspec)
14251 ("hspec-discover" ,hspec-discover)))
14252 (home-page
14253 "https://github.com/NorfairKing/validity")
14254 (synopsis "Validity typeclass")
14255 (description
14256 "Values of custom types usually have invariants imposed upon them. This
14257package provides the @code{Validity} type class, which makes these invariants
14258explicit by providing a function to check whether the invariants hold.")
14259 (license license:expat)))
14260
14261(define-public ghc-vault
14262 (package
14263 (name "ghc-vault")
b40a436e 14264 (version "0.3.1.3")
dddbc90c
RV
14265 (source
14266 (origin
14267 (method url-fetch)
14268 (uri (string-append
14269 "https://hackage.haskell.org/package/vault/vault-"
14270 version
14271 ".tar.gz"))
14272 (sha256
14273 (base32
b40a436e 14274 "0vdm472vn734xa27jjm2mjacl37mxiqaaahvm4hzqjgyh4cqq377"))))
dddbc90c
RV
14275 (build-system haskell-build-system)
14276 (inputs
14277 `(("ghc-unordered-containers" ,ghc-unordered-containers)
14278 ("ghc-hashable" ,ghc-hashable)
b40a436e 14279 ("ghc-semigroups" ,ghc-semigroups)))
dddbc90c
RV
14280 (home-page
14281 "https://github.com/HeinrichApfelmus/vault")
14282 (synopsis "Persistent store for arbitrary values")
14283 (description "This package provides vaults for Haskell. A vault is a
14284persistent store for values of arbitrary types. It's like having first-class
14285access to the storage space behind @code{IORefs}. The data structure is
14286analogous to a bank vault, where you can access different bank boxes with
14287different keys; hence the name. Also provided is a @code{locker} type,
14288representing a store for a single element.")
14289 (license license:bsd-3)))
14290
14291(define-public ghc-vector
14292 (package
14293 (name "ghc-vector")
3ad67f6b 14294 (version "0.12.0.3")
534d6caa 14295 (outputs '("out" "static" "doc"))
dddbc90c
RV
14296 (source
14297 (origin
14298 (method url-fetch)
14299 (uri (string-append
14300 "https://hackage.haskell.org/package/vector/vector-"
14301 version
14302 ".tar.gz"))
14303 (sha256
14304 (base32
3ad67f6b 14305 "1a756s4w759ji3als5alfxwlckh5zcmykfg9rll4mlr2knzvz8mq"))))
dddbc90c
RV
14306 (build-system haskell-build-system)
14307 ;; FIXME: To simplify upgrading all Haskell packages, we leave the tests
14308 ;; disabled for now.
14309 (arguments
3ad67f6b 14310 `(#:tests? #f))
dddbc90c
RV
14311 (inputs
14312 `(("ghc-primitive" ,ghc-primitive)
14313 ("ghc-random" ,ghc-random)
14314 ("ghc-quickcheck" ,ghc-quickcheck)
14315 ;; ("ghc-hunit" ,ghc-hunit)
14316 ;; ("ghc-test-framework" ,ghc-test-framework)
14317 ;; ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
14318 ;; ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14319 ))
14320 (home-page "https://github.com/haskell/vector")
14321 (synopsis "Efficient Arrays")
14322 (description "This library provides an efficient implementation of
14323Int-indexed arrays (both mutable and immutable), with a powerful loop
14324optimisation framework.")
14325 (license license:bsd-3)))
14326
14327(define-public ghc-vector-algorithms
14328 (package
14329 (name "ghc-vector-algorithms")
e71f316f 14330 (version "0.8.0.1")
dddbc90c
RV
14331 (source
14332 (origin
14333 (method url-fetch)
14334 (uri (string-append "https://hackage.haskell.org/package/"
14335 "vector-algorithms-" version "/"
14336 "vector-algorithms-" version ".tar.gz"))
14337 (sha256
14338 (base32
e71f316f 14339 "1zip8r7hh5g12xrjvhbg38z6hfxy7l6h6pl88qcqc0ygdmwdxg0m"))))
dddbc90c
RV
14340 (build-system haskell-build-system)
14341 (inputs
14342 `(("ghc-vector" ,ghc-vector)))
14343 (native-inputs
14344 `(("ghc-quickcheck" ,ghc-quickcheck)))
14345 (home-page "https://github.com/bos/math-functions")
14346 (synopsis "Algorithms for vector arrays in Haskell")
14347 (description "This Haskell library algorithms for vector arrays.")
14348 (license license:bsd-3)))
14349
14350(define-public ghc-vector-binary-instances
14351 (package
14352 (name "ghc-vector-binary-instances")
ca0701ef 14353 (version "0.2.5.1")
dddbc90c
RV
14354 (source
14355 (origin
14356 (method url-fetch)
14357 (uri (string-append
14358 "https://hackage.haskell.org/package/"
14359 "vector-binary-instances/vector-binary-instances-"
14360 version ".tar.gz"))
14361 (sha256
14362 (base32
ca0701ef 14363 "04n5cqm1v95pw1bp68l9drjkxqiy2vswxdq0fy1rqcgxisgvji9r"))))
dddbc90c 14364 (build-system haskell-build-system)
dddbc90c
RV
14365 (inputs
14366 `(("ghc-vector" ,ghc-vector)))
14367 (native-inputs
14368 `(("ghc-tasty" ,ghc-tasty)
14369 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
14370 (home-page "https://github.com/bos/vector-binary-instances")
14371 (synopsis "Instances of Data.Binary and Data.Serialize for vector")
14372 (description "This library provides instances of @code{Binary} for the
14373types defined in the @code{vector} package, making it easy to serialize
14374vectors to and from disk. We use the generic interface to vectors, so all
14375vector types are supported. Specific instances are provided for unboxed,
14376boxed and storable vectors.")
14377 (license license:bsd-3)))
14378
14379(define-public ghc-vector-builder
14380 (package
14381 (name "ghc-vector-builder")
1fc05441 14382 (version "0.3.8")
dddbc90c
RV
14383 (source
14384 (origin
14385 (method url-fetch)
14386 (uri (string-append "https://hackage.haskell.org/package/"
14387 "vector-builder-" version "/"
14388 "vector-builder-" version ".tar.gz"))
14389 (sha256
14390 (base32
1fc05441 14391 "0ww0l52p8s6gmh985adnjbvm1vrqpqbm08qdcrvxwhhcqmxgv6m3"))))
dddbc90c
RV
14392 (build-system haskell-build-system)
14393 (inputs `(("ghc-vector" ,ghc-vector)
14394 ("ghc-semigroups" ,ghc-semigroups)
14395 ("ghc-base-prelude" ,ghc-base-prelude)))
14396 (native-inputs `(("ghc-attoparsec" ,ghc-attoparsec)
14397 ("ghc-tasty" ,ghc-tasty)
14398 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
14399 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
14400 ("ghc-hunit" ,ghc-hunit)
14401 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
14402 ("ghc-rerebase" ,ghc-rerebase)))
14403 (home-page "https://github.com/nikita-volkov/vector-builder")
14404 (synopsis "Vector builder for Haskell")
14405 (description "This Haskell package provides an API for constructing vectors.
14406It provides the composable @code{Builder} abstraction, which has instances of the
14407@code{Monoid} and @code{Semigroup} classes.
14408
14409You would first use the @code{Builder} abstraction to specify the structure of
14410the vector; then you can execute the builder to actually produce the
14411vector. ")
14412 (license license:expat)))
14413
14414(define-public ghc-vector-th-unbox
14415 (package
14416 (name "ghc-vector-th-unbox")
63056e61 14417 (version "0.2.1.7")
dddbc90c
RV
14418 (source
14419 (origin
14420 (method url-fetch)
14421 (uri (string-append "https://hackage.haskell.org/package/"
14422 "vector-th-unbox-" version "/"
14423 "vector-th-unbox-" version ".tar.gz"))
14424 (sha256
14425 (base32
63056e61 14426 "0q8dqnbv1c2gi7jjdhqj14abj1vik23ki6lq4iz2sz18yc7q69fi"))))
dddbc90c
RV
14427 (build-system haskell-build-system)
14428 (inputs
14429 `(("ghc-vector" ,ghc-vector)
14430 ("ghc-data-default" ,ghc-data-default)))
14431 (home-page "https://github.com/liyang/vector-th-unbox")
14432 (synopsis "Deriver for Data.Vector.Unboxed using Template Haskell")
14433 (description "This Haskell library provides a Template Haskell
14434deriver for unboxed vectors, given a pair of coercion functions to
14435and from some existing type with an Unbox instance.")
14436 (license license:bsd-3)))
14437
14438(define-public ghc-void
14439 (package
14440 (name "ghc-void")
51889121 14441 (version "0.7.3")
dddbc90c
RV
14442 (source
14443 (origin
14444 (method url-fetch)
14445 (uri (string-append
14446 "https://hackage.haskell.org/package/void/void-"
14447 version
14448 ".tar.gz"))
14449 (sha256
14450 (base32
51889121 14451 "05vk3x1r9a2pqnzfji475m5gdih2im1h7rbi2sc67p1pvj6pbbsk"))))
dddbc90c
RV
14452 (build-system haskell-build-system)
14453 (inputs
14454 `(("ghc-semigroups" ,ghc-semigroups)
14455 ("ghc-hashable" ,ghc-hashable)))
14456 (home-page "https://github.com/ekmett/void")
14457 (synopsis
14458 "Logically uninhabited data type")
14459 (description
14460 "A Haskell 98 logically uninhabited data type, used to indicate that a
14461given term should not exist.")
14462 (license license:bsd-3)))
14463
14464(define-public ghc-wave
14465 (package
14466 (name "ghc-wave")
1631a0f7 14467 (version "0.2.0")
dddbc90c
RV
14468 (source (origin
14469 (method url-fetch)
14470 (uri (string-append
14471 "https://hackage.haskell.org/package/wave/wave-"
14472 version
14473 ".tar.gz"))
14474 (sha256
14475 (base32
1631a0f7 14476 "149kgwngq3qxc7gxpkqb16j669j0wpv2f3gnvfwp58yg6m4259ki"))))
dddbc90c
RV
14477 (build-system haskell-build-system)
14478 (arguments
14479 '(#:phases
14480 (modify-phases %standard-phases
14481 (add-before 'configure 'update-constraints
14482 (lambda _
14483 (substitute* "wave.cabal"
14484 (("temporary.* < 1\\.3")
14485 "temporary >= 1.1 && < 1.4")))))))
14486 (inputs
14487 `(("ghc-cereal" ,ghc-cereal)
14488 ("ghc-data-default-class"
14489 ,ghc-data-default-class)
14490 ("ghc-quickcheck" ,ghc-quickcheck)
14491 ("ghc-temporary" ,ghc-temporary)))
14492 (native-inputs
14493 `(("hspec-discover" ,hspec-discover)
14494 ("ghc-hspec" ,ghc-hspec)))
14495 (home-page "https://github.com/mrkkrp/wave")
14496 (synopsis "Work with WAVE and RF64 files in Haskell")
14497 (description "This package allows you to work with WAVE and RF64
14498files in Haskell.")
14499 (license license:bsd-3)))
14500
14501(define-public ghc-wcwidth
14502 (package
14503 (name "ghc-wcwidth")
14504 (version "0.0.2")
14505 (source
14506 (origin
14507 (method url-fetch)
14508 (uri (string-append "https://hackage.haskell.org/package/wcwidth/wcwidth-"
14509 version ".tar.gz"))
14510 (sha256
14511 (base32
14512 "1n1fq7v64b59ajf5g50iqj9sa34wm7s2j3viay0kxpmvlcv8gipz"))))
14513 (build-system haskell-build-system)
14514 (inputs
14515 `(("ghc-setlocale" ,ghc-setlocale)
14516 ("ghc-utf8-string" ,ghc-utf8-string)
14517 ("ghc-attoparsec" ,ghc-attoparsec)))
14518 (home-page "https://github.com/solidsnack/wcwidth/")
14519 (synopsis "Haskell bindings to wcwidth")
14520 (description "This package provides Haskell bindings to your system's
14521native wcwidth and a command line tool to examine the widths assigned by it.
14522The command line tool can compile a width table to Haskell code that assigns
14523widths to the Char type.")
14524 (license license:bsd-3)))
14525
14526(define-public ghc-wcwidth-bootstrap
14527 (package
14528 (inherit ghc-wcwidth)
14529 (name "ghc-wcwidth-bootstrap")
14530 (inputs
14531 `(("ghc-setlocale" ,ghc-setlocale)
14532 ("ghc-utf8-string" ,ghc-utf8-string)
14533 ("ghc-attoparsec" ,ghc-attoparsec-bootstrap)))
799d8d3c 14534 (properties '((hidden? #t)))))
dddbc90c
RV
14535
14536(define-public ghc-weigh
14537 (package
14538 (name "ghc-weigh")
b6d9777f 14539 (version "0.0.14")
dddbc90c
RV
14540 (source
14541 (origin
14542 (method url-fetch)
14543 (uri (string-append "https://hackage.haskell.org/package/weigh/"
14544 "weigh-" version ".tar.gz"))
14545 (sha256
14546 (base32
b6d9777f 14547 "0l85marb5rl9nr1c0id42dnr5i9fk1jciy5h6lywhb34w3hbj61g"))))
dddbc90c
RV
14548 (build-system haskell-build-system)
14549 (inputs
14550 `(("ghc-split" ,ghc-split)
14551 ("ghc-temporary" ,ghc-temporary)))
14552 (home-page "https://github.com/fpco/weigh#readme")
14553 (synopsis "Measure allocations of a Haskell functions/values")
14554 (description "This package provides tools to measure the memory usage of a
14555Haskell value or function.")
14556 (license license:bsd-3)))
14557
14558(define-public ghc-wl-pprint
14559 (package
14560 (name "ghc-wl-pprint")
14561 (version "1.2.1")
14562 (source (origin
14563 (method url-fetch)
14564 (uri (string-append
14565 "https://hackage.haskell.org/package/wl-pprint/wl-pprint-"
14566 version ".tar.gz"))
14567 (sha256
14568 (base32
14569 "0kn7y8pdrv8f87zhd5mifcl8fy3b2zvnzmzwhdqhxxlyzwiq6z0c"))))
14570 (build-system haskell-build-system)
14571 (home-page "https://hackage.haskell.org/package/wl-pprint")
14572 (synopsis "Wadler/Leijen pretty printer")
14573 (description
14574 "This is a pretty printing library based on Wadler's paper @i{A Prettier
14575Printer}. This version allows the library user to declare overlapping
14576instances of the @code{Pretty} class.")
14577 (license license:bsd-3)))
14578
14579(define-public ghc-wl-pprint-annotated
14580 (package
14581 (name "ghc-wl-pprint-annotated")
14582 (version "0.1.0.1")
14583 (source
14584 (origin
14585 (method url-fetch)
14586 (uri (string-append
14587 "mirror://hackage/package/wl-pprint-annotated/wl-pprint-annotated-"
14588 version
14589 ".tar.gz"))
14590 (sha256
14591 (base32
14592 "1br7qyf27iza213inwhf9bm2k6in0zbmfw6w4clqlc9f9cj2nrkb"))))
14593 (build-system haskell-build-system)
14594 (native-inputs
14595 `(("ghc-tasty" ,ghc-tasty)
14596 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
14597 (home-page
14598 "https://github.com/minad/wl-pprint-annotated#readme")
14599 (synopsis
14600 "Wadler/Leijen pretty printer with annotation support")
14601 (description
14602 "Annotations are useful for coloring. This is a limited version of
14603@code{wl-pprint-extras} without support for point effects and without the free
14604monad. Like in @code{annotated-wl-pprint}, only annotations are supported.
14605Compared to @code{annotated-wl-pprint} this library provides a slightly
14606modernized interface.")
14607 (license license:bsd-3)))
14608
14609(define-public ghc-wl-pprint-text
14610 (package
14611 (name "ghc-wl-pprint-text")
14612 (version "1.2.0.0")
14613 (source
14614 (origin
14615 (method url-fetch)
14616 (uri (string-append
14617 "https://hackage.haskell.org/package/wl-pprint-text/wl-pprint-text-"
14618 version ".tar.gz"))
14619 (sha256
14620 (base32
14621 "0g3w92rad6x5appfb22rbzcas2ix2h0hy91sdxhq8a4a5cnlrpa0"))))
14622 (build-system haskell-build-system)
14623 (inputs
14624 `(("ghc-base-compat" ,ghc-base-compat)))
14625 (home-page "https://hackage.haskell.org/package/wl-pprint-text")
14626 (synopsis "Wadler/Leijen Pretty Printer for Text values")
14627 (description
14628 "A clone of wl-pprint for use with the text library.")
14629 (license license:bsd-3)))
14630
14631(define-public ghc-word8
14632 (package
14633 (name "ghc-word8")
14634 (version "0.1.3")
14635 (source
14636 (origin
14637 (method url-fetch)
14638 (uri (string-append
14639 "https://hackage.haskell.org/package/word8/word8-"
14640 version
14641 ".tar.gz"))
14642 (sha256
14643 (base32
14644 "12jx7f13d2h1djq4fh4dyrab61sm49mj1w61j3rzp2vjfm696c16"))))
14645 (build-system haskell-build-system)
14646 (native-inputs
14647 `(("ghc-hspec" ,ghc-hspec)
14648 ("hspec-discover" ,hspec-discover)))
14649 (home-page "https://hackage.haskell.org/package/word8")
14650 (synopsis "Word8 library for Haskell")
14651 (description "Word8 library to be used with @code{Data.ByteString}.")
14652 (license license:bsd-3)))
14653
14654(define-public ghc-x11
14655 (package
14656 (name "ghc-x11")
6c4581a3 14657 (version "1.9.1")
dddbc90c
RV
14658 (source
14659 (origin
14660 (method url-fetch)
14661 (uri (string-append "https://hackage.haskell.org/package/X11/"
14662 "X11-" version ".tar.gz"))
14663 (sha256
6c4581a3 14664 (base32 "0gg6852mrlgl8zng1j84fismz7k81jr5fk92glgkscf8q6ryg0bm"))))
dddbc90c 14665 (build-system haskell-build-system)
54a5fd07
TS
14666 (arguments
14667 `(#:extra-directories
14668 ("libx11" "libxrandr" "libxinerama" "libxscrnsaver")))
dddbc90c
RV
14669 (inputs
14670 `(("libx11" ,libx11)
14671 ("libxrandr" ,libxrandr)
14672 ("libxinerama" ,libxinerama)
14673 ("libxscrnsaver" ,libxscrnsaver)
14674 ("ghc-data-default" ,ghc-data-default)))
14675 (home-page "https://github.com/haskell-pkg-janitors/X11")
14676 (synopsis "Bindings to the X11 graphics library")
14677 (description
14678 "This package provides Haskell bindings to the X11 graphics library. The
14679bindings are a direct translation of the C bindings.")
14680 (license license:bsd-3)))
14681
14682(define-public ghc-x11-xft
14683 (package
14684 (name "ghc-x11-xft")
14685 (version "0.3.1")
14686 (source
14687 (origin
14688 (method url-fetch)
14689 (uri (string-append "https://hackage.haskell.org/package/X11-xft/"
14690 "X11-xft-" version ".tar.gz"))
14691 (sha256
14692 (base32 "1lgqb0s2qfwwgbvwxhjbi23rbwamzdi0l0slfr20c3jpcbp3zfjf"))))
54a5fd07
TS
14693 (arguments
14694 `(#:extra-directories ("libx11" "libxft" "xorgproto")))
dddbc90c
RV
14695 (inputs
14696 `(("ghc-x11" ,ghc-x11)
14697 ("ghc-utf8-string" ,ghc-utf8-string)
14698 ("libx11" ,libx11)
14699 ("libxft" ,libxft)
14700 ("xorgproto" ,xorgproto)))
14701 (native-inputs
14702 `(("pkg-config" ,pkg-config)))
14703 (build-system haskell-build-system)
14704 (home-page "https://hackage.haskell.org/package/X11-xft")
14705 (synopsis "Bindings to Xft")
14706 (description
14707 "Bindings to the Xft, X Free Type interface library, and some Xrender
14708parts.")
14709 (license license:lgpl2.1)))
14710
14711(define-public ghc-xdg-basedir
14712 (package
14713 (name "ghc-xdg-basedir")
14714 (version "0.2.2")
14715 (source
14716 (origin
14717 (method url-fetch)
14718 (uri (string-append
14719 "https://hackage.haskell.org/package/xdg-basedir/"
14720 "xdg-basedir-" version ".tar.gz"))
14721 (sha256
14722 (base32
14723 "0azlzaxp2dn4l1nr7shsxah2magk1szf6fx0mv75az00qsjw6qg4"))))
14724 (build-system haskell-build-system)
702a1012 14725 (home-page "https://github.com/willdonnelly/xdg-basedir")
dddbc90c
RV
14726 (synopsis "XDG Base Directory library for Haskell")
14727 (description "This package provides a library implementing the XDG Base Directory spec.")
14728 (license license:bsd-3)))
14729
14730(define-public ghc-xml
14731 (package
14732 (name "ghc-xml")
14733 (version "1.3.14")
14734 (source
14735 (origin
14736 (method url-fetch)
14737 (uri (string-append
14738 "https://hackage.haskell.org/package/xml/xml-"
14739 version
14740 ".tar.gz"))
14741 (sha256
14742 (base32
14743 "0g814lj7vaxvib2g3r734221k80k7ap9czv9hinifn8syals3l9j"))))
14744 (build-system haskell-build-system)
2b62f5d0 14745 (home-page "https://github.com/GaloisInc/xml")
dddbc90c
RV
14746 (synopsis "Simple XML library for Haskell")
14747 (description "This package provides a simple XML library for Haskell.")
14748 (license license:bsd-3)))
14749
14750(define-public ghc-xml-conduit
14751 (package
14752 (name "ghc-xml-conduit")
14753 (version "1.8.0.1")
14754 (source
14755 (origin
14756 (method url-fetch)
14757 (uri (string-append "https://hackage.haskell.org/package/xml-conduit/"
14758 "xml-conduit-" version ".tar.gz"))
14759 (sha256
14760 (base32
14761 "177gmyigxql1pn3ncz0r8annwv5cbxnihbgrrg1dhm4gmc9jy2wq"))))
14762 (build-system haskell-build-system)
14763 (inputs
14764 `(("ghc-conduit" ,ghc-conduit)
14765 ("ghc-conduit-extra" ,ghc-conduit-extra)
14766 ("ghc-doctest" ,ghc-doctest)
14767 ("ghc-resourcet" ,ghc-resourcet)
14768 ("ghc-xml-types" ,ghc-xml-types)
14769 ("ghc-attoparsec" ,ghc-attoparsec)
14770 ("ghc-data-default-class" ,ghc-data-default-class)
14771 ("ghc-blaze-markup" ,ghc-blaze-markup)
14772 ("ghc-blaze-html" ,ghc-blaze-html)
14773 ("ghc-monad-control" ,ghc-monad-control)
14774 ("ghc-hspec" ,ghc-hspec)
14775 ("ghc-hunit" ,ghc-hunit)))
14776 (home-page "https://github.com/snoyberg/xml")
14777 (synopsis "Utilities for dealing with XML with the conduit package")
14778 (description
14779 "This package provides pure-Haskell utilities for dealing with XML with
14780the @code{conduit} package.")
14781 (license license:expat)))
14782
14783(define-public ghc-xml-types
14784 (package
14785 (name "ghc-xml-types")
14786 (version "0.3.6")
14787 (source
14788 (origin
14789 (method url-fetch)
14790 (uri (string-append "https://hackage.haskell.org/package/xml-types/"
14791 "xml-types-" version ".tar.gz"))
14792 (sha256
14793 (base32
14794 "1jgqxsa9p2q3h6nymbfmvhldqrqlwrhrzmwadlyc0li50x0d8dwr"))))
14795 (build-system haskell-build-system)
14796 (home-page "https://john-millikin.com/software/haskell-xml/")
14797 (synopsis "Basic types for representing XML")
14798 (description "This package provides basic types for representing XML
14799documents.")
14800 (license license:expat)))
14801
7f89dfc9
KM
14802(define-public ghc-xml-hamlet
14803 (package
14804 (name "ghc-xml-hamlet")
14805 (version "0.5.0.1")
14806 (source
14807 (origin
14808 (method url-fetch)
14809 (uri (string-append "https://hackage.haskell.org/package/xml-hamlet/"
14810 "xml-hamlet-" version ".tar.gz"))
14811 (sha256
14812 (base32 "0jrhcjy7ww59dafg857f2g2df1fw2jmbwcs1q379ph0pc5rxj3lj"))))
14813 (build-system haskell-build-system)
14814 (inputs
14815 `(("ghc-shakespeare" ,ghc-shakespeare)
14816 ("ghc-xml-conduit" ,ghc-xml-conduit)))
14817 (native-inputs
14818 `(("ghc-hspec" ,ghc-hspec)
14819 ("ghc-hunit" ,ghc-hunit)))
14820 (home-page "https://www.yesodweb.com/")
14821 (synopsis "Hamlet-style quasiquoter for XML content")
14822 (description "This package provides a type-safe tool for generating XML
14823code via quasi-quoting built on top of @code{ghc-shakespeare}.")
14824 (license license:bsd-3)))
14825
dddbc90c
RV
14826(define-public ghc-yaml
14827 (package
14828 (name "ghc-yaml")
b58e5b84 14829 (version "0.11.1.2")
dddbc90c
RV
14830 (source (origin
14831 (method url-fetch)
14832 (uri (string-append "https://hackage.haskell.org/package/"
14833 "yaml/yaml-" version ".tar.gz"))
14834 (sha256
14835 (base32
b58e5b84 14836 "028pz77n92l6kjgjv263h4b6yhw1iibdbf3a3dkn5qnz537xpzhc"))))
dddbc90c 14837 (build-system haskell-build-system)
dddbc90c
RV
14838 (inputs
14839 `(("ghc-conduit" ,ghc-conduit)
14840 ("ghc-resourcet" ,ghc-resourcet)
14841 ("ghc-aeson" ,ghc-aeson)
14842 ("ghc-unordered-containers" ,ghc-unordered-containers)
14843 ("ghc-vector" ,ghc-vector)
14844 ("ghc-attoparsec" ,ghc-attoparsec)
14845 ("ghc-scientific" ,ghc-scientific)
14846 ("ghc-semigroups" ,ghc-semigroups)
14847 ("ghc-temporary" ,ghc-temporary)
14848 ("ghc-enclosed-exceptions" ,ghc-enclosed-exceptions)
b58e5b84
TS
14849 ("ghc-base-compat" ,ghc-base-compat)
14850 ("ghc-libyaml" ,ghc-libyaml)))
dddbc90c
RV
14851 (native-inputs
14852 `(("ghc-hspec" ,ghc-hspec)
14853 ("ghc-hunit" ,ghc-hunit)
14854 ("hspec-discover" ,hspec-discover)
b58e5b84
TS
14855 ("ghc-mockery" ,ghc-mockery)
14856 ("ghc-raw-strings-qq" ,ghc-raw-strings-qq)))
dddbc90c
RV
14857 (home-page "https://github.com/snoyberg/yaml/")
14858 (synopsis "Parsing and rendering YAML documents")
14859 (description
14860 "This package provides a library to parse and render YAML documents.")
14861 (license license:bsd-3)))
14862
14863(define-public ghc-zip-archive
14864 (package
14865 (name "ghc-zip-archive")
93c1fdd3 14866 (version "0.4.1")
dddbc90c
RV
14867 (source
14868 (origin
14869 (method url-fetch)
14870 (uri (string-append
14871 "https://hackage.haskell.org/package/zip-archive/zip-archive-"
14872 version
14873 ".tar.gz"))
14874 (sha256
14875 (base32
93c1fdd3 14876 "1cdix5mnxrbs7b2kivhdydhfzgxidd9dqlw71mdw5p21cabwkmf5"))))
dddbc90c 14877 (build-system haskell-build-system)
93c1fdd3
TS
14878 (arguments
14879 `(#:phases
14880 (modify-phases %standard-phases
14881 (add-before 'check 'set-PATH-for-tests
14882 (lambda* (#:key inputs #:allow-other-keys)
14883 (let ((unzip (assoc-ref inputs "unzip"))
14884 (which (assoc-ref inputs "which"))
14885 (path (getenv "PATH")))
14886 (setenv "PATH" (string-append unzip "/bin:" which "/bin:" path))
14887 #t))))))
dddbc90c
RV
14888 (inputs
14889 `(("ghc-digest" ,ghc-digest)
14890 ("ghc-temporary" ,ghc-temporary)
14891 ("ghc-zlib" ,ghc-zlib)))
14892 (native-inputs
14893 `(("ghc-hunit" ,ghc-hunit)
93c1fdd3
TS
14894 ("unzip" ,unzip)
14895 ("which" ,which)))
dddbc90c
RV
14896 (home-page "https://hackage.haskell.org/package/zip-archive")
14897 (synopsis "Zip archive library for Haskell")
14898 (description "The zip-archive library provides functions for creating,
14899modifying, and extracting files from zip archives in Haskell.")
14900 (license license:bsd-3)))
14901
14902(define-public ghc-zlib
14903 (package
14904 (name "ghc-zlib")
bf12089a 14905 (version "0.6.2.1")
534d6caa 14906 (outputs '("out" "static" "doc"))
dddbc90c
RV
14907 (source
14908 (origin
14909 (method url-fetch)
14910 (uri (string-append
14911 "https://hackage.haskell.org/package/zlib/zlib-"
14912 version
14913 ".tar.gz"))
14914 (sha256
14915 (base32
bf12089a 14916 "1l11jraslcrp9d4wnhwfyhwk4fsiq1aq8i6vj81vcq1m2zzi1y7h"))))
dddbc90c
RV
14917 (build-system haskell-build-system)
14918 (arguments
54a5fd07
TS
14919 `(#:extra-directories ("zlib")
14920 #:phases
dddbc90c
RV
14921 (modify-phases %standard-phases
14922 (add-before 'configure 'strip-test-framework-constraints
14923 (lambda _
14924 (substitute* "zlib.cabal"
14925 (("tasty >= 0\\.8 && < 0\\.12") "tasty")
14926 (("tasty-hunit >= 0\\.8 && < 0\\.10") "tasty-hunit")
14927 (("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
14928 (inputs `(("zlib" ,zlib)))
14929 (native-inputs
14930 `(("ghc-quickcheck" ,ghc-quickcheck)
14931 ("ghc-tasty" ,ghc-tasty)
14932 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
14933 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
14934 (home-page "https://hackage.haskell.org/package/zlib")
14935 (synopsis
14936 "Compression and decompression in the gzip and zlib formats")
14937 (description
14938 "This package provides a pure interface for compressing and decompressing
14939streams of data represented as lazy @code{ByteString}s. It uses the zlib C
14940library so it has high performance. It supports the @code{zlib}, @code{gzip}
14941and @code{raw} compression formats. It provides a convenient high level API
14942suitable for most tasks and for the few cases where more control is needed it
14943provides access to the full zlib feature set.")
bbf8bf31 14944 (license license:bsd-3)))
14e41996
RV
14945
14946(define-public ghc-zlib-bindings
14947 (package
14948 (name "ghc-zlib-bindings")
14949 (version "0.1.1.5")
14950 (source
14951 (origin
14952 (method url-fetch)
14953 (uri (string-append "https://hackage.haskell.org/package/"
14954 "zlib-bindings/zlib-bindings-" version ".tar.gz"))
14955 (sha256
14956 (base32
14957 "02ciywlz4wdlymgc3jsnicz9kzvymjw1www2163gxidnz4wb8fy8"))))
14958 (build-system haskell-build-system)
14959 (inputs
14960 `(("ghc-zlib" ,ghc-zlib)))
14961 (native-inputs
14962 `(("ghc-hspec" ,ghc-hspec)
14963 ("ghc-quickcheck" ,ghc-quickcheck)))
14964 (arguments
14965 `(#:cabal-revision
14966 ("2" "0fq49694gqkab8m0vq4i879blswczwd66n7xh4r4gwiahf0ryvqc")))
14967 (home-page "https://github.com/snapframework/zlib-bindings")
14968 (synopsis "Low-level bindings to the @code{zlib} package")
14969 (description "This package provides low-level bindings to the
14970@code{zlib} package.")
14971 (license license:bsd-3)))
8428e92c
TS
14972
14973(define-public ghc-zstd
14974 (package
14975 (name "ghc-zstd")
14976 (version "0.1.1.2")
14977 (source
14978 (origin
14979 (method url-fetch)
14980 (uri (string-append "https://hackage.haskell.org/package/"
14981 "zstd/zstd-" version ".tar.gz"))
14982 (sha256
14983 (base32
14984 "147s496zvw13akxqzg65mgfvk3bvhrcilxgf8n786prxg5cm4jz2"))))
14985 (build-system haskell-build-system)
14986 (native-inputs
14987 `(("ghc-quickcheck" ,ghc-quickcheck)
14988 ("ghc-test-framework" ,ghc-test-framework)
14989 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
14990 (home-page "https://github.com/luispedro/hs-zstd")
14991 (synopsis "Haskell bindings to the Zstandard compression algorithm")
14992 (description "This library provides Haskell bindings to the
14993Zstandard compression algorithm, a fast lossless compression algorithm
14994targeting real-time compression scenarios at zlib-level and better
14995compression ratios.")
14996 (license license:bsd-3)))