gnu: Add ghc-hspec-megaparsec.
[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
e16f7de8
CH
5931(define-public ghc-hspec-megaparsec
5932 (package
5933 (name "ghc-hspec-megaparsec")
5934 (version "2.0.1")
5935 (source
5936 (origin
5937 (method url-fetch)
5938 (uri (string-append
5939 "https://hackage.haskell.org/"
5940 "package/hspec-megaparsec/hspec-megaparsec-"
5941 version
5942 ".tar.gz"))
5943 (sha256
5944 (base32
5945 "0w8nn2rh01lkiwsiyqh3gviklhfmy0245rakj94dmliyljw8skfg"))))
5946 (build-system haskell-build-system)
5947 (inputs
5948 `(("ghc-hspec-expectations" ,ghc-hspec-expectations)
5949 ("ghc-megaparsec" ,ghc-megaparsec)))
5950 (native-inputs
5951 `(("ghc-hspec" ,ghc-hspec)))
5952 (home-page "https://github.com/mrkkrp/hspec-megaparsec")
5953 (synopsis "Utility functions for testing Megaparsec parsers with Hspec")
5954 (description
5955 "Provides a small set of helper functions for testing Megaparsec parsers
5956with Hspec.")
5957 (license license:bsd-3)))
5958
dddbc90c
RV
5959(define-public ghc-hs-bibutils
5960 (package
5961 (name "ghc-hs-bibutils")
ebcb4f23 5962 (version "6.7.0.0")
dddbc90c
RV
5963 (source
5964 (origin
5965 (method url-fetch)
5966 (uri (string-append
5967 "https://hackage.haskell.org/package/hs-bibutils/hs-bibutils-"
5968 version ".tar.gz"))
5969 (sha256
5970 (base32
ebcb4f23 5971 "1qfyssl76lm4g09yxr3y10kmf8cnzls46g5h0ijk0wpk9wlhbln5"))))
dddbc90c
RV
5972 (build-system haskell-build-system)
5973 (inputs `(("ghc-syb" ,ghc-syb)))
5974 (home-page "https://hackage.haskell.org/package/hs-bibutils")
5975 (synopsis "Haskell bindings to bibutils")
5976 (description
5977 "This package provides Haskell bindings to @code{bibutils}, a library
5978that interconverts between various bibliography formats using a common
5979MODS-format XML intermediate.")
5980 (license license:gpl2+)))
5981
5982(define-public ghc-hslogger
5983 (package
5984 (name "ghc-hslogger")
e5ccc5f7 5985 (version "1.2.12")
dddbc90c
RV
5986 (source
5987 (origin
5988 (method url-fetch)
5989 (uri (string-append "https://hackage.haskell.org/package/"
5990 "hslogger-" version "/" "hslogger-"
5991 version ".tar.gz"))
5992 (sha256 (base32
e5ccc5f7 5993 "0ykcsk7wqygvrg60r5kpl6xfinr706al8pfyk5wj67wjs24lqypr"))))
dddbc90c
RV
5994 (build-system haskell-build-system)
5995 (inputs
5996 `(("ghc-network" ,ghc-network)
5997 ("ghc-old-locale" ,ghc-old-locale)))
5998 (native-inputs
5999 `(("ghc-hunit" ,ghc-hunit)))
6000 (home-page "https://software.complete.org/hslogger")
6001 (synopsis "Logging framework for Haskell, similar to Python's logging module")
6002 (description "Hslogger lets each log message have a priority and source be
6003associated with it. The programmer can then define global handlers that route
6004or filter messages based on the priority and source. It also has a syslog
6005handler built in.")
6006 (license license:bsd-3)))
6007
6008(define-public ghc-hslua
6009 (package
6010 (name "ghc-hslua")
cc784d7b 6011 (version "1.0.3.2")
dddbc90c
RV
6012 (source (origin
6013 (method url-fetch)
6014 (uri (string-append "https://hackage.haskell.org/package/"
6015 "hslua/hslua-" version ".tar.gz"))
6016 (sha256
6017 (base32
cc784d7b 6018 "183bgl5jcx5y2r94lviqfw0a5w9089nxjd1z40k8vx9y2h60pm6j"))))
dddbc90c
RV
6019 (build-system haskell-build-system)
6020 (arguments
54a5fd07
TS
6021 `(#:configure-flags '("-fsystem-lua")
6022 #:extra-directories ("lua")))
dddbc90c
RV
6023 (inputs
6024 `(("lua" ,lua)
6025 ("ghc-exceptions" ,ghc-exceptions)
6026 ("ghc-fail" ,ghc-fail)))
6027 (native-inputs
6028 `(("ghc-tasty" ,ghc-tasty)
6029 ("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)
6030 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
6031 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
6032 ("ghc-quickcheck" ,ghc-quickcheck)
6033 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)))
6034 (home-page "https://hackage.haskell.org/package/hslua")
6035 (synopsis "Lua language interpreter embedding in Haskell")
6036 (description
6037 "The Scripting.Lua module is a wrapper of the Lua language interpreter as
6038described in @url{https://www.lua.org/}.")
6039 (license license:expat)))
6040
ff303e4e
TS
6041(define-public ghc-hslua-module-system
6042 (package
6043 (name "ghc-hslua-module-system")
6044 (version "0.2.1")
6045 (source
6046 (origin
6047 (method url-fetch)
6048 (uri (string-append "https://hackage.haskell.org/package/"
6049 "hslua-module-system/hslua-module-system-"
6050 version ".tar.gz"))
6051 (sha256
6052 (base32
6053 "1m7wz3g5c34pyizqw5mllzhsy2vziddhlbhjfwdvd7nhd3p4v3hh"))))
6054 (build-system haskell-build-system)
6055 (inputs
6056 `(("ghc-exceptions" ,ghc-exceptions)
6057 ("ghc-hslua" ,ghc-hslua)
6058 ("ghc-temporary" ,ghc-temporary)))
6059 (native-inputs
6060 `(("ghc-tasty" ,ghc-tasty)
6061 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
6062 (home-page "https://github.com/hslua/hslua-module-system")
6063 (synopsis "Lua module wrapper around Haskell's System module")
6064 (description "This library provides access to system information and
6065functionality to Lua scripts via Haskell's @code{System} module. Intended
6066usage for this package is to preload it by adding the loader function to
6067@code{package.preload}. Note that the Lua @code{package} library must have
6068already been loaded before the loader can be added.")
6069 (license license:expat)))
6070
dddbc90c
RV
6071(define-public ghc-hslua-module-text
6072 (package
6073 (name "ghc-hslua-module-text")
ecaf0b0c 6074 (version "0.2.1")
dddbc90c
RV
6075 (source
6076 (origin
6077 (method url-fetch)
6078 (uri (string-append "https://hackage.haskell.org/package/"
6079 "hslua-module-text/hslua-module-text-"
6080 version ".tar.gz"))
6081 (sha256
6082 (base32
ecaf0b0c 6083 "1ikdwvvxhbd5wmfr85dzs2ccamh9rbbpgy899z7s1vlv5q1dj0hk"))))
dddbc90c 6084 (build-system haskell-build-system)
dddbc90c
RV
6085 (inputs
6086 `(("ghc-hslua" ,ghc-hslua)))
6087 (native-inputs
6088 `(("ghc-tasty" ,ghc-tasty)
6089 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
6090 (home-page "https://github.com/hslua/hslua-module-text")
6091 (synopsis "Lua module for text")
6092 (description
6093 "This package provides a UTF-8 aware subset of Lua's @code{string} module
6094for Haskell. The functions provided by this module are @code{upper},
6095@code{lower}, @code{len}, @code{reverse}, and @code{sub}.")
6096 (license license:expat)))
6097
fac520bf
TS
6098(define-public ghc-hsyaml
6099 (package
6100 (name "ghc-hsyaml")
6101 (version "0.1.2.0")
6102 (source
6103 (origin
6104 (method url-fetch)
6105 (uri (string-append "https://hackage.haskell.org/package/"
6106 "HsYAML/HsYAML-" version ".tar.gz"))
6107 (sha256
6108 (base32
6109 "1pajfhj16559v64ixm8j7bvxdqmxg6c3c0z3wz7in8ckswgzfp54"))))
6110 (build-system haskell-build-system)
6111 (arguments
6112 `(#:cabal-revision
6113 ("1" "0j6qmmcz5yqh89hs2cq453maix50q61vl2h0ahj5lg02bygn42cf")))
6114 (home-page "https://github.com/haskell-hvr/HsYAML")
6115 (synopsis "Pure Haskell YAML 1.2 parser")
6116 (description "This library provides a
6117@url{http://yaml.org/spec/1.2/spec.html, YAML 1.2} parser implementation
6118for Haskell. Its features include:
6119
6120@itemize
6121@item Pure Haskell implementation with small dependency footprint and
6122emphasis on strict compliance with the YAML 1.2 specification.
6123
6124@item Direct decoding to native Haskell types via (aeson-inspired)
6125typeclass-based API (see @code{Data.YAML}).
6126
6127@item Support for constructing custom YAML node graph
6128representation (including support for cyclic YAML data structures).
6129
6130@item Support for the standard (untyped) @emph{Failsafe}, (strict)
6131@emph{JSON}, and (flexible) @emph{Core} ``schemas'' providing implicit
6132typing rules as defined in the YAML 1.2 specification (including support
6133for user-defined custom schemas).
6134
6135@item Event-based API resembling LibYAML's Event-based API (see
6136@code{Data.YAML.Event}).
6137
6138@item Low-level API access to lexical token-based scanner (see
6139@code{Data.YAML.Token}).
6140@end itemize")
6141 (license license:gpl2+)))
6142
dddbc90c
RV
6143(define-public ghc-http-api-data
6144 (package
6145 (name "ghc-http-api-data")
a57236eb 6146 (version "0.4.1")
dddbc90c
RV
6147 (source
6148 (origin
6149 (method url-fetch)
6150 (uri (string-append "https://hackage.haskell.org/package/"
6151 "http-api-data-" version "/"
6152 "http-api-data-" version ".tar.gz"))
6153 (sha256
6154 (base32
a57236eb 6155 "1ps4bvln43gz72dr9mc3c9n1rn38c4rz6m49vxzz9nz6jz1978rv"))))
dddbc90c 6156 (build-system haskell-build-system)
dddbc90c
RV
6157 (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
6158 ("ghc-attoparsec-iso8601" ,ghc-attoparsec-iso8601)
a57236eb 6159 ("ghc-cookie" ,ghc-cookie)
dddbc90c
RV
6160 ("ghc-hashable" ,ghc-hashable)
6161 ("ghc-http-types" ,ghc-http-types)
a57236eb 6162 ("ghc-time-compat" ,ghc-time-compat)
dddbc90c 6163 ("ghc-unordered-containers" ,ghc-unordered-containers)
dddbc90c 6164 ("ghc-uuid-types" ,ghc-uuid-types)))
a57236eb
TS
6165 (native-inputs
6166 `(("cabal-doctest" ,cabal-doctest)
6167 ("ghc-nats" ,ghc-nats)
6168 ("ghc-hunit" ,ghc-hunit)
6169 ("ghc-hspec" ,ghc-hspec)
6170 ("ghc-quickcheck" ,ghc-quickcheck)
6171 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
6172 ("ghc-doctest" ,ghc-doctest)
6173 ("hspec-discover" ,hspec-discover)))
dddbc90c
RV
6174 (home-page "https://github.com/fizruk/http-api-data")
6175 (synopsis "Convert to/from HTTP API data like URL pieces, headers and
6176query parameters")
6177 (description "This Haskell package defines typeclasses used for converting
6178Haskell data types to and from HTTP API data.")
6179 (license license:bsd-3)))
6180
6181(define-public ghc-ieee754
6182 (package
6183 (name "ghc-ieee754")
6184 (version "0.8.0")
6185 (source (origin
6186 (method url-fetch)
6187 (uri (string-append
6188 "https://hackage.haskell.org/package/ieee754/"
6189 "ieee754-" version ".tar.gz"))
6190 (sha256
6191 (base32
6192 "1lcs521g9lzy9d7337vg4w7q7s8500rfqy7rcifcz6pm6yfgyb8f"))))
6193 (build-system haskell-build-system)
6194 (home-page "https://github.com/patperry/hs-ieee754")
6195 (synopsis "Utilities for dealing with IEEE floating point numbers")
6196 (description "Utilities for dealing with IEEE floating point numbers,
6197ported from the Tango math library; approximate and exact equality comparisons
6198for general types.")
6199 (license license:bsd-3)))
6200
6201(define-public ghc-ifelse
6202 (package
6203 (name "ghc-ifelse")
6204 (version "0.85")
6205 (source
6206 (origin
6207 (method url-fetch)
6208 (uri (string-append "https://hackage.haskell.org/package/"
6209 "IfElse/IfElse-" version ".tar.gz"))
6210 (sha256
6211 (base32
6212 "1kfx1bwfjczj93a8yqz1n8snqiq5655qgzwv1lrycry8wb1vzlwa"))))
6213 (build-system haskell-build-system)
3ef91e15 6214 (home-page "https://hackage.haskell.org/package/IfElse")
dddbc90c
RV
6215 (synopsis "Monadic control flow with anaphoric variants")
6216 (description "This library provides functions for control flow inside of
6217monads with anaphoric variants on @code{if} and @code{when} and a C-like
6218@code{switch} function.")
6219 (license license:bsd-3)))
6220
6221(define-public ghc-indents
6222 (package
6223 (name "ghc-indents")
d66473fb 6224 (version "0.5.0.1")
dddbc90c
RV
6225 (source (origin
6226 (method url-fetch)
6227 (uri (string-append
6228 "https://hackage.haskell.org/package/indents/indents-"
6229 version ".tar.gz"))
6230 (sha256
6231 (base32
d66473fb 6232 "0dpcwiz0dwn5aqdsc50plfaawh86adhf7jx5dsmhn5q5nz32qn51"))))
dddbc90c
RV
6233 (build-system haskell-build-system)
6234 ;; This package needs an older version of tasty.
6235 (arguments '(#:tests? #f))
6236 (inputs
6237 `(("ghc-concatenative" ,ghc-concatenative)))
6238 (native-inputs
6239 `(("ghc-tasty" ,ghc-tasty)
6240 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
6241 (home-page "http://patch-tag.com/r/salazar/indents")
6242 (synopsis "Indentation sensitive parser-combinators for parsec")
6243 (description
6244 "This library provides functions for use in parsing indentation sensitive
6245contexts. It parses blocks of lines all indented to the same level as well as
6246lines continued at an indented level below.")
6247 (license license:bsd-3)))
6248
1f656b17
TS
6249(define-public ghc-infer-license
6250 (package
6251 (name "ghc-infer-license")
6252 (version "0.2.0")
6253 (source
6254 (origin
6255 (method url-fetch)
6256 (uri (string-append "https://hackage.haskell.org/package/"
6257 "infer-license/infer-license-" version ".tar.gz"))
6258 (sha256
6259 (base32
6260 "0wlfm6bf55kfvm74xar9lmjg5v1103rs9m3grw1rq5bmcmhzxrhj"))))
6261 (build-system haskell-build-system)
6262 (inputs
6263 `(("ghc-text-metrics" ,ghc-text-metrics)))
6264 (native-inputs
6265 `(("ghc-hspec" ,ghc-hspec)
6266 ("hspec-discover" ,hspec-discover)))
3ef91e15 6267 (home-page "https://hackage.haskell.org/package/infer-license")
1f656b17
TS
6268 (synopsis "Infer software license from a given license file")
6269 (description "This library provides tools to infer a software
6270license from a given license file.")
6271 (license license:expat)))
6272
dddbc90c
RV
6273(define-public ghc-inline-c
6274 (package
6275 (name "ghc-inline-c")
55ec98f2 6276 (version "0.7.0.1")
dddbc90c
RV
6277 (source
6278 (origin
6279 (method url-fetch)
6280 (uri (string-append "https://hackage.haskell.org/package/inline-c/"
6281 "inline-c-" version ".tar.gz"))
6282 (sha256
6283 (base32
55ec98f2 6284 "19scbviwiv1fbsdcjji3dscjg7w0xa8r97xwkqqrwm7zhvrg5wns"))))
dddbc90c
RV
6285 (build-system haskell-build-system)
6286 (inputs
6287 `(("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
6288 ("ghc-cryptohash" ,ghc-cryptohash)
6289 ("ghc-hashable" ,ghc-hashable)
6290 ("ghc-parsers" ,ghc-parsers)
6291 ("ghc-unordered-containers" ,ghc-unordered-containers)
6292 ("ghc-vector" ,ghc-vector)))
6293 (native-inputs
6294 `(("ghc-quickcheck" ,ghc-quickcheck)
6295 ("ghc-hspec" ,ghc-hspec)
6296 ("ghc-raw-strings-qq" ,ghc-raw-strings-qq)
6297 ("ghc-regex-posix" ,ghc-regex-posix)))
3ef91e15 6298 (home-page "https://hackage.haskell.org/package/inline-c")
dddbc90c
RV
6299 (synopsis "Write Haskell source files including C code inline")
6300 (description
6301 "inline-c lets you seamlessly call C libraries and embed high-performance
6302inline C code in Haskell modules. Haskell and C can be freely intermixed in
6303the same source file, and data passed to and from code in either language with
6304minimal overhead. No FFI required.")
6305 (license license:expat)))
6306
6307(define-public ghc-inline-c-cpp
6308 (package
6309 (name "ghc-inline-c-cpp")
cae58e56 6310 (version "0.3.0.3")
dddbc90c
RV
6311 (source
6312 (origin
6313 (method url-fetch)
6314 (uri (string-append "https://hackage.haskell.org/package/inline-c-cpp/"
6315 "inline-c-cpp-" version ".tar.gz"))
6316 (sha256
6317 (base32
cae58e56 6318 "1sxwx9dh60qfpa72dymj015zwd6prhb70x5mkabqzi7nhg3aakln"))))
dddbc90c
RV
6319 (build-system haskell-build-system)
6320 (inputs
6321 `(("ghc-inline-c" ,ghc-inline-c)
6322 ("ghc-safe-exceptions" ,ghc-safe-exceptions)))
6323 (native-inputs
6324 `(("ghc-hspec" ,ghc-hspec)))
6325 (home-page "https://hackage.haskell.org/package/inline-c-cpp")
6326 (synopsis "Lets you embed C++ code into Haskell")
6327 (description
6328 "This package provides utilities to inline C++ code into Haskell using
6329@code{inline-c}.")
6330 (license license:expat)))
6331
6332(define-public ghc-integer-logarithms
6333 (package
6334 (name "ghc-integer-logarithms")
86a704db 6335 (version "1.0.3")
dddbc90c
RV
6336 (source
6337 (origin
6338 (method url-fetch)
6339 (uri (string-append "https://hackage.haskell.org/package/"
6340 "integer-logarithms/integer-logarithms-"
6341 version ".tar.gz"))
6342 (sha256
6343 (base32
86a704db 6344 "05pc5hws66csvcvfswlwcr2fplwn1lbssvwifjxkbbwqhq0n5qjs"))))
dddbc90c
RV
6345 (build-system haskell-build-system)
6346 (arguments
6347 `(#:phases
6348 (modify-phases %standard-phases
6349 (add-before 'configure 'update-constraints
6350 (lambda _
6351 (substitute* "integer-logarithms.cabal"
6352 (("tasty >= 0\\.10 && < 1\\.1")
6353 "tasty >= 0.10 && < 1.2")))))))
6354 (native-inputs
6355 `(("ghc-quickcheck" ,ghc-quickcheck)
6356 ("ghc-smallcheck" ,ghc-smallcheck)
6357 ("ghc-tasty" ,ghc-tasty)
6358 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
6359 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
6360 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)))
6361 (home-page "https://github.com/Bodigrim/integer-logarithms")
6362 (synopsis "Integer logarithms")
6363 (description
6364 "This package provides the following modules:
6365@code{Math.NumberTheory.Logarithms} and
6366@code{Math.NumberTheory.Powers.Integer} from the @code{arithmoi} package,
6367@code{GHC.Integer.Logarithms.Compat} and
6368@code{Math.NumberTheory.Power.Natural}, as well as some additional functions
6369in migrated modules.")
6370 (license license:expat)))
6371
6372(define-public ghc-integer-logarithms-bootstrap
6373 (package
6374 (inherit ghc-integer-logarithms)
6375 (name "ghc-integer-logarithms-bootstrap")
6376 (arguments `(#:tests? #f))
6377 (native-inputs '())
799d8d3c 6378 (properties '((hidden? #t)))))
dddbc90c
RV
6379
6380(define-public ghc-interpolate
6381 (package
6382 (name "ghc-interpolate")
6383 (version "0.2.0")
6384 (source
6385 (origin
6386 (method url-fetch)
6387 (uri (string-append "https://hackage.haskell.org/package/interpolate/"
6388 "interpolate-" version ".tar.gz"))
6389 (sha256
6390 (base32
6391 "1gkaj98yz363v38fv78sqby236mp8yqwqcilx7kr2b9z0w3204bf"))))
6392 (build-system haskell-build-system)
6393 (inputs
6394 `(("ghc-haskell-src-meta" ,ghc-haskell-src-meta)))
6395 (native-inputs
6396 `(("ghc-base-compat" ,ghc-base-compat)
6397 ("ghc-hspec" ,ghc-hspec)
6398 ("ghc-quickcheck" ,ghc-quickcheck)
6399 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
6400 ("hspec-discover" ,hspec-discover)))
6401 (home-page "https://github.com/sol/interpolate")
6402 (synopsis "String interpolation library")
6403 (description "This package provides a string interpolation library for
6404Haskell.")
6405 (license license:expat)))
6406
6407(define-public ghc-intervalmap
6408 (package
6409 (name "ghc-intervalmap")
e4946e32 6410 (version "0.6.1.1")
dddbc90c
RV
6411 (source
6412 (origin
6413 (method url-fetch)
6414 (uri (string-append "https://hackage.haskell.org/package/IntervalMap/"
6415 "IntervalMap-" version ".tar.gz"))
6416 (sha256
6417 (base32
e4946e32 6418 "0vdlvxvhf7vjyv0mfn6jaj2i2gclqv8419ck32s2jxfcmki5m5g8"))))
dddbc90c
RV
6419 (build-system haskell-build-system)
6420 (native-inputs
6421 `(("ghc-quickcheck" ,ghc-quickcheck)))
6422 (home-page "http://www.chr-breitkopf.de/comp/IntervalMap")
6423 (synopsis "Containers for intervals, with efficient search")
6424 (description
6425 "This package provides ordered containers of intervals, with efficient
6426search for all keys containing a point or overlapping an interval. See the
6427example code on the home page for a quick introduction.")
6428 (license license:bsd-3)))
6429
f7ca1fa8
TS
6430(define-public ghc-intervals
6431 (package
6432 (name "ghc-intervals")
6433 (version "0.8.1")
6434 (source
6435 (origin
6436 (method url-fetch)
6437 (uri (string-append "https://hackage.haskell.org/package/"
6438 "intervals/intervals-" version ".tar.gz"))
6439 (sha256
6440 (base32
6441 "00vyxf3ba9d7aas3npfapr53w71fslgh69fczjb25axr66fvzqww"))))
6442 (build-system haskell-build-system)
6443 (inputs
6444 `(("ghc-distributive" ,ghc-distributive)))
6445 (native-inputs
6446 `(("cabal-doctest" ,cabal-doctest)
6447 ("ghc-doctest" ,ghc-doctest)
6448 ("ghc-quickcheck" ,ghc-quickcheck)))
6449 (arguments
6450 `(#:cabal-revision
6451 ("4" "1qx3q0v13l1zaln9zdk8chxpxhshbz5x0vqm0qda7d1kpv7h6a7r")))
6452 (home-page "https://github.com/ekmett/intervals")
6453 (synopsis "Interval arithmetic")
6454 (description "This library provides
6455@code{Numeric.Interval.Interval}, which represets a closed, convex set
6456of floating point values.")
6457 (license license:bsd-3)))
6458
dddbc90c
RV
6459(define-public ghc-invariant
6460 (package
6461 (name "ghc-invariant")
d3a0e0b4 6462 (version "0.5.3")
dddbc90c
RV
6463 (source
6464 (origin
6465 (method url-fetch)
6466 (uri (string-append
6467 "https://hackage.haskell.org/package/invariant/invariant-"
6468 version ".tar.gz"))
6469 (sha256
6470 (base32
d3a0e0b4 6471 "03245nhcqxx6b0yw81fzqaqd7cgllmx8awzhvs2xv7ys73pmsgnp"))))
dddbc90c
RV
6472 (build-system haskell-build-system)
6473 (inputs
6474 `(("ghc-bifunctors" ,ghc-bifunctors)
6475 ("ghc-comonad" ,ghc-comonad)
6476 ("ghc-contravariant" ,ghc-contravariant)
6477 ("ghc-profunctors" ,ghc-profunctors)
6478 ("ghc-semigroups" ,ghc-semigroups)
6479 ("ghc-statevar" ,ghc-statevar)
6480 ("ghc-tagged" ,ghc-tagged)
6481 ("ghc-th-abstraction" ,ghc-th-abstraction)
6482 ("ghc-transformers-compat" ,ghc-transformers-compat)
6483 ("ghc-unordered-containers" ,ghc-unordered-containers)))
6484 (native-inputs
6485 `(("ghc-hspec" ,ghc-hspec)
6486 ("ghc-quickcheck" ,ghc-quickcheck)
6487 ("hspec-discover" ,hspec-discover)))
6488 (home-page "https://github.com/nfrisby/invariant-functors")
6489 (synopsis "Haskell98 invariant functors")
6490 (description "Haskell98 invariant functors (also known as exponential
6491functors). For more information, see Edward Kmett's article
6492@uref{http://comonad.com/reader/2008/rotten-bananas/, Rotten Bananas}.")
6493 (license license:bsd-2)))
6494
6495(define-public ghc-io-streams
6496 (package
6497 (name "ghc-io-streams")
59e98d75 6498 (version "1.5.1.0")
dddbc90c
RV
6499 (source
6500 (origin
6501 (method url-fetch)
6502 (uri (string-append "https://hackage.haskell.org/package/"
6503 "io-streams/io-streams-" version ".tar.gz"))
6504 (sha256
6505 (base32
59e98d75 6506 "1c7byr943x41nxpc3bnz152fvfbmakafq2958wyf9qiyp2pz18la"))))
dddbc90c
RV
6507 (build-system haskell-build-system)
6508 (inputs
6509 `(("ghc-attoparsec" ,ghc-attoparsec)
6510 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
6511 ("ghc-network" ,ghc-network)
6512 ("ghc-primitive" ,ghc-primitive)
6513 ("ghc-vector" ,ghc-vector)
6514 ("ghc-zlib-bindings" ,ghc-zlib-bindings)))
6515 (native-inputs
6516 `(("ghc-hunit" ,ghc-hunit)
6517 ("ghc-quickcheck" ,ghc-quickcheck)
6518 ("ghc-test-framework" ,ghc-test-framework)
6519 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
6520 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
6521 ("ghc-zlib" ,ghc-zlib)))
3ef91e15 6522 (home-page "https://hackage.haskell.org/package/io-streams")
dddbc90c
RV
6523 (synopsis "Simple and composable stream I/O")
6524 (description "This library contains simple and easy-to-use
6525primitives for I/O using streams.")
6526 (license license:bsd-3)))
6527
6528(define-public ghc-io-streams-haproxy
6529 (package
6530 (name "ghc-io-streams-haproxy")
1a4fbc36 6531 (version "1.0.1.0")
dddbc90c
RV
6532 (source
6533 (origin
6534 (method url-fetch)
6535 (uri (string-append "https://hackage.haskell.org/package/"
6536 "io-streams-haproxy/io-streams-haproxy-"
6537 version ".tar.gz"))
6538 (sha256
6539 (base32
1a4fbc36 6540 "1dcn5hd4fiwyq7m01r6fi93vfvygca5s6mz87c78m0zyj29clkmp"))))
dddbc90c
RV
6541 (build-system haskell-build-system)
6542 (inputs
6543 `(("ghc-attoparsec" ,ghc-attoparsec)
6544 ("ghc-io-streams" ,ghc-io-streams)
6545 ("ghc-network" ,ghc-network)))
6546 (native-inputs
6547 `(("ghc-hunit" ,ghc-hunit)
6548 ("ghc-test-framework" ,ghc-test-framework)
6549 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
dddbc90c
RV
6550 (home-page "http://snapframework.com/")
6551 (synopsis "HAProxy protocol 1.5 support for io-streams")
6552 (description "HAProxy protocol version 1.5 support
6553(see @uref{http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt})
6554for applications using io-streams. The proxy protocol allows information
6555about a networked peer (like remote address and port) to be propagated
6556through a forwarding proxy that is configured to speak this protocol.")
6557 (license license:bsd-3)))
6558
6559(define-public ghc-iproute
6560 (package
6561 (name "ghc-iproute")
ec25d536 6562 (version "1.7.7")
dddbc90c
RV
6563 (source
6564 (origin
6565 (method url-fetch)
6566 (uri (string-append
6567 "https://hackage.haskell.org/package/iproute/iproute-"
6568 version
6569 ".tar.gz"))
6570 (sha256
6571 (base32
ec25d536 6572 "0gab5930nvzrpvisx3x43ydnp2rd4fbmy9cq1zpgqy1adx5gx8z6"))))
dddbc90c
RV
6573 (build-system haskell-build-system)
6574 (arguments `(#:tests? #f)) ; FIXME: Tests cannot find System.ByteOrder,
6575 ; exported by ghc-byteorder. Doctest issue.
6576 (inputs
6577 `(("ghc-appar" ,ghc-appar)
6578 ("ghc-byteorder" ,ghc-byteorder)
6579 ("ghc-network" ,ghc-network)
6580 ("ghc-safe" ,ghc-safe)))
6581 (home-page "https://www.mew.org/~kazu/proj/iproute/")
6582 (synopsis "IP routing table")
6583 (description "IP Routing Table is a tree of IP ranges to search one of
6584them on the longest match base. It is a kind of TRIE with one way branching
6585removed. Both IPv4 and IPv6 are supported.")
6586 (license license:bsd-3)))
6587
4828e54e
TS
6588(define-public ghc-ipynb
6589 (package
6590 (name "ghc-ipynb")
6591 (version "0.1")
6592 (source
6593 (origin
6594 (method url-fetch)
6595 (uri (string-append "https://hackage.haskell.org/package/"
6596 "ipynb/ipynb-" version ".tar.gz"))
6597 (sha256
6598 (base32
6599 "0daadhzil4q573mqb0rpvjzm0vpkzgzqcimw480qpvlh6rhppwj5"))))
6600 (build-system haskell-build-system)
6601 (inputs
6602 `(("ghc-unordered-containers" ,ghc-unordered-containers)
6603 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
6604 ("ghc-aeson" ,ghc-aeson)
6605 ("ghc-semigroups" ,ghc-semigroups)))
6606 (native-inputs
6607 `(("ghc-tasty" ,ghc-tasty)
6608 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
6609 ("ghc-aeson-diff" ,ghc-aeson-diff)
6610 ("ghc-microlens-aeson" ,ghc-microlens-aeson)
6611 ("ghc-microlens" ,ghc-microlens)
6612 ("ghc-vector" ,ghc-vector)))
6613 (home-page "https://hackage.haskell.org/package/ipynb")
6614 (synopsis "Data structure for working with Jupyter notebooks")
6615 (description "This library defines a data structure for representing
6616Jupyter notebooks, along with @code{ToJSON} and @code{FromJSON}
6617instances for conversion to and from JSON .ipynb files.")
6618 (license license:bsd-3)))
6619
dddbc90c
RV
6620(define-public ghc-iwlib
6621 (package
6622 (name "ghc-iwlib")
6623 (version "0.1.0")
6624 (source
6625 (origin
6626 (method url-fetch)
6627 (uri (string-append "https://hackage.haskell.org/package/iwlib/iwlib-"
6628 version ".tar.gz"))
6629 (sha256
6630 (base32 "0khmfwql4vwj55idsxmhjhrbqzfir3g9wm5lmpvnf77mm95cfpdz"))))
6631 (build-system haskell-build-system)
54a5fd07
TS
6632 (arguments
6633 `(#:extra-directories ("wireless-tools")))
dddbc90c
RV
6634 (inputs
6635 `(("wireless-tools" ,wireless-tools)))
6636 (home-page "https://github.com/jaor/iwlib")
6637 (synopsis "Haskell binding to the iw wireless networking library")
6638 (description
6639 "IWlib is a thin Haskell binding to the iw C library. It provides
6640information about the current wireless network connections, and adapters on
6641supported systems.")
6642 (license license:bsd-3)))
6643
6644(define-public ghc-json
6645 (package
6646 (name "ghc-json")
0ad3d574 6647 (version "0.9.3")
dddbc90c
RV
6648 (source
6649 (origin
6650 (method url-fetch)
6651 (uri (string-append "https://hackage.haskell.org/package/json/"
6652 "json-" version ".tar.gz"))
6653 (sha256
6654 (base32
0ad3d574 6655 "1z8s3mfg76p2flqqd2wqsi96l5bg8k8w8m58zlv81pw3k7h1vbwb"))))
dddbc90c
RV
6656 (build-system haskell-build-system)
6657 (inputs
6658 `(("ghc-syb" ,ghc-syb)))
6659 (home-page "https://hackage.haskell.org/package/json")
6660 (synopsis "Serializes Haskell data to and from JSON")
6661 (description "This package provides a parser and pretty printer for
6662converting between Haskell values and JSON.
6663JSON (JavaScript Object Notation) is a lightweight data-interchange format.")
6664 (license license:bsd-3)))
6665
6666(define-public ghc-juicypixels
6667 (package
6668 (name "ghc-juicypixels")
b50b6004 6669 (version "3.3.4")
dddbc90c
RV
6670 (source (origin
6671 (method url-fetch)
6672 (uri (string-append "https://hackage.haskell.org/package/"
6673 "JuicyPixels/JuicyPixels-"
6674 version ".tar.gz"))
6675 (sha256
6676 (base32
b50b6004 6677 "0qacrnz2qcykj3f6c4k2p8qd31pa2slpv3ykfblgizrfh3401q6x"))))
dddbc90c 6678 (build-system haskell-build-system)
a023e7d0 6679 (outputs '("out" "static" "doc"))
dddbc90c
RV
6680 (inputs
6681 `(("ghc-zlib" ,ghc-zlib)
6682 ("ghc-vector" ,ghc-vector)
6683 ("ghc-primitive" ,ghc-primitive)
6684 ("ghc-mmap" ,ghc-mmap)))
6685 (home-page "https://github.com/Twinside/Juicy.Pixels")
6686 (synopsis "Picture loading and serialization library")
6687 (description
6688 "This library can load and store images in PNG, Bitmap, JPEG, Radiance,
6689TIFF and GIF formats.")
6690 (license license:bsd-3)))
6691
6692(define-public ghc-kan-extensions
6693 (package
6694 (name "ghc-kan-extensions")
6695 (version "5.2")
6696 (source
6697 (origin
6698 (method url-fetch)
6699 (uri (string-append
6700 "https://hackage.haskell.org/package/kan-extensions/kan-extensions-"
6701 version
6702 ".tar.gz"))
6703 (sha256
6704 (base32
6705 "1lyvyiwwh962j2nnnsqzlvp5zq6z8p3spvhmji99cjvldxc7wwkb"))))
6706 (build-system haskell-build-system)
6707 (inputs
6708 `(("ghc-adjunctions" ,ghc-adjunctions)
6709 ("ghc-comonad" ,ghc-comonad)
6710 ("ghc-contravariant" ,ghc-contravariant)
6711 ("ghc-distributive" ,ghc-distributive)
6712 ("ghc-free" ,ghc-free)
6713 ("ghc-invariant" ,ghc-invariant)
6714 ("ghc-semigroupoids" ,ghc-semigroupoids)
6715 ("ghc-tagged" ,ghc-tagged)
6716 ("ghc-transformers-compat" ,ghc-transformers-compat)))
6717 (home-page "https://github.com/ekmett/kan-extensions/")
6718 (synopsis "Kan extensions library")
6719 (description "This library provides Kan extensions, Kan lifts, various
6720forms of the Yoneda lemma, and (co)density (co)monads for Haskell.")
6721 (license license:bsd-3)))
6722
6723(define-public ghc-language-c
6724 (package
6725 (name "ghc-language-c")
4e1cf651 6726 (version "0.8.3")
dddbc90c
RV
6727 (source
6728 (origin
6729 (method url-fetch)
6730 (uri (string-append "https://hackage.haskell.org/package/"
6731 "language-c/language-c-" version ".tar.gz"))
6732 (sha256
6733 (base32
4e1cf651 6734 "0bi02jdirkys8v7flf39vrpla2a74z1z0sdhy9lb9v7cmcc6rmpk"))))
dddbc90c
RV
6735 (build-system haskell-build-system)
6736 (inputs `(("ghc-syb" ,ghc-syb)))
6737 (native-inputs
6738 `(("ghc-happy" ,ghc-happy)
6739 ("ghc-alex" ,ghc-alex)))
6740 (home-page "https://visq.github.io/language-c/")
6741 (synopsis "Analysis and generation of C code")
6742 (description
6743 "Language C is a Haskell library for the analysis and generation of C code.
6744It features a complete, well-tested parser and pretty printer for all of C99
6745and a large set of GNU extensions.")
6746 (license license:bsd-3)))
6747
6748(define-public ghc-language-glsl
6749 (package
6750 (name "ghc-language-glsl")
6751 (version "0.3.0")
6752 (source
6753 (origin
6754 (method url-fetch)
6755 (uri (string-append "https://hackage.haskell.org/package/"
6756 "language-glsl/language-glsl-" version ".tar.gz"))
6757 (sha256
6758 (base32
6759 "0hdg67ainlqpjjghg3qin6fg4p783m0zmjqh4rd5gyizwiplxkp1"))))
6760 (build-system haskell-build-system)
6761 (inputs `(("ghc-prettyclass" ,ghc-prettyclass)))
6762 (arguments
6763 `(#:tests? #f
6764 #:cabal-revision
6765 ("1" "10ac9pk4jy75k03j1ns4b5136l4kw8krr2d2nw2fdmpm5jzyghc5")))
3ef91e15 6766 (home-page "https://hackage.haskell.org/package/language-glsl")
dddbc90c
RV
6767 (synopsis "GLSL abstract syntax tree, parser, and pretty-printer")
6768 (description "This package is a Haskell library for the
6769representation, parsing, and pretty-printing of GLSL 1.50 code.")
6770 (license license:bsd-3)))
6771
6772(define-public ghc-language-haskell-extract
6773 (package
6774 (name "ghc-language-haskell-extract")
6775 (version "0.2.4")
6776 (source
6777 (origin
6778 (method url-fetch)
6779 (uri (string-append "https://hackage.haskell.org/package/"
6780 "language-haskell-extract-" version "/"
6781 "language-haskell-extract-" version ".tar.gz"))
6782 (sha256
6783 (base32
6784 "1nxcs7g8a1sp91bzpy4cj6s31k5pvc3gvig04cbrggv5cvjidnhl"))))
6785 (build-system haskell-build-system)
6786 (inputs
6787 `(("ghc-regex-posix" ,ghc-regex-posix)))
6788 (home-page "https://github.com/finnsson/template-helper")
6789 (synopsis "Haskell module to automatically extract functions from
6790the local code")
6791 (description "This package contains helper functions on top of
6792Template Haskell.
6793
6794For example, @code{functionExtractor} extracts all functions after a
6795regexp-pattern, which can be useful if you wish to extract all functions
6796beginning with @code{test} (for a test framework) or all functions beginning
6797with @code{wc} (for a web service).")
6798 (license license:bsd-3)))
6799
6800(define-public ghc-lens
6801 (package
6802 (name "ghc-lens")
262e6323 6803 (version "4.17.1")
dddbc90c
RV
6804 (source
6805 (origin
6806 (method url-fetch)
6807 (uri (string-append "https://hackage.haskell.org/package/lens/lens-"
6808 version ".tar.gz"))
6809 (sha256
6810 (base32
262e6323 6811 "1gpkc53l2cggnfrgg5k4ih82rycjbdvpj9pnbi5cq8ms0dbvs4a7"))))
dddbc90c 6812 (build-system haskell-build-system)
b35361e9 6813 (outputs '("out" "static" "doc"))
dddbc90c
RV
6814 (inputs
6815 `(("ghc-base-orphans" ,ghc-base-orphans)
6816 ("ghc-bifunctors" ,ghc-bifunctors)
6817 ("ghc-distributive" ,ghc-distributive)
6818 ("ghc-exceptions" ,ghc-exceptions)
6819 ("ghc-free" ,ghc-free)
6820 ("ghc-kan-extensions" ,ghc-kan-extensions)
6821 ("ghc-parallel" ,ghc-parallel)
6822 ("ghc-reflection" ,ghc-reflection)
6823 ("ghc-semigroupoids" ,ghc-semigroupoids)
6824 ("ghc-vector" ,ghc-vector)
6825 ("ghc-call-stack" ,ghc-call-stack)
6826 ("ghc-comonad" ,ghc-comonad)
6827 ("ghc-contravariant" ,ghc-contravariant)
6828 ("ghc-hashable" ,ghc-hashable)
6829 ("ghc-profunctors" ,ghc-profunctors)
6830 ("ghc-semigroups" ,ghc-semigroups)
6831 ("ghc-tagged" ,ghc-tagged)
6832 ("ghc-transformers-compat" ,ghc-transformers-compat)
6833 ("ghc-unordered-containers" ,ghc-unordered-containers)
6834 ("ghc-void" ,ghc-void)
6835 ("ghc-generic-deriving" ,ghc-generic-deriving)
6836 ("ghc-nats" ,ghc-nats)
6837 ("ghc-simple-reflect" ,ghc-simple-reflect)
6838 ("hlint" ,hlint)))
6839 (native-inputs
6840 `(("cabal-doctest" ,cabal-doctest)
6841 ("ghc-doctest" ,ghc-doctest)
6842 ("ghc-hunit" ,ghc-hunit)
6843 ("ghc-test-framework" ,ghc-test-framework)
6844 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
6845 ("ghc-test-framework-th" ,ghc-test-framework-th)
6846 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
6847 ("ghc-quickcheck" ,ghc-quickcheck)))
6848 (home-page "https://github.com/ekmett/lens/")
6849 (synopsis "Lenses, Folds and Traversals")
6850 (description "This library provides @code{Control.Lens}. The combinators
6851in @code{Control.Lens} provide a highly generic toolbox for composing families
6852of getters, folds, isomorphisms, traversals, setters and lenses and their
6853indexed variants.")
6854 (license license:bsd-3)))
6855
bcd35444
JS
6856(define-public ghc-lens-family-core
6857 (package
6858 (name "ghc-lens-family-core")
6859 (version "1.2.3")
6860 (source
6861 (origin
6862 (method url-fetch)
6863 (uri (string-append
6864 "mirror://hackage/package/lens-family-core/lens-family-core-"
6865 version
6866 ".tar.gz"))
6867 (sha256
6868 (base32
6869 "009rf10pj1cb50v44cc1pq7qvfrmkkk9dikahs9qmvbvgl3mykwi"))))
6870 (build-system haskell-build-system)
6871 (home-page
6872 "http://hackage.haskell.org/package/lens-family-core")
6873 (synopsis "Haskell 98 Lens Families")
6874 (description
6875 "This package provides first class functional references. In addition to
6876the usual operations of getting, setting and composition, plus integration
6877with the state monad, lens families provide some unique features:
6878
6879@itemize
6880@item Polymorphic updating
6881@item Traversals
6882@item Cast projection functions to read-only lenses
6883@item Cast @code{toList} functions to read-only traversals
6884@item Cast semantic editor combinators to modify-only traversals
6885@end itemize
6886
6887For optimal first-class support use the lens-family package with rank 2/rank N
6888polymorphism. @code{Lens.Family.Clone} allows for first-class support of
6889lenses and traversals for those who require Haskell 98.")
6890 (license license:bsd-3)))
6891
dddbc90c
RV
6892(define-public ghc-libffi
6893 (package
6894 (name "ghc-libffi")
6895 (version "0.1")
6896 (source
6897 (origin
6898 (method url-fetch)
6899 (uri (string-append "https://hackage.haskell.org/package/"
6900 "libffi/libffi-" version ".tar.gz"))
6901 (sha256
6902 (base32
6903 "0g7jnhng3j7z5517aaqga0144aamibsbpgm3yynwyfzkq1kp0f28"))))
6904 (build-system haskell-build-system)
6905 (native-inputs `(("pkg-config" ,pkg-config)))
6906 (inputs `(("libffi" ,libffi)))
3ef91e15 6907 (home-page "https://hackage.haskell.org/package/libffi")
dddbc90c
RV
6908 (synopsis "Haskell binding to libffi")
6909 (description
6910 "A binding to libffi, allowing C functions of types only known at runtime
6911to be called from Haskell.")
6912 (license license:bsd-3)))
6913
6914(define-public ghc-libmpd
6915 (package
6916 (name "ghc-libmpd")
bbf9845f 6917 (version "0.9.0.10")
dddbc90c
RV
6918 (source
6919 (origin
6920 (method url-fetch)
6921 (uri (string-append
6922 "mirror://hackage/package/libmpd/libmpd-"
6923 version
6924 ".tar.gz"))
6925 (sha256
6926 (base32
bbf9845f 6927 "0vy287mn1vk8kvij5i3hc0p02l886cpsq5dds7kl6g520si3abkb"))))
dddbc90c
RV
6928 (build-system haskell-build-system)
6929 ;; Tests fail on i686.
6930 ;; See https://github.com/vimus/libmpd-haskell/issues/112
6931 (arguments `(#:tests? #f))
6932 (inputs
6933 `(("ghc-attoparsec" ,ghc-attoparsec)
6934 ("ghc-old-locale" ,ghc-old-locale)
6935 ("ghc-data-default-class" ,ghc-data-default-class)
6936 ("ghc-network" ,ghc-network)
bbf9845f 6937 ("ghc-safe-exceptions" ,ghc-safe-exceptions)
dddbc90c
RV
6938 ("ghc-utf8-string" ,ghc-utf8-string)))
6939 (native-inputs
6940 `(("ghc-quickcheck" ,ghc-quickcheck)
6941 ("ghc-hspec" ,ghc-hspec)
6942 ("hspec-discover" ,hspec-discover)))
6943 (home-page "https://github.com/vimus/libmpd-haskell")
6944 (synopsis "Haskell client library for the Music Player Daemon")
6945 (description "This package provides a pure Haskell client library for the
6946Music Player Daemon.")
6947 (license license:expat)))
6948
e34df1c3
TS
6949(define-public ghc-lib-parser
6950 (package
6951 (name "ghc-lib-parser")
6952 (version "8.8.0.20190424")
6953 (source
6954 (origin
6955 (method url-fetch)
6956 (uri (string-append "https://hackage.haskell.org/package/"
6957 "ghc-lib-parser/ghc-lib-parser-" version ".tar.gz"))
6958 (sha256
6959 (base32
6960 "12gsh994pr13bsybwlravmi21la66dyw74pk74yfw2pnz682wv10"))))
6961 (build-system haskell-build-system)
7e62ebb3 6962 (outputs '("out" "static" "doc")) ; documentation is 39M
e34df1c3
TS
6963 (native-inputs
6964 `(("ghc-alex" ,ghc-alex)
6965 ("ghc-happy" ,ghc-happy)))
6966 (home-page "https://github.com/digital-asset/ghc-lib")
6967 (synopsis "The GHC API, decoupled from GHC versions")
6968 (description "This library implements the GHC API. It is like the
6969compiler-provided @code{ghc} package, but it can be loaded on many
6970compiler versions.")
6971 (license license:bsd-3)))
6972
dddbc90c
RV
6973(define-public ghc-libxml
6974 (package
6975 (name "ghc-libxml")
6976 (version "0.1.1")
6977 (source
6978 (origin
6979 (method url-fetch)
6980 (uri (string-append "https://hackage.haskell.org/package/libxml/"
6981 "libxml-" version ".tar.gz"))
6982 (sha256
6983 (base32
6984 "01zvk86kg726lf2vnlr7dxiz7g3xwi5a4ak9gcfbwyhynkzjmsfi"))))
6985 (build-system haskell-build-system)
6986 (inputs
6987 `(("libxml2" ,libxml2)))
6988 (arguments
6989 `(#:configure-flags
6990 `(,(string-append "--extra-include-dirs="
6991 (assoc-ref %build-inputs "libxml2")
6992 "/include/libxml2"))))
6993 (home-page "https://hackage.haskell.org/package/libxml")
6994 (synopsis "Haskell bindings to libxml2")
6995 (description
6996 "This library provides minimal Haskell binding to libxml2.")
6997 (license license:bsd-3)))
6998
0c2d6fc2
TS
6999(define-public ghc-libyaml
7000 (package
7001 (name "ghc-libyaml")
7002 (version "0.1.1.0")
7003 (source
7004 (origin
7005 (method url-fetch)
7006 (uri (string-append "https://hackage.haskell.org/package/"
7007 "libyaml/libyaml-" version ".tar.gz"))
7008 (sha256
7009 (base32
7010 "0psznm9c3yjsyj9aj8m2svvv9m2v0x90hnwarcx5sbswyi3l00va"))
7011 (modules '((guix build utils)))
7012 (snippet
7013 ;; Delete bundled LibYAML.
7014 '(begin
7015 (delete-file-recursively "libyaml_src")
7016 #t))))
7017 (build-system haskell-build-system)
7018 (arguments
54a5fd07
TS
7019 `(#:configure-flags `("--flags=system-libyaml")
7020 #:extra-directories ("libyaml")))
0c2d6fc2
TS
7021 (inputs
7022 `(("ghc-conduit" ,ghc-conduit)
7023 ("ghc-resourcet" ,ghc-resourcet)
1b35d303 7024 ("libyaml" ,libyaml)))
0c2d6fc2
TS
7025 (home-page "https://github.com/snoyberg/yaml#readme")
7026 (synopsis "Low-level, streaming YAML interface.")
7027 (description "This package provides a Haskell wrapper over the
7028LibYAML C library.")
7029 (license license:bsd-3)))
7030
dddbc90c
RV
7031(define-public ghc-lifted-async
7032 (package
7033 (name "ghc-lifted-async")
b5b6d7ea 7034 (version "0.10.0.4")
dddbc90c
RV
7035 (source
7036 (origin
7037 (method url-fetch)
7038 (uri (string-append
7039 "https://hackage.haskell.org/package/lifted-async/lifted-async-"
7040 version ".tar.gz"))
7041 (sha256
7042 (base32
b5b6d7ea 7043 "0cwl1d0wjpdk0v1l1qxiqiksmak950c8gx169c1q77cg0z18ijf9"))))
dddbc90c
RV
7044 (build-system haskell-build-system)
7045 (inputs
7046 `(("ghc-async" ,ghc-async)
7047 ("ghc-lifted-base" ,ghc-lifted-base)
7048 ("ghc-transformers-base" ,ghc-transformers-base)
7049 ("ghc-monad-control" ,ghc-monad-control)
7050 ("ghc-constraints" ,ghc-constraints)
7051 ("ghc-hunit" ,ghc-hunit)
7052 ("ghc-tasty" ,ghc-tasty)
7053 ("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)
7054 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7055 ("ghc-tasty-th" ,ghc-tasty-th)))
7056 (home-page "https://github.com/maoe/lifted-async")
7057 (synopsis "Run lifted IO operations asynchronously and wait for their results")
7058 (description
7059 "This package provides IO operations from @code{async} package lifted to any
7060instance of @code{MonadBase} or @code{MonadBaseControl}.")
7061 (license license:bsd-3)))
7062
7063(define-public ghc-lifted-base
7064 (package
7065 (name "ghc-lifted-base")
7066 (version "0.2.3.12")
7067 (source
7068 (origin
7069 (method url-fetch)
7070 (uri (string-append
7071 "https://hackage.haskell.org/package/lifted-base/lifted-base-"
7072 version
7073 ".tar.gz"))
7074 (sha256
7075 (base32
7076 "1i8p8d3rkdh21bhgjjh32vd7qqjr7jq7p59qds0aw2kmargsjd61"))))
7077 (build-system haskell-build-system)
7078 (arguments `(#:tests? #f)) ; FIXME: Missing testing libraries.
7079 (inputs
7080 `(("ghc-transformers-base" ,ghc-transformers-base)
7081 ("ghc-monad-control" ,ghc-monad-control)
7082 ("ghc-transformers-compat" ,ghc-transformers-compat)
7083 ("ghc-hunit" ,ghc-hunit)))
7084 (home-page "https://github.com/basvandijk/lifted-base")
7085 (synopsis "Lifted IO operations from the base library")
7086 (description "Lifted-base exports IO operations from the @code{base}
7087library lifted to any instance of @code{MonadBase} or @code{MonadBaseControl}.
7088Note that not all modules from @code{base} are converted yet. The package
7089includes a copy of the @code{monad-peel} test suite written by Anders
7090Kaseorg.")
7091 (license license:bsd-3)))
7092
7093(define-public ghc-linear
7094 (package
7095 (name "ghc-linear")
86526f37 7096 (version "1.20.9")
dddbc90c
RV
7097 (source
7098 (origin
7099 (method url-fetch)
7100 (uri (string-append "https://hackage.haskell.org/package/linear/"
7101 "linear-" version ".tar.gz"))
7102 (sha256
7103 (base32
86526f37 7104 "0h7yqigq593n7wsl7nz6a5f137wznm7y679wsii0ph0zsc4v5af5"))))
dddbc90c
RV
7105 (build-system haskell-build-system)
7106 (inputs
7107 `(("ghc-adjunctions" ,ghc-adjunctions)
7108 ("ghc-base-orphans" ,ghc-base-orphans)
7109 ("ghc-bytes" ,ghc-bytes)
7110 ("ghc-cereal" ,ghc-cereal)
7111 ("ghc-distributive" ,ghc-distributive)
7112 ("ghc-hashable" ,ghc-hashable)
7113 ("ghc-lens" ,ghc-lens)
7114 ("ghc-reflection" ,ghc-reflection)
7115 ("ghc-semigroups" ,ghc-semigroups)
7116 ("ghc-semigroupoids" ,ghc-semigroupoids)
7117 ("ghc-tagged" ,ghc-tagged)
7118 ("ghc-transformers-compat" ,ghc-transformers-compat)
7119 ("ghc-unordered-containers" ,ghc-unordered-containers)
7120 ("ghc-vector" ,ghc-vector)
7121 ("ghc-void" ,ghc-void)))
7122 (native-inputs
7123 `(("cabal-doctest" ,cabal-doctest)
7124 ("ghc-doctest" ,ghc-doctest)
7125 ("ghc-simple-reflect" ,ghc-simple-reflect)
7126 ("ghc-test-framework" ,ghc-test-framework)
7127 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
7128 ("ghc-hunit" ,ghc-hunit)))
702a1012 7129 (home-page "https://github.com/ekmett/linear/")
dddbc90c
RV
7130 (synopsis "Linear algebra library for Haskell")
7131 (description
7132 "This package provides types and combinators for linear algebra on free
7133vector spaces.")
7134 (license license:bsd-3)))
1307e4c7
JS
7135
7136(define-public ghc-listlike
7137 (package
7138 (name "ghc-listlike")
7139 (version "4.6.2")
7140 (source
7141 (origin
7142 (method url-fetch)
7143 (uri
7144 (string-append
7145 "https://hackage.haskell.org/package/ListLike/ListLike-"
7146 version ".tar.gz"))
7147 (sha256
7148 (base32
7149 "0m65x8yaq7q50gznln8mga2wrc8cvjx6gw9rim8s7xqcrx6y5zjh"))))
7150 (build-system haskell-build-system)
7151 (inputs
7152 `(("ghc-vector" ,ghc-vector)
7153 ("ghc-dlist" ,ghc-dlist)
7154 ("ghc-fmlist" ,ghc-fmlist)
7155 ("ghc-hunit" ,ghc-hunit)
7156 ("ghc-quickcheck" ,ghc-quickcheck)
7157 ("ghc-random" ,ghc-random)
7158 ("ghc-utf8-string" ,ghc-utf8-string)))
7159 (home-page "https://github.com/JohnLato/listlike")
7160 (synopsis "Generic support for list-like structures")
7161 (description "The ListLike module provides a common interface to the
7162various Haskell types that are list-like. Predefined interfaces include
7163standard Haskell lists, Arrays, ByteStrings, and lazy ByteStrings.
7164Custom types can easily be made ListLike instances as well.
7165
7166ListLike also provides for String-like types, such as String and
7167ByteString, for types that support input and output, and for types that
7168can handle infinite lists.")
7169 (license license:bsd-3)))
dddbc90c 7170
84436be0
J
7171(define-public ghc-llvm-hs-pure
7172 (package
7173 (name "ghc-llvm-hs-pure")
7174 (version "9.0.0")
7175 (source
7176 (origin
7177 (method url-fetch)
7178 (uri (string-append "https://hackage.haskell.org/package/llvm-hs-pure/"
7179 "llvm-hs-pure-" version ".tar.gz"))
7180 (sha256
7181 (base32
7182 "0pxb5ah8r5pzpz2ibqw3g9g1isigb4z7pbzfrwr8kmcjn74ab3kf"))))
7183 (build-system haskell-build-system)
7184 (inputs
7185 `(("ghc-attoparsec" ,ghc-attoparsec)
7186 ("ghc-fail" ,ghc-fail)
7187 ("ghc-unordered-containers" ,ghc-unordered-containers)))
7188 (native-inputs
7189 `(("ghc-tasty" ,ghc-tasty)
7190 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7191 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
7192 (home-page "https://github.com/llvm-hs/llvm-hs/")
7193 (synopsis "Pure Haskell LLVM functionality (no FFI)")
7194 (description "llvm-hs-pure is a set of pure Haskell types and functions
7195for interacting with LLVM. It includes an algebraic datatype (ADT) to represent
7196LLVM IR. The llvm-hs package builds on this one with FFI bindings to LLVM, but
7197llvm-hs-pure does not require LLVM to be available.")
7198 (license license:bsd-3)))
7199
e3ee8023
J
7200(define-public ghc-llvm-hs
7201 (package
7202 (name "ghc-llvm-hs")
7203 (version "9.0.1")
7204 (source
7205 (origin
7206 (method url-fetch)
7207 (uri (string-append "https://hackage.haskell.org/package/llvm-hs/llvm-hs-"
7208 version ".tar.gz"))
7209 (sha256
7210 (base32
7211 "0723xgh45h9cyxmmjsvxnsp8bpn1ljy4qgh7a7vqq3sj9d6wzq00"))))
7212 (build-system haskell-build-system)
7213 (inputs
7214 `(("ghc-attoparsec" ,ghc-attoparsec)
7215 ("ghc-exceptions" ,ghc-exceptions)
7216 ("ghc-utf8-string" ,ghc-utf8-string)
7217 ("ghc-llvm-hs-pure" ,ghc-llvm-hs-pure)
7218 ("llvm" ,llvm-9)))
7219 (native-inputs
7220 `(("ghc-tasty" ,ghc-tasty)
7221 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7222 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
7223 ("ghc-quickcheck" ,ghc-quickcheck)
7224 ("ghc-temporary" ,ghc-temporary)
7225 ("ghc-pretty-show" ,ghc-pretty-show)
7226 ("ghc-temporary" ,ghc-temporary)))
7227 (home-page "https://github.com/llvm-hs/llvm-hs/")
7228 (synopsis "General purpose LLVM bindings for Haskell")
7229 (description "llvm-hs is a set of Haskell bindings for LLVM. Unlike other
7230current Haskell bindings, it uses an algebraic datatype (ADT) to represent LLVM
7231IR, and so offers two advantages: it handles almost all of the stateful
7232complexities of using the LLVM API to build IR; and it supports moving IR not
7233only from Haskell into LLVM C++ objects, but the other direction - from LLVM C++
7234into Haskell.")
7235 (license license:bsd-3)))
7236
dddbc90c
RV
7237(define-public ghc-logging-facade
7238 (package
7239 (name "ghc-logging-facade")
7240 (version "0.3.0")
7241 (source (origin
7242 (method url-fetch)
7243 (uri (string-append "https://hackage.haskell.org/package/"
7244 "logging-facade/logging-facade-"
7245 version ".tar.gz"))
7246 (sha256
7247 (base32
7248 "0d0lwxxgd16is9aw6v3ps4r9prv3dj8xscmm45fvzq3nicjiawcf"))))
7249 (build-system haskell-build-system)
7250 (native-inputs
7251 `(("ghc-hspec" ,ghc-hspec)
7252 ("hspec-discover" ,hspec-discover)))
7253 (home-page "https://hackage.haskell.org/package/logging-facade")
7254 (synopsis "Simple logging abstraction that allows multiple back-ends")
7255 (description
7256 "This package provides a simple logging abstraction that allows multiple
7257back-ends.")
7258 (license license:expat)))
7259
7260(define-public ghc-logict
7261 (package
7262 (name "ghc-logict")
79d9326f 7263 (version "0.7.0.2")
dddbc90c
RV
7264 (source
7265 (origin
7266 (method url-fetch)
7267 (uri (string-append
7268 "https://hackage.haskell.org/package/logict/logict-"
7269 version
7270 ".tar.gz"))
7271 (sha256
7272 (base32
79d9326f 7273 "1xfgdsxg0lp8m0a2cb83rcxrnnc37asfikay2kydi933anh9ihfc"))))
dddbc90c 7274 (build-system haskell-build-system)
79d9326f
TS
7275 (native-inputs
7276 `(("ghc-tasty" ,ghc-tasty)
7277 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
dddbc90c
RV
7278 (home-page "http://code.haskell.org/~dolio/")
7279 (synopsis "Backtracking logic-programming monad")
7280 (description "This library provides a continuation-based, backtracking,
7281logic programming monad. An adaptation of the two-continuation implementation
7282found in the paper \"Backtracking, Interleaving, and Terminating Monad
7283Transformers\" available @uref{http://okmij.org/ftp/papers/LogicT.pdf,
7284online}.")
7285 (license license:bsd-3)))
7286
7287(define-public ghc-lzma
7288 (package
7289 (name "ghc-lzma")
7290 (version "0.0.0.3")
7291 (source
7292 (origin
7293 (method url-fetch)
7294 (uri (string-append "https://hackage.haskell.org/package/lzma/"
7295 "lzma-" version ".tar.gz"))
7296 (sha256
7297 (base32
7298 "0i416gqi8j55nd1pqbkxvf3f6hn6fjys6gq98lkkxphva71j30xg"))))
7299 (build-system haskell-build-system)
7300 (arguments
7301 '(#:tests? #f ; requires older versions of QuickCheck and tasty.
7302 #:cabal-revision
7303 ("3" "1sify6gnsalyp6dakfzi0mdy5jcz2kcp9jsdsgkmxd40nfzgd44m")))
7304 (native-inputs
7305 `(("ghc-hunit" ,ghc-hunit)
7306 ("ghc-quickcheck" ,ghc-quickcheck)
7307 ("ghc-tasty" ,ghc-tasty)
7308 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
7309 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
7310 (home-page "https://github.com/hvr/lzma")
7311 (synopsis "LZMA/XZ compression and decompression")
7312 (description
7313 "This package provides a pure interface for compressing and
7314decompressing LZMA streams of data represented as lazy @code{ByteString}s. A
7315monadic incremental interface is provided as well.")
7316 (license license:bsd-3)))
7317
7318(define-public ghc-lzma-conduit
7319 (package
7320 (name "ghc-lzma-conduit")
7321 (version "1.2.1")
7322 (source
7323 (origin
7324 (method url-fetch)
7325 (uri (string-append "https://hackage.haskell.org/package/lzma-conduit/"
7326 "lzma-conduit-" version ".tar.gz"))
7327 (sha256
7328 (base32
7329 "0hm72da7xk9l3zxjh274yg444vf405djxqbkf3q3p2qhicmxlmg9"))))
7330 (build-system haskell-build-system)
7331 (inputs
7332 `(("ghc-conduit" ,ghc-conduit)
7333 ("ghc-lzma" ,ghc-lzma)
7334 ("ghc-resourcet" ,ghc-resourcet)))
7335 (native-inputs
7336 `(("ghc-base-compat" ,ghc-base-compat)
7337 ("ghc-test-framework" ,ghc-test-framework)
7338 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
7339 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
7340 ("ghc-hunit" ,ghc-hunit)
7341 ("ghc-quickcheck" ,ghc-quickcheck)))
7342 (home-page "https://github.com/alphaHeavy/lzma-conduit")
7343 (synopsis "Conduit interface for lzma/xz compression")
7344 (description
7345 "This package provides a @code{Conduit} interface for the LZMA
7346compression algorithm used in the @code{.xz} file format.")
7347 (license license:bsd-3)))
7348
e405912c
KM
7349(define-public ghc-magic
7350 (package
7351 (name "ghc-magic")
7352 (version "1.1")
7353 (source
7354 (origin
7355 (method url-fetch)
7356 (uri (string-append
7357 "https://hackage.haskell.org/package/magic/magic-"
7358 version ".tar.gz"))
7359 (sha256
7360 (base32
7361 "10p0gjjjwr1dda7hahwrwn5njbfhl67arq3v3nf1jr3vymlkn75j"))))
7362 (build-system haskell-build-system)
3ef91e15 7363 (home-page "https://hackage.haskell.org/package/magic")
e405912c
KM
7364 (synopsis "Interface to C file/magic library")
7365 (description
7366 "This package provides a full-featured binding to the C libmagic library.
7367With it, you can determine the type of a file by examining its contents rather
7368than its name.")
7369 (license license:bsd-3)))
7370
bcfe9dba
JS
7371(define-public ghc-managed
7372 (package
7373 (name "ghc-managed")
7374 (version "1.0.6")
7375 (source
7376 (origin
7377 (method url-fetch)
7378 (uri (string-append
7379 "mirror://hackage/package/managed/managed-"
7380 version
7381 ".tar.gz"))
7382 (sha256
7383 (base32
7384 "1kbrw99yh5x5blykmx2n88mplbbi4ss1ij5j17b7asw6q0ihm9zi"))))
7385 (build-system haskell-build-system)
7386 (home-page "http://hackage.haskell.org/package/managed")
7387 (synopsis "Monad for managed values")
7388 (description
7389 "In Haskell you very often acquire values using the with... idiom using
7390functions of type (a -> IO r) -> IO r. This idiom forms a Monad, which is a
7391special case of the ContT monad (from transformers) or the Codensity
7392monad (from kan-extensions). The main purpose behind this package is to
7393provide a restricted form of these monads specialized to this unusually common
7394case.
7395
7396The reason this package defines a specialized version of these types
7397is to:
7398
7399@itemize
7400@item be more beginner-friendly,
7401@item simplify inferred types and error messages, and:
7402@item provide some additional type class instances that would otherwise be
7403orphan instances
7404@end itemize")
7405 (license license:bsd-3)))
7406
dddbc90c
RV
7407(define-public ghc-markdown-unlit
7408 (package
7409 (name "ghc-markdown-unlit")
7410 (version "0.5.0")
7411 (source (origin
7412 (method url-fetch)
7413 (uri (string-append
7414 "mirror://hackage/package/markdown-unlit/"
7415 "markdown-unlit-" version ".tar.gz"))
7416 (sha256
7417 (base32
7418 "1gy79vr85vcp13rdjh0hz7zv6daqqffww4j0cqn2lpjjh9xhsbg7"))))
7419 (build-system haskell-build-system)
7420 (inputs
7421 `(("ghc-base-compat" ,ghc-base-compat)
7422 ("ghc-hspec" ,ghc-hspec)
7423 ("ghc-quickcheck" ,ghc-quickcheck)
7424 ("ghc-silently" ,ghc-silently)
7425 ("ghc-stringbuilder" ,ghc-stringbuilder)
7426 ("ghc-temporary" ,ghc-temporary)
7427 ("hspec-discover" ,hspec-discover)))
7428 (home-page "https://github.com/sol/markdown-unlit#readme")
7429 (synopsis "Literate Haskell support for Markdown")
7430 (description "This package allows you to have a README.md that at the
7431same time is a literate Haskell program.")
7432 (license license:expat)))
7433
7434(define-public ghc-math-functions
7435 (package
7436 (name "ghc-math-functions")
b45de2bf 7437 (version "0.3.3.0")
dddbc90c
RV
7438 (source
7439 (origin
7440 (method url-fetch)
7441 (uri (string-append "https://hackage.haskell.org/package/"
7442 "math-functions-" version "/"
7443 "math-functions-" version ".tar.gz"))
7444 (sha256
7445 (base32
b45de2bf 7446 "1s5nbs40sc3r4z08n0j8bw40cy0zkp03fjjn3p27zkd4fvm9kib3"))))
dddbc90c
RV
7447 (build-system haskell-build-system)
7448 (arguments `(#:tests? #f)) ; FIXME: 1 test fails.
7449 (inputs
b45de2bf
TS
7450 `(("ghc-data-default-class" ,ghc-data-default-class)
7451 ("ghc-vector" ,ghc-vector)
dddbc90c
RV
7452 ("ghc-vector-th-unbox" ,ghc-vector-th-unbox)))
7453 (native-inputs
7454 `(("ghc-hunit" ,ghc-hunit)
7455 ("ghc-quickcheck" ,ghc-quickcheck)
7456 ("ghc-erf" ,ghc-erf)
7457 ("ghc-test-framework" ,ghc-test-framework)
7458 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
7459 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
7460 (home-page "https://github.com/bos/math-functions")
7461 (synopsis "Special functions and Chebyshev polynomials for Haskell")
7462 (description "This Haskell library provides implementations of
7463special mathematical functions and Chebyshev polynomials. These
7464functions are often useful in statistical and numerical computing.")
7465 (license license:bsd-3)))
7466
7467(define-public ghc-megaparsec
7468 (package
7469 (name "ghc-megaparsec")
03b0c92e 7470 (version "7.0.5")
dddbc90c
RV
7471 (source
7472 (origin
7473 (method url-fetch)
7474 (uri (string-append "https://hackage.haskell.org/package/"
7475 "megaparsec/megaparsec-"
7476 version ".tar.gz"))
7477 (sha256
7478 (base32
03b0c92e 7479 "0bqx1icbmk8s7wmbcdzsgnlh607c7kzg8l80cp02dxr5valjxp7j"))))
dddbc90c 7480 (build-system haskell-build-system)
dddbc90c
RV
7481 (inputs
7482 `(("ghc-case-insensitive" ,ghc-case-insensitive)
7483 ("ghc-parser-combinators" ,ghc-parser-combinators)
7484 ("ghc-scientific" ,ghc-scientific)))
7485 (native-inputs
7486 `(("ghc-quickcheck" ,ghc-quickcheck)
7487 ("ghc-hspec" ,ghc-hspec)
7488 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
7489 ("hspec-discover" ,hspec-discover)))
7490 (home-page "https://github.com/mrkkrp/megaparsec")
7491 (synopsis "Monadic parser combinators")
7492 (description
7493 "This is an industrial-strength monadic parser combinator library.
7494Megaparsec is a feature-rich package that strikes a nice balance between
7495speed, flexibility, and quality of parse errors.")
7496 (license license:bsd-2)))
7497
7498(define-public ghc-memory
7499 (package
7500 (name "ghc-memory")
d2c7d336 7501 (version "0.14.18")
dddbc90c
RV
7502 (source (origin
7503 (method url-fetch)
7504 (uri (string-append "https://hackage.haskell.org/package/"
7505 "memory/memory-" version ".tar.gz"))
7506 (sha256
7507 (base32
d2c7d336 7508 "01rmq3vagxzjmm96qnfxk4f0516cn12bp5m8inn8h5r918bqsigm"))))
dddbc90c
RV
7509 (build-system haskell-build-system)
7510 (inputs
7511 `(("ghc-basement" ,ghc-basement)
7512 ("ghc-foundation" ,ghc-foundation)))
7513 (native-inputs
7514 `(("ghc-tasty" ,ghc-tasty)
7515 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
7516 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
7517 (home-page "https://github.com/vincenthz/hs-memory")
7518 (synopsis "Memory abstractions for Haskell")
7519 (description
7520 "This package provides memory abstractions, such as chunk of memory,
7521polymorphic byte array management and manipulation functions. It contains a
7522polymorphic byte array abstraction and functions similar to strict ByteString,
7523different type of byte array abstraction, raw memory IO operations (memory
7524set, memory copy, ..) and more")
7525 (license license:bsd-3)))
7526
7527(define-public ghc-memotrie
7528 (package
7529 (name "ghc-memotrie")
7530 (version "0.6.9")
7531 (source
7532 (origin
7533 (method url-fetch)
7534 (uri (string-append
7535 "https://hackage.haskell.org/package/MemoTrie/MemoTrie-"
7536 version
7537 ".tar.gz"))
7538 (sha256
7539 (base32
7540 "157p0pi6rrq74a35mq6zkkycv4ah7xhkbrcmnkb9xf7pznw4aq0x"))))
7541 (build-system haskell-build-system)
7542 (inputs
7543 `(("ghc-newtype-generics" ,ghc-newtype-generics)))
7544 (home-page "https://github.com/conal/MemoTrie")
7545 (synopsis "Trie-based memo functions")
7546 (description "This package provides a functional library for creating
7547efficient memo functions using tries.")
7548 (license license:bsd-3)))
7549
7550(define-public ghc-microlens
7551 (package
7552 (name "ghc-microlens")
82478c58 7553 (version "0.4.10")
dddbc90c
RV
7554 (source
7555 (origin
7556 (method url-fetch)
7557 (uri (string-append "https://hackage.haskell.org/package/"
7558 "microlens-" version "/"
7559 "microlens-" version ".tar.gz"))
7560 (sha256
7561 (base32
82478c58 7562 "1v277yyy4p9q57xr2lfp6qs24agglfczmcabrapxrzci3jfshmcw"))))
dddbc90c
RV
7563 (build-system haskell-build-system)
7564 (home-page
7565 "https://github.com/aelve/microlens")
7566 (synopsis "Provides a tiny lens Haskell library with no dependencies")
7567 (description "This Haskell package provides a lens library, just like
7568@code{ghc-lens}, but smaller. It provides essential lenses and
7569traversals (like @code{_1} and @code{_Just}), as well as ones which are simply
7570nice to have (like @code{each}, @code{at}, and @code{ix}), and some
7571combinators (like @code{failing} and @code{singular}), but everything else is
7572stripped. As the result, this package has no dependencies.")
7573 (license license:bsd-3)))
7574
1cd3333e
TS
7575(define-public ghc-microlens-aeson
7576 (package
7577 (name "ghc-microlens-aeson")
7578 (version "2.3.0.4")
7579 (source
7580 (origin
7581 (method url-fetch)
7582 (uri (string-append "https://hackage.haskell.org/package/"
7583 "microlens-aeson/microlens-aeson-"
7584 version ".tar.gz"))
b4a00fec 7585 (patches (search-patches "ghc-microlens-aeson-fix-tests.patch"))
1cd3333e
TS
7586 (sha256
7587 (base32
7588 "0w630kk5bnily1qh41081gqgbwmslrh5ad21899gwnb2r3jripyw"))))
7589 (build-system haskell-build-system)
7590 (inputs
7591 `(("ghc-aeson" ,ghc-aeson)
7592 ("ghc-attoparsec" ,ghc-attoparsec)
7593 ("ghc-hashable" ,ghc-hashable)
7594 ("ghc-microlens" ,ghc-microlens)
7595 ("ghc-scientific" ,ghc-scientific)
7596 ("ghc-unordered-containers" ,ghc-unordered-containers)
7597 ("ghc-vector" ,ghc-vector)))
7598 (native-inputs
7599 `(("ghc-tasty" ,ghc-tasty)
7600 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
7601 (home-page "https://github.com/fosskers/microlens-aeson")
7602 (synopsis "Law-abiding lenses for Aeson, using microlens")
7603 (description "This library provides law-abiding lenses for Aeson, using
7604microlens.")
7605 (license license:expat)))
7606
dddbc90c
RV
7607(define-public ghc-microlens-ghc
7608 (package
7609 (name "ghc-microlens-ghc")
027beb55 7610 (version "0.4.10")
dddbc90c
RV
7611 (source
7612 (origin
7613 (method url-fetch)
7614 (uri (string-append
7615 "https://hackage.haskell.org/package/microlens-ghc/microlens-ghc-"
7616 version
7617 ".tar.gz"))
7618 (sha256
7619 (base32
027beb55 7620 "102dbrdsdadxbbhvx8avv1wbk84767a7lkb8ckp3zxk9g7qlly33"))))
dddbc90c
RV
7621 (build-system haskell-build-system)
7622 (inputs `(("ghc-microlens" ,ghc-microlens)))
7623 (home-page "https://github.com/monadfix/microlens")
7624 (synopsis "Use @code{microlens} with GHC libraries like @code{array}")
7625 (description "This library provides everything that @code{microlens}
7626provides plus instances to make @code{each}, @code{at}, and @code{ix}
7627usable with arrays, @code{ByteString}, and containers. This package is
7628a part of the @uref{http://hackage.haskell.org/package/microlens,
7629microlens} family; see the readme
7630@uref{https://github.com/aelve/microlens#readme, on Github}.")
7631 (license license:bsd-3)))
7632
7633(define-public ghc-microlens-mtl
7634 (package
7635 (name "ghc-microlens-mtl")
7636 (version "0.1.11.1")
7637 (source
7638 (origin
7639 (method url-fetch)
7640 (uri (string-append
7641 "https://hackage.haskell.org/package/microlens-mtl/microlens-mtl-"
7642 version
7643 ".tar.gz"))
7644 (sha256
7645 (base32
7646 "0l6z1gkzwcpv89bxf5vgfrjb6gq2pj7sjjc53nvi5b9alx34zryk"))))
7647 (build-system haskell-build-system)
7648 (inputs
7649 `(("ghc-microlens" ,ghc-microlens)
7650 ("ghc-transformers-compat" ,ghc-transformers-compat)))
7651 (home-page "https://github.com/monadfix/microlens")
7652 (synopsis
7653 "@code{microlens} support for Reader/Writer/State from mtl")
7654 (description
7655 "This package contains functions (like @code{view} or @code{+=}) which
7656work on @code{MonadReader}, @code{MonadWriter}, and @code{MonadState} from the
7657mtl package. This package is a part of the
7658@uref{http://hackage.haskell.org/package/microlens, microlens} family; see the
7659readme @uref{https://github.com/aelve/microlens#readme, on Github}.")
7660 (license license:bsd-3)))
7661
7662(define-public ghc-microlens-platform
7663 (package
7664 (name "ghc-microlens-platform")
85decc1f 7665 (version "0.3.11")
dddbc90c
RV
7666 (source
7667 (origin
7668 (method url-fetch)
7669 (uri (string-append
7670 "https://hackage.haskell.org/package/"
7671 "microlens-platform/microlens-platform-" version ".tar.gz"))
7672 (sha256
7673 (base32
85decc1f 7674 "18950lxgmsg5ksvyyi3zs1smjmb1qf1q73a3p3g44bh21miz0xwb"))))
dddbc90c
RV
7675 (build-system haskell-build-system)
7676 (inputs
7677 `(("ghc-hashable" ,ghc-hashable)
7678 ("ghc-microlens" ,ghc-microlens)
7679 ("ghc-microlens-ghc" ,ghc-microlens-ghc)
7680 ("ghc-microlens-mtl" ,ghc-microlens-mtl)
7681 ("ghc-microlens-th" ,ghc-microlens-th)
7682 ("ghc-unordered-containers" ,ghc-unordered-containers)
7683 ("ghc-vector" ,ghc-vector)))
7684 (home-page "https://github.com/monadfix/microlens")
7685 (synopsis "Feature-complete microlens")
7686 (description
7687 "This package exports a module which is the recommended starting point
7688for using @uref{http://hackage.haskell.org/package/microlens, microlens} if
7689you aren't trying to keep your dependencies minimal. By importing
7690@code{Lens.Micro.Platform} you get all functions and instances from
7691@uref{http://hackage.haskell.org/package/microlens, microlens},
7692@uref{http://hackage.haskell.org/package/microlens-th, microlens-th},
7693@uref{http://hackage.haskell.org/package/microlens-mtl, microlens-mtl},
7694@uref{http://hackage.haskell.org/package/microlens-ghc, microlens-ghc}, as
7695well as instances for @code{Vector}, @code{Text}, and @code{HashMap}. The
7696minor and major versions of @code{microlens-platform} are incremented whenever
7697the minor and major versions of any other @code{microlens} package are
7698incremented, so you can depend on the exact version of
7699@code{microlens-platform} without specifying the version of @code{microlens}
7700you need. This package is a part of the
7701@uref{http://hackage.haskell.org/package/microlens, microlens} family; see the
7702readme @uref{https://github.com/aelve/microlens#readme, on Github}.")
7703 (license license:bsd-3)))
7704
7705(define-public ghc-microlens-th
7706 (package
7707 (name "ghc-microlens-th")
7ae52867 7708 (version "0.4.2.3")
dddbc90c
RV
7709 (source
7710 (origin
7711 (method url-fetch)
7712 (uri (string-append "https://hackage.haskell.org/package/"
7713 "microlens-th-" version "/"
7714 "microlens-th-" version ".tar.gz"))
7715 (sha256
7716 (base32
7ae52867 7717 "13qw0pwcgd6f6i39rwgqwcwk1d4da5x7wv3gna7gdlxaq331h41j"))))
dddbc90c 7718 (build-system haskell-build-system)
7ae52867
TS
7719 (arguments
7720 `(#:cabal-revision
7721 ("1" "167in7b1qhgrspx81bdm2jyg9qji66sk7id282c0s99kmp0d01n6")))
dddbc90c
RV
7722 (inputs `(("ghc-microlens" ,ghc-microlens)
7723 ("ghc-th-abstraction" ,ghc-th-abstraction)))
7724 (home-page
7725 "https://github.com/aelve/microlens")
7726 (synopsis "Automatic generation of record lenses for
7727@code{ghc-microlens}")
7728 (description "This Haskell package lets you automatically generate lenses
7729for data types; code was extracted from the lens package, and therefore
7730generated lenses are fully compatible with ones generated by lens (and can be
7731used both from lens and microlens).")
7732 (license license:bsd-3)))
7733
7734(define-public ghc-missingh
7735 (package
7736 (name "ghc-missingh")
641207cb 7737 (version "1.4.1.0")
dddbc90c
RV
7738 (source
7739 (origin
7740 (method url-fetch)
7741 (uri (string-append "https://hackage.haskell.org/package/MissingH/"
7742 "MissingH-" version ".tar.gz"))
7743 (sha256
7744 (base32
641207cb 7745 "1jp0vk6w9a7fzrbxfhx773105jp2s1n50klq9ak6spfl7bgx5v29"))))
dddbc90c
RV
7746 (build-system haskell-build-system)
7747 ;; Tests require the unmaintained testpack package, which depends on the
7748 ;; outdated QuickCheck version 2.7, which can no longer be built with
7749 ;; recent versions of GHC and Haskell libraries.
7750 (arguments '(#:tests? #f))
7751 (inputs
7752 `(("ghc-network" ,ghc-network)
7753 ("ghc-hunit" ,ghc-hunit)
7754 ("ghc-regex-compat" ,ghc-regex-compat)
7755 ("ghc-hslogger" ,ghc-hslogger)
7756 ("ghc-random" ,ghc-random)
7757 ("ghc-old-time" ,ghc-old-time)
7758 ("ghc-old-locale" ,ghc-old-locale)))
7759 (native-inputs
7760 `(("ghc-errorcall-eq-instance" ,ghc-errorcall-eq-instance)
7761 ("ghc-quickcheck" ,ghc-quickcheck)
7762 ("ghc-hunit" ,ghc-hunit)))
f1841ccf
TGR
7763 ;; ‘Official’ <http://software.complete.org/missingh> redirects to a 404.
7764 (home-page "https://github.com/haskell-hvr/missingh")
dddbc90c
RV
7765 (synopsis "Large utility library")
7766 (description
7767 "MissingH is a library of all sorts of utility functions for Haskell
7768programmers. It is written in pure Haskell and thus should be extremely
7769portable and easy to use.")
7770 (license license:bsd-3)))
7771
7772(define-public ghc-mmap
7773 (package
7774 (name "ghc-mmap")
7775 (version "0.5.9")
7776 (source (origin
7777 (method url-fetch)
7778 (uri (string-append "https://hackage.haskell.org/package/"
7779 "mmap/mmap-" version ".tar.gz"))
7780 (sha256
7781 (base32
7782 "1y5mk3yf4b8r6rzmlx1xqn4skaigrqnv08sqq0v7r3nbw42bpz2q"))))
7783 (build-system haskell-build-system)
7784 (home-page "https://hackage.haskell.org/package/mmap")
7785 (synopsis "Memory mapped files for Haskell")
7786 (description
7787 "This library provides a wrapper to @code{mmap}, allowing files or
7788devices to be lazily loaded into memory as strict or lazy @code{ByteStrings},
7789@code{ForeignPtrs} or plain @code{Ptrs}, using the virtual memory subsystem to
7790do on-demand loading.")
7791 (license license:bsd-3)))
7792
7793(define-public ghc-mmorph
7794 (package
7795 (name "ghc-mmorph")
e0389704 7796 (version "1.1.3")
dddbc90c
RV
7797 (source
7798 (origin
7799 (method url-fetch)
7800 (uri (string-append
7801 "https://hackage.haskell.org/package/mmorph/mmorph-"
7802 version
7803 ".tar.gz"))
7804 (sha256
7805 (base32
e0389704 7806 "0rfsy9n9mlinpmqi2s17fhc67fzma2ig5fbmh6m5m830canzf8vr"))))
dddbc90c
RV
7807 (build-system haskell-build-system)
7808 (inputs
7809 `(("ghc-transformers-compat" ,ghc-transformers-compat)))
7810 (home-page "https://hackage.haskell.org/package/mmorph")
7811 (synopsis "Monad morphisms")
7812 (description
7813 "This library provides monad morphism utilities, most commonly used for
7814manipulating monad transformer stacks.")
7815 (license license:bsd-3)))
7816
7817(define-public ghc-mockery
7818 (package
7819 (name "ghc-mockery")
7820 (version "0.3.5")
7821 (source (origin
7822 (method url-fetch)
7823 (uri (string-append "https://hackage.haskell.org/package/"
7824 "mockery/mockery-" version ".tar.gz"))
7825 (sha256
7826 (base32
7827 "09ypgm3z69gq8mj6y66ss58kbjnk15r8frwcwbqcfbfksfnfv8dp"))))
7828 (build-system haskell-build-system)
7829 (inputs
7830 `(("ghc-temporary" ,ghc-temporary)
7831 ("ghc-logging-facade" ,ghc-logging-facade)
7832 ("ghc-base-compat" ,ghc-base-compat)))
7833 (native-inputs
7834 `(("ghc-hspec" ,ghc-hspec)
7835 ("hspec-discover" ,hspec-discover)))
7836 (home-page "https://hackage.haskell.org/package/mockery")
7837 (synopsis "Support functions for automated testing")
7838 (description
7839 "The mockery package provides support functions for automated testing.")
7840 (license license:expat)))
7841
7842(define-public ghc-monad-control
7843 (package
7844 (name "ghc-monad-control")
7845 (version "1.0.2.3")
7846 (source
7847 (origin
7848 (method url-fetch)
7849 (uri (string-append
7850 "https://hackage.haskell.org/package/monad-control"
7851 "/monad-control-" version ".tar.gz"))
7852 (sha256
7853 (base32
7854 "1c92833gr6cadidjdp8mlznkpp8lyxl0w3y7d19y8yi3klc3843c"))))
7855 (build-system haskell-build-system)
7856 (inputs
7857 `(("ghc-transformers-base" ,ghc-transformers-base)
7858 ("ghc-transformers-compat" ,ghc-transformers-compat)))
7859 (home-page "https://github.com/basvandijk/monad-control")
7860 (synopsis "Monad transformers to lift control operations like exception
7861catching")
7862 (description "This package defines the type class @code{MonadBaseControl},
7863a subset of @code{MonadBase} into which generic control operations such as
7864@code{catch} can be lifted from @code{IO} or any other base monad.")
7865 (license license:bsd-3)))
7866
7867(define-public ghc-monad-logger
7868 (package
7869 (name "ghc-monad-logger")
26980aae 7870 (version "0.3.30")
dddbc90c
RV
7871 (source
7872 (origin
7873 (method url-fetch)
7874 (uri (string-append "https://hackage.haskell.org/package/"
7875 "monad-logger-" version "/"
7876 "monad-logger-" version ".tar.gz"))
7877 (sha256
7878 (base32
26980aae 7879 "102l0v75hbvkmrypiyg4ybb6rbc7nij5nxs1aihmqfdpg04rkkp7"))))
dddbc90c
RV
7880 (build-system haskell-build-system)
7881 (inputs `(("ghc-transformers-compat" ,ghc-transformers-compat)
7882 ("ghc-stm-chans" ,ghc-stm-chans)
7883 ("ghc-lifted-base" ,ghc-lifted-base)
7884 ("ghc-resourcet" ,ghc-resourcet)
7885 ("ghc-conduit" ,ghc-conduit)
7886 ("ghc-conduit-extra" ,ghc-conduit-extra)
7887 ("ghc-fast-logger" ,ghc-fast-logger)
7888 ("ghc-transformers-base" ,ghc-transformers-base)
7889 ("ghc-monad-control" ,ghc-monad-control)
7890 ("ghc-monad-loops" ,ghc-monad-loops)
7891 ("ghc-blaze-builder" ,ghc-blaze-builder)
7892 ("ghc-exceptions" ,ghc-exceptions)))
7893 (home-page "https://github.com/kazu-yamamoto/logger")
7894 (synopsis "Provides a class of monads which can log messages for Haskell")
7895 (description "This Haskell package uses a monad transformer approach
7896for logging.
7897
7898This package provides Template Haskell functions for determining source
7899code locations of messages.")
7900 (license license:expat)))
7901
7902(define-public ghc-monad-loops
7903 (package
7904 (name "ghc-monad-loops")
7905 (version "0.4.3")
7906 (source
7907 (origin
7908 (method url-fetch)
7909 (uri (string-append "https://hackage.haskell.org/package/"
7910 "monad-loops-" version "/"
7911 "monad-loops-" version ".tar.gz"))
7912 (sha256
7913 (base32
7914 "062c2sn3hc8h50p1mhqkpyv6x8dydz2zh3ridvlfjq9nqimszaky"))))
7915 (build-system haskell-build-system)
7916 (native-inputs `(("ghc-tasty" ,ghc-tasty)
7917 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
7918 (home-page "https://github.com/mokus0/monad-loops")
7919 (synopsis "Monadic loops for Haskell")
7920 (description "This Haskell package provides some useful control
7921operators for looping.")
7922 (license license:public-domain)))
7923
7924(define-public ghc-monad-par
7925 (package
7926 (name "ghc-monad-par")
7927 (version "0.3.4.8")
7928 (source
7929 (origin
7930 (method url-fetch)
7931 (uri (string-append "https://hackage.haskell.org/package/"
7932 "monad-par-" version "/"
7933 "monad-par-" version ".tar.gz"))
faac56f3 7934 (patches (search-patches "ghc-monad-par-fix-tests.patch"))
dddbc90c
RV
7935 (sha256
7936 (base32
7937 "0ldrzqy24fsszvn2a2nr77m2ih7xm0h9bgkjyv1l274aj18xyk7q"))))
7938 (build-system haskell-build-system)
7939 (inputs `(("ghc-abstract-par" ,ghc-abstract-par)
7940 ("ghc-abstract-deque" ,ghc-abstract-deque)
7941 ("ghc-monad-par-extras" ,ghc-monad-par-extras)
7942 ("ghc-mwc-random" ,ghc-mwc-random)
7943 ("ghc-parallel" ,ghc-parallel)))
7944 (native-inputs `(("ghc-quickcheck" ,ghc-quickcheck)
7945 ("ghc-hunit" ,ghc-hunit)
7946 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
7947 ("ghc-test-framework-quickcheck2"
7948 ,ghc-test-framework-quickcheck2)
7949 ("ghc-test-framework" ,ghc-test-framework)
7950 ("ghc-test-framework-th" ,ghc-test-framework-th)))
7951 (home-page "https://github.com/simonmar/monad-par")
7952 (synopsis "Haskell library for parallel programming based on a monad")
7953 (description "The @code{Par} monad offers an API for parallel
7954programming. The library works for parallelising both pure and @code{IO}
7955computations, although only the pure version is deterministic. The default
7956implementation provides a work-stealing scheduler and supports forking tasks
7957that are much lighter weight than IO-threads.")
7958 (license license:bsd-3)))
7959
7960(define-public ghc-monad-par-extras
7961 (package
7962 (name "ghc-monad-par-extras")
7963 (version "0.3.3")
7964 (source
7965 (origin
7966 (method url-fetch)
7967 (uri (string-append "https://hackage.haskell.org/package/"
7968 "monad-par-extras-" version "/"
7969 "monad-par-extras-" version ".tar.gz"))
7970 (sha256
7971 (base32
7972 "0bl4bd6jzdc5zm20q1g67ppkfh6j6yn8fwj6msjayj621cck67p2"))))
7973 (build-system haskell-build-system)
7974 (inputs `(("ghc-abstract-par" ,ghc-abstract-par)
7975 ("ghc-cereal" ,ghc-cereal)
7976 ("ghc-random" ,ghc-random)))
7977 (home-page "https://github.com/simonmar/monad-par")
7978 (synopsis "Combinators and extra features for Par monads for Haskell")
7979 (description "This Haskell package provides additional data structures,
7980and other added capabilities layered on top of the @code{Par} monad.")
7981 (license license:bsd-3)))
7982
dddbc90c
RV
7983(define-public ghc-monadrandom
7984 (package
7985 (name "ghc-monadrandom")
7986 (version "0.5.1.1")
7987 (source
7988 (origin
7989 (method url-fetch)
7990 (uri (string-append "https://hackage.haskell.org/package/"
7991 "MonadRandom-" version "/"
7992 "MonadRandom-" version ".tar.gz"))
7993 (sha256
7994 (base32
7995 "0w44jl1n3kqvqaflh82l1wj3xxbhzfs3kf4m8rk7w6fgg8llmnmb"))))
7996 (build-system haskell-build-system)
7997 (inputs `(("ghc-transformers-compat" ,ghc-transformers-compat)
7998 ("ghc-primitive" ,ghc-primitive)
7999 ("ghc-fail" ,ghc-fail)
8000 ("ghc-random" ,ghc-random)))
8001 (home-page "https://github.com/byorgey/MonadRandom")
8002 (synopsis "Random-number generation monad for Haskell")
8003 (description "This Haskell package provides support for computations
8004which consume random values.")
8005 (license license:bsd-3)))
8006
8007(define-public ghc-monads-tf
8008 (package
8009 (name "ghc-monads-tf")
8010 (version "0.1.0.3")
8011 (source
8012 (origin
8013 (method url-fetch)
8014 (uri (string-append
8015 "https://hackage.haskell.org/package/monads-tf/monads-tf-"
8016 version ".tar.gz"))
8017 (sha256
8018 (base32
8019 "1wdhskwa6dw8qljbvwpyxj8ca6y95q2np7z4y4q6bpf4anmd5794"))))
8020 (build-system haskell-build-system)
8021 (home-page "https://hackage.haskell.org/package/monads-tf")
8022 (synopsis "Monad classes, using type families")
8023 (description
8024 "Monad classes using type families, with instances for various monad transformers,
8025inspired by the paper 'Functional Programming with Overloading and Higher-Order
8026Polymorphism', by Mark P Jones. This package is almost a compatible replacement for
8027the @code{mtl-tf} package.")
8028 (license license:bsd-3)))
8029
8030(define-public ghc-mono-traversable
8031 (package
8032 (name "ghc-mono-traversable")
23bb445b 8033 (version "1.0.13.0")
dddbc90c
RV
8034 (source
8035 (origin
8036 (method url-fetch)
8037 (uri (string-append "https://hackage.haskell.org/package/"
8038 "mono-traversable-" version "/"
8039 "mono-traversable-" version ".tar.gz"))
8040 (sha256
8041 (base32
23bb445b 8042 "1bqy982lpdb83lacfy76n8kqw5bvd31avxj25kg8gkgycdh0g0ma"))))
dddbc90c 8043 (build-system haskell-build-system)
3e6ecfeb 8044 (outputs '("out" "static" "doc"))
dddbc90c
RV
8045 (inputs `(("ghc-unordered-containers" ,ghc-unordered-containers)
8046 ("ghc-hashable" ,ghc-hashable)
8047 ("ghc-vector" ,ghc-vector)
8048 ("ghc-vector-algorithms" ,ghc-vector-algorithms)
8049 ("ghc-split" ,ghc-split)))
8050 (native-inputs `(("ghc-hspec" ,ghc-hspec)
8051 ("ghc-hunit" ,ghc-hunit)
8052 ("ghc-quickcheck" ,ghc-quickcheck)
8053 ("ghc-semigroups" ,ghc-semigroups)
8054 ("ghc-foldl" ,ghc-foldl)))
8055 (home-page "https://github.com/snoyberg/mono-traversable")
8056 (synopsis "Haskell classes for mapping, folding, and traversing monomorphic
8057containers")
8058 (description "This Haskell package provides Monomorphic variants of the
8059Functor, Foldable, and Traversable typeclasses. If you understand Haskell's
8060basic typeclasses, you understand mono-traversable. In addition to what
8061you are used to, it adds on an IsSequence typeclass and has code for marking
8062data structures as non-empty.")
8063 (license license:expat)))
8064
471e77cf
TS
8065(define-public ghc-monoid-extras
8066 (package
8067 (name "ghc-monoid-extras")
8068 (version "0.5.1")
8069 (source
8070 (origin
8071 (method url-fetch)
8072 (uri (string-append "https://hackage.haskell.org/package/"
8073 "monoid-extras/monoid-extras-" version ".tar.gz"))
8074 (sha256
8075 (base32
8076 "0xfrkgqn9d31z54l617m3w3kkd5m9vjb4yl247r3zzql3mpb1f37"))))
8077 (build-system haskell-build-system)
8078 (inputs
8079 `(("ghc-groups" ,ghc-groups)
8080 ("ghc-semigroups" ,ghc-semigroups)
8081 ("ghc-semigroupoids" ,ghc-semigroupoids)))
8082 (arguments
8083 `(#:cabal-revision
8084 ("1" "0b8x5d6vh7mpigvjvcd8f38a1nyzn1vfdqypslw7z9fgsr742913")))
8085 (home-page "https://hackage.haskell.org/package/monoid-extras")
8086 (synopsis "Various extra monoid-related definitions and utilities")
8087 (description "This package provides various extra monoid-related
8088definitions and utilities, such as monoid actions, monoid coproducts,
8089semi-direct products, \"deletable\" monoids, \"split\" monoids, and
8090\"cut\" monoids.")
8091 (license license:bsd-3)))
8092
4759b617
JS
8093(define-public ghc-mtl-compat
8094 (package
8095 (name "ghc-mtl-compat")
8096 (version "0.2.2")
8097 (source
8098 (origin
8099 (method url-fetch)
8100 (uri (string-append
8101 "mirror://hackage/package/mtl-compat/mtl-compat-"
8102 version
8103 ".tar.gz"))
8104 (sha256
8105 (base32
8106 "17iszr5yb4f17g8mq6i74hsamii8z6m2qfsmgzs78mhiwa7kjm8r"))))
8107 (build-system haskell-build-system)
8108 (home-page
8109 "https://github.com/haskell-compat/mtl-compat")
8110 (synopsis
8111 "Backported Control.Monad.Except module from mtl")
8112 (description
8113 "This package backports the Control.Monad.Except module from mtl (if
8114using mtl-2.2.0.1 or earlier), which reexports the ExceptT monad transformer
8115and the MonadError class.
8116
8117This package should only be used if there is a need to use the
8118Control.Monad.Except module specifically. If you just want the mtl class
8119instances for ExceptT, use transformers-compat instead, since mtl-compat does
8120nothing but reexport the instances from that package.
8121
8122Note that unlike how mtl-2.2 or later works, the Control.Monad.Except
8123module defined in this package exports all of ExceptT's monad class instances.
8124Therefore, you may have to declare @code{import Control.Monad.Except ()} at
8125the top of your file to get all of the ExceptT instances in scope.")
8126 (license license:bsd-3)))
8127
dddbc90c
RV
8128(define-public ghc-murmur-hash
8129 (package
8130 (name "ghc-murmur-hash")
8131 (version "0.1.0.9")
8132 (source
8133 (origin
8134 (method url-fetch)
8135 (uri (string-append "https://hackage.haskell.org/package/murmur-hash"
8136 "/murmur-hash-" version ".tar.gz"))
8137 (sha256
8138 (base32 "1bb58kfnzvx3mpc0rc0dhqc1fk36nm8prd6gvf20gk6lxaadpfc9"))))
8139 (build-system haskell-build-system)
8140 (home-page "https://github.com/nominolo/murmur-hash")
8141 (synopsis "MurmurHash2 implementation for Haskell")
8142 (description
8143 "This package provides an implementation of MurmurHash2, a good, fast,
8144general-purpose, non-cryptographic hashing function. See
8145@url{https://sites.google.com/site/murmurhash/} for details. This
8146implementation is pure Haskell, so it might be a bit slower than a C FFI
8147binding.")
8148 (license license:bsd-3)))
8149
8150(define-public ghc-mwc-random
8151 (package
8152 (name "ghc-mwc-random")
33268e2c 8153 (version "0.14.0.0")
dddbc90c
RV
8154 (source
8155 (origin
8156 (method url-fetch)
8157 (uri (string-append "https://hackage.haskell.org/package/"
8158 "mwc-random-" version "/"
8159 "mwc-random-" version ".tar.gz"))
8160 (sha256
8161 (base32
33268e2c 8162 "18pg24sw3b79b32cwx8q01q4k0lm34mwr3l6cdkchl8alvd0wdq0"))))
dddbc90c
RV
8163 (build-system haskell-build-system)
8164 (inputs
8165 `(("ghc-primitive" ,ghc-primitive)
8166 ("ghc-vector" ,ghc-vector)
8167 ("ghc-math-functions" ,ghc-math-functions)))
8168 (arguments
8169 `(#:tests? #f)) ; FIXME: Test-Suite `spec` fails.
8170 (native-inputs
8171 `(("ghc-hunit" ,ghc-hunit)
8172 ("ghc-quickcheck" ,ghc-quickcheck)
8173 ("ghc-test-framework" ,ghc-test-framework)
8174 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
8175 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
8176 (home-page "https://github.com/bos/mwc-random")
8177 (synopsis "Random number generation library for Haskell")
8178 (description "This Haskell package contains code for generating
8179high quality random numbers that follow either a uniform or normal
8180distribution. The generated numbers are suitable for use in
8181statistical applications.
8182
8183The uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222)
8184multiply-with-carry generator, which has a period of 2^{8222} and
8185fares well in tests of randomness. It is also extremely fast,
8186between 2 and 3 times faster than the Mersenne Twister.")
8187 (license license:bsd-3)))
8188
8189(define-public ghc-nats
8190 (package
8191 (name "ghc-nats")
8192 (version "1.1.2")
8193 (source
8194 (origin
8195 (method url-fetch)
8196 (uri (string-append
8197 "https://hackage.haskell.org/package/nats/nats-"
8198 version
8199 ".tar.gz"))
8200 (sha256
8201 (base32
8202 "1v40drmhixck3pz3mdfghamh73l4rp71mzcviipv1y8jhrfxilmr"))))
8203 (build-system haskell-build-system)
8204 (arguments `(#:haddock? #f))
8205 (inputs
8206 `(("ghc-hashable" ,ghc-hashable)))
8207 (home-page "https://hackage.haskell.org/package/nats")
8208 (synopsis "Natural numbers")
8209 (description "This library provides the natural numbers for Haskell.")
8210 (license license:bsd-3)))
8211
8212(define-public ghc-nats-bootstrap
8213 (package
8214 (inherit ghc-nats)
8215 (name "ghc-nats-bootstrap")
8216 (inputs
8217 `(("ghc-hashable" ,ghc-hashable-bootstrap)))
8218 (properties '((hidden? #t)))))
8219
52915062
EF
8220(define-public ghc-ncurses
8221 (package
8222 (name "ghc-ncurses")
8223 (version "0.2.16")
8224 (source
8225 (origin
8226 (method url-fetch)
8227 (uri (string-append
8228 "https://hackage.haskell.org/package/ncurses/ncurses-"
8229 version ".tar.gz"))
8230 (sha256
8231 (base32
8232 "0gsyyaqyh5r9zc0rhwpj5spyd6i4w2vj61h4nihgmmh0yyqvf3z5"))))
8233 (build-system haskell-build-system)
8234 (arguments
54a5fd07
TS
8235 '(#:extra-directories ("ncurses")
8236 #:phases
52915062
EF
8237 (modify-phases %standard-phases
8238 (add-before 'build 'fix-includes
8239 (lambda _
8240 (substitute* '("cbits/hsncurses-shim.h"
8241 "lib/UI/NCurses.chs"
8242 "lib/UI/NCurses/Enums.chs"
8243 "lib/UI/NCurses/Panel.chs")
8244 (("<ncursesw/") "<"))
8245 #t)))
8246 #:cabal-revision
8247 ("1"
8248 "1wfdy716s5p1sqp2gsg43x8wch2dxg0vmbbndlb2h3d8c9jzxnca")))
8249 (inputs `(("ncurses" ,ncurses)))
8250 (native-inputs `(("ghc-c2hs" ,ghc-c2hs)))
8251 (home-page "https://john-millikin.com/software/haskell-ncurses/")
8252 (synopsis "Modernised bindings to GNU ncurses")
8253 (description "GNU ncurses is a library for creating command-line application
8254with pseudo-graphical interfaces. This package is a nice, modern binding to GNU
8255ncurses.")
8256 (license license:gpl3)))
8257
dddbc90c
RV
8258(define-public ghc-network
8259 (package
8260 (name "ghc-network")
d4473202 8261 (version "2.8.0.1")
534d6caa 8262 (outputs '("out" "static" "doc"))
dddbc90c
RV
8263 (source
8264 (origin
8265 (method url-fetch)
8266 (uri (string-append
8267 "https://hackage.haskell.org/package/network/network-"
8268 version
8269 ".tar.gz"))
8270 (sha256
8271 (base32
d4473202 8272 "0im8k51rw3ahmr23ny10pshwbz09jfg0fdpam0hzf2hgxnzmvxb1"))))
dddbc90c
RV
8273 (build-system haskell-build-system)
8274 ;; The regression tests depend on an unpublished module.
8275 (arguments `(#:tests? #f))
8276 (native-inputs
8277 `(("ghc-hunit" ,ghc-hunit)
8278 ("ghc-doctest" ,ghc-doctest)
8279 ("ghc-test-framework" ,ghc-test-framework)
8280 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
8281 (home-page "https://github.com/haskell/network")
8282 (synopsis "Low-level networking interface")
8283 (description
8284 "This package provides a low-level networking interface.")
8285 (license license:bsd-3)))
4780db2c 8286
30eebbe6
TS
8287(define-public ghc-network-bsd
8288 (package
8289 (name "ghc-network-bsd")
8290 (version "2.8.0.0")
8291 (source
8292 (origin
8293 (method url-fetch)
8294 (uri (string-append "https://hackage.haskell.org/package/"
8295 "network-bsd/network-bsd-" version ".tar.gz"))
8296 (sha256
8297 (base32
8298 "0dfbwgrr28y6ypw7p1ppqg7v746qf14569q4xazj4ahdjw2xkpi5"))))
8299 (build-system haskell-build-system)
8300 (inputs
8301 `(("ghc-network" ,ghc-network)))
8302 (home-page "https://github.com/haskell/network-bsd")
8303 (synopsis "POSIX network database (<netdb.h>) API")
8304 (description "This package provides Haskell bindings to the the POSIX
8305network database (<netdb.h>) API.")
8306 (license license:bsd-3)))
8307
096781a1
TS
8308(define-public ghc-network-byte-order
8309 (package
8310 (name "ghc-network-byte-order")
8311 (version "0.1.1.1")
8312 (source
8313 (origin
8314 (method url-fetch)
8315 (uri (string-append "https://hackage.haskell.org/package/"
8316 "network-byte-order/network-byte-order-"
8317 version ".tar.gz"))
8318 (sha256
8319 (base32
8320 "19cs6157amcc925vwr92q1azwwzkbam5g0k70i6qi80fhpikh37c"))))
8321 (build-system haskell-build-system)
8322 (native-inputs
8323 `(("ghc-doctest" ,ghc-doctest)))
3ef91e15 8324 (home-page "https://hackage.haskell.org/package/network-byte-order")
096781a1
TS
8325 (synopsis "Network byte order utilities")
8326 (description "This library provides peek and poke functions for network
8327byte order.")
8328 (license license:bsd-3)))
8329
dddbc90c
RV
8330(define-public ghc-network-info
8331 (package
8332 (name "ghc-network-info")
8333 (version "0.2.0.10")
8334 (source
8335 (origin
8336 (method url-fetch)
8337 (uri (string-append "https://hackage.haskell.org/package/"
8338 "network-info-" version "/"
8339 "network-info-" version ".tar.gz"))
8340 (sha256
8341 (base32
8342 "0anmgzcpnz7nw3n6vq0r25m1s9l2svpwi83wza0lzkrlbnbzd02n"))))
8343 (build-system haskell-build-system)
8344 (home-page "https://github.com/jystic/network-info")
8345 (synopsis "Access the local computer's basic network configuration")
8346 (description "This Haskell library provides simple read-only access to the
8347local computer's networking configuration. It is currently capable of
8348getting a list of all the network interfaces and their respective
8349IPv4, IPv6 and MAC addresses.")
8350 (license license:bsd-3)))
8351
8352(define-public ghc-network-uri
8353 (package
8354 (name "ghc-network-uri")
8355 (version "2.6.1.0")
534d6caa 8356 (outputs '("out" "static" "doc"))
dddbc90c
RV
8357 (source
8358 (origin
8359 (method url-fetch)
8360 (uri (string-append
8361 "https://hackage.haskell.org/package/network-uri/network-uri-"
8362 version
8363 ".tar.gz"))
8364 (sha256
8365 (base32
8366 "1w27zkvn39kjr9lmw9421y8w43h572ycsfafsb7kyvr3a4ihlgj2"))))
8367 (build-system haskell-build-system)
8368 (arguments
8369 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
8370 (inputs
8371 `(("ghc-network" ,ghc-network)))
8372 (native-inputs
8373 `(("ghc-hunit" ,ghc-hunit)))
8374 (home-page
8375 "https://github.com/haskell/network-uri")
8376 (synopsis "Library for URI manipulation")
8377 (description "This package provides an URI manipulation interface. In
8378@code{network-2.6} the @code{Network.URI} module was split off from the
8379@code{network} package into this package.")
8380 (license license:bsd-3)))
8381
8382(define-public ghc-newtype-generics
8383 (package
8384 (name "ghc-newtype-generics")
c07e16dd 8385 (version "0.5.4")
dddbc90c
RV
8386 (source
8387 (origin
8388 (method url-fetch)
8389 (uri (string-append "https://hackage.haskell.org/package/"
8390 "newtype-generics/newtype-generics-"
8391 version ".tar.gz"))
8392 (sha256
8393 (base32
c07e16dd 8394 "0cprfg4n0z62cnix1qrbc79bfdd4s50b05fj9m9hk6vm1pc3szq0"))))
dddbc90c
RV
8395 (build-system haskell-build-system)
8396 (native-inputs
8397 `(("ghc-hspec" ,ghc-hspec)
8398 ("hspec-discover" ,hspec-discover)))
702a1012 8399 (home-page "https://github.com/sjakobi/newtype-generics")
dddbc90c
RV
8400 (synopsis "Typeclass and set of functions for working with newtypes")
8401 (description "The @code{Newtype} typeclass represents the packing and
8402unpacking of a newtype, and allows you to operate under that newtype with
8403functions such as @code{ala}. Generics support was added in version 0.4,
8404making this package a full replacement for the original newtype package,
8405and an alternative to newtype-th.")
8406 (license license:bsd-3)))
8407
6b652f5a
JS
8408(define-public ghc-non-negative
8409 (package
8410 (name "ghc-non-negative")
8411 (version "0.1.2")
8412 (source
8413 (origin
8414 (method url-fetch)
8415 (uri
8416 (string-append
8417 "https://hackage.haskell.org/package/non-negative/non-negative-"
8418 version ".tar.gz"))
8419 (sha256
8420 (base32
8421 "0f01q916dzkl1i0v15qrw9cviycki5g3fgi6x8gs45iwbzssq52n"))))
8422 (build-system haskell-build-system)
8423 (inputs
8424 `(("ghc-semigroups" ,ghc-semigroups)
8425 ("ghc-utility-ht" ,ghc-utility-ht)
8426 ("ghc-quickcheck" ,ghc-quickcheck)))
8427 (home-page "https://hackage.haskell.org/package/non-negative")
8428 (synopsis "Non-negative numbers class")
8429 (description "This library provides a class for non-negative numbers,
8430a wrapper which can turn any ordered numeric type into a member of that
8431class, and a lazy number type for non-negative numbers (a generalization
8432of Peano numbers).")
8433 (license license:gpl3+)))
8434
49bcca84
ASM
8435(define-public ghc-nonce
8436 (package
8437 (name "ghc-nonce")
8438 (version "1.0.7")
8439 (source
8440 (origin
8441 (method url-fetch)
8442 (uri (string-append
8443 "https://hackage.haskell.org/package/nonce/"
8444 "nonce-" version ".tar.gz"))
8445 (sha256
8446 (base32
8447 "1q9ph0aq51mvdvydnriqd12sfin36pfb8f588zgac1ybn8r64ksb"))))
8448 (build-system haskell-build-system)
8449 (inputs
8450 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
8451 ("ghc-entropy" ,ghc-entropy)
8452 ("ghc-unliftio" ,ghc-unliftio)
8453 ("ghc-unliftio-core" ,ghc-unliftio-core)))
8454 (home-page "https://github.com/prowdsponsor/nonce")
8455 (synopsis "Generate cryptographic nonces in Haskell")
8456 (description
8457 "A nonce is an arbitrary number used only once in a cryptographic
8458communication. This package contain helper functions for generating nonces.
8459There are many kinds of nonces used in different situations. It's not
8460guaranteed that by using the nonces from this package you won't have any
8461security issues. Please make sure that the nonces generated via this
8462package are usable on your design.")
8463 (license license:bsd-3)))
8464
194a82e6
TS
8465(define-public ghc-numeric-extras
8466 (package
8467 (name "ghc-numeric-extras")
8468 (version "0.1")
8469 (source
8470 (origin
8471 (method url-fetch)
8472 (uri (string-append "https://hackage.haskell.org/package/"
8473 "numeric-extras/numeric-extras-"
8474 version ".tar.gz"))
8475 (sha256
8476 (base32
8477 "1mk11c0gz1yjy5b8dvq6czfny57pln0bs7x28fz38qyr44872067"))))
8478 (build-system haskell-build-system)
8479 (home-page "https://github.com/ekmett/numeric-extras")
8480 (synopsis "Useful tools from the C standard library")
8481 (description "This library provides some useful tools from the C
8482standard library.")
8483 (license license:bsd-3)))
8484
dddbc90c
RV
8485(define-public ghc-objectname
8486 (package
8487 (name "ghc-objectname")
8488 (version "1.1.0.1")
8489 (source
8490 (origin
8491 (method url-fetch)
8492 (uri (string-append
8493 "https://hackage.haskell.org/package/ObjectName/ObjectName-"
8494 version
8495 ".tar.gz"))
8496 (sha256
8497 (base32
8498 "046jm94rmm46cicd31pl54vdvfjvhd9ffbfycy2lxzc0fliyznvj"))))
8499 (build-system haskell-build-system)
8500 (home-page "https://hackage.haskell.org/package/ObjectName")
8501 (synopsis "Helper library for Haskell OpenGL")
8502 (description "This tiny package contains the class ObjectName, which
8503corresponds to the general notion of explicitly handled identifiers for API
8504objects, e.g. a texture object name in OpenGL or a buffer object name in
8505OpenAL.")
8506 (license license:bsd-3)))
8507
8508(define-public ghc-old-locale
8509 (package
8510 (name "ghc-old-locale")
8511 (version "1.0.0.7")
8512 (source
8513 (origin
8514 (method url-fetch)
8515 (uri (string-append
8516 "https://hackage.haskell.org/package/old-locale/old-locale-"
8517 version
8518 ".tar.gz"))
8519 (sha256
8520 (base32 "0l3viphiszvz5wqzg7a45zp40grwlab941q5ay29iyw8p3v8pbyv"))))
8521 (build-system haskell-build-system)
8522 (arguments
8523 `(#:cabal-revision
8524 ("2" "04b9vn007hlvsrx4ksd3r8r3kbyaj2kvwxchdrmd4370qzi8p6gs")))
8525 (home-page "https://hackage.haskell.org/package/old-locale")
8526 (synopsis "Adapt to locale conventions")
8527 (description
8528 "This package provides the ability to adapt to locale conventions such as
8529date and time formats.")
8530 (license license:bsd-3)))
8531
8532(define-public ghc-old-time
8533 (package
8534 (name "ghc-old-time")
8535 (version "1.1.0.3")
8536 (source
8537 (origin
8538 (method url-fetch)
8539 (uri (string-append
8540 "https://hackage.haskell.org/package/old-time/old-time-"
8541 version
8542 ".tar.gz"))
8543 (sha256
8544 (base32
8545 "1h9b26s3kfh2k0ih4383w90ibji6n0iwamxp6rfp2lbq1y5ibjqw"))))
8546 (build-system haskell-build-system)
8547 (arguments
8548 `(#:cabal-revision
8549 ("2" "1j6ln1dkvhdvnwl33bp0xf9lhc4sybqk0aw42p8cq81xwwzbn7y9")))
8550 (inputs
8551 `(("ghc-old-locale" ,ghc-old-locale)))
8552 (home-page "https://hackage.haskell.org/package/old-time")
8553 (synopsis "Time compatibility library for Haskell")
8554 (description "Old-time is a package for backwards compatibility with the
8555old @code{time} library. For new projects, the newer
8556@uref{https://hackage.haskell.org/package/time, time library} is recommended.")
8557 (license license:bsd-3)))
8558
8559(define-public ghc-opengl
8560 (package
8561 (name "ghc-opengl")
79a06910 8562 (version "3.0.3.0")
dddbc90c
RV
8563 (source
8564 (origin
8565 (method url-fetch)
8566 (uri (string-append
8567 "https://hackage.haskell.org/package/OpenGL/OpenGL-"
8568 version
8569 ".tar.gz"))
8570 (sha256
8571 (base32
79a06910 8572 "069fg8jcxqq2z9iikynd8vi3jxm2b5y3qywdh4bdviyzab3zy1as"))))
dddbc90c 8573 (build-system haskell-build-system)
79a06910
TS
8574 (arguments
8575 `(#:cabal-revision
8576 ("1" "1748mrb6r9mpf5jbrx436lwbg8w6dadyy8dhxw2dwnrj5z7zf741")))
dddbc90c
RV
8577 (inputs
8578 `(("ghc-objectname" ,ghc-objectname)
8579 ("ghc-gluraw" ,ghc-gluraw)
8580 ("ghc-statevar" ,ghc-statevar)
8581 ("ghc-openglraw" ,ghc-openglraw)))
228d2901 8582 (home-page "https://wiki.haskell.org/Opengl")
dddbc90c
RV
8583 (synopsis "Haskell bindings for the OpenGL graphics system")
8584 (description "This package provides Haskell bindings for the OpenGL
8585graphics system (GL, version 4.5) and its accompanying utility library (GLU,
8586version 1.3).")
8587 (license license:bsd-3)))
8588
8589(define-public ghc-openglraw
8590 (package
8591 (name "ghc-openglraw")
15ebc815 8592 (version "3.3.3.0")
dddbc90c
RV
8593 (source
8594 (origin
8595 (method url-fetch)
8596 (uri (string-append
8597 "https://hackage.haskell.org/package/OpenGLRaw/OpenGLRaw-"
8598 version
8599 ".tar.gz"))
8600 (sha256
8601 (base32
15ebc815 8602 "0zgllb4bcash2i2cispa3j565aw3dpxs41ghmhpvyvi4a6xmyldx"))))
dddbc90c 8603 (build-system haskell-build-system)
54a5fd07
TS
8604 (arguments
8605 `(#:extra-directories ("glu")))
dddbc90c
RV
8606 (inputs
8607 `(("ghc-half" ,ghc-half)
8608 ("ghc-fixed" ,ghc-fixed)
8609 ("glu" ,glu)))
228d2901 8610 (home-page "https://wiki.haskell.org/Opengl")
dddbc90c
RV
8611 (synopsis "Raw Haskell bindings for the OpenGL graphics system")
8612 (description "OpenGLRaw is a raw Haskell binding for the OpenGL 4.5
8613graphics system and lots of OpenGL extensions. It is basically a 1:1 mapping
8614of OpenGL's C API, intended as a basis for a nicer interface. OpenGLRaw
8615offers access to all necessary functions, tokens and types plus a general
8616facility for loading extension entries. The module hierarchy closely mirrors
8617the naming structure of the OpenGL extensions, making it easy to find the
8618right module to import. All API entries are loaded dynamically, so no special
8619C header files are needed for building this package. If an API entry is not
8620found at runtime, a userError is thrown.")
8621 (license license:bsd-3)))
8622
8623(define-public ghc-operational
8624 (package
8625 (name "ghc-operational")
8626 (version "0.2.3.5")
8627 (source
8628 (origin
8629 (method url-fetch)
8630 (uri (string-append "https://hackage.haskell.org/package/operational/"
8631 "operational-" version ".tar.gz"))
8632 (sha256
8633 (base32
8634 "1x2abg2q9d26h1vzj40r6k7k3gqgappbs4g9d853vvg77837km4i"))))
8635 (build-system haskell-build-system)
8636 (inputs
8637 `(("ghc-random" ,ghc-random)))
8638 (home-page "http://wiki.haskell.org/Operational")
8639 (synopsis "Implementation of difficult monads made easy with operational semantics")
8640 (description
8641 "This library makes it easy to implement monads with tricky control
8642flow. This is useful for: writing web applications in a sequential style,
8643programming games with a uniform interface for human and AI players and easy
8644replay capababilities, implementing fast parser monads, designing monadic
8645DSLs, etc.")
8646 (license license:bsd-3)))
8647
6f1477d2
JS
8648(define-public ghc-optional-args
8649 (package
8650 (name "ghc-optional-args")
8651 (version "1.0.2")
8652 (source
8653 (origin
8654 (method url-fetch)
8655 (uri (string-append
8656 "mirror://hackage/package/optional-args/optional-args-"
8657 version
8658 ".tar.gz"))
8659 (sha256
8660 (base32
8661 "1r5hhn6xvc01grggxdyy48daibwzi0aikgidq0ahpa6bfynm8d1f"))))
8662 (build-system haskell-build-system)
8663 (home-page
8664 "http://hackage.haskell.org/package/optional-args")
8665 (synopsis "Optional function arguments")
8666 (description
8667 "This library provides a type for specifying @code{Optional} function
8668arguments.")
8669 (license license:bsd-3)))
8670
dddbc90c
RV
8671(define-public ghc-options
8672 (package
8673 (name "ghc-options")
8674 (version "1.2.1.1")
8675 (source
8676 (origin
8677 (method url-fetch)
8678 (uri (string-append
8679 "https://hackage.haskell.org/package/options/options-"
8680 version ".tar.gz"))
8681 (sha256
8682 (base32
8683 "0qjs0v1ny52w51n5582d4z8wy9h6n0zw1xb5dh686ff5wadflgi8"))))
8684 (build-system haskell-build-system)
24cf2a8b
TS
8685 (arguments
8686 `(#:phases
8687 (modify-phases %standard-phases
8688 (add-before 'configure 'update-constraints
8689 (lambda _
8690 (substitute* "options.cabal"
8691 (("chell >= 0\\.4 && < 0\\.5") "chell >= 0.4 && < 0.6"))
8692 #t)))))
dddbc90c
RV
8693 (inputs
8694 `(("ghc-monads-tf" ,ghc-monads-tf)
8695 ("ghc-chell" ,ghc-chell)
8696 ("ghc-chell-quickcheck" ,ghc-chell-quickcheck)))
8697 (home-page "https://john-millikin.com/software/haskell-options/")
8698 (synopsis "Powerful and easy-to-use command-line option parser")
8699 (description
8700 "The @code{options} package lets library and application developers
8701easily work with command-line options.")
8702 (license license:expat)))
8703
8704;; See ghc-system-filepath-bootstrap, chell and chell-quickcheck are required for tests.
8705(define ghc-options-bootstrap
8706 (package
8707 (name "ghc-options-bootstrap")
8708 (version "1.2.1.1")
8709 (source
8710 (origin
8711 (method url-fetch)
8712 (uri (string-append
8713 "https://hackage.haskell.org/package/options/options-"
8714 version ".tar.gz"))
8715 (sha256
8716 (base32
8717 "0qjs0v1ny52w51n5582d4z8wy9h6n0zw1xb5dh686ff5wadflgi8"))))
8718 (build-system haskell-build-system)
8719 (arguments
8720 `(#:tests? #f))
8721 (inputs
8722 `(("ghc-monads-tf" ,ghc-monads-tf)))
8723 (home-page "https://john-millikin.com/software/haskell-options/")
8724 (synopsis "Powerful and easy-to-use command-line option parser")
8725 (description
8726 "The @code{options} package lets library and application developers
8727easily work with command-line options.")
8728 (license license:expat)))
8729
8730
8731(define-public ghc-optparse-applicative
8732 (package
8733 (name "ghc-optparse-applicative")
74bf6965 8734 (version "0.14.3.0")
dddbc90c
RV
8735 (source
8736 (origin
8737 (method url-fetch)
8738 (uri (string-append
8739 "https://hackage.haskell.org/package/optparse-applicative"
8740 "/optparse-applicative-" version ".tar.gz"))
8741 (sha256
8742 (base32
74bf6965 8743 "0qvn1s7jwrabbpmqmh6d6iafln3v3h9ddmxj2y4m0njmzq166ivj"))))
dddbc90c 8744 (build-system haskell-build-system)
74bf6965
TS
8745 (arguments
8746 `(#:cabal-revision
8747 ("2" "1a08dqjly1xy730f6jf45frr8g8gap0n1vg9b0mpzpydv0kgzmrp")))
dddbc90c
RV
8748 (inputs
8749 `(("ghc-transformers-compat" ,ghc-transformers-compat)
8750 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)))
8751 (native-inputs
8752 `(("ghc-quickcheck" ,ghc-quickcheck)))
8753 (home-page "https://github.com/pcapriotti/optparse-applicative")
8754 (synopsis "Utilities and combinators for parsing command line options")
8755 (description "This package provides utilities and combinators for parsing
8756command line options in Haskell.")
8757 (license license:bsd-3)))
8758
d56c8120
NG
8759(define-public ghc-jira-wiki-markup
8760 (package
8761 (name "ghc-jira-wiki-markup")
8762 (version "1.0.0")
8763 (source
8764 (origin
8765 (method url-fetch)
8766 (uri (string-append
8767 "https://hackage.haskell.org/package/jira-wiki-markup/"
8768 "jira-wiki-markup-" version ".tar.gz"))
8769 (sha256
8770 (base32 "1sl2jjcsqg61si33mxjwpf8zdn56kbbgcwqqqzbgifx2qbv4wmf8"))))
8771 (build-system haskell-build-system)
8772 (native-inputs
8773 `(("ghc-tasty" ,ghc-tasty)
8774 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
8775 (home-page "https://github.com/tarleb/jira-wiki-markup")
8776 (synopsis "Handle Jira wiki markup")
8777 (description
8778 "Parse jira wiki text into an abstract syntax tree for easy transformation
8779to other formats.")
8780 (license license:expat)))
8781
20690771
NG
8782(define-public ghc-emojis
8783 (package
8784 (name "ghc-emojis")
8785 (version "0.1")
8786 (source
8787 (origin
8788 (method url-fetch)
8789 (uri (string-append
8790 "https://hackage.haskell.org/package/emojis/"
8791 "emojis-" version ".tar.gz"))
8792 (sha256
8793 (base32 "1c6zkj9gmk1y90gbdrn50hyp7mw1mggzhnr2khqd728ryipw60ss"))))
8794 (build-system haskell-build-system)
8795 (native-inputs
8796 `(("ghc-hunit" ,ghc-hunit)))
8797 (home-page "https://github.com/jgm/emojis#readme")
8798 (synopsis "Conversion between emoji characters and their names.")
8799 (description
8800 "This package provides functions for converting emoji names to emoji
8801characters and vice versa.
8802
8803How does it differ from the @code{emoji} package?
8804@itemize
8805@item It supports a fuller range of emojis, including all those supported by
8806GitHub
8807@item It supports lookup of emoji aliases from emoji
8808@item It uses Text rather than String
8809@item It has a lighter dependency footprint: in particular, it does not
8810require aeson
8811@item It does not require TemplateHaskell
8812@end itemize")
8813 (license license:bsd-3)))
8814
e90a06fc
NG
8815(define-public ghc-text-conversions
8816 (package
8817 (name "ghc-text-conversions")
8818 (version "0.3.0")
8819 (source
8820 (origin
8821 (method url-fetch)
8822 (uri (string-append
8823 "https://hackage.haskell.org/package/text-conversions/"
8824 "text-conversions-" version ".tar.gz"))
8825 (sha256
8826 (base32 "089c56vdj9xysqfr1hnvbnrghlg83q6w10xk02gflpsidcpvwmhp"))))
8827 (build-system haskell-build-system)
8828 (inputs
8829 `(("ghc-base16-bytestring" ,ghc-base16-bytestring)
8830 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
8831 ("ghc-errors" ,ghc-errors)))
8832 (native-inputs
8833 `(("ghc-hspec" ,ghc-hspec)
27b09f3a 8834 ("hspec-discover" ,hspec-discover)))
e90a06fc
NG
8835 (home-page "https://github.com/cjdev/text-conversions#readme")
8836 (synopsis "Safe conversions between textual types")
8837 (description "Safe conversions between textual types")
8838 (license license:isc)))
8839
ba7cbae3
NG
8840(define-public ghc-doclayout
8841 (package
8842 (name "ghc-doclayout")
8843 (version "0.3")
8844 (source
8845 (origin
8846 (method url-fetch)
8847 (uri (string-append
8848 "https://hackage.haskell.org/package/doclayout/"
8849 "doclayout-" version ".tar.gz"))
8850 (sha256
8851 (base32 "1wmnwq28jcyd6c80srivsnd5znmyl9sgmwwnlk2crwiiwqadbal7"))))
8852 (build-system haskell-build-system)
8853 (inputs
8854 `(("ghc-safe" ,ghc-safe)))
8855 (native-inputs
8856 `(("ghc-tasty" ,ghc-tasty)
8857 ("ghc-tasty-golden" ,ghc-tasty-golden)
8858 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
8859 (home-page "https://github.com/jgm/doclayout")
8860 (synopsis "Pretty-printing library for laying out text documents")
8861 (description
8862 "doclayout is a pretty-printing library for laying out text documents,
8863with several features not present in pretty-printing libraries designed for
8864code. It was designed for use in @code{Pandoc}.")
8865 (license license:bsd-3)))
8866
dddbc90c
RV
8867(define-public ghc-pandoc
8868 (package
8869 (name "ghc-pandoc")
d9b1567a 8870 (version "2.7.3")
dddbc90c
RV
8871 (source
8872 (origin
8873 (method url-fetch)
8874 (uri (string-append "https://hackage.haskell.org/package/pandoc/pandoc-"
8875 version ".tar.gz"))
d9b1567a
TS
8876 (patches (search-patches "ghc-pandoc-fix-html-tests.patch"
8877 "ghc-pandoc-fix-latex-test.patch"))
dddbc90c
RV
8878 (sha256
8879 (base32
d9b1567a 8880 "0dpjrr40h54cljzhvixyym07z792a9izg6b9dmqpjlgcg4rj0xx8"))))
dddbc90c 8881 (build-system haskell-build-system)
c18e4f3e
RW
8882 (arguments
8883 `(#:phases
8884 (modify-phases %standard-phases
8885 (add-after 'unpack 'find-library
8886 (lambda _
8887 (substitute* "test/Tests/Command.hs"
8888 (("= dynlibEnv")
8889 (format #f "= [(\"LD_LIBRARY_PATH\" , \"~a/dist/build\")]"
8890 (getcwd))))
8891 #t)))))
8892 (outputs '("out" "static" "doc"))
dddbc90c
RV
8893 (inputs
8894 `(("ghc-aeson" ,ghc-aeson)
8895 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
8896 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
8897 ("ghc-blaze-html" ,ghc-blaze-html)
8898 ("ghc-blaze-markup" ,ghc-blaze-markup)
8899 ("ghc-cmark-gfm" ,ghc-cmark-gfm)
8900 ("ghc-data-default" ,ghc-data-default)
dddbc90c
RV
8901 ("ghc-diff" ,ghc-diff)
8902 ("ghc-doctemplates" ,ghc-doctemplates)
8903 ("ghc-executable-path" ,ghc-executable-path)
8904 ("ghc-glob" ,ghc-glob)
8905 ("ghc-haddock-library" ,ghc-haddock-library)
8906 ("ghc-hslua" ,ghc-hslua)
d9b1567a 8907 ("ghc-hslua-module-system" ,ghc-hslua-module-system)
dddbc90c 8908 ("ghc-hslua-module-text" ,ghc-hslua-module-text)
d9b1567a 8909 ("ghc-hsyaml" ,ghc-hsyaml)
dddbc90c
RV
8910 ("ghc-http" ,ghc-http)
8911 ("ghc-http-client" ,ghc-http-client)
8912 ("ghc-http-client-tls" ,ghc-http-client-tls)
8913 ("ghc-http-types" ,ghc-http-types)
d9b1567a 8914 ("ghc-ipynb" ,ghc-ipynb)
dddbc90c
RV
8915 ("ghc-juicypixels" ,ghc-juicypixels)
8916 ("ghc-network" ,ghc-network)
8917 ("ghc-network-uri" ,ghc-network-uri)
dddbc90c
RV
8918 ("ghc-pandoc-types" ,ghc-pandoc-types)
8919 ("ghc-random" ,ghc-random)
8920 ("ghc-scientific" ,ghc-scientific)
8921 ("ghc-sha" ,ghc-sha)
8922 ("ghc-skylighting" ,ghc-skylighting)
8923 ("ghc-split" ,ghc-split)
8924 ("ghc-syb" ,ghc-syb)
8925 ("ghc-tagsoup" ,ghc-tagsoup)
8926 ("ghc-temporary" ,ghc-temporary)
8927 ("ghc-texmath" ,ghc-texmath)
d9b1567a 8928 ("ghc-unicode-transforms" ,ghc-unicode-transforms)
dddbc90c
RV
8929 ("ghc-unordered-containers" ,ghc-unordered-containers)
8930 ("ghc-vector" ,ghc-vector)
8931 ("ghc-xml" ,ghc-xml)
dddbc90c
RV
8932 ("ghc-zip-archive" ,ghc-zip-archive)
8933 ("ghc-zlib" ,ghc-zlib)))
8934 (native-inputs
8935 `(("ghc-tasty" ,ghc-tasty)
8936 ("ghc-tasty-golden" ,ghc-tasty-golden)
8937 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
d9b1567a 8938 ("ghc-tasty-lua" ,ghc-tasty-lua)
dddbc90c
RV
8939 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
8940 ("ghc-quickcheck" ,ghc-quickcheck)
8941 ("ghc-hunit" ,ghc-hunit)))
8942 (home-page "https://pandoc.org")
8943 (synopsis "Conversion between markup formats")
8944 (description
8945 "Pandoc is a Haskell library for converting from one markup format to
8946another, and a command-line tool that uses this library. It can read and
8947write Markdown and (subsets of) other formats, such as HTML, reStructuredText,
8948LaTeX, DocBook, and many more.
8949
8950Pandoc extends standard Markdown syntax with footnotes, embedded LaTeX,
8951definition lists, tables, and other features. A compatibility mode is
8952provided for those who need a drop-in replacement for Markdown.pl.")
8953 (license license:gpl2+)))
8954
d4e4a382
RW
8955(define-public pandoc
8956 (package
8957 (inherit ghc-pandoc)
8958 (name "pandoc")
8959 (arguments
8960 `(#:configure-flags
8961 (list "-fstatic"
8962 ;; Do not build trypandoc; this is the default but it's better to
8963 ;; be explicit.
8964 "-f-trypandoc"
8965 ;; TODO: Without these we cannot link the Haskell libraries
8966 ;; statically. It would be nice if we could also build the
8967 ;; shared libraries.
8968 "--disable-shared"
8969 "--disable-executable-dynamic"
8970 ;; That's where we place all static libraries
8971 "--extra-lib-dirs=static-libs/"
8972 "--ghc-option=-static")
8973 #:modules ((guix build haskell-build-system)
8974 (guix build utils)
8975 (ice-9 match)
8976 (srfi srfi-1))
8977 #:phases
8978 (modify-phases %standard-phases
8979 (add-after 'unpack 'create-simple-paths-module
8980 (lambda* (#:key outputs #:allow-other-keys)
8981 (call-with-output-file "Paths_pandoc.hs"
8982 (lambda (port)
8983 (format port "\
8984{-# LANGUAGE CPP #-}
8985{-# LANGUAGE NoRebindableSyntax #-}
8986{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
8987module Paths_pandoc (version,getDataDir,getDataFileName) where
8988import Prelude
8989import Data.Version (Version(..))
8990import System.Info
8991version :: Version
8992version = Version [~a] []
8993
8994datadir :: FilePath
8995datadir = \"~a/share/\" ++
8996 arch ++ \"-\" ++
8997 os ++ \"-\" ++
8998 compilerName ++ \"-~a/pandoc-~a\"
8999
9000getDataDir :: IO FilePath
9001getDataDir = return datadir
9002
9003getDataFileName :: FilePath -> IO FilePath
9004getDataFileName name = do
9005 dir <- getDataDir
9006 return (dir ++ \"/\" ++ name)
9007"
9008 (string-map (lambda (chr) (if (eq? chr #\.) #\, chr))
9009 ,(package-version ghc-pandoc))
9010 (assoc-ref outputs "out")
9011 ,(package-version ghc)
9012 ,(package-version ghc-pandoc))))
9013 #t))
9014 (add-after 'unpack 'prepare-static-libraries
9015 (lambda* (#:key inputs #:allow-other-keys)
9016 (mkdir-p (string-append (getcwd) "/static-libs"))
9017 (for-each
9018 (lambda (input)
9019 (when (or (string-prefix? "static-" (car input))
9020 (string-prefix? "ghc" (car input)))
9021 (match (find-files (cdr input) "\\.a$")
9022 ((and (first . rest) libs)
9023 (for-each (lambda (lib)
9024 (let ((target (string-append (getcwd) "/static-libs/"
9025 (basename lib))))
9026 (unless (file-exists? target)
9027 (symlink first target))))
9028 libs))
9029 (_ #f))))
9030 inputs)
9031 #t))
9032 (delete 'check)
9033 (add-after 'install 'post-install-check
9034 (assoc-ref %standard-phases 'check)))))
9035 (outputs '("out" "lib" "static" "doc"))
9036 (inputs
9037 (let* ((direct-inputs (package-inputs ghc-pandoc))
9038 (all-static-inputs
9039 (map (lambda (pkg)
9040 (list (string-append "static-" (package-name pkg))
9041 pkg "static"))
9042 (delete-duplicates
9043 (append (map cadr direct-inputs)
9044 (filter (lambda (pkg)
9045 (string-prefix? "ghc-" (package-name pkg)))
9046 (package-closure
9047 (map cadr direct-inputs))))))))
9048 `(("zlib:static" ,zlib "static")
9049 ,@all-static-inputs
9050 ,@direct-inputs)))
9051 (native-inputs
9052 (let* ((direct-inputs (package-native-inputs ghc-pandoc))
9053 (all-static-inputs
9054 (map (lambda (pkg)
9055 (list (string-append "static-" (package-name pkg))
9056 pkg "static"))
9057 (delete-duplicates
9058 (append (map cadr direct-inputs)
9059 (filter (lambda (pkg)
9060 (string-prefix? "ghc-" (package-name pkg)))
9061 (package-closure
9062 (map cadr direct-inputs))))))))
9063 `(,@all-static-inputs
9064 ,@direct-inputs)))))
9065
dddbc90c
RV
9066(define-public ghc-pandoc-citeproc
9067 (package
9068 (name "ghc-pandoc-citeproc")
2da02d09 9069 (version "0.16.2")
dddbc90c
RV
9070 (source
9071 (origin
9072 (method url-fetch)
9073 (uri (string-append "https://hackage.haskell.org/package/"
9074 "pandoc-citeproc/pandoc-citeproc-"
9075 version ".tar.gz"))
9076 (sha256
9077 (base32
2da02d09 9078 "15mm17awgi1b5yazwhr5nh8b59qml1qk6pz6gpyijks70fq2arsv"))))
dddbc90c
RV
9079 (build-system haskell-build-system)
9080 (arguments
9081 `(#:phases
9082 (modify-phases %standard-phases
9083 ;; Many YAML tests (44) are failing do to changes in ghc-yaml:
9084 ;; <https://github.com/jgm/pandoc-citeproc/issues/342>.
9085 (add-before 'configure 'patch-tests
9086 (lambda _
9087 (substitute* "tests/test-pandoc-citeproc.hs"
9088 (("let allTests = citeprocTests \\+\\+ biblio2yamlTests")
9089 "let allTests = citeprocTests"))))
9090 ;; Tests need to be run after installation.
9091 (delete 'check)
9092 (add-after 'install 'post-install-check
9093 (assoc-ref %standard-phases 'check)))))
9094 (inputs
9095 `(("ghc-pandoc-types" ,ghc-pandoc-types)
9096 ("ghc-pandoc" ,ghc-pandoc)
9097 ("ghc-tagsoup" ,ghc-tagsoup)
9098 ("ghc-aeson" ,ghc-aeson)
9099 ("ghc-vector" ,ghc-vector)
9100 ("ghc-xml-conduit" ,ghc-xml-conduit)
9101 ("ghc-unordered-containers" ,ghc-unordered-containers)
9102 ("ghc-data-default" ,ghc-data-default)
9103 ("ghc-setenv" ,ghc-setenv)
9104 ("ghc-split" ,ghc-split)
9105 ("ghc-yaml" ,ghc-yaml)
9106 ("ghc-hs-bibutils" ,ghc-hs-bibutils)
9107 ("ghc-rfc5051" ,ghc-rfc5051)
9108 ("ghc-syb" ,ghc-syb)
9109 ("ghc-old-locale" ,ghc-old-locale)
9110 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
9111 ("ghc-attoparsec" ,ghc-attoparsec)
9112 ("ghc-temporary" ,ghc-temporary)))
9113 (home-page "https://github.com/jgm/pandoc-citeproc")
9114 (synopsis "Library for using pandoc with citeproc")
9115 (description
9116 "The @code{pandoc-citeproc} library exports functions for using the
9117citeproc system with pandoc. It relies on @code{citeproc-hs}, a library for
9118rendering bibliographic reference citations into a variety of styles using a
9119macro language called @dfn{Citation Style Language} (CSL). This package also
9120contains an executable @code{pandoc-citeproc}, which works as a pandoc filter,
9121and also has a mode for converting bibliographic databases a YAML format
9122suitable for inclusion in pandoc YAML metadata.")
9123 (license license:bsd-3)))
9124
e380ef14
RW
9125(define-public pandoc-citeproc
9126 (package (inherit ghc-pandoc-citeproc)
9127 (name "pandoc-citeproc")
9128 (arguments
9129 `(#:configure-flags
9130 (list "-fstatic"
9131 "--disable-shared"
9132 "--disable-executable-dynamic"
9133 ;; That's where we place all static libraries
9134 "--extra-lib-dirs=static-libs/"
9135 "--ghc-option=-static")
9136 #:modules ((guix build haskell-build-system)
9137 (guix build utils)
9138 (ice-9 match)
9139 (srfi srfi-1))
9140 #:phases
9141 (modify-phases %standard-phases
9142 ;; Many YAML tests (44) are failing do to changes in ghc-yaml:
9143 ;; <https://github.com/jgm/pandoc-citeproc/issues/342>.
9144 (add-before 'configure 'patch-tests
9145 (lambda _
9146 (substitute* "tests/test-pandoc-citeproc.hs"
9147 (("let allTests = citeprocTests \\+\\+ biblio2yamlTests")
9148 "let allTests = citeprocTests"))))
9149 ;; Tests need to be run after installation.
9150 (delete 'check)
9151 (add-after 'install 'post-install-check
9152 (assoc-ref %standard-phases 'check))
9153 (add-after 'unpack 'create-simple-paths-module
9154 (lambda* (#:key outputs #:allow-other-keys)
9155 (call-with-output-file "Paths_pandoc_citeproc.hs"
9156 (lambda (port)
9157 (format port "\
9158{-# LANGUAGE CPP #-}
9159{-# LANGUAGE NoRebindableSyntax #-}
9160{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
9161module Paths_pandoc_citeproc (version,getDataFileName) where
9162import Prelude
9163import Data.Version (Version(..))
9164import System.Info
9165version :: Version
9166version = Version [~a] []
9167
9168datadir :: FilePath
9169datadir = \"~a/share/\" ++
9170 arch ++ \"-\" ++
9171 os ++ \"-\" ++
9172 compilerName ++ \"-~a/pandoc-citeproc-~a\"
9173
9174getDataDir :: IO FilePath
9175getDataDir = return datadir
9176
9177getDataFileName :: FilePath -> IO FilePath
9178getDataFileName name = do
9179 dir <- getDataDir
9180 return (dir ++ \"/\" ++ name)
9181"
9182 (string-map (lambda (chr) (if (eq? chr #\.) #\, chr))
9183 ,(package-version ghc-pandoc-citeproc))
9184 (assoc-ref outputs "out")
9185 ,(package-version ghc)
9186 ,(package-version ghc-pandoc-citeproc))))
9187 #t))
9188 (add-after 'unpack 'prepare-static-libraries
9189 (lambda* (#:key inputs #:allow-other-keys)
9190 (mkdir-p (string-append (getcwd) "/static-libs"))
9191 (for-each
9192 (lambda (input)
9193 (when (or (string-prefix? "static-" (car input))
9194 (string-prefix? "ghc" (car input)))
9195 (match (find-files (cdr input) "\\.a$")
9196 ((and (first . rest) libs)
9197 (for-each (lambda (lib)
9198 (let ((target (string-append (getcwd) "/static-libs/"
9199 (basename lib))))
9200 (unless (file-exists? target)
9201 (symlink first target))))
9202 libs))
9203 (_ #f))))
9204 inputs)
9205 #t)))))
9206 (inputs
9207 (let* ((direct-inputs
9208 (cons `("ghc-pandoc" ,pandoc)
9209 (alist-delete "ghc-pandoc"
9210 (package-inputs ghc-pandoc-citeproc))))
9211 (all-static-inputs
9212 (map (lambda (pkg)
9213 (list (string-append "static-" (package-name pkg))
9214 pkg "static"))
9215 (delete-duplicates
9216 (append (map cadr direct-inputs)
9217 (filter (lambda (pkg)
9218 (string-prefix? "ghc-" (package-name pkg)))
9219 (package-closure
9220 (map cadr direct-inputs))))))))
9221 `(("zlib:static" ,zlib "static")
9222 ("pandoc" ,pandoc "lib")
9223 ,@all-static-inputs
9224 ,@direct-inputs)))
9225 (synopsis "Pandoc filter for bibliographic references")))
9226
dddbc90c
RV
9227(define-public ghc-pandoc-types
9228 (package
9229 (name "ghc-pandoc-types")
0eaa88c8 9230 (version "1.17.6.1")
dddbc90c
RV
9231 (source (origin
9232 (method url-fetch)
9233 (uri (string-append "https://hackage.haskell.org/package/"
9234 "pandoc-types/pandoc-types-"
9235 version ".tar.gz"))
9236 (sha256
9237 (base32
0eaa88c8 9238 "1d6ygq991ddria71l7hg9yd7lq94sjy4m71rdws1v8hq943c4d0q"))))
dddbc90c 9239 (build-system haskell-build-system)
c7891956
RW
9240 (arguments
9241 `(#:phases
9242 (modify-phases %standard-phases
9243 ;; None of the directory names are actually used. By generating a
9244 ;; simpler module without references to store names we avoid
9245 ;; introducing references in the pandoc executable.
9246 (add-after 'unpack 'create-simple-paths-module
9247 (lambda _
9248 (call-with-output-file "Paths_pandoc_types.hs"
9249 (lambda (port)
9250 (format port "\
9251{-# LANGUAGE CPP #-}
9252{-# LANGUAGE NoRebindableSyntax #-}
9253{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
9254module Paths_pandoc_types (version) where
9255import Data.Version (Version(..))
9256version :: Version
9257version = Version [~a] []
9258" (string-map (lambda (chr) (if (eq? chr #\.) #\, chr)) ,version))))
9259 #t)))))
dddbc90c
RV
9260 (inputs
9261 `(("ghc-syb" ,ghc-syb)
9262 ("ghc-aeson" ,ghc-aeson)
9263 ("ghc-string-qq" ,ghc-string-qq)))
9264 (native-inputs
9265 `(("ghc-quickcheck" ,ghc-quickcheck)
9266 ("ghc-test-framework" ,ghc-test-framework)
9267 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
9268 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
9269 ("ghc-hunit" ,ghc-hunit)))
d48b5c8a 9270 (home-page "https://johnmacfarlane.net/pandoc")
dddbc90c
RV
9271 (synopsis "Types for representing a structured document")
9272 (description
9273 "This module defines the @code{Pandoc} data structure, which is used by
9274pandoc to represent structured documents. It also provides functions for
9275building up, manipulating and serialising @code{Pandoc} structures.")
9276 (license license:bsd-3)))
9277
9278(define-public ghc-parallel
9279 (package
9280 (name "ghc-parallel")
9281 (version "3.2.2.0")
534d6caa 9282 (outputs '("out" "static" "doc"))
dddbc90c
RV
9283 (source
9284 (origin
9285 (method url-fetch)
9286 (uri (string-append
9287 "https://hackage.haskell.org/package/parallel/parallel-"
9288 version
9289 ".tar.gz"))
9290 (sha256
9291 (base32
9292 "1xkfi96w6yfpppd0nw1rnszdxmvifwzm699ilv6332ra3akm610p"))))
9293 (build-system haskell-build-system)
9294 (home-page "https://hackage.haskell.org/package/parallel")
9295 (synopsis "Parallel programming library")
9296 (description
9297 "This package provides a library for parallel programming.")
9298 (license license:bsd-3)))
9299
9300(define-public ghc-parsec-numbers
9301 (package
9302 (name "ghc-parsec-numbers")
9303 (version "0.1.0")
9304 (source
9305 (origin
9306 (method url-fetch)
9307 (uri (string-append "https://hackage.haskell.org/package/"
9308 "parsec-numbers/parsec-numbers-" version ".tar.gz"))
9309 (sha256
9310 (base32 "1gzy4v3r02kvdxvgg1nj83mmb6aph2v4ilf9c7y6nbvi2x49l0bp"))))
9311 (build-system haskell-build-system)
9312 (home-page "https://hackage.haskell.org/package/parsec-numbers")
9313 (synopsis "Utilities for parsing numbers from strings")
9314 (description
9315 "This package provides the number parsers without the need to use a large
9316(and unportable) token parser.")
9317 (license license:bsd-3)))
9318
9319(define-public ghc-parser-combinators
9320 (package
9321 (name "ghc-parser-combinators")
2f173160 9322 (version "1.1.0")
dddbc90c
RV
9323 (source
9324 (origin
9325 (method url-fetch)
9326 (uri (string-append "https://hackage.haskell.org/package/"
9327 "parser-combinators/parser-combinators-"
9328 version ".tar.gz"))
9329 (sha256
9330 (base32
2f173160 9331 "149yhbnrrl108h1jinrsxni3rwrldhphpk9bbmbpr90q5fbl4xmc"))))
dddbc90c
RV
9332 (build-system haskell-build-system)
9333 (home-page "https://github.com/mrkkrp/parser-combinators")
9334 (synopsis "Commonly useful parser combinators")
9335 (description
9336 "This is a lightweight package providing commonly useful parser
9337combinators.")
9338 (license license:bsd-3)))
9339
9340(define-public ghc-parsers
9341 (package
9342 (name "ghc-parsers")
6818f970 9343 (version "0.12.10")
dddbc90c
RV
9344 (source
9345 (origin
9346 (method url-fetch)
9347 (uri (string-append
9348 "https://hackage.haskell.org/package/parsers/parsers-"
9349 version
9350 ".tar.gz"))
9351 (sha256
9352 (base32
6818f970 9353 "0v0smxbzk1qpdfkfqqmrzd2dngv3vxba10mkjn9nfm6a309izf8p"))))
dddbc90c
RV
9354 (build-system haskell-build-system)
9355 (arguments `(#:tests? #f)) ; FIXME: Test fails with "cannot satisfy
9356 ; -package attoparsec-0.13.0.1"
9357 (inputs
9358 `(("ghc-base-orphans" ,ghc-base-orphans)
9359 ("ghc-attoparsec" ,ghc-attoparsec)
9360 ("ghc-scientific" ,ghc-scientific)
9361 ("ghc-charset" ,ghc-charset)
9362 ("ghc-unordered-containers" ,ghc-unordered-containers)))
9363 (home-page "https://github.com/ekmett/parsers/")
9364 (synopsis "Parsing combinators")
9365 (description "This library provides convenient combinators for working
9366with and building parsing combinator libraries. Given a few simple instances,
9367you get access to a large number of canned definitions. Instances exist for
9368the parsers provided by @code{parsec}, @code{attoparsec} and @code{base}'s
9369@code{Text.Read}.")
9370 (license license:bsd-3)))
9371
9372(define-public ghc-path
9373 (package
9374 (name "ghc-path")
9375 (version "0.6.1")
9376 (source
9377 (origin
9378 (method url-fetch)
9379 (uri (string-append
9380 "https://hackage.haskell.org/package/path/path-"
9381 version
9382 ".tar.gz"))
9383 (sha256
9384 (base32
9385 "0nayla4k1gb821k8y5b9miflv1bi8f0czf9rqr044nrr2dddi2sb"))))
9386 (build-system haskell-build-system)
9387 (arguments
9388 ;; TODO: There are some Windows-related tests and modules that need to be
9389 ;; danced around.
9390 `(#:tests? #f
9391 #:cabal-revision
9392 ("1" "05b1zwx2a893h4h5wvgpc5g5pyx71hfmx409rqisd8s1bq1hn463")))
9393 (inputs
9394 `(("ghc-aeson" ,ghc-aeson)
9395 ("ghc-exceptions" ,ghc-exceptions)
9396 ("ghc-hashable" ,ghc-hashable)))
9397 (native-inputs
9398 `(("ghc-hspec" ,ghc-hspec)
9399 ("ghc-quickcheck" ,ghc-quickcheck)
9400 ("ghc-genvalidity" ,ghc-genvalidity)
9401 ("ghc-genvalidity-property" ,ghc-genvalidity-property)
9402 ("ghc-hspec" ,ghc-hspec)
9403 ("ghc-validity" ,ghc-validity)))
9404 (home-page
3ef91e15 9405 "https://hackage.haskell.org/package/path")
dddbc90c
RV
9406 (synopsis "Support for well-typed paths")
9407 (description "This package introduces a type for paths upholding useful
9408invariants.")
9409 (license license:bsd-3)))
9410
9411(define-public ghc-path-io
9412 (package
9413 (name "ghc-path-io")
a06613ea 9414 (version "1.4.2")
dddbc90c
RV
9415 (source
9416 (origin
9417 (method url-fetch)
9418 (uri (string-append
9419 "https://hackage.haskell.org/package/path-io/path-io-"
9420 version
9421 ".tar.gz"))
9422 (sha256
9423 (base32
a06613ea 9424 "0jqx3mi4an4kb3kg78n1p3xrz832yrfrnvj795b0xhkv6h1z5ir3"))))
dddbc90c
RV
9425 (build-system haskell-build-system)
9426 (inputs
9427 `(("ghc-dlist" ,ghc-dlist)
9428 ("ghc-exceptions" ,ghc-exceptions)
9429 ("ghc-path" ,ghc-path)
9430 ("ghc-transformers-base" ,ghc-transformers-base)
9431 ("ghc-unix-compat" ,ghc-unix-compat)
9432 ("ghc-temporary" ,ghc-temporary)))
9433 (native-inputs
9434 `(("ghc-hspec" ,ghc-hspec)))
dddbc90c
RV
9435 (home-page
9436 "https://github.com/mrkkrp/path-io")
9437 (synopsis "Functions for manipulating well-typed paths")
9438 (description "This package provides an interface to the @code{directory}
9439package for users of @code{path}. It also implements some missing stuff like
9440recursive scanning and copying of directories, working with temporary
9441files/directories, and more.")
9442 (license license:bsd-3)))
9443
9444(define-public ghc-paths
9445 (package
9446 (name "ghc-paths")
9a8adeb1 9447 (version "0.1.0.12")
534d6caa 9448 (outputs '("out" "static" "doc"))
dddbc90c
RV
9449 (source
9450 (origin
9451 (method url-fetch)
9452 (uri (string-append
9453 "https://hackage.haskell.org/package/ghc-paths/ghc-paths-"
9454 version
9455 ".tar.gz"))
9456 (sha256
9457 (base32
9a8adeb1 9458 "1164w9pqnf7rjm05mmfjznz7rrn415blrkk1kjc0gjvks1vfdjvf"))))
dddbc90c
RV
9459 (build-system haskell-build-system)
9460 (home-page "https://github.com/simonmar/ghc-paths")
9461 (synopsis
9462 "Knowledge of GHC's installation directories")
9463 (description
9464 "Knowledge of GHC's installation directories.")
9465 (license license:bsd-3)))
9466
9467(define-public ghc-patience
9468 (package
9469 (name "ghc-patience")
484476f3 9470 (version "0.3")
dddbc90c
RV
9471 (source
9472 (origin
9473 (method url-fetch)
9474 (uri (string-append
9475 "https://hackage.haskell.org/package/patience/patience-"
9476 version ".tar.gz"))
9477 (sha256
9478 (base32
484476f3 9479 "1i1b37lgi31c17yrjyf8pdm4nf5lq8vw90z3rri78hf0k66d0p3i"))))
dddbc90c
RV
9480 (build-system haskell-build-system)
9481 (home-page "https://hackage.haskell.org/package/patience")
9482 (synopsis "Patience diff and longest increasing subsequence")
9483 (description
9484 "This library implements the 'patience diff' algorithm, as well as the
9485patience algorithm for the longest increasing subsequence problem.
9486Patience diff computes the difference between two lists, for example the lines
9487of two versions of a source file. It provides a good balance between
9488performance, nice output for humans, and simplicity of implementation.")
9489 (license license:bsd-3)))
9490
25a221a8
JS
9491(define-public ghc-pattern-arrows
9492 (package
9493 (name "ghc-pattern-arrows")
9494 (version "0.0.2")
9495 (source
9496 (origin
9497 (method url-fetch)
9498 (uri (string-append
9499 "mirror://hackage/package/pattern-arrows/pattern-arrows-"
9500 version
9501 ".tar.gz"))
9502 (sha256
9503 (base32
9504 "13q7bj19hd60rnjfc05wxlyck8llxy11z3mns8kxg197wxrdkhkg"))))
9505 (build-system haskell-build-system)
9506 (home-page
9507 "https://blog.functorial.com/posts/2013-10-27-Pretty-Printing-Arrows.html")
9508 (synopsis "Arrows for Pretty Printing")
9509 (description
9510 "A library for generating concise pretty printers based on precedence
9511rules.")
9512 (license license:expat)))
9513
dddbc90c
RV
9514(define-public ghc-pcre-light
9515 (package
9516 (name "ghc-pcre-light")
9517 (version "0.4.0.4")
9518 (source
9519 (origin
9520 (method url-fetch)
9521 (uri (string-append
9522 "https://hackage.haskell.org/package/pcre-light/pcre-light-"
9523 version
9524 ".tar.gz"))
9525 (sha256
9526 (base32
9527 "0xcyi1fivwg7a92mch5bcqzmrfxzqj42rmb3m8kgs61x4qwpxj82"))))
9528 (build-system haskell-build-system)
a928f35b
TS
9529 (arguments
9530 `(#:extra-directories ("pcre")))
dddbc90c
RV
9531 (inputs
9532 `(("pcre" ,pcre)))
9533 (native-inputs
9534 `(("pkg-config" ,pkg-config)))
9535 (home-page "https://github.com/Daniel-Diaz/pcre-light")
9536 (synopsis "Haskell library for Perl 5 compatible regular expressions")
9537 (description "This package provides a small, efficient, and portable regex
9538library for Perl 5 compatible regular expressions. The PCRE library is a set
9539of functions that implement regular expression pattern matching using the same
9540syntax and semantics as Perl 5.")
9541 (license license:bsd-3)))
9542
9543(define-public ghc-persistent
9544 (package
9545 (name "ghc-persistent")
8c9697a9 9546 (version "2.10.4")
dddbc90c
RV
9547 (source
9548 (origin
9549 (method url-fetch)
8c9697a9
ASM
9550 (uri (string-append
9551 "https://hackage.haskell.org/package/persistent/"
9552 "persistent-" version ".tar.gz"))
dddbc90c
RV
9553 (sha256
9554 (base32
8c9697a9 9555 "1cxswz72sqdg2z1nbpgp1k5qr41djgk8qbf8nz7wfppsrhacyffi"))))
dddbc90c 9556 (build-system haskell-build-system)
8c9697a9
ASM
9557 (inputs
9558 `(("ghc-aeson" ,ghc-aeson)
9559 ("ghc-attoparsec" ,ghc-attoparsec)
9560 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
9561 ("ghc-blaze-html" ,ghc-blaze-html)
9562 ("ghc-conduit" ,ghc-conduit)
9563 ("ghc-fast-logger" ,ghc-fast-logger)
9564 ("ghc-http-api-data" ,ghc-http-api-data)
9565 ("ghc-monad-logger" ,ghc-monad-logger)
9566 ("ghc-path-pieces" ,ghc-path-pieces)
9567 ("ghc-resource-pool" ,ghc-resource-pool)
9568 ("ghc-resourcet" ,ghc-resourcet)
9569 ("ghc-scientific" ,ghc-scientific)
9570 ("ghc-silently" ,ghc-silently)
9571 ("ghc-unliftio-core" ,ghc-unliftio-core)
9572 ("ghc-unliftio" ,ghc-unliftio)
9573 ("ghc-unordered-containers"
9574 ,ghc-unordered-containers)
9575 ("ghc-vector" ,ghc-vector)))
dddbc90c
RV
9576 (native-inputs `(("ghc-hspec" ,ghc-hspec)))
9577 (home-page "https://www.yesodweb.com/book/persistent")
9578 (synopsis "Type-safe, multi-backend data serialization for Haskell")
9579 (description "This Haskell package allows Haskell programs to access data
9580storage systems like PostgreSQL, SQLite, MySQL and MongoDB in a type-safe
9581way.")
9582 (license license:expat)))
9583
9584(define-public ghc-persistent-sqlite
9585 (package
9586 (name "ghc-persistent-sqlite")
78858787 9587 (version "2.10.5.2")
dddbc90c
RV
9588 (source
9589 (origin
9590 (method url-fetch)
78858787
ASM
9591 (uri (string-append
9592 "https://hackage.haskell.org/package/persistent-sqlite/"
9593 "persistent-sqlite-" version ".tar.gz"))
dddbc90c
RV
9594 (sha256
9595 (base32
78858787 9596 "0agag3cgivl6mk38pqzr0qw5lxps9p2bgdwvi5658l46hs7bixxn"))))
dddbc90c 9597 (build-system haskell-build-system)
78858787
ASM
9598 (inputs
9599 `(("ghc-persistent" ,ghc-persistent)
9600 ("ghc-aeson" ,ghc-aeson)
9601 ("ghc-conduit" ,ghc-conduit)
9602 ("ghc-microlens-th" ,ghc-microlens-th)
9603 ("ghc-monad-logger" ,ghc-monad-logger)
9604 ("ghc-resource-pool" ,ghc-resource-pool)
9605 ("ghc-resourcet" ,ghc-resourcet)
9606 ("ghc-unliftio-core" ,ghc-unliftio-core)
9607 ("ghc-unordered-containers"
9608 ,ghc-unordered-containers)))
9609 (native-inputs
9610 `(("ghc-persistent-template"
9611 ,ghc-persistent-template)
9612 ("ghc-persistent-test" ,ghc-persistent-test)
9613 ("ghc-exceptions" ,ghc-exceptions)
9614 ("ghc-fast-logger" ,ghc-fast-logger)
9615 ("ghc-hspec" ,ghc-hspec)
9616 ("ghc-hunit" ,ghc-hunit)
9617 ("ghc-quickcheck" ,ghc-quickcheck)
9618 ("ghc-system-fileio" ,ghc-system-fileio)
9619 ("ghc-system-filepath" ,ghc-system-filepath)
9620 ("ghc-temporary" ,ghc-temporary)))
dddbc90c
RV
9621 (home-page
9622 "https://www.yesodweb.com/book/persistent")
9623 (synopsis "Backend for the persistent library using sqlite3")
9624 (description "This Haskell package includes a thin sqlite3 wrapper based
9625on the direct-sqlite package, as well as the entire C library, so there are no
9626system dependencies.")
9627 (license license:expat)))
9628
9629(define-public ghc-persistent-template
9630 (package
9631 (name "ghc-persistent-template")
d5378e98 9632 (version "2.8.0")
dddbc90c
RV
9633 (source
9634 (origin
9635 (method url-fetch)
d5378e98
ASM
9636 (uri (string-append
9637 "https://hackage.haskell.org/package/persistent-template/"
9638 "persistent-template-" version ".tar.gz"))
dddbc90c
RV
9639 (sha256
9640 (base32
d5378e98 9641 "16yjrl0gh4jbs4skr7iv6a55lny59bqhd6hjmvch1cl9j5d0c0g3"))))
dddbc90c 9642 (build-system haskell-build-system)
d5378e98
ASM
9643 (inputs
9644 `(("ghc-persistent" ,ghc-persistent)
9645 ("ghc-aeson" ,ghc-aeson)
9646 ("ghc-http-api-data" ,ghc-http-api-data)
9647 ("ghc-monad-control" ,ghc-monad-control)
9648 ("ghc-monad-logger" ,ghc-monad-logger)
9649 ("ghc-path-pieces" ,ghc-path-pieces)
9650 ("ghc-th-lift-instances" ,ghc-th-lift-instances)
9651 ("ghc-unordered-containers"
9652 ,ghc-unordered-containers)))
9653 (native-inputs
9654 `(("ghc-hspec" ,ghc-hspec)
9655 ("ghc-quickcheck" ,ghc-quickcheck)))
dddbc90c
RV
9656 (home-page "https://www.yesodweb.com/book/persistent")
9657 (synopsis "Type-safe, non-relational, multi-backend persistence")
9658 (description "This Haskell package provides interfaces and helper
9659functions for the ghc-persistent package.")
9660 (license license:expat)))
9661
ce32f7c7
ASM
9662(define-public ghc-persistent-test
9663 (package
9664 (name "ghc-persistent-test")
9665 (version "2.0.3.1")
9666 (source
9667 (origin
9668 (method url-fetch)
9669 (uri (string-append
9670 "https://hackage.haskell.org/package/persistent-test/"
9671 "persistent-test-" version ".tar.gz"))
9672 (sha256
9673 (base32
9674 "11aq5cy0n43jamf6mg4sr4300bc2zdbjxsczzxwjkb4hzs0ijsdv"))))
9675 (build-system haskell-build-system)
9676 (inputs
9677 `(("ghc-aeson" ,ghc-aeson)
9678 ("ghc-blaze-html" ,ghc-blaze-html)
9679 ("ghc-conduit" ,ghc-conduit)
9680 ("ghc-monad-control" ,ghc-monad-control)
9681 ("ghc-monad-logger" ,ghc-monad-logger)
9682 ("ghc-path-pieces" ,ghc-path-pieces)
9683 ("ghc-persistent" ,ghc-persistent)
9684 ("ghc-persistent-template" ,ghc-persistent-template)
9685 ("ghc-random" ,ghc-random)
9686 ("ghc-resourcet" ,ghc-resourcet)
9687 ("ghc-transformers-base" ,ghc-transformers-base)
9688 ("ghc-unliftio" ,ghc-unliftio)
9689 ("ghc-unliftio-core" ,ghc-unliftio-core)
9690 ("ghc-unordered-containers" ,ghc-unordered-containers)))
9691 (native-inputs
9692 `(("ghc-quickcheck" ,ghc-quickcheck)
9693 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
9694 ("ghc-hspec" ,ghc-hspec)
9695 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
9696 ("ghc-hunit" ,ghc-hunit)))
9697 (home-page "https://www.yesodweb.com/book/persistent")
9698 (synopsis "Tests for the Persistent database library")
9699 (description
9700 "This is only for use in developing libraries that should conform to
9701the persistent interface, not for users of the persistent suite of database
9702libraries.")
9703 (license license:expat)))
9704
0fb34235
JS
9705(define-public ghc-pgp-wordlist
9706 (package
9707 (name "ghc-pgp-wordlist")
9708 (version "0.1.0.3")
9709 (source
9710 (origin
9711 (method url-fetch)
9712 (uri (string-append
9713 "mirror://hackage/package/pgp-wordlist/pgp-wordlist-"
9714 version
9715 ".tar.gz"))
9716 (sha256
9717 (base32
9718 "15g6qh0fb7kjj3l0w8cama7cxgnhnhybw760md9yy7cqfq15cfzg"))))
9719 (build-system haskell-build-system)
9720 (inputs
9721 `(("ghc-vector" ,ghc-vector)))
9722 (native-inputs
9723 `(("ghc-hunit" ,ghc-hunit)
9724 ("ghc-tasty" ,ghc-tasty)
9725 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
9726 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
9727 ("ghc-doctest" ,ghc-doctest)))
9728 (home-page
9729 "https://github.com/quchen/pgp-wordlist")
9730 (synopsis
9731 "Translate between binary data and a human-readable collection of words")
9732 (description
9733 "The PGP Word List consists of two phonetic alphabets, each with one word
9734per possible byte value. A string of bytes is translated with these
9735alphabets, alternating between them at each byte.
9736
9737The PGP words corresponding to the bytes 5B 1D CA 6E are \"erase breakaway
9738spellbind headwaters\", for example.
9739
9740For further information, see
9741@url{http://en.wikipedia.org/wiki/PGP_word_list}.")
9742 (license license:bsd-3)))
9743
4639fa32
ASM
9744(define-public ghc-pipes
9745 (package
9746 (name "ghc-pipes")
9747 (version "4.3.13")
9748 (source
9749 (origin
9750 (method url-fetch)
9751 (uri (string-append
9752 "https://hackage.haskell.org/package/pipes/"
9753 "pipes-" version ".tar.gz"))
9754 (sha256
9755 (base32
9756 "1ch3xr5f5if0psd3lsyrpkwrgh36synnzqcpimghprys68l4zfkn"))))
9757 (build-system haskell-build-system)
9758 (inputs
9759 `(("ghc-exceptions" ,ghc-exceptions)
9760 ("ghc-mmorph" ,ghc-mmorph)
9761 ("ghc-void" ,ghc-void)
9762 ("ghc-semigroups" ,ghc-semigroups)))
9763 (native-inputs
9764 `(("ghc-quickcheck" ,ghc-quickcheck)
9765 ("ghc-test-framework" ,ghc-test-framework)
9766 ("ghc-test-framework-quickcheck2"
9767 ,ghc-test-framework-quickcheck2)))
9768 (home-page
9769 "https://hackage.haskell.org/package/pipes")
9770 (synopsis "Compositional pipelines")
9771 (description
9772 "A clean and powerful stream processing library that lets you build
9773and connect reusable streaming components. Advantages over traditional streaming
9774libraries:
9775@itemize
9776@item Concise API: Use simple commands like @code{for}, (@code{>->}), @code{await},
9777and @code{yield}
9778@item Blazing fast: Implementation tuned for speed, including shortcut fusion
9779@item Lightweight Dependency: pipes is small and compiles very rapidly, including
9780dependencies
9781@item Elegant semantics: Use practical category theory
9782@item ListT: Correct implementation of @code{ListT} that interconverts with pipes
9783@item Bidirectionality: Implement duplex channels
9784@end itemize")
9785 (license license:bsd-3)))
9786
451775a5
ASM
9787(define-public ghc-pointedlist
9788 (package
9789 (name "ghc-pointedlist")
9790 (version "0.6.1")
9791 (source
9792 (origin
9793 (method url-fetch)
9794 (uri (string-append
9795 "https://hackage.haskell.org/package/pointedlist/"
9796 "pointedlist-" version ".tar.gz"))
9797 (sha256
9798 (base32
9799 "16xsrzqql7i4z6a3xy07sqnbyqdmcar1jiacla58y4mvkkwb0g3l"))))
9800 (build-system haskell-build-system)
9801 (home-page
3ef91e15 9802 "https://hackage.haskell.org/package/pointedlist")
451775a5
ASM
9803 (synopsis
9804 "Zipper-like comonad which works as a list, tracking a position")
9805 (description
9806 "A PointedList tracks the position in a non-empty list which works
9807similarly to a zipper. A current item is always required, and therefore
9808the list may never be empty. A circular PointedList wraps around to the
9809other end when progressing past the actual edge.")
9810 (license license:bsd-3)))
9811
dddbc90c
RV
9812(define-public ghc-polyparse
9813 (package
9814 (name "ghc-polyparse")
9822b9ca 9815 (version "1.12.1")
dddbc90c
RV
9816 (source
9817 (origin
9818 (method url-fetch)
9819 (uri (string-append
9820 "https://hackage.haskell.org/package/polyparse/polyparse-"
9821 version
9822 ".tar.gz"))
9823 (sha256
9824 (base32
9822b9ca 9825 "19fs18g7fvfdkm9zy28cgighjcxfa6mcpqgyp6whmsjkb3h393fx"))))
dddbc90c
RV
9826 (build-system haskell-build-system)
9827 (home-page
9828 "http://code.haskell.org/~malcolm/polyparse/")
9829 (synopsis
9830 "Alternative parser combinator libraries")
9831 (description
9832 "This package provides a variety of alternative parser combinator
9833libraries, including the original HuttonMeijer set. The Poly sets have
9834features like good error reporting, arbitrary token type, running state, lazy
9835parsing, and so on. Finally, Text.Parse is a proposed replacement for the
9836standard Read class, for better deserialisation of Haskell values from
9837Strings.")
9838 (license license:lgpl2.1)))
9839
9840(define-public ghc-pqueue
9841 (package
9842 (name "ghc-pqueue")
142415b0 9843 (version "1.4.1.2")
dddbc90c
RV
9844 (source
9845 (origin
9846 (method url-fetch)
9847 (uri (string-append "https://hackage.haskell.org/package/"
9848 "pqueue/pqueue-" version ".tar.gz"))
9849 (sha256
9850 (base32
142415b0 9851 "1v4zhv2sc1zsw91hvnarkjhayx2dnf7ccxz6rrhsqpcs0szaranj"))))
dddbc90c
RV
9852 (build-system haskell-build-system)
9853 (native-inputs
9854 `(("ghc-quickcheck" ,ghc-quickcheck)))
9855 (home-page "https://hackage.haskell.org/package/pqueue")
9856 (synopsis "Reliable, persistent, fast priority queues")
9857 (description
9858 "This package provides a fast, reliable priority queue implementation
9859based on a binomial heap.")
9860 (license license:bsd-3)))
9861
9862(define-public ghc-prelude-extras
9863 (package
9864 (name "ghc-prelude-extras")
9865 (version "0.4.0.3")
9866 (source
9867 (origin
9868 (method url-fetch)
9869 (uri (string-append
9870 "https://hackage.haskell.org/package/prelude-extras/prelude-extras-"
9871 version
9872 ".tar.gz"))
9873 (sha256
9874 (base32
9875 "0xzqdf3nl2h0ra4gnslm1m1nsxlsgc0hh6ky3vn578vh11zhifq9"))))
9876 (build-system haskell-build-system)
9877 (home-page "https://github.com/ekmett/prelude-extras")
9878 (synopsis "Higher order versions of Prelude classes")
9879 (description "This library provides higher order versions of
9880@code{Prelude} classes to ease programming with polymorphic recursion and
9881reduce @code{UndecidableInstances}.")
9882 (license license:bsd-3)))
9883
9884(define-public ghc-prettyclass
9885 (package
9886 (name "ghc-prettyclass")
9887 (version "1.0.0.0")
9888 (source
9889 (origin
9890 (method url-fetch)
9891 (uri (string-append "https://hackage.haskell.org/package/"
9892 "prettyclass/prettyclass-" version ".tar.gz"))
9893 (sha256
9894 (base32
9895 "11l9ajci7nh1r547hx8hgxrhq8mh5gdq30pdf845wvilg9p48dz5"))))
9896 (build-system haskell-build-system)
3ef91e15 9897 (home-page "https://hackage.haskell.org/package/prettyclass")
dddbc90c
RV
9898 (synopsis "Pretty printing class similar to Show")
9899 (description "This package provides a pretty printing class similar
9900to @code{Show}, based on the HughesPJ pretty printing library. It
9901provides the pretty printing class and instances for the Prelude
9902types.")
9903 (license license:bsd-3)))
9904
2fad2bf7
JS
9905(define-public ghc-prettyprinter
9906 (package
9907 (name "ghc-prettyprinter")
9908 (version "1.2.1.1")
9909 (source
9910 (origin
9911 (method url-fetch)
9912 (uri (string-append
9913 "mirror://hackage/package/prettyprinter/prettyprinter-"
9914 version
9915 ".tar.gz"))
9916 (sha256
9917 (base32 "1p9c3q55hba4c0zyxc624g5df7wgsclpsmd8wqpdnmib882q9d1v"))))
9918 (build-system haskell-build-system)
9919 (native-inputs
9920 `(("ghc-doctest" ,ghc-doctest)
9921 ("ghc-pgp-wordlist" ,ghc-pgp-wordlist)
9922 ("ghc-tasty" ,ghc-tasty)
9923 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
9924 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
9925 (home-page "https://github.com/quchen/prettyprinter")
9926 (synopsis
9927 "Modern, easy to use, well-documented, extensible pretty-printer")
9928 (description
9929 "A prettyprinter/text rendering engine. Easy to use, well-documented,
9930ANSI terminal backend exists, HTML backend is trivial to implement, no name
9931clashes, @code{Text}-based, extensible.")
9932 (license license:bsd-2)))
9933
2496e49f
JS
9934(define-public ghc-prettyprinter-1.6
9935 (package
9936 (inherit ghc-prettyprinter)
9937 (version "1.6.1")
9938 (source
9939 (origin
9940 (method url-fetch)
9941 (uri (string-append
9942 "mirror://hackage/package/prettyprinter/prettyprinter-"
9943 version
9944 ".tar.gz"))
9945 (sha256
9946 (base32 "10fphxh8lvdaw7i8jyllwmj87w02db92mf99zfw5vddp9mv6b5rz"))))
9947 (inputs
9948 `(("ghc-quickckeck-instances" , ghc-quickcheck-instances)
9949 ,@(package-inputs ghc-prettyprinter)))))
9950
b4f24d66
JS
9951(define-public ghc-prettyprinter-ansi-terminal
9952 (package
9953 (name "ghc-prettyprinter-ansi-terminal")
9954 (version "1.1.1.2")
9955 (source
9956 (origin
9957 (method url-fetch)
9958 (uri (string-append
9959 "mirror://hackage/package/prettyprinter-ansi-terminal/"
9960 "prettyprinter-ansi-terminal-" version ".tar.gz"))
9961 (sha256
9962 (base32 "0ha6vz707qzb5ky7kdsnw2zgphg2dnxrpbrxy8gaw119vwhb9q6k"))))
9963 (build-system haskell-build-system)
9964 (inputs
9965 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
9966 ("ghc-prettyprinter" ,ghc-prettyprinter-1.6)))
9967 (native-inputs `(("ghc-doctest" ,ghc-doctest)))
9968 (home-page
9969 "https://github.com/quchen/prettyprinter")
9970 (synopsis
9971 "ANSI terminal backend for the prettyprinter package")
9972 (description "ANSI terminal backend for the prettyprinter package.")
9973 (license license:bsd-2)))
9974
dddbc90c
RV
9975(define-public ghc-pretty-hex
9976 (package
9977 (name "ghc-pretty-hex")
9978 (version "1.0")
9979 (source
9980 (origin
9981 (method url-fetch)
9982 (uri (string-append "https://hackage.haskell.org/package/"
9983 "pretty-hex-" version "/"
9984 "pretty-hex-" version ".tar.gz"))
9985 (sha256
9986 (base32
9987 "0ylwkvvjvmpprha9nx83xb8gkhyanhk5fffc0r7lb96n4ch5z6pz"))))
9988 (build-system haskell-build-system)
9989 (home-page "https://github.com/GaloisInc/hexdump")
9990 (synopsis "Haskell library for hex dumps of ByteStrings")
9991 (description "This Haskell library generates pretty hex dumps of
9992ByteStrings in the style of other common *nix hex dump tools.")
9993 (license license:bsd-3)))
9994
9995(define-public ghc-pretty-show
9996 (package
9997 (name "ghc-pretty-show")
7683a084 9998 (version "1.9.5")
dddbc90c
RV
9999 (source
10000 (origin
10001 (method url-fetch)
10002 (uri (string-append "https://hackage.haskell.org/package/pretty-show/"
10003 "pretty-show-" version ".tar.gz"))
10004 (sha256
10005 (base32
7683a084 10006 "0gs2pabi4qa4b0r5vffpf9b1cf5n9y2939a3lljjw7cmg6xvx5dh"))))
dddbc90c
RV
10007 (build-system haskell-build-system)
10008 (inputs
10009 `(("ghc-haskell-lexer" ,ghc-haskell-lexer)
10010 ("ghc-happy" ,ghc-happy)))
702a1012 10011 (home-page "https://wiki.github.com/yav/pretty-show")
dddbc90c
RV
10012 (synopsis "Tools for working with derived `Show` instances")
10013 (description
10014 "This package provides a library and an executable for working with
10015derived @code{Show} instances. By using the library, derived @code{Show}
10016instances can be parsed into a generic data structure. The @code{ppsh} tool
10017uses the library to produce human-readable versions of @code{Show} instances,
10018which can be quite handy for debugging Haskell programs. We can also render
10019complex generic values into an interactive Html page, for easier
10020examination.")
10021 (license license:expat)))
10022
f011e3d6
JS
10023(define-public ghc-pretty-simple
10024 (package
10025 (name "ghc-pretty-simple")
10026 (version "2.2.0.1")
10027 (source
10028 (origin
10029 (method url-fetch)
10030 (uri (string-append
10031 "mirror://hackage/package/pretty-simple/"
10032 "pretty-simple-" version ".tar.gz"))
10033 (sha256
10034 (base32 "0wsi9235ihm15s145lxi7325vv2k4bhighc5m88kn1lk0pl81aqq"))))
10035 (build-system haskell-build-system)
10036 (inputs
10037 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
10038 ("ghc-glob" ,ghc-glob)
10039 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
10040 ("ghc-aeson" ,ghc-aeson)))
10041 (native-inputs
10042 `(("ghc-doctest" ,ghc-doctest)))
10043 (home-page "https://github.com/cdepillabout/pretty-simple")
10044 (synopsis "Pretty printer for data types with a 'Show' instance")
10045 (description
10046 "Pretty-simple is a pretty printer for Haskell data types that have a
10047Show instance.")
10048 (license license:bsd-3)))
10049
dddbc90c
RV
10050(define-public ghc-primitive
10051 (package
10052 (name "ghc-primitive")
10053 (version "0.6.4.0")
534d6caa 10054 (outputs '("out" "static" "doc"))
dddbc90c
RV
10055 (source
10056 (origin
10057 (method url-fetch)
10058 (uri (string-append
10059 "https://hackage.haskell.org/package/primitive/primitive-"
10060 version
10061 ".tar.gz"))
10062 (sha256
10063 (base32
10064 "0r0cda7acvplgwaxy69kviv4jp7kkfi038by68gj4yfx4iwszgjc"))))
10065 (build-system haskell-build-system)
6cf0daa4
TS
10066 (arguments
10067 `(#:cabal-revision
10068 ("1" "18a14k1yiam1m4l29rin9a0y53yp3nxvkz358nysld8aqwy2qsjv")))
dddbc90c
RV
10069 (home-page
10070 "https://github.com/haskell/primitive")
10071 (synopsis "Primitive memory-related operations")
10072 (description
10073 "This package provides various primitive memory-related operations.")
10074 (license license:bsd-3)))
10075
21f5b9a9
JS
10076(define-public ghc-process-extras
10077 (package
10078 (name "ghc-process-extras")
10079 (version "0.7.4")
10080 (source
10081 (origin
10082 (method url-fetch)
10083 (uri
10084 (string-append
10085 "https://hackage.haskell.org/package/process-extras/"
10086 "process-extras-" version ".tar.gz"))
10087 (sha256
10088 (base32
10089 "0klqgr37f1z2z6i0a9b0giapmq0p35l5k9kz1p7f0k1597w7agi9"))))
10090 (build-system haskell-build-system)
10091 (inputs
10092 `(("ghc-data-default" ,ghc-data-default)
10093 ("ghc-generic-deriving" ,ghc-generic-deriving)
10094 ("ghc-hunit" ,ghc-hunit)
10095 ("ghc-listlike" ,ghc-listlike)))
10096 (home-page "https://github.com/seereason/process-extras")
10097 (synopsis "Extra tools for managing processes")
f74b6983 10098 (description "This package extends
21f5b9a9
JS
10099@url{http://hackage.haskell.org/package/process}. It allows you to read
10100process input and output as ByteStrings or Text, or write your own
10101ProcessOutput instance. It also provides lazy process input and output,
10102and a ProcessMaker class for more flexibility in the process creation
10103API.")
10104 (license license:expat)))
10105
dddbc90c
RV
10106(define-public ghc-profunctors
10107 (package
10108 (name "ghc-profunctors")
899b5297 10109 (version "5.3")
dddbc90c
RV
10110 (source
10111 (origin
10112 (method url-fetch)
10113 (uri (string-append
10114 "https://hackage.haskell.org/package/profunctors/profunctors-"
10115 version
10116 ".tar.gz"))
10117 (sha256
10118 (base32
899b5297 10119 "1dx3nkc27yxsrbrhh3iwhq7dl1xn6bj7n62yx6nh8vmpbg62lqvl"))))
dddbc90c 10120 (build-system haskell-build-system)
1ad496e5 10121 (outputs '("out" "static" "doc"))
dddbc90c
RV
10122 (inputs
10123 `(("ghc-base-orphans" ,ghc-base-orphans)
10124 ("ghc-bifunctors" ,ghc-bifunctors)
10125 ("ghc-comonad" ,ghc-comonad)
10126 ("ghc-contravariant" ,ghc-contravariant)
10127 ("ghc-distributive" ,ghc-distributive)
10128 ("ghc-semigroups" ,ghc-semigroups)
10129 ("ghc-tagged" ,ghc-tagged)))
10130 (home-page "https://github.com/ekmett/profunctors/")
10131 (synopsis "Profunctors for Haskell")
10132 (description "This library provides profunctors for Haskell.")
10133 (license license:bsd-3)))
10134
fbe32d46
ASM
10135(define-public ghc-project-template
10136 (package
10137 (name "ghc-project-template")
10138 (version "0.2.0.1")
10139 (source
10140 (origin
10141 (method url-fetch)
10142 (uri (string-append
10143 "https://hackage.haskell.org/package/project-template/project-template-"
10144 version ".tar.gz"))
10145 (sha256
10146 (base32
10147 "1p69ww4rhah2qxragl615wl4a6mk4x9w09am8knmz3s4lxpljlpb"))))
10148 (build-system haskell-build-system)
10149 (inputs
10150 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
10151 ("ghc-conduit" ,ghc-conduit)
10152 ("ghc-conduit-extra" ,ghc-conduit-extra)
10153 ("ghc-resourcet" ,ghc-resourcet)))
10154 (native-inputs
10155 `(("ghc-hspec" ,ghc-hspec)
10156 ("hspec-discover" ,hspec-discover)
10157 ("ghc-quickcheck" ,ghc-quickcheck)))
10158 (arguments
10159 `(#:cabal-revision
10160 ("1"
10161 "0lq3sqnq0nr0gbvgzp0lqdl3j3mqdmdlf8xsw0j3pjh581xj3k0a")))
10162 (home-page "https://github.com/fpco/haskell-ide")
10163 (synopsis "Specify Haskell project templates and generate files")
10164 (description
10165 "Haskell library for both generating and consuming project templates.
10166
10167ost IDEs provide the concept of a project template: instead of writing all
10168of the code for a project from scratch, you select a template, answer a few
10169questions, and a bunch of files are automatically generated.
10170
10171project-template tries to provide a canonical Haskell library for implementing
10172the ideal templating system.")
10173 (license license:bsd-3)))
10174
8a6e745d
JS
10175(define-public ghc-protolude
10176 (package
10177 (name "ghc-protolude")
10178 (version "0.2.3")
10179 (source
10180 (origin
10181 (method url-fetch)
10182 (uri (string-append
10183 "mirror://hackage/package/protolude/protolude-"
10184 version
10185 ".tar.gz"))
10186 (sha256
10187 (base32
10188 "0zzkyxz0vmcbncpid7gp72fpjj0fla3gqhlfkij5c5lg12skjgfj"))))
10189 (build-system haskell-build-system)
10190 (inputs
10191 `(("ghc-async" ,ghc-async)
10192 ("ghc-hashable" ,ghc-hashable)
10193 ("ghc-mtl-compat" ,ghc-mtl-compat)
10194 ("ghc-transformers-compat" ,ghc-transformers-compat)))
10195 (home-page "https://github.com/protolude/protolude")
10196 (synopsis "Sensible set of defaults for writing custom Preludes")
10197 (description
10198 "Protolude gives you sensible defaults for writing custom Preludes to
10199replace the standard one provided by GHC.")
10200 (license license:expat)))
10201
cf123e32
MB
10202(define-public ghc-psqueue
10203 (package
10204 (name "ghc-psqueue")
10205 (version "1.1.0.1")
10206 (source (origin
10207 (method url-fetch)
10208 (uri (string-append "mirror://hackage/package/PSQueue-"
10209 version "/PSQueue-" version ".tar.gz"))
10210 (sha256
10211 (base32
10212 "1cik7sw10sacsijmfhghzy54gm1qcyxw14shlp86lx8z89kcnkza"))))
10213 (build-system haskell-build-system)
10214 (home-page "https://hackage.haskell.org/package/PSQueue")
10215 (synopsis "Priority search queue")
10216 (description
10217 "A @dfn{priority search queue} efficiently supports the operations of
10218both a search tree and a priority queue. A @code{Binding} is a product of
10219a key and a priority. Bindings can be inserted, deleted, modified and queried
10220in logarithmic time, and the binding with the least priority can be retrieved
10221in constant time. A queue can be built from a list of bindings, sorted by
10222keys, in linear time.")
10223 (license license:bsd-3)))
10224
dddbc90c
RV
10225(define-public ghc-psqueues
10226 (package
10227 (name "ghc-psqueues")
5d133942 10228 (version "0.2.7.2")
dddbc90c
RV
10229 (source
10230 (origin
10231 (method url-fetch)
10232 (uri (string-append "https://hackage.haskell.org/package/"
10233 "psqueues-" version "/"
10234 "psqueues-" version ".tar.gz"))
10235 (sha256
10236 (base32
5d133942 10237 "1yckx2csqswghiy9nfj03cybmza8104nmnpbpcc9ngwlbmakn9i6"))))
dddbc90c
RV
10238 (build-system haskell-build-system)
10239 (inputs
10240 `(("ghc-hashable" ,ghc-hashable)))
10241 (native-inputs
10242 `(("ghc-hunit" ,ghc-hunit)
10243 ("ghc-quickcheck" ,ghc-quickcheck)
10244 ("ghc-tagged" ,ghc-tagged)
5d133942
TS
10245 ("ghc-tasty" ,ghc-tasty)
10246 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
10247 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
dddbc90c
RV
10248 (home-page "https://github.com/jaspervdj/psqueues")
10249 (synopsis "Pure priority search queues")
10250 (description "The psqueues package provides
10251@uref{https://en.wikipedia.org/wiki/Priority_queue, Priority Search Queues} in
10252three different flavors:
10253
10254@itemize
10255@item @code{OrdPSQ k p v}, which uses the @code{Ord k} instance to provide
10256fast insertion, deletion and lookup. This implementation is based on Ralf
10257Hinze's @uref{http://citeseer.ist.psu.edu/hinze01simple.html, A Simple
10258Implementation Technique for Priority Search Queues}.
10259
10260Hence, it is similar to the @uref{https://hackage.haskell.org/package/PSQueue,
10261PSQueue} library, although it is considerably faster and provides a slightly
10262different API.
10263
10264@item @code{IntPSQ p v} is a far more efficient implementation. It fixes the
10265key type to @code{Int} and uses a
10266@code{https://en.wikipedia.org/wiki/Radix_tree, radix tree} (like @code{IntMap})
10267with an additional min-heap property.
10268
10269@item @code{HashPSQ k p v} is a fairly straightforward extension
10270of @code{IntPSQ}: it simply uses the keys' hashes as indices in the
10271@code{IntPSQ}. If there are any hash collisions, it uses an
10272@code{OrdPSQ} to resolve those. The performance of this implementation
10273is comparable to that of @code{IntPSQ}, but it is more widely
10274applicable since the keys are not restricted to @code{Int},
10275but rather to any @code{Hashable} datatype.
10276@end itemize
10277
10278Each of the three implementations provides the same API, so they can
10279be used interchangeably.
10280
10281Typical applications of Priority Search Queues include:
10282
10283@itemize
10284@item Caches, and more specifically LRU Caches;
10285@item Schedulers;
10286@item Pathfinding algorithms, such as Dijkstra's and A*.
10287@end itemize")
10288 (license license:bsd-3)))
b1dbc9f5
ASM
10289
10290(define-public ghc-pwstore-fast
10291 (package
10292 (name "ghc-pwstore-fast")
10293 (version "2.4.4")
10294 (source
10295 (origin
10296 (method url-fetch)
10297 (uri (string-append
10298 "https://hackage.haskell.org/package/pwstore-fast/"
10299 "pwstore-fast-" version ".tar.gz"))
10300 (sha256
10301 (base32
10302 "1cpvlwzg3qznhygrr78f75p65mnljd9v5cvnagfxjqppnrkay6bj"))))
10303 (build-system haskell-build-system)
10304 (inputs
10305 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
10306 ("ghc-cryptohash" ,ghc-cryptohash)
10307 ("ghc-random" ,ghc-random)
10308 ("ghc-byteable" ,ghc-byteable)))
10309 (home-page "https://github.com/PeterScott/pwstore")
10310 (synopsis "Secure password storage")
10311 (description
10312 "To store passwords securely, they should be salted, then hashed with
10313a slow hash function. This library uses PBKDF1-SHA256, and handles all the
10314details. It uses the cryptohash package for speed; if you need a pure
10315Haskell library, pwstore-purehaskell has the exact same API, but uses only
10316pure Haskell. It is about 25 times slower than this package, but still quite
10317usable.")
10318 (license license:bsd-3)))
dddbc90c
RV
10319
10320(define-public ghc-random
10321 (package
10322 (name "ghc-random")
10323 (version "1.1")
534d6caa 10324 (outputs '("out" "static" "doc"))
dddbc90c
RV
10325 (source
10326 (origin
10327 (method url-fetch)
10328 (uri (string-append
10329 "https://hackage.haskell.org/package/random/random-"
10330 version
10331 ".tar.gz"))
10332 (sha256
10333 (base32 "0nis3lbkp8vfx8pkr6v7b7kr5m334bzb0fk9vxqklnp2aw8a865p"))))
10334 (build-system haskell-build-system)
10335 (home-page "https://hackage.haskell.org/package/random")
10336 (synopsis "Random number library")
10337 (description "This package provides a basic random number generation
10338library, including the ability to split random number generators.")
10339 (license license:bsd-3)))
10340
10341(define-public ghc-raw-strings-qq
10342 (package
10343 (name "ghc-raw-strings-qq")
10344 (version "1.1")
10345 (source
10346 (origin
10347 (method url-fetch)
10348 (uri (string-append "https://hackage.haskell.org/package/"
10349 "raw-strings-qq/raw-strings-qq-"
10350 version ".tar.gz"))
10351 (sha256
10352 (base32
10353 "1lxy1wy3awf52968iy5y9r5z4qgnn2sxkdrh7js3m9gadb11w09f"))))
10354 (build-system haskell-build-system)
10355 (native-inputs `(("ghc-hunit" ,ghc-hunit)))
10356 (home-page "https://github.com/23Skidoo/raw-strings-qq")
10357 (synopsis "Raw string literals for Haskell")
10358 (description
10359 "This package provides a quasiquoter for raw string literals, i.e. string
10360literals that don't recognise the standard escape sequences. Basically, they
10361make your code more readable by freeing you from the responsibility to escape
10362backslashes. They are useful when working with regular expressions,
10363DOS/Windows paths and markup languages (such as XML).")
10364 (license license:bsd-3)))
10365
10366(define-public ghc-readable
10367 (package
10368 (name "ghc-readable")
10369 (version "0.3.1")
10370 (source
10371 (origin
10372 (method url-fetch)
10373 (uri (string-append "https://hackage.haskell.org/package/"
10374 "readable/readable-" version ".tar.gz"))
10375 (sha256
10376 (base32
10377 "1ja39cg26wy2fs00gi12x7iq5k8i366pbqi3p916skfa5jnkfc3h"))))
10378 (build-system haskell-build-system)
10379 (home-page "https://github.com/mightybyte/readable")
10380 (synopsis "Type class for reading from Text and ByteString")
10381 (description "This package provides a @code{Readable} type class for
10382reading data types from @code{ByteString} and @code{Text}. It also
10383includes efficient implementations for common data types.")
10384 (license license:bsd-3)))
10385
10386(define-public ghc-rebase
10387 (package
10388 (name "ghc-rebase")
8d2ae3fe 10389 (version "1.3.1.1")
dddbc90c
RV
10390 (source
10391 (origin
10392 (method url-fetch)
10393 (uri (string-append "https://hackage.haskell.org/package/"
10394 "rebase-" version "/"
10395 "rebase-" version ".tar.gz"))
10396 (sha256
10397 (base32
8d2ae3fe 10398 "0q4m2fa7wkgxs0grir8rlqwibasmi3s1x7c107ynndwfm62nzv0a"))))
dddbc90c 10399 (build-system haskell-build-system)
e396e936 10400 (outputs '("out" "static" "doc"))
dddbc90c
RV
10401 (inputs `(("ghc-hashable" ,ghc-hashable)
10402 ("ghc-vector" ,ghc-vector)
10403 ("ghc-unordered-containers" ,ghc-unordered-containers)
10404 ("ghc-scientific" ,ghc-scientific)
10405 ("ghc-uuid" ,ghc-uuid)
10406 ("ghc-dlist" ,ghc-dlist)
10407 ("ghc-void" ,ghc-void)
10408 ("ghc-bifunctors" ,ghc-bifunctors)
10409 ("ghc-profunctors" ,ghc-profunctors)
10410 ("ghc-contravariant" ,ghc-contravariant)
10411 ("ghc-contravariant-extras" ,ghc-contravariant-extras)
10412 ("ghc-semigroups" ,ghc-semigroups)
10413 ("ghc-either" ,ghc-either)
10414 ("ghc-fail" ,ghc-fail)
10415 ("ghc-base-prelude" ,ghc-base-prelude)))
10416 (home-page "https://github.com/nikita-volkov/rebase")
10417 (synopsis "Progressive alternative to the base package
10418for Haskell")
10419 (description "This Haskell package is intended for those who are
10420tired of keeping long lists of dependencies to the same essential libraries
10421in each package as well as the endless imports of the same APIs all over again.
10422
10423It also supports the modern tendencies in the language.
10424
10425To solve those problems this package does the following:
10426
10427@itemize
10428@item Reexport the original APIs under the @code{Rebase} namespace.
10429
10430@item Export all the possible non-conflicting symbols from the
10431@code{Rebase.Prelude} module.
10432
10433@item Give priority to the modern practices in the conflicting cases.
10434@end itemize
10435
10436The policy behind the package is only to reexport the non-ambiguous and
10437non-controversial APIs, which the community has obviously settled on.
10438The package is intended to rapidly evolve with the contribution from
10439the community, with the missing features being added with pull-requests.")
10440 (license license:expat)))
10441
10442(define-public ghc-reducers
10443 (package
10444 (name "ghc-reducers")
10445 (version "3.12.3")
10446 (source
10447 (origin
10448 (method url-fetch)
10449 (uri (string-append
10450 "https://hackage.haskell.org/package/reducers/reducers-"
10451 version
10452 ".tar.gz"))
10453 (sha256
10454 (base32
10455 "09wf8pl9ycglcv6qj5ba26gkg2s5iy81hsx9xp0q8na0cwvp71ki"))))
10456 (build-system haskell-build-system)
10457 (inputs
10458 `(("ghc-fingertree" ,ghc-fingertree)
10459 ("ghc-hashable" ,ghc-hashable)
10460 ("ghc-unordered-containers" ,ghc-unordered-containers)
10461 ("ghc-semigroupoids" ,ghc-semigroupoids)
10462 ("ghc-semigroups" ,ghc-semigroups)))
10463 (home-page "https://github.com/ekmett/reducers/")
10464 (synopsis "Semigroups, specialized containers and a general map/reduce framework")
10465 (description "This library provides various semigroups, specialized
10466containers and a general map/reduce framework for Haskell.")
10467 (license license:bsd-3)))
10468
10469(define-public ghc-refact
10470 (package
10471 (name "ghc-refact")
10472 (version "0.3.0.2")
10473 (source
10474 (origin
10475 (method url-fetch)
10476 (uri (string-append "https://hackage.haskell.org/package/"
10477 "refact/refact-"
10478 version ".tar.gz"))
10479 (sha256
10480 (base32
10481 "0v0zxcx29b8jxs2kgy9csykqcp8kzhdvyylw2xfwmj4pfxr2kl0a"))))
10482 (build-system haskell-build-system)
3ef91e15 10483 (home-page "https://hackage.haskell.org/package/refact")
dddbc90c
RV
10484 (synopsis "Specify refactorings to perform with apply-refact")
10485 (description
10486 "This library provides a datatype which can be interpreted by
10487@code{apply-refact}. It exists as a separate library so that applications can
10488specify refactorings without depending on GHC.")
10489 (license license:bsd-3)))
10490
10491(define-public ghc-reflection
10492 (package
10493 (name "ghc-reflection")
d215f1cc 10494 (version "2.1.5")
dddbc90c
RV
10495 (source
10496 (origin
10497 (method url-fetch)
10498 (uri (string-append
10499 "https://hackage.haskell.org/package/reflection/reflection-"
10500 version
10501 ".tar.gz"))
10502 (sha256
10503 (base32
d215f1cc 10504 "0xr947nj1vww5b8fwqmypxm3y3j5sxl4z8wnf834f83jzfzyjbi7"))))
dddbc90c
RV
10505 (build-system haskell-build-system)
10506 (inputs `(("ghc-tagged" ,ghc-tagged)))
d215f1cc
TS
10507 (native-inputs
10508 `(("ghc-hspec" ,ghc-hspec)
10509 ("ghc-quickcheck" ,ghc-quickcheck)
10510 ("hspec-discover" ,hspec-discover)))
dddbc90c
RV
10511 (home-page "https://github.com/ekmett/reflection")
10512 (synopsis "Reify arbitrary terms into types that can be reflected back
10513into terms")
10514 (description "This package addresses the 'configuration problem' which is
10515propagating configurations that are available at run-time, allowing multiple
10516configurations to coexist without resorting to mutable global variables or
10517@code{System.IO.Unsafe.unsafePerformIO}.")
10518 (license license:bsd-3)))
10519
10520(define-public ghc-regex
10521 (package
10522 (name "ghc-regex")
b9a5e634 10523 (version "1.0.2.0")
dddbc90c
RV
10524 (source
10525 (origin
10526 (method url-fetch)
10527 (uri (string-append "https://hackage.haskell.org/package/regex/"
10528 "regex-" version ".tar.gz"))
10529 (sha256
10530 (base32
b9a5e634 10531 "1f2z025hif1fr24b5khq3qxxyvpxrnhyx8xmbms332arw28rpkda"))))
dddbc90c
RV
10532 (build-system haskell-build-system)
10533 (arguments
10534 `(#:phases
10535 (modify-phases %standard-phases
10536 (add-after 'unpack 'relax-dependencies
10537 (lambda _
10538 (substitute* "regex.cabal"
10539 (("base-compat.*>=.*0.6.*")
10540 "base-compat >= 0.6\n")
10541 (("template-haskell.*>=.*2.7.*")
10542 "template-haskell >= 2.7\n"))
10543 #t)))))
10544 (inputs
10545 `(("ghc-base-compat" ,ghc-base-compat)
10546 ("ghc-hashable" ,ghc-hashable)
10547 ("ghc-regex-base" ,ghc-regex-base)
10548 ("ghc-regex-pcre-builtin" ,ghc-regex-pcre-builtin)
10549 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
10550 ("ghc-regex-tdfa-text" ,ghc-regex-tdfa-text)
10551 ("ghc-time-locale-compat" ,ghc-time-locale-compat)
10552 ("ghc-unordered-containers" ,ghc-unordered-containers)
10553 ("ghc-utf8-string" ,ghc-utf8-string)))
10554 (home-page "http://regex.uk")
10555 (synopsis "Toolkit for regex-base")
10556 (description
10557 "This package provides a regular expression toolkit for @code{regex-base}
10558with compile-time checking of regular expression syntax, data types for
10559matches and captures, a text replacement toolkit, portable options, high-level
10560AWK-like tools for building text processing apps, regular expression macros
10561with parsers and test bench, comprehensive documentation, tutorials and
10562copious examples.")
10563 (license license:bsd-3)))
10564
10565(define-public ghc-regex-applicative
10566 (package
10567 (name "ghc-regex-applicative")
30f60e42 10568 (version "0.3.3.1")
dddbc90c
RV
10569 (source
10570 (origin
10571 (method url-fetch)
10572 (uri (string-append
10573 "https://hackage.haskell.org/package/regex-applicative/"
10574 "regex-applicative-" version ".tar.gz"))
10575 (sha256
10576 (base32
30f60e42 10577 "0p0anx5vamrhrdvviwkh2zn6pa3pv2bjb7nfyc7dvz2q7g14y1lg"))))
dddbc90c
RV
10578 (build-system haskell-build-system)
10579 (inputs
10580 `(("ghc-smallcheck" ,ghc-smallcheck)
10581 ("ghc-tasty" ,ghc-tasty)
10582 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
10583 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
10584 (home-page "https://github.com/feuerbach/regex-applicative")
10585 (synopsis "Regex-based parsing with applicative interface")
10586 (description
10587 "@code{regex-applicative} is a Haskell library for parsing using
10588regular expressions. Parsers can be built using Applicative interface.")
10589 (license license:expat)))
10590
10591(define-public ghc-regex-base
10592 (package
10593 (name "ghc-regex-base")
10594 (version "0.93.2")
10595 (source
10596 (origin
10597 (method url-fetch)
10598 (uri (string-append
10599 "https://hackage.haskell.org/package/regex-base/regex-base-"
10600 version
10601 ".tar.gz"))
10602 (sha256
10603 (base32
10604 "0y1j4h2pg12c853nzmczs263di7xkkmlnsq5dlp5wgbgl49mgp10"))))
10605 (build-system haskell-build-system)
10606 (home-page
10607 "https://sourceforge.net/projects/lazy-regex")
10608 (synopsis "Replaces/Enhances Text.Regex")
10609 (description "@code{Text.Regex.Base} provides the interface API for
10610regex-posix, regex-pcre, regex-parsec, regex-tdfa, regex-dfa.")
10611 (license license:bsd-3)))
10612
10613(define-public ghc-regex-compat
10614 (package
10615 (name "ghc-regex-compat")
10616 (version "0.95.1")
10617 (source
10618 (origin
10619 (method url-fetch)
10620 (uri (string-append
10621 "https://hackage.haskell.org/package/regex-compat/regex-compat-"
10622 version
10623 ".tar.gz"))
10624 (sha256
10625 (base32
10626 "0fwmima3f04p9y4h3c23493n1xj629ia2dxaisqm6rynljjv2z6m"))))
10627 (build-system haskell-build-system)
10628 (inputs
10629 `(("ghc-regex-base" ,ghc-regex-base)
10630 ("ghc-regex-posix" ,ghc-regex-posix)))
10631 (home-page "https://sourceforge.net/projects/lazy-regex")
10632 (synopsis "Replaces/Enhances Text.Regex")
10633 (description "This library provides one module layer over
10634@code{regex-posix} to replace @code{Text.Regex}.")
10635 (license license:bsd-3)))
10636
10637(define-public ghc-regex-compat-tdfa
10638 (package
10639 (name "ghc-regex-compat-tdfa")
10640 (version "0.95.1.4")
10641 (source
10642 (origin
10643 (method url-fetch)
10644 (uri (string-append
10645 "https://hackage.haskell.org/package/regex-compat-tdfa/regex-compat-tdfa-"
10646 version ".tar.gz"))
10647 (sha256
10648 (base32
10649 "1p90fn90yhp7fvljjdqjp41cszidcfz4pw7fwvzyx4739b98x8sg"))))
10650 (build-system haskell-build-system)
10651 (inputs
10652 `(("ghc-regex-base" ,ghc-regex-base)
10653 ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
10654 (home-page "https://hub.darcs.net/shelarcy/regex-compat-tdfa")
10655 (synopsis "Unicode Support version of Text.Regex, using regex-tdfa")
10656 (description
10657 "One module layer over @code{regex-tdfa} to replace @code{Text.Regex}.
10658@code{regex-compat} can't use Unicode characters correctly because of using regex-posix.
10659This is not good for Unicode users. This modified regex-compat uses regex-tdfa to solve
10660this problem.")
10661 (license license:bsd-3)))
10662
ddd79836
MB
10663(define-public ghc-regex-pcre
10664 (package
10665 (name "ghc-regex-pcre")
10666 (version "0.94.4")
10667 (source (origin
10668 (method url-fetch)
10669 (uri (string-append "https://hackage.haskell.org/package/"
10670 "regex-pcre/regex-pcre-" version ".tar.gz"))
10671 (sha256
10672 (base32
10673 "1h16w994g9s62iwkdqa7bar2n9cfixmkzz2rm8svm960qr57valf"))))
10674 (build-system haskell-build-system)
991ca499
TS
10675 (arguments
10676 `(#:extra-directories ("pcre")))
ddd79836
MB
10677 (inputs
10678 `(("ghc-regex-base" ,ghc-regex-base)
10679 ("pcre" ,pcre)))
10680 (home-page "https://hackage.haskell.org/package/regex-pcre")
10681 (synopsis "Enhancement of the builtin Text.Regex library")
10682 (description
10683 "This package is an enhancement of the @code{Text.Regex} library.
10684It wraps the @code{PCRE} C library providing Perl-compatible regular
10685expressions.")
10686 (license license:bsd-3)))
10687
dddbc90c
RV
10688(define-public ghc-regex-pcre-builtin
10689 (package
10690 (name "ghc-regex-pcre-builtin")
ee946143 10691 (version "0.94.5.8.8.35")
dddbc90c
RV
10692 (source (origin
10693 (method url-fetch)
10694 (uri (string-append "https://hackage.haskell.org/package/"
10695 "regex-pcre-builtin/regex-pcre-builtin-"
10696 version ".tar.gz"))
10697 (sha256
10698 (base32
ee946143 10699 "1s755qdg1mxrf125sh83bsc5kjkrj8fkq8wf6dg1jan86c7p7gl4"))))
dddbc90c
RV
10700 (build-system haskell-build-system)
10701 (inputs
10702 `(("ghc-regex-base" ,ghc-regex-base)))
4723766b 10703 (home-page "https://hackage.haskell.org/package/regex-pcre-builtin")
dddbc90c
RV
10704 (synopsis "Enhancement of the builtin Text.Regex library")
10705 (description
10706 "This package is an enhancement of the @code{Text.Regex} library,
10707providing the PCRE backend to accompany regex-base, with bundled code from
10708@url{https://www.pcre.org}.")
10709 (license license:bsd-3)))
10710
10711(define-public ghc-regex-posix
10712 (package
10713 (name "ghc-regex-posix")
10714 (version "0.95.2")
10715 (source
10716 (origin
10717 (method url-fetch)
10718 (uri (string-append
10719 "https://hackage.haskell.org/package/regex-posix/regex-posix-"
10720 version
10721 ".tar.gz"))
10722 (sha256
10723 (base32
10724 "0gkhzhj8nvfn1ija31c7xnl6p0gadwii9ihyp219ck2arlhrj0an"))))
10725 (build-system haskell-build-system)
10726 (inputs
10727 `(("ghc-regex-base" ,ghc-regex-base)))
10728 (home-page "https://sourceforge.net/projects/lazy-regex")
10729 (synopsis "POSIX regular expressions for Haskell")
10730 (description "This library provides the POSIX regex backend used by the
10731Haskell library @code{regex-base}.")
10732 (license license:bsd-3)))
10733
10734(define-public ghc-regex-tdfa
10735 (package
10736 (name "ghc-regex-tdfa")
ce684db0 10737 (version "1.2.3.2")
dddbc90c
RV
10738 (source
10739 (origin
10740 (method url-fetch)
10741 (uri (string-append
10742 "https://hackage.haskell.org/package/regex-tdfa/regex-tdfa-"
10743 version ".tar.gz"))
10744 (sha256
10745 (base32
ce684db0 10746 "03yhpqrqz977nwlnhnyz9dacnbzw8xb6j18h365rkgmbc05sb3hf"))))
dddbc90c 10747 (build-system haskell-build-system)
54c8209e 10748 (outputs '("out" "static" "doc"))
dddbc90c
RV
10749 (inputs
10750 `(("ghc-regex-base" ,ghc-regex-base)))
90b74c6f 10751 (home-page "https://github.com/haskell-hvr/regex-tdfa")
dddbc90c
RV
10752 (synopsis "POSIX extended regular expressions in Haskell.")
10753 (description
10754 "Regex-tdfa is a pure Haskell regular expression library implementing POSIX
10755extended regular expressions. It is a \"tagged\" DFA regex engine. It is
10756inspired by libtre.")
10757 (license license:bsd-3)))
10758
10759(define-public ghc-regex-tdfa-text
10760 (package
10761 (name "ghc-regex-tdfa-text")
10762 (version "1.0.0.3")
10763 (source
10764 (origin
10765 (method url-fetch)
10766 (uri (string-append
10767 "https://hackage.haskell.org/package/regex-tdfa-text/"
10768 "regex-tdfa-text-" version ".tar.gz"))
10769 (sha256
10770 (base32
10771 "0090g6lgbdm9lywpqm2d3724nnnh24nx3vnlqr96qc2w486pmmrq"))))
10772 (build-system haskell-build-system)
10773 (inputs
10774 `(("ghc-regex-base" ,ghc-regex-base)
10775 ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
10776 (home-page
3ef91e15 10777 "https://hackage.haskell.org/package/regex-tdfa-text")
dddbc90c
RV
10778 (synopsis "Text interface for regex-tdfa")
10779 (description
10780 "This provides an extra text interface for regex-tdfa.")
10781 (license license:bsd-3)))
10782
798a2df4
JS
10783(define-public ghc-repline
10784 (package
10785 (name "ghc-repline")
10786 (version "0.2.0.0")
10787 (source
10788 (origin
10789 (method url-fetch)
10790 (uri (string-append
10791 "mirror://hackage/package/repline/repline-"
10792 version
10793 ".tar.gz"))
10794 (sha256
10795 (base32
10796 "1ph21kbbanlcs8n5lwk16g9vqkb98mkbz5mzwrp8j2rls2921izc"))))
10797 (build-system haskell-build-system)
10798 (home-page "https://github.com/sdiehl/repline")
10799 (synopsis "Haskeline wrapper for GHCi-like REPL interfaces")
10800 (description
10801 "Haskeline wrapper for GHCi-like REPL interfaces. Composable with
10802normal mtl transformers.")
10803 (license license:expat)))
10804
6c0858dd
JS
10805(define-public ghc-repline-0.3
10806 (package
10807 (inherit ghc-repline)
10808 (version "0.3.0.0")
10809 (source
10810 (origin
10811 (method url-fetch)
10812 (uri (string-append
10813 "mirror://hackage/package/repline/repline-"
10814 version
10815 ".tar.gz"))
10816 (sha256
10817 (base32
10818 "0niihfyggg2qisadg7w49cr5k5qyyynia93iip0ng2bbmzwi88g8"))))
10819 (inputs
10820 `(("ghc-exceptions" ,ghc-exceptions)
10821 ("ghc-haskeline" ,ghc-haskeline-0.8)))))
10822
dddbc90c
RV
10823(define-public ghc-rerebase
10824 (package
10825 (name "ghc-rerebase")
cdec7b8c 10826 (version "1.3.1.1")
dddbc90c
RV
10827 (source
10828 (origin
10829 (method url-fetch)
10830 (uri (string-append
10831 "https://hackage.haskell.org/package/rerebase/rerebase-"
10832 version ".tar.gz"))
10833 (sha256
10834 (base32
cdec7b8c 10835 "1jbqif6k249rkknm2zwk8v8jil3kgi9ar53358v8l4ffx346rm82"))))
dddbc90c 10836 (build-system haskell-build-system)
af2f91ec 10837 (outputs '("out" "static" "doc"))
dddbc90c
RV
10838 (inputs
10839 `(("ghc-rebase" ,ghc-rebase)))
10840 (home-page "https://github.com/nikita-volkov/rerebase")
10841 (synopsis "Reexports from ``base'' with many other standard libraries")
10842 (description "A rich drop-in replacement for @code{base}. For details and
10843documentation please visit @uref{https://github.com/nikita-volkov/rerebase,
10844the project's home page}.")
10845 (license license:expat)))
10846
10847(define-public ghc-resolv
10848 (package
10849 (name "ghc-resolv")
87309478 10850 (version "0.1.1.2")
dddbc90c
RV
10851 (source
10852 (origin
10853 (method url-fetch)
10854 (uri (string-append
10855 "https://hackage.haskell.org/package/resolv/resolv-"
10856 version ".tar.gz"))
10857 (sha256
10858 (base32
87309478 10859 "0wczdy3vmpfcfwjn1m95bygc5d83m97xxmavhdvy5ayn8c402fp4"))))
dddbc90c
RV
10860 (build-system haskell-build-system)
10861 (arguments
87309478
TS
10862 `(#:phases
10863 (modify-phases %standard-phases
10864 (add-before 'configure 'update-constraints
10865 (lambda _
10866 (substitute* "resolv.cabal"
10867 (("tasty >= 1\\.1 && < 1\\.2")
10868 "tasty >= 1.1 && < 1.3"))
10869 #t)))))
dddbc90c
RV
10870 (inputs
10871 `(("ghc-base16-bytestring" ,ghc-base16-bytestring)))
87309478
TS
10872 (native-inputs
10873 `(("ghc-tasty" ,ghc-tasty)
10874 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
dddbc90c
RV
10875 (home-page "https://github.com/haskell/hackage-security")
10876 (synopsis "Domain Name Service (DNS) lookup via @code{libresolv}")
10877 (description "This package implements an API for accessing the
10878@uref{https://tools.ietf.org/html/rfc1035, Domain Name Service (DNS)}
10879resolver service via the standard @code{libresolv} system library (whose
10880API is often available directly via the standard @code{libc} C library) on
10881Unix systems.")
10882 (license license:gpl3)))
10883
10884(define-public ghc-resource-pool
10885 (package
10886 (name "ghc-resource-pool")
10887 (version "0.2.3.2")
10888 (source
10889 (origin
10890 (method url-fetch)
10891 (uri (string-append "https://hackage.haskell.org/package/"
10892 "resource-pool-" version "/"
10893 "resource-pool-" version ".tar.gz"))
10894 (sha256
10895 (base32
10896 "04mw8b9djb14zp4rdi6h7mc3zizh597ffiinfbr4m0m8psifw9w6"))))
10897 (build-system haskell-build-system)
10898 (inputs `(("ghc-hashable" ,ghc-hashable)
10899 ("ghc-monad-control" ,ghc-monad-control)
10900 ("ghc-transformers-base" ,ghc-transformers-base)
10901 ("ghc-vector" ,ghc-vector)))
10902 (home-page "https://github.com/bos/pool")
10903 (synopsis "Striped resource pooling implementation in Haskell")
10904 (description "This Haskell package provides striped pooling abstraction
10905for managing flexibly-sized collections of resources such as database
10906connections.")
10907 (license license:bsd-3)))
10908
10909(define-public ghc-resourcet
10910 (package
10911 (name "ghc-resourcet")
9ac341ac 10912 (version "1.2.2")
dddbc90c
RV
10913 (source
10914 (origin
10915 (method url-fetch)
10916 (uri (string-append "https://hackage.haskell.org/package/resourcet/"
10917 "resourcet-" version ".tar.gz"))
10918 (sha256
10919 (base32
9ac341ac 10920 "1rfbfcv3r1h29y0yqr3x6a1s04lbc3vzm3jqnfg4f9rqp9d448qk"))))
dddbc90c
RV
10921 (build-system haskell-build-system)
10922 (inputs
10923 `(("ghc-transformers-base" ,ghc-transformers-base)
10924 ("ghc-monad-control" ,ghc-monad-control)
10925 ("ghc-transformers-compat" ,ghc-transformers-compat)
10926 ("ghc-mmorph" ,ghc-mmorph)
10927 ("ghc-exceptions" ,ghc-exceptions)
10928 ("ghc-unliftio-core" ,ghc-unliftio-core)))
10929 (native-inputs
10930 `(("ghc-lifted-base" ,ghc-lifted-base)
10931 ("ghc-hspec" ,ghc-hspec)))
10932 (home-page "https://github.com/snoyberg/conduit")
10933 (synopsis "Deterministic allocation and freeing of scarce resources")
10934 (description "ResourceT is a monad transformer which creates a region of
10935code where you can safely allocate resources.")
10936 (license license:bsd-3)))
10937
b9debc37
TS
10938(define-public ghc-retry
10939 (package
10940 (name "ghc-retry")
10941 (version "0.8.1.0")
10942 (source
10943 (origin
10944 (method url-fetch)
10945 (uri (string-append "https://hackage.haskell.org/package/"
10946 "retry/retry-" version ".tar.gz"))
10947 (sha256
10948 (base32
10949 "02k03r86amg1vbrsvb644342ym13d9jwkzki9sk93pdg5l8j35dj"))))
10950 (build-system haskell-build-system)
10951 (inputs
10952 `(("ghc-exceptions" ,ghc-exceptions)
10953 ("ghc-random" ,ghc-random)))
10954 (native-inputs
10955 `(("ghc-hunit" ,ghc-hunit)
10956 ("ghc-tasty" ,ghc-tasty)
10957 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
10958 ("ghc-tasty-hedgehog" ,ghc-tasty-hedgehog)
10959 ("ghc-hedgehog" ,ghc-hedgehog)))
702a1012 10960 (home-page "https://github.com/Soostone/retry")
b9debc37
TS
10961 (synopsis "Retry combinators for monadic actions that may fail")
10962 (description "This package exposes combinators that can wrap
10963arbitrary monadic actions. They run the action and potentially retry
10964running it with some configurable delay for a configurable number of
10965times. The purpose is to make it easier to work with IO and especially
10966network IO actions that often experience temporary failure and warrant
10967retrying of the original action. For example, a database query may time
10968out for a while, in which case we should hang back for a bit and retry
10969the query instead of simply raising an exception.")
10970 (license license:bsd-3)))
10971
dddbc90c
RV
10972(define-public ghc-rfc5051
10973 (package
10974 (name "ghc-rfc5051")
ec42ab7c 10975 (version "0.1.0.4")
dddbc90c
RV
10976 (source
10977 (origin
10978 (method url-fetch)
10979 (uri (string-append "https://hackage.haskell.org/package/rfc5051/"
10980 "rfc5051-" version ".tar.gz"))
10981 (sha256
10982 (base32
ec42ab7c 10983 "1lxkq414ni986ciml4gbvf463fn55z299knky7pq3ixb1qislpb1"))))
dddbc90c
RV
10984 (build-system haskell-build-system)
10985 (home-page "https://hackage.haskell.org/package/rfc5051")
10986 (synopsis "Simple unicode collation as per RFC5051")
10987 (description
10988 "This library implements @code{unicode-casemap}, the simple, non
10989locale-sensitive unicode collation algorithm described in RFC 5051. Proper
10990unicode collation can be done using @code{text-icu}, but that is a big
10991dependency that depends on a large C library, and @code{rfc5051} might be
10992better for some purposes.")
10993 (license license:bsd-3)))
10994
10995(define-public ghc-rio
10996 (package
10997 (name "ghc-rio")
8bda2fa7 10998 (version "0.1.12.0")
dddbc90c
RV
10999 (source
11000 (origin
11001 (method url-fetch)
11002 (uri (string-append
11003 "https://hackage.haskell.org/package/rio/rio-"
11004 version ".tar.gz"))
11005 (sha256
11006 (base32
8bda2fa7 11007 "0xzjkh6aavynpyskikhs8dmv0zhkiqiwz9zdn80zbd25b2182pif"))))
dddbc90c
RV
11008 (build-system haskell-build-system)
11009 (inputs
11010 `(("ghc-exceptions" ,ghc-exceptions)
11011 ("ghc-hashable" ,ghc-hashable)
11012 ("ghc-microlens" ,ghc-microlens)
11013 ("ghc-primitive" ,ghc-primitive)
11014 ("ghc-typed-process" ,ghc-typed-process)
11015 ("ghc-unliftio" ,ghc-unliftio)
11016 ("ghc-unordered-containers" ,ghc-unordered-containers)
11017 ("ghc-vector" ,ghc-vector)))
11018 (native-inputs
11019 `(("ghc-hspec" ,ghc-hspec)
11020 ("hspec-discover" ,hspec-discover)))
11021 (home-page "https://github.com/commercialhaskell/rio#readme")
11022 (synopsis "A standard library for Haskell")
11023 (description "This package works as a prelude replacement for Haskell,
11024providing more functionality and types out of the box than the standard
11025prelude (such as common data types like @code{ByteString} and
11026@code{Text}), as well as removing common ``gotchas'', like partial
11027functions and lazy I/O. The guiding principle here is:
11028@itemize
11029@item If something is safe to use in general and has no expected naming
11030conflicts, expose it.
11031@item If something should not always be used, or has naming conflicts,
11032expose it from another module in the hierarchy.
11033@end itemize")
11034 (license license:expat)))
11035
11036(define-public ghc-safe
11037 (package
11038 (name "ghc-safe")
11039 (version "0.3.17")
11040 (source
11041 (origin
11042 (method url-fetch)
11043 (uri (string-append
11044 "https://hackage.haskell.org/package/safe/safe-"
11045 version
11046 ".tar.gz"))
11047 (sha256
11048 (base32
11049 "0p3yaf5slvyz1cyy51jq64c5rlp8yzwim8iy2dlnk42if4gc9ibr"))))
11050 (build-system haskell-build-system)
11051 (native-inputs
11052 `(("ghc-quickcheck" ,ghc-quickcheck)))
11053 (home-page "https://github.com/ndmitchell/safe#readme")
11054 (synopsis "Library of safe (exception free) functions")
11055 (description "This library provides wrappers around @code{Prelude} and
11056@code{Data.List} functions, such as @code{head} and @code{!!}, that can throw
11057exceptions.")
11058 (license license:bsd-3)))
11059
11060(define-public ghc-safe-exceptions
11061 (package
11062 (name "ghc-safe-exceptions")
11063 (version "0.1.7.0")
11064 (source
11065 (origin
11066 (method url-fetch)
11067 (uri (string-append "https://hackage.haskell.org/package/"
11068 "safe-exceptions/safe-exceptions-"
11069 version ".tar.gz"))
11070 (sha256
11071 (base32
11072 "0sd0zfsm9pcll5bzzj523rbn45adjrnavdkz52hgmdjjgdcdrk8q"))))
11073 (build-system haskell-build-system)
11074 (arguments
11075 '(#:cabal-revision
11076 ("4" "0fid41gishzsyb47wzxhd5falandfirqcp760hcja81qjpfmqd32")))
11077 (inputs `(("ghc-exceptions" ,ghc-exceptions)))
11078 (native-inputs
11079 `(("ghc-hspec" ,ghc-hspec)
11080 ("ghc-void" ,ghc-void)
11081 ("hspec-discover" ,hspec-discover)))
11082 (home-page "https://github.com/fpco/safe-exceptions")
11083 (synopsis "Safe, consistent, and easy exception handling")
11084 (description "Runtime exceptions - as exposed in @code{base} by the
11085@code{Control.Exception} module - have long been an intimidating part of the
11086Haskell ecosystem. This package is intended to overcome this. It provides a
11087safe and simple API on top of the existing exception handling machinery. The
11088API is equivalent to the underlying implementation in terms of power but
11089encourages best practices to minimize the chances of getting the exception
11090handling wrong.")
11091 (license license:expat)))
11092
11093(define-public ghc-safeio
11094 (package
11095 (name "ghc-safeio")
11096 (version "0.0.5.0")
11097 (source
11098 (origin
11099 (method url-fetch)
11100 (uri (string-append "https://hackage.haskell.org/package/safeio/"
11101 "safeio-" version ".tar.gz"))
11102 (sha256
11103 (base32
11104 "04g3070cbjdqj0h9l9ii6470xcbn40xfv4fr89a8yvnkdim9nyfm"))))
11105 (build-system haskell-build-system)
11106 (inputs
11107 `(("ghc-conduit" ,ghc-conduit)
11108 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
11109 ("ghc-exceptions" ,ghc-exceptions)
11110 ("ghc-resourcet" ,ghc-resourcet)))
11111 (native-inputs
11112 `(("ghc-hunit" ,ghc-hunit)
11113 ("ghc-test-framework" ,ghc-test-framework)
11114 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
11115 ("ghc-test-framework-th" ,ghc-test-framework-th)))
11116 (home-page "https://github.com/luispedro/safeio")
11117 (synopsis "Write output to disk atomically")
11118 (description
11119 "This package implements utilities to perform atomic output so as to
11120avoid the problem of partial intermediate files.")
11121 (license license:expat)))
11122
11123(define-public ghc-safesemaphore
11124 (package
11125 (name "ghc-safesemaphore")
11126 (version "0.10.1")
11127 (source
11128 (origin
11129 (method url-fetch)
11130 (uri (string-append "https://hackage.haskell.org/package/"
11131 "SafeSemaphore/SafeSemaphore-" version ".tar.gz"))
11132 (sha256
11133 (base32
11134 "0rpg9j6fy70i0b9dkrip9d6wim0nac0snp7qzbhykjkqlcvvgr91"))))
11135 (build-system haskell-build-system)
11136 (native-inputs
11137 `(("ghc-hunit" ,ghc-hunit)))
11138 (home-page "https://github.com/ChrisKuklewicz/SafeSemaphore")
11139 (synopsis "Exception safe semaphores")
11140 (description "This library provides exception safe semaphores that can be
11141used in place of @code{QSem}, @code{QSemN}, and @code{SampleVar}, all of which
11142are not exception safe and can be broken by @code{killThread}.")
11143 (license license:bsd-3)))
11144
11145(define-public ghc-sandi
11146 (package
11147 (name "ghc-sandi")
b867c2b0 11148 (version "0.5")
dddbc90c
RV
11149 (source
11150 (origin
11151 (method url-fetch)
11152 (uri (string-append
11153 "https://hackage.haskell.org/package/sandi/sandi-"
11154 version ".tar.gz"))
11155 (sha256
11156 (base32
b867c2b0 11157 "1ndgai8idlxyccvkz5zsgq06v58blc30i6hkky5b1sf5x6gs2h29"))))
dddbc90c
RV
11158 (build-system haskell-build-system)
11159 (inputs
11160 `(("ghc-stringsearch" ,ghc-stringsearch)
11161 ("ghc-conduit" ,ghc-conduit)
11162 ("ghc-exceptions" ,ghc-exceptions)
11163 ("ghc-hunit" ,ghc-hunit)
11164 ("ghc-tasty" ,ghc-tasty)
11165 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
11166 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
11167 ("ghc-tasty-th" ,ghc-tasty-th)))
11168 (home-page "https://hackage.haskell.org/package/sandi")
11169 (synopsis "Data encoding library")
11170 (description "Reasonably fast data encoding library.")
11171 (license license:bsd-3)))
11172
4da75228
ASM
11173(define-public ghc-say
11174 (package
11175 (name "ghc-say")
11176 (version "0.1.0.1")
11177 (source
11178 (origin
11179 (method url-fetch)
11180 (uri (string-append
11181 "https://hackage.haskell.org/package/say/say-"
11182 version
11183 ".tar.gz"))
11184 (sha256
11185 (base32
11186 "1r5kffjfwpas45g74sip8glrj1m9nygrnxjm7xgw898rq9pnafgn"))))
11187 (build-system haskell-build-system)
11188 (native-inputs
11189 `(("ghc-hspec" ,ghc-hspec)
11190 ("hspec-discover" ,hspec-discover)
11191 ("ghc-unliftio" ,ghc-unliftio)))
11192 (home-page "https://github.com/fpco/say")
11193 (synopsis
11194 "Send textual messages to a Handle in a thread-friendly way")
11195 (description
11196 "A thread safe API to write a line of textual data to a Handle, such
11197as sending some messages to the terminal - that has the following properties:
11198@itemize
11199@item Properly handle character encoding settings on the Handle
11200@item For reasonably sized messages, ensure that the entire message is written
11201 in one chunk to avoid interleaving data with other threads
11202@item Avoid unnecessary memory allocations and copies
11203@item Minimize locking.
11204@end itemize")
11205 (license license:expat)))
11206
dddbc90c
RV
11207(define-public ghc-scientific
11208 (package
11209 (name "ghc-scientific")
11210 (version "0.3.6.2")
11211 (source
11212 (origin
11213 (method url-fetch)
11214 (uri (string-append
11215 "https://hackage.haskell.org/package/scientific/scientific-"
11216 version
11217 ".tar.gz"))
11218 (sha256
11219 (base32
11220 "03ql2f0ac8bsl524idy9xxa3kxisb2sj3avflzw580j5hzy0m397"))))
11221 (build-system haskell-build-system)
11222 (inputs
11223 `(("ghc-integer-logarithms" ,ghc-integer-logarithms)
11224 ("ghc-hashable" ,ghc-hashable)
11225 ("ghc-primitive" ,ghc-primitive)))
11226 (native-inputs
11227 `(("ghc-tasty" ,ghc-tasty)
11228 ("ghc-tasty-ant-xml" ,ghc-tasty-ant-xml)
11229 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
11230 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
11231 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
11232 ("ghc-smallcheck" ,ghc-smallcheck)
11233 ("ghc-quickcheck" ,ghc-quickcheck)))
11234 (home-page "https://github.com/basvandijk/scientific")
11235 (synopsis "Numbers represented using scientific notation")
11236 (description "This package provides @code{Data.Scientific}, which provides
11237the number type @code{Scientific}. Scientific numbers are arbitrary precision
11238and space efficient. They are represented using
11239@uref{https://en.wikipedia.org/wiki/Scientific_notation, scientific
11240notation}.")
11241 (license license:bsd-3)))
11242
11243(define-public ghc-scientific-bootstrap
11244 (package
11245 (inherit ghc-scientific)
11246 (name "ghc-scientific-bootstrap")
11247 (arguments `(#:tests? #f))
11248 (inputs
11249 `(("ghc-integer-logarithms" ,ghc-integer-logarithms-bootstrap)
11250 ("ghc-hashable" ,ghc-hashable)
11251 ("ghc-primitive" ,ghc-primitive)))
11252 (native-inputs '())
799d8d3c 11253 (properties '((hidden? #t)))))
dddbc90c
RV
11254
11255(define-public ghc-sdl
11256 (package
11257 (name "ghc-sdl")
11258 (version "0.6.7.0")
11259 (source
11260 (origin
11261 (method url-fetch)
11262 (uri (string-append
11263 "https://hackage.haskell.org/package/SDL/SDL-"
11264 version
11265 ".tar.gz"))
11266 (sha256
11267 (base32
11268 "00y67v80a8l09i3k76z09lg25kw72ivl09nag8ckdlk4a0cfnzfq"))))
11269 (build-system haskell-build-system)
11270 (inputs
11271 `(("sdl" ,sdl)))
11272 (home-page "https://hackage.haskell.org/package/SDL")
11273 (synopsis "LibSDL for Haskell")
11274 (description "Simple DirectMedia Layer (libSDL) is a cross-platform
11275multimedia library designed to provide low level access to audio, keyboard,
11276mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used
11277by MPEG playback software, emulators, and many popular games, including the
11278award winning Linux port of \"Civilization: Call To Power.\"")
11279 (license license:bsd-3)))
11280
1874cdc1
RV
11281(define-public ghc-sdl2
11282 (package
11283 (name "ghc-sdl2")
145148ca 11284 (version "2.5.0.0")
1874cdc1
RV
11285 (source
11286 (origin
11287 (method url-fetch)
11288 (uri (string-append "https://hackage.haskell.org/package/"
11289 "sdl2/sdl2-" version ".tar.gz"))
11290 (sha256
11291 (base32
145148ca 11292 "1x368yhdd55b3cvx8dvj1sj6nzygzigbhrwhssjs4k0rcxlwqfw8"))))
1874cdc1
RV
11293 (build-system haskell-build-system)
11294 (arguments '(#:tests? #f)) ; tests require graphical environment
11295 (inputs
11296 `(("ghc-exceptions" ,ghc-exceptions)
11297 ("ghc-linear" ,ghc-linear)
11298 ("ghc-statevar" ,ghc-statevar)
11299 ("ghc-vector" ,ghc-vector)
11300 ("sdl2" ,sdl2)))
11301 (native-inputs
11302 `(("ghc-weigh" ,ghc-weigh)
11303 ("pkg-config" ,pkg-config)))
35437dbf 11304 (home-page "https://hackage.haskell.org/package/sdl2")
1874cdc1
RV
11305 (synopsis "High- and low-level bindings to the SDL library")
11306 (description
11307 "This package contains bindings to the SDL 2 library, in both high- and
11308low-level forms. The @code{SDL} namespace contains high-level bindings, where
11309enumerations are split into sum types, and we perform automatic
11310error-checking. The @code{SDL.Raw} namespace contains an almost 1-1
11311translation of the C API into Haskell FFI calls. As such, this does not
11312contain sum types nor error checking. Thus this namespace is suitable for
11313building your own abstraction over SDL, but is not recommended for day-to-day
11314programming.")
11315 (license license:bsd-3)))
11316
11317(define-public ghc-sdl2-image
11318 (package
11319 (name "ghc-sdl2-image")
11320 (version "2.0.0")
11321 (source
11322 (origin
11323 (method url-fetch)
11324 (uri (string-append "https://hackage.haskell.org/package/sdl2-image/"
11325 "sdl2-image-" version ".tar.gz"))
11326 (sha256
11327 (base32
11328 "1pr6dkg73cy9z0w54lrkj9c5bhxj56nl92lxikjy8kz6nyr455rr"))))
11329 (build-system haskell-build-system)
11330 (inputs
11331 `(("ghc-sdl2" ,ghc-sdl2)
11332 ("sdl2-image" ,sdl2-image)))
11333 (native-inputs
11334 `(("pkg-config" ,pkg-config)))
3ef91e15 11335 (home-page "https://hackage.haskell.org/package/sdl2-image")
1874cdc1
RV
11336 (synopsis "Bindings to SDL2_image")
11337 (description "This package provides Haskell bindings to
11338@code{SDL2_image}.")
11339 (license license:expat)))
11340
11341(define-public ghc-sdl2-mixer
11342 (package
11343 (name "ghc-sdl2-mixer")
11344 (version "1.1.0")
11345 (source
11346 (origin
11347 (method url-fetch)
11348 (uri (string-append "https://hackage.haskell.org/package/sdl2-mixer/"
11349 "sdl2-mixer-" version ".tar.gz"))
11350 (sha256
11351 (base32
11352 "1k8avyccq5l9z7bwxigim312yaancxl1sr3q6a96bcm7pnhiak0g"))))
11353 (build-system haskell-build-system)
11354 (inputs
11355 `(("ghc-data-default-class" ,ghc-data-default-class)
11356 ("ghc-lifted-base" ,ghc-lifted-base)
11357 ("ghc-monad-control" ,ghc-monad-control)
11358 ("ghc-sdl2" ,ghc-sdl2)
11359 ("ghc-vector" ,ghc-vector)
11360 ("sdl2-mixer" ,sdl2-mixer)))
11361 (native-inputs
11362 `(("pkg-config" ,pkg-config)))
3ef91e15 11363 (home-page "https://hackage.haskell.org/package/sdl2-mixer")
1874cdc1
RV
11364 (synopsis "Bindings to SDL2 mixer")
11365 (description "This package provides Haskell bindings to
11366@code{SDL2_mixer}.")
11367 (license license:bsd-3)))
11368
dddbc90c
RV
11369(define-public ghc-sdl-image
11370 (package
11371 (name "ghc-sdl-image")
11372 (version "0.6.2.0")
11373 (source
11374 (origin
11375 (method url-fetch)
11376 (uri (string-append
11377 "https://hackage.haskell.org/package/SDL-image/SDL-image-"
11378 version
11379 ".tar.gz"))
11380 (sha256
11381 (base32
11382 "1gxwrvswgwjw6g7ym52gik22l9l3ljy592phv97jdmcf3gi6qcg1"))))
11383 (build-system haskell-build-system)
11384 (arguments
11385 `(#:configure-flags
11386 (let* ((sdl-image (assoc-ref %build-inputs "sdl-image"))
11387 (sdl-image-include (string-append sdl-image "/include/SDL")))
11388 (list (string-append "--extra-include-dirs=" sdl-image-include)))))
11389 (inputs
11390 `(("ghc-sdl" ,ghc-sdl)
11391 ("sdl-image" ,sdl-image)))
11392 (home-page "https://hackage.haskell.org/package/SDL-image")
11393 (synopsis "Haskell bindings to libSDL_image")
11394 (description "SDL_image is an image file loading library. It loads images
11395as SDL surfaces, and supports the following formats: BMP, GIF, JPEG, LBM, PCX,
11396PNG, PNM, TGA, TIFF, XCF, XPM, XV.")
11397 (license license:bsd-3)))
11398
11399(define-public ghc-sdl-mixer
11400 (package
11401 (name "ghc-sdl-mixer")
11402 (version "0.6.3.0")
11403 (source
11404 (origin
11405 (method url-fetch)
11406 (uri (string-append
11407 "https://hackage.haskell.org/package/SDL-mixer/SDL-mixer-"
11408 version
11409 ".tar.gz"))
11410 (sha256
11411 (base32
11412 "0k26hqgdh789ka3mv4dsk6rin6x6vwcs6hjmnsqq7j3mnrh1342r"))))
11413 (build-system haskell-build-system)
11414 (arguments
11415 `(#:configure-flags
11416 (let* ((sdl-mixer (assoc-ref %build-inputs "sdl-mixer"))
11417 (sdl-mixer-include (string-append sdl-mixer "/include/SDL")))
11418 (list (string-append "--extra-include-dirs=" sdl-mixer-include)))))
11419 (inputs
11420 `(("ghc-sdl" ,ghc-sdl)
11421 ("sdl-mixer" ,sdl-mixer)))
11422 (home-page "https://hackage.haskell.org/package/SDL-mixer")
11423 (synopsis "Haskell bindings to libSDL_mixer")
11424 (description "SDL_mixer is a sample multi-channel audio mixer library. It
11425supports any number of simultaneously playing channels of 16 bit stereo audio,
11426plus a single channel of music, mixed by the popular MikMod MOD, Timidity
11427MIDI, Ogg Vorbis, and SMPEG MP3 libraries.")
11428 (license license:bsd-3)))
11429
11430(define-public ghc-securemem
11431 (package
11432 (name "ghc-securemem")
11433 (version "0.1.10")
11434 (source
11435 (origin
11436 (method url-fetch)
11437 (uri (string-append "https://hackage.haskell.org/package/"
11438 "securemem-" version "/"
11439 "securemem-" version ".tar.gz"))
11440 (sha256
11441 (base32
11442 "19hnw2cfbsfjynxq1bq9f6djbxhsc1k751ml0y1ab3ah913mm29j"))))
11443 (build-system haskell-build-system)
11444 (inputs `(("ghc-byteable" ,ghc-byteable)
11445 ("ghc-memory" ,ghc-memory)))
11446 (home-page "https://github.com/vincenthz/hs-securemem")
11447 (synopsis "Auto-scrubbing and const-time-eq memory chunk abstraction for
11448Haskell")
11449 (description "SecureMem is similar to ByteString, except that it provides
11450a memory chunk that will be auto-scrubbed after it run out of scope.")
11451 (license license:bsd-3)))
11452
3cf7219c
JS
11453(define-public ghc-semialign
11454 (package
11455 (name "ghc-semialign")
11456 (version "1")
11457 (source
11458 (origin
11459 (method url-fetch)
11460 (uri (string-append
11461 "https://hackage.haskell.org/package/semialign/semialign-"
11462 version
11463 ".tar.gz"))
11464 (sha256
11465 (base32
11466 "004x0a80sqqdgvsyk4z0nasxpi6z3g1d8kgwj804bj9ka8dlc75m"))))
11467 (build-system haskell-build-system)
11468 (inputs
11469 `(("ghc-these" ,ghc-these)
11470 ("ghc-base-compat" ,ghc-base-compat)
11471 ("ghc-hashable" ,ghc-hashable)
11472 ("ghc-tagged" ,ghc-tagged)
11473 ("ghc-unordered-containers" ,ghc-unordered-containers)
11474 ("ghc-vector" ,ghc-vector)
11475 ("ghc-semigroupoids" ,ghc-semigroupoids)))
11476 (arguments
11477 `(#:cabal-revision
11478 ("1"
11479 "0qnqnyfng4kwy2h2anrcy5id2ijnawava3zcc5h5b8ri1y6ks6zi")))
11480 (home-page
11481 "https://github.com/isomorphism/these")
11482 (synopsis
11483 "Align and Zip type-classes from the common Semialign ancestor ")
11484 (description
11485 "The major use of @code{These} of this is provided by the
11486@code{align} member of @code{Semialign} class, representing a
11487generalized notion of \"zipping with padding\" that combines
11488structures without truncating to the size of the smaller input. It
11489turns out that @code{zip} operation fits well the @code{Semialign}
11490class, forming lattice-like structure.")
11491 (license license:bsd-3)))
11492
dddbc90c
RV
11493(define-public ghc-semigroupoids
11494 (package
11495 (name "ghc-semigroupoids")
a8aaadf2 11496 (version "5.3.3")
dddbc90c
RV
11497 (source
11498 (origin
11499 (method url-fetch)
11500 (uri (string-append
11501 "https://hackage.haskell.org/package/semigroupoids/semigroupoids-"
11502 version
11503 ".tar.gz"))
11504 (sha256
11505 (base32
a8aaadf2 11506 "016hc4imr9l4szs3p7f1aahvxr5wv4clvr3qzrm3nibssg5vrs61"))))
dddbc90c 11507 (build-system haskell-build-system)
95eb946b 11508 (outputs '("out" "static" "doc"))
dddbc90c
RV
11509 (inputs
11510 `(("ghc-base-orphans" ,ghc-base-orphans)
11511 ("ghc-transformers-compat" ,ghc-transformers-compat)
11512 ("ghc-bifunctors" ,ghc-bifunctors)
11513 ("ghc-comonad" ,ghc-comonad)
11514 ("ghc-contravariant" ,ghc-contravariant)
11515 ("ghc-distributive" ,ghc-distributive)
11516 ("ghc-hashable" ,ghc-hashable)
11517 ("ghc-semigroups" ,ghc-semigroups)
11518 ("ghc-tagged" ,ghc-tagged)
11519 ("ghc-unordered-containers" ,ghc-unordered-containers)))
11520 (native-inputs
11521 `(("cabal-doctest" ,cabal-doctest)
11522 ("ghc-doctest" ,ghc-doctest)))
11523 (home-page "https://github.com/ekmett/semigroupoids")
11524 (synopsis "Semigroupoids operations for Haskell")
11525 (description "This library provides a wide array of (semi)groupoids and
11526operations for working with them. A @code{Semigroupoid} is a @code{Category}
11527without the requirement of identity arrows for every object in the category.
11528A @code{Category} is any @code{Semigroupoid} for which the Yoneda lemma holds.
11529Finally, to work with these weaker structures it is beneficial to have
11530containers that can provide stronger guarantees about their contents, so
11531versions of @code{Traversable} and @code{Foldable} that can be folded with
11532just a @code{Semigroup} are added.")
11533 (license license:bsd-3)))
11534
11535(define-public ghc-semigroups
11536 (package
11537 (name "ghc-semigroups")
11538 (version "0.18.5")
11539 (source
11540 (origin
11541 (method url-fetch)
11542 (uri (string-append
11543 "https://hackage.haskell.org/package/semigroups/semigroups-"
11544 version
11545 ".tar.gz"))
11546 (sha256
11547 (base32
11548 "17g29h62g1k51ghhvzkw72zksjgi6vs6bfipkj81pqw1dsprcamb"))))
11549 (build-system haskell-build-system)
11550 (inputs
11551 `(("ghc-nats" ,ghc-nats)
11552 ("ghc-tagged" ,ghc-tagged)
11553 ("ghc-unordered-containers" ,ghc-unordered-containers)
11554 ("ghc-hashable" ,ghc-hashable)))
11555 (home-page "https://github.com/ekmett/semigroups/")
11556 (synopsis "Semigroup operations for Haskell")
11557 (description "This package provides semigroups for Haskell. In
11558mathematics, a semigroup is an algebraic structure consisting of a set
11559together with an associative binary operation. A semigroup generalizes a
11560monoid in that there might not exist an identity element. It
11561also (originally) generalized a group (a monoid with all inverses) to a type
11562where every element did not have to have an inverse, thus the name
11563semigroup.")
11564 (license license:bsd-3)))
11565
11566(define-public ghc-semigroups-bootstrap
11567 (package
11568 (inherit ghc-semigroups)
11569 (name "ghc-semigroups-bootstrap")
11570 (inputs
11571 `(("ghc-nats" ,ghc-nats-bootstrap)
11572 ("ghc-tagged" ,ghc-tagged)
11573 ("ghc-unordered-containers" ,ghc-unordered-containers-bootstrap)
11574 ("ghc-hashable" ,ghc-hashable-bootstrap)))
799d8d3c 11575 (properties '((hidden? #t)))))
dddbc90c 11576
47c526df
JS
11577(define-public ghc-serialise
11578 (package
11579 (name "ghc-serialise")
11580 (version "0.2.1.0")
11581 (source
11582 (origin
11583 (method url-fetch)
11584 (uri (string-append
11585 "mirror://hackage/package/serialise/serialise-"
11586 version
11587 ".tar.gz"))
11588 (sha256
11589 (base32
11590 "19ary6ivzk8z7wcxhm860qmh7pwqj0qjqzav1h42y85l608zqgh4"))))
11591 (build-system haskell-build-system)
11592 (inputs
11593 `(("ghc-cborg" ,ghc-cborg)
11594 ("ghc-half" ,ghc-half)
11595 ("ghc-hashable" ,ghc-hashable)
11596 ("ghc-primitive" ,ghc-primitive)
11597 ("ghc-unordered-containers" ,ghc-unordered-containers)
11598 ("ghc-vector" ,ghc-vector)))
11599 (native-inputs
11600 `(("ghc-quickcheck" ,ghc-quickcheck)
11601 ("ghc-tasty" ,ghc-tasty)
11602 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
11603 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
11604 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)))
11605 (arguments
11606 `(#:cabal-revision
11607 ("1" "1rknhad1i8bpknsnphmcmb6dnb48c2p2c13ia2qqch3hkhsvfpr6")))
11608 (home-page "https://github.com/well-typed/cborg")
11609 (synopsis "Binary serialisation library for Haskell values")
11610 (description
11611 "This package (formerly binary-serialise-cbor) provides pure,
11612efficient serialization of Haskell values directly into ByteStrings for
11613storage or transmission purposes. By providing a set of type class instances,
11614you can also serialise any custom data type you have as well.
11615
11616The underlying binary format used is the 'Concise Binary Object
11617Representation', or CBOR, specified in RFC 7049. As a result, serialised
11618Haskell values have implicit structure outside of the Haskell program itself,
11619meaning they can be inspected or analyzed without custom tools.
11620
11621An implementation of the standard bijection between CBOR and JSON is
11622provided by the https://hackage.haskell.org/package/cborg-json
11623package. Also see https://hackage.haskell.org/package/cbor-tool for a
11624convenient command-line utility for working with CBOR data.")
11625 (license license:bsd-3)))
11626
dddbc90c
RV
11627(define-public ghc-setenv
11628 (package
11629 (name "ghc-setenv")
11630 (version "0.1.1.3")
11631 (source
11632 (origin
11633 (method url-fetch)
11634 (uri (string-append
11635 "https://hackage.haskell.org/package/setenv/setenv-"
11636 version
11637 ".tar.gz"))
11638 (sha256
11639 (base32
11640 "0cnbgrvb9byyahb37zlqrj05rj25v190crgcw8wmlgf0mwwxyn73"))))
11641 (build-system haskell-build-system)
11642 (home-page "https://hackage.haskell.org/package/setenv")
11643 (synopsis "Library for setting environment variables")
11644 (description "This package provides a Haskell library for setting
11645environment variables.")
11646 (license license:expat)))
11647
11648(define-public ghc-setlocale
11649 (package
11650 (name "ghc-setlocale")
9d7cfc9b 11651 (version "1.0.0.9")
dddbc90c
RV
11652 (source (origin
11653 (method url-fetch)
11654 (uri (string-append
11655 "https://hackage.haskell.org/package/setlocale-"
11656 version "/setlocale-" version ".tar.gz"))
11657 (sha256
11658 (base32
9d7cfc9b 11659 "18b6xafspzxrmz5m9r9nzy3z053crqi59xc8n8aqd4gw0pvqdcrv"))))
dddbc90c
RV
11660 (build-system haskell-build-system)
11661 (home-page "https://hackage.haskell.org/package/setlocale")
11662 (synopsis "Haskell bindings to setlocale")
11663 (description "This package provides Haskell bindings to the
11664@code{setlocale} C function.")
11665 (license license:bsd-3)))
11666
11667(define-public ghc-shakespeare
11668 (package
11669 (name "ghc-shakespeare")
f680955f 11670 (version "2.0.22")
dddbc90c
RV
11671 (source
11672 (origin
11673 (method url-fetch)
11674 (uri (string-append "https://hackage.haskell.org/package/"
11675 "shakespeare-" version "/"
11676 "shakespeare-" version ".tar.gz"))
11677 (sha256
11678 (base32
f680955f 11679 "1mc1a0vv070gcawwcx6vzpj6gpfh1qnlqrndiyfic3p500y656vh"))))
dddbc90c
RV
11680 (build-system haskell-build-system)
11681 (inputs `(("ghc-aeson" ,ghc-aeson)
11682 ("ghc-blaze-markup" ,ghc-blaze-markup)
11683 ("ghc-blaze-html" ,ghc-blaze-html)
11684 ("ghc-exceptions" ,ghc-exceptions)
11685 ("ghc-vector" ,ghc-vector)
11686 ("ghc-unordered-containers" ,ghc-unordered-containers)
11687 ("ghc-scientific" ,ghc-scientific)))
11688 (native-inputs `(("ghc-hspec" ,ghc-hspec)
11689 ("ghc-hunit" ,ghc-hunit)
11690 ("hspec-discover" ,hspec-discover)))
11691 (home-page "https://www.yesodweb.com/book/shakespearean-templates")
11692 (synopsis "Family of type-safe template languages for Haskell")
11693 (description "This Haskell package provides a family of type-safe
11694templates with simple variable interpolation. Shakespeare templates can
11695be used inline with a quasi-quoter or in an external file and it
11696interpolates variables according to the type being inserted.")
11697 (license license:expat)))
11698
11699(define-public ghc-shelly
11700 (package
11701 (name "ghc-shelly")
11702 (version "1.8.1")
11703 (source
11704 (origin
11705 (method url-fetch)
11706 (uri (string-append
11707 "https://hackage.haskell.org/package/shelly/shelly-"
11708 version ".tar.gz"))
11709 (sha256
11710 (base32
11711 "023fbvbqs5gdwm30j5517gbdcc7fvz0md70dgwgpypkskj3i926y"))))
11712 (build-system haskell-build-system)
11713 (inputs
11714 `(("ghc-unix-compat" ,ghc-unix-compat)
11715 ("ghc-system-filepath-bootstrap" ,ghc-system-filepath-bootstrap)
11716 ("ghc-system-fileio-bootstrap" ,ghc-system-fileio-bootstrap)
11717 ("ghc-monad-control" ,ghc-monad-control)
11718 ("ghc-lifted-base" ,ghc-lifted-base)
11719 ("ghc-lifted-async" ,ghc-lifted-async)
11720 ("ghc-exceptions" ,ghc-exceptions)
11721 ("ghc-enclosed-exceptions" ,ghc-enclosed-exceptions)
11722 ("ghc-async" ,ghc-async)
11723 ("ghc-transformers-base" ,ghc-transformers-base)
11724 ("ghc-hunit" ,ghc-hunit)
11725 ("ghc-hspec" ,ghc-hspec)
11726 ("ghc-hspec-contrib" ,ghc-hspec-contrib)))
11727 (home-page "https://github.com/yesodweb/Shelly.hs")
11728 (synopsis "Shell-like (systems) programming in Haskell")
11729 (description
11730 "Shelly provides convenient systems programming in Haskell, similar in
11731spirit to POSIX shells. Shelly is originally forked from the Shellish package.")
11732 (license license:bsd-3)))
11733
11734(define-public ghc-silently
11735 (package
11736 (name "ghc-silently")
544bb369 11737 (version "1.2.5.1")
dddbc90c
RV
11738 (source
11739 (origin
11740 (method url-fetch)
11741 (uri (string-append
11742 "https://hackage.haskell.org/package/silently/silently-"
11743 version
11744 ".tar.gz"))
11745 (sha256
11746 (base32
544bb369 11747 "1lgs1gsr5dp0x21diqn4l03fxgai2kgdmj85gqp0iz3zykvbmjbz"))))
dddbc90c
RV
11748 (build-system haskell-build-system)
11749 (arguments `(#:tests? #f)) ;; circular dependency with nanospec
11750 ;; (inputs
11751 ;; `(("ghc-temporary" ,ghc-temporary)))
11752 (home-page "https://github.com/hspec/silently")
11753 (synopsis "Prevent writing to stdout")
11754 (description "This package provides functions to prevent or capture
11755writing to stdout and other handles.")
11756 (license license:bsd-3)))
11757
11758(define-public ghc-simple-reflect
11759 (package
11760 (name "ghc-simple-reflect")
11761 (version "0.3.3")
11762 (source
11763 (origin
11764 (method url-fetch)
11765 (uri (string-append
11766 "https://hackage.haskell.org/package/simple-reflect/simple-reflect-"
11767 version
11768 ".tar.gz"))
11769 (sha256
11770 (base32
11771 "0ayvrx5cm8n6db21jiyjmk5h93pw7cz1707hih09hlhk9jh5x0h7"))))
11772 (build-system haskell-build-system)
11773 (home-page
11774 "https://twanvl.nl/blog/haskell/simple-reflection-of-expressions")
11775 (synopsis
11776 "Simple reflection of expressions containing variables")
11777 (description
11778 "This package allows simple reflection of expressions containing
11779variables. Reflection here means that a Haskell expression is turned into a
11780string. The primary aim of this package is teaching and understanding; there
11781are no options for manipulating the reflected expressions beyond showing
11782them.")
11783 (license license:bsd-3)))
11784
11785(define-public ghc-simple-sendfile
11786 (package
11787 (name "ghc-simple-sendfile")
08f54390 11788 (version "0.2.30")
dddbc90c
RV
11789 (source
11790 (origin
11791 (method url-fetch)
11792 (uri (string-append "https://hackage.haskell.org/package/"
11793 "simple-sendfile-" version "/"
11794 "simple-sendfile-" version ".tar.gz"))
11795 (sha256
11796 (base32
08f54390 11797 "112j0qfsjazf9wg1zywf7hjybgsiywk9wkm27yi8xzv27hmlv1mn"))))
dddbc90c
RV
11798 (build-system haskell-build-system)
11799 (inputs
11800 `(("ghc-conduit" ,ghc-conduit)
11801 ("ghc-conduit-extra" ,ghc-conduit-extra)
11802 ("ghc-network" ,ghc-network)
11803 ("ghc-resourcet" ,ghc-resourcet)))
11804 (native-inputs
11805 `(("ghc-hspec" ,ghc-hspec)
11806 ("hspec-discover" ,hspec-discover)))
11807 (home-page "https://github.com/kazu-yamamoto/simple-sendfile")
11808 (synopsis "Cross platform library for the sendfile system call")
11809 (description "This library tries to call minimum system calls which
11810are the bottleneck of web servers.")
11811 (license license:bsd-3)))
11812
06966c05
TS
11813(define-public ghc-size-based
11814 (package
11815 (name "ghc-size-based")
11816 (version "0.1.2.0")
11817 (source
11818 (origin
11819 (method url-fetch)
11820 (uri (string-append "https://hackage.haskell.org/package/"
11821 "size-based/size-based-" version ".tar.gz"))
11822 (sha256
11823 (base32
11824 "06hmlic0n73ncwlkpx49xlv09bzsrr27ncnp5byhzlknak2gd7vp"))))
11825 (build-system haskell-build-system)
11826 (inputs
11827 `(("ghc-dictionary-sharing" ,ghc-dictionary-sharing)
11828 ("ghc-testing-type-modifiers" ,ghc-testing-type-modifiers)
11829 ("ghc-semigroups" ,ghc-semigroups)))
11830 (arguments
11831 `(#:cabal-revision
11832 ("1" "0kax1ypjyglkn6iff1x4yz12y7f2n249m95xvdhrc63hsa4xlcqv")))
11833 (home-page "https://hackage.haskell.org/package/size-based")
11834 (synopsis "Sized functors for size-based enumerations")
11835 (description "This library provides a framework for size-based
11836enumerations.")
11837 (license license:bsd-3)))
11838
dddbc90c
RV
11839(define-public ghc-skylighting-core
11840 (package
11841 (name "ghc-skylighting-core")
1826c2a8 11842 (version "0.8.2.1")
dddbc90c
RV
11843 (source (origin
11844 (method url-fetch)
11845 (uri (string-append "https://hackage.haskell.org/package/"
11846 "skylighting-core/skylighting-core-"
11847 version ".tar.gz"))
11848 (sha256
11849 (base32
1826c2a8 11850 "0hdchivb4af9w7v5v7lrwfwawd3kcwmpzk69m1vkkm3pis8lcr1s"))))
dddbc90c
RV
11851 (build-system haskell-build-system)
11852 (inputs
11853 `(("ghc-aeson" ,ghc-aeson)
11854 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
11855 ("ghc-attoparsec" ,ghc-attoparsec)
11856 ("ghc-base64-bytestring" ,ghc-base64-bytestring)
11857 ("ghc-blaze-html" ,ghc-blaze-html)
11858 ("ghc-case-insensitive" ,ghc-case-insensitive)
11859 ("ghc-colour" ,ghc-colour)
11860 ("ghc-hxt" ,ghc-hxt)
11861 ("ghc-regex-pcre-builtin" ,ghc-regex-pcre-builtin)
11862 ("ghc-safe" ,ghc-safe)
11863 ("ghc-utf8-string" ,ghc-utf8-string)))
11864 (native-inputs
11865 `(("ghc-diff" ,ghc-diff)
11866 ("ghc-hunit" ,ghc-hunit)
11867 ("ghc-pretty-show" ,ghc-pretty-show)
11868 ("ghc-quickcheck" ,ghc-quickcheck)
11869 ("ghc-tasty" ,ghc-tasty)
11870 ("ghc-tasty-golden" ,ghc-tasty-golden)
11871 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
11872 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
11873 (home-page "https://github.com/jgm/skylighting")
11874 (synopsis "Syntax highlighting library")
11875 (description "Skylighting is a syntax highlighting library with support
11876for over one hundred languages. It derives its tokenizers from XML syntax
11877definitions used by KDE's @code{KSyntaxHighlighting} framework, so any syntax
11878supported by that framework can be added. An optional command-line program is
11879provided. Skylighting is intended to be the successor to highlighting-kate.")
11880 (license license:gpl2)))
11881
11882(define-public ghc-skylighting
11883 (package
11884 (inherit ghc-skylighting-core)
11885 (name "ghc-skylighting")
36c940cf 11886 (version "0.8.2.1")
dddbc90c
RV
11887 (source (origin
11888 (method url-fetch)
11889 (uri (string-append "https://hackage.haskell.org/package/skylighting-"
11890 version "/skylighting-" version ".tar.gz"))
11891 (sha256
11892 (base32
36c940cf 11893 "1xls8ycad77m55ax4hp55k60h3pi5sm3m32hycbc8baixbgfx5xz"))))
dddbc90c
RV
11894 (inputs
11895 `(("ghc-skylighting-core" ,ghc-skylighting-core)
11896 ,@(package-inputs ghc-skylighting-core)))))
11897
11898(define-public ghc-smallcheck
11899 (package
11900 (name "ghc-smallcheck")
11901 (version "1.1.5")
11902 (source
11903 (origin
11904 (method url-fetch)
11905 (uri (string-append
11906 "https://hackage.haskell.org/package/smallcheck/smallcheck-"
11907 version
11908 ".tar.gz"))
11909 (sha256
11910 (base32
11911 "195fj7w3v03d1y1nm2ylavzrwxjcdbq0lb6zsw1dwyx5jmwfc84h"))))
11912 (build-system haskell-build-system)
11913 (inputs
11914 `(("ghc-logict" ,ghc-logict)))
11915 (home-page
11916 "https://github.com/feuerbach/smallcheck")
11917 (synopsis "Property-based testing library")
a84be333 11918 (description "SmallCheck is a testing library that verifies
dddbc90c
RV
11919properties for all test cases up to some depth. The test cases are generated
11920automatically by SmallCheck.")
11921 (license license:bsd-3)))
11922
11923(define-public ghc-socks
11924 (package
11925 (name "ghc-socks")
ab761e9d 11926 (version "0.6.1")
dddbc90c
RV
11927 (source (origin
11928 (method url-fetch)
11929 (uri (string-append "https://hackage.haskell.org/package/"
11930 "socks/socks-" version ".tar.gz"))
11931 (sha256
11932 (base32
ab761e9d 11933 "0wvaxy3dkv97wrncjv1rxrmjr4014hgxz82kixvcwqdhidalfi3k"))))
dddbc90c
RV
11934 (build-system haskell-build-system)
11935 (inputs
11936 `(("ghc-cereal" ,ghc-cereal)
ab761e9d 11937 ("ghc-basement" ,ghc-basement)
dddbc90c
RV
11938 ("ghc-network" ,ghc-network)))
11939 (home-page "https://github.com/vincenthz/hs-socks")
11940 (synopsis "SOCKS proxy (version 5) implementation")
11941 (description
11942 "This library provides a SOCKS proxy (version 5) implementation.")
11943 (license license:bsd-3)))
11944
081d85d6
TS
11945(define-public ghc-sop-core
11946 (package
11947 (name "ghc-sop-core")
11948 (version "0.4.0.0")
11949 (source
11950 (origin
11951 (method url-fetch)
11952 (uri (string-append "https://hackage.haskell.org/package/"
11953 "sop-core/sop-core-" version ".tar.gz"))
11954 (sha256
11955 (base32
11956 "07ci2mh8cbjvipb576rxsj3iyhkj5c5dnsns4xkdppp2p3pv10d3"))))
11957 (build-system haskell-build-system)
3ef91e15 11958 (home-page "https://hackage.haskell.org/package/sop-core")
081d85d6
TS
11959 (synopsis "True Sums of Products")
11960 (description "This package provides an implementation of
11961@math{n}-ary sums and @math{n}-ary products. The module @code{Data.SOP}
11962is the main module of this library and contains more detailed
11963documentation. The main use case of this package is to serve as the
11964core of @url{https://hackage.haskell.org/package/generics-sop,
11965generics-sop}.")
11966 (license license:bsd-3)))
11967
4c77a1a0
JS
11968(define-public ghc-special-values
11969 (package
11970 (name "ghc-special-values")
11971 (version "0.1.0.0")
11972 (source
11973 (origin
11974 (method url-fetch)
11975 (uri (string-append
11976 "https://hackage.haskell.org/package/special-values/"
11977 "special-values-" version ".tar.gz"))
11978 (sha256
11979 (base32
11980 "1kkdw2c4d2hha99v9f89ahmifjxp7fxmxyfwq9a8xk6s0h9xs51w"))))
11981 (build-system haskell-build-system)
11982 (inputs
11983 `(("ghc-scientific" ,ghc-scientific)
11984 ("ghc-ieee754" ,ghc-ieee754)
11985 ("ghc-nats" ,ghc-nats)))
11986 (home-page
11987 "https://github.com/minad/special-values#readme")
11988 (synopsis "Typeclass providing special values")
11989 (description
11990 "Special values are provided by a SpecialValues typeclass. Those can be
11991used for example by QuickCheck, see quickcheck-special." )
11992 (license license:expat)))
11993
dddbc90c
RV
11994(define-public ghc-split
11995 (package
11996 (name "ghc-split")
11997 (version "0.2.3.3")
534d6caa 11998 (outputs '("out" "static" "doc"))
dddbc90c
RV
11999 (source
12000 (origin
12001 (method url-fetch)
12002 (uri (string-append
12003 "https://hackage.haskell.org/package/split/split-"
12004 version
12005 ".tar.gz"))
12006 (sha256
12007 (base32
12008 "04qlmkcyklznl03gsjg95b4nzb6i96gdapqg60rny9szgi7ngk8x"))))
12009 (build-system haskell-build-system)
9bbc21a7
TS
12010 (arguments
12011 `(#:cabal-revision
12012 ("2" "1c8bcssxq5rkxkixgms6w6x6lzf4n7cxk6cx6av1dp3lixdy9j34")))
dddbc90c
RV
12013 (native-inputs
12014 `(("ghc-quickcheck" ,ghc-quickcheck)))
12015 (home-page "https://hackage.haskell.org/package/split")
12016 (synopsis "Combinator library for splitting lists")
12017 (description "This package provides a collection of Haskell functions for
12018splitting lists into parts, akin to the @code{split} function found in several
12019mainstream languages.")
12020 (license license:bsd-3)))
12021
7799d17f 12022(define-public ghc-splitmix
49367c92 12023 (package
7799d17f 12024 (name "ghc-splitmix")
49367c92
TS
12025 (version "0.0.3")
12026 (source
12027 (origin
12028 (method url-fetch)
12029 (uri (string-append "https://hackage.haskell.org/package/"
12030 "splitmix/splitmix-" version ".tar.gz"))
12031 (sha256
12032 (base32
12033 "1k0amgkz7rvyz3lnw7m786ilnr1cibwhx9sc4qynq329gxan5r7w"))))
49367c92 12034 (build-system haskell-build-system)
49367c92
TS
12035 (inputs
12036 `(("ghc-random" ,ghc-random)))
7799d17f
TS
12037 (native-inputs
12038 `(("ghc-hunit" ,ghc-hunit)
12039 ("ghc-async" ,ghc-async)
12040 ("ghc-base-compat-batteries" ,ghc-base-compat-batteries)
12041 ("ghc-tf-random" ,ghc-tf-random)
12042 ("ghc-vector" ,ghc-vector)))
92a79fee 12043 (home-page "https://hackage.haskell.org/package/splitmix")
49367c92
TS
12044 (synopsis "Fast and splittable pseudorandom number generator")
12045 (description "This package provides a Pure Haskell implementation of the
12046SplitMix pseudorandom number generator. SplitMix is a \"splittable\"
12047pseudorandom number generator that is quite fast: 9 64-bit
12048arithmetic/logical operations per 64 bits generated. SplitMix is tested
12049with two standard statistical test suites (DieHarder and TestU01, this
12050implementation only using the former) and it appears to be adequate for
12051\"everyday\" use, such as Monte Carlo algorithms and randomized data
12052structures where speed is important. In particular, it @strong{should not
12053be used for cryptographic or security applications}, because generated
12054sequences of pseudorandom values are too predictable (the mixing functions
12055are easily inverted, and two successive outputs suffice to reconstruct the
12056internal state).")
12057 (license license:bsd-3)))
12058
7799d17f
TS
12059(define-public ghc-splitmix-bootstrap
12060 (package
12061 (inherit ghc-splitmix)
12062 (name "ghc-splitmix-bootstrap")
12063 (arguments `(#:tests? #f))
12064 (native-inputs '())
12065 (properties '((hidden? #t)))))
12066
a152258b
JS
12067(define-public ghc-spoon
12068 (package
12069 (name "ghc-spoon")
12070 (version "0.3.1")
12071 (source
12072 (origin
12073 (method url-fetch)
12074 (uri (string-append
12075 "https://hackage.haskell.org/package/spoon/spoon-"
12076 version
12077 ".tar.gz"))
12078 (sha256
12079 (base32
12080 "1m41k0mfy6fpfrv2ym4m5jsjaj9xdfl2iqpppd3c4d0fffv51cxr"))))
12081 (build-system haskell-build-system)
12082 (arguments
12083 `(#:cabal-revision
12084 ("1"
12085 "09s5jjcsg4g4qxchq9g2l4i9d5zh3rixpkbiysqcgl69kj8mwv74")))
12086 (home-page
12087 "http://hackage.haskell.org/package/spoon")
12088 (synopsis
12089 "Catch errors thrown from pure computations")
12090 (description
12091 "Takes an error-throwing expression and puts it back in the Maybe it
12092belongs in.
12093
12094Note that this suffers from the
12095@url{https://ghc.haskell.org/trac/ghc/ticket/5902}. Buyer beware.")
12096 (license license:bsd-3)))
12097
dddbc90c
RV
12098(define-public ghc-statevar
12099 (package
12100 (name "ghc-statevar")
19419709 12101 (version "1.2")
dddbc90c
RV
12102 (source
12103 (origin
12104 (method url-fetch)
12105 (uri (string-append
12106 "https://hackage.haskell.org/package/StateVar/StateVar-"
12107 version
12108 ".tar.gz"))
12109 (sha256
12110 (base32
19419709 12111 "12sz6zkc9j5z3lwrjvljrkfxa5vhwnir5wsarigz2f6d3w13dh5g"))))
dddbc90c
RV
12112 (build-system haskell-build-system)
12113 (home-page "https://hackage.haskell.org/package/StateVar")
12114 (synopsis "State variables for Haskell")
12115 (description "This package provides state variables, which are references
12116in the @code{IO} monad, like @code{IORef}s or parts of the OpenGL state.")
12117 (license license:bsd-3)))
12118
12119(define-public ghc-statistics
12120 (package
12121 (name "ghc-statistics")
60e78e68 12122 (version "0.15.1.1")
dddbc90c
RV
12123 (source
12124 (origin
12125 (method url-fetch)
12126 (uri (string-append "https://hackage.haskell.org/package/"
12127 "statistics-" version "/"
12128 "statistics-" version ".tar.gz"))
12129 (sha256
12130 (base32
60e78e68 12131 "015rn74f1glii26j4b2fh1fc63xvxzrh2xckiancz48kc8jdzabj"))))
dddbc90c
RV
12132 (build-system haskell-build-system)
12133 (arguments
60e78e68 12134 '(;; Two tests fail: "Discrete CDF is OK" and "Quantile is CDF inverse".
dddbc90c
RV
12135 #:tests? #f))
12136 (inputs
12137 `(("ghc-aeson" ,ghc-aeson)
60e78e68 12138 ("ghc-async" ,ghc-async)
dddbc90c 12139 ("ghc-base-orphans" ,ghc-base-orphans)
60e78e68 12140 ("ghc-dense-linear-algebra" ,ghc-dense-linear-algebra)
dddbc90c
RV
12141 ("ghc-math-functions" ,ghc-math-functions)
12142 ("ghc-monad-par" ,ghc-monad-par)
12143 ("ghc-mwc-random" ,ghc-mwc-random)
12144 ("ghc-primitive" ,ghc-primitive)
12145 ("ghc-vector" ,ghc-vector)
12146 ("ghc-vector-algorithms" ,ghc-vector-algorithms)
12147 ("ghc-vector-th-unbox" ,ghc-vector-th-unbox)
12148 ("ghc-vector-binary-instances" ,ghc-vector-binary-instances)))
12149 (native-inputs
12150 `(("ghc-hunit" ,ghc-hunit)
12151 ("ghc-quickcheck" ,ghc-quickcheck)
12152 ("ghc-ieee754" ,ghc-ieee754)
12153 ("ghc-test-framework" ,ghc-test-framework)
12154 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
12155 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
12156 (home-page "https://github.com/bos/mwc-random")
12157 (synopsis "Haskell library of statistical types, data, and functions")
12158 (description "This library provides a number of common functions
12159and types useful in statistics. We focus on high performance, numerical
12160robustness, and use of good algorithms. Where possible, we provide references
12161to the statistical literature.
12162
12163The library's facilities can be divided into four broad categories:
12164
12165@itemize
12166@item Working with widely used discrete and continuous probability
12167distributions. (There are dozens of exotic distributions in use; we focus
12168on the most common.)
12169
12170@item Computing with sample data: quantile estimation, kernel density
12171estimation, histograms, bootstrap methods, significance testing,
12172and regression and autocorrelation analysis.
12173
12174@item Random variate generation under several different distributions.
12175
12176@item Common statistical tests for significant differences between samples.
12177@end itemize")
12178 (license license:bsd-2)))
12179
12180(define-public ghc-stm-chans
12181 (package
12182 (name "ghc-stm-chans")
12183 (version "3.0.0.4")
12184 (source
12185 (origin
12186 (method url-fetch)
12187 (uri (string-append "https://hackage.haskell.org/package/"
12188 "stm-chans-" version "/"
12189 "stm-chans-" version ".tar.gz"))
12190 (sha256
12191 (base32
12192 "0f27sp09yha43xk9q55sc185jyjs5h7gq2dhsyx6bm9kz9dzqi13"))))
12193 (build-system haskell-build-system)
12194 (home-page "https://hackage.haskell.org/package/stm-chans")
12195 (synopsis "Additional types of channels for ghc-stm")
12196 (description "This Haskell package offers a collection of channel types,
12197similar to @code{Control.Concurrent.STM.@{TChan,TQueue@}} but with additional
12198features.")
12199 (license license:bsd-3)))
12200
12201(define-public ghc-stm-conduit
12202 (package
12203 (name "ghc-stm-conduit")
cd518e95 12204 (version "4.0.1")
dddbc90c
RV
12205 (source
12206 (origin
12207 (method url-fetch)
12208 (uri (string-append "https://hackage.haskell.org/package/stm-conduit/"
12209 "stm-conduit-" version ".tar.gz"))
12210 (sha256
12211 (base32
cd518e95 12212 "0hhlxvpp7mah8dcvkknh6skx44jfk3092zz2w52zlr255bkmn3p8"))))
dddbc90c
RV
12213 (build-system haskell-build-system)
12214 (inputs
12215 `(("ghc-stm-chans" ,ghc-stm-chans)
12216 ("ghc-cereal" ,ghc-cereal)
12217 ("ghc-cereal-conduit" ,ghc-cereal-conduit)
12218 ("ghc-conduit" ,ghc-conduit)
12219 ("ghc-conduit-extra" ,ghc-conduit-extra)
12220 ("ghc-exceptions" ,ghc-exceptions)
12221 ("ghc-resourcet" ,ghc-resourcet)
12222 ("ghc-async" ,ghc-async)
12223 ("ghc-monad-loops" ,ghc-monad-loops)
12224 ("ghc-unliftio" ,ghc-unliftio)))
12225 (native-inputs
12226 `(("ghc-doctest" ,ghc-doctest)
12227 ("ghc-quickcheck" ,ghc-quickcheck)
12228 ("ghc-hunit" ,ghc-hunit)
12229 ("ghc-test-framework" ,ghc-test-framework)
12230 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
12231 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
12232 (home-page "https://github.com/cgaebel/stm-conduit")
12233 (synopsis "Introduces conduits to channels and promotes using conduits concurrently")
12234 (description
12235 "This package provides two simple conduit wrappers around STM channels: a
12236source and a sink.")
12237 (license license:bsd-3)))
12238
12239(define-public ghc-stmonadtrans
12240 (package
12241 (name "ghc-stmonadtrans")
12242 (version "0.4.3")
12243 (source
12244 (origin
12245 (method url-fetch)
12246 (uri (string-append "https://hackage.haskell.org/package/STMonadTrans"
12247 "/STMonadTrans-" version ".tar.gz"))
12248 (sha256
12249 (base32 "1nr26fnmi5fdjc6d00w13kjhmfyvb5b837d0006w4dj0yxndaksp"))))
12250 (build-system haskell-build-system)
12251 (home-page "https://hackage.haskell.org/package/STMonadTrans")
12252 (synopsis "Monad transformer version of the ST monad")
12253 (description
12254 "This package provides a monad transformer version of the @code{ST} monad
12255for strict state threads.")
12256 (license license:bsd-3)))
12257
12258(define-public ghc-storable-complex
12259 (package
12260 (name "ghc-storable-complex")
4a35e3c3 12261 (version "0.2.3.0")
dddbc90c
RV
12262 (source
12263 (origin
12264 (method url-fetch)
12265 (uri (string-append
12266 "https://hackage.haskell.org/package/storable-complex/storable-complex-"
12267 version ".tar.gz"))
12268 (sha256
4a35e3c3 12269 (base32 "0fnwbfmd5vsaaqvf9182qdcjrzcfjd1zhdyvjwzifbwvn6r9kx4s"))))
dddbc90c 12270 (build-system haskell-build-system)
4a35e3c3
TS
12271 (inputs
12272 `(("ghc-base-orphans" ,ghc-base-orphans)))
dddbc90c
RV
12273 (home-page "https://github.com/cartazio/storable-complex")
12274 (synopsis "Haskell Storable instance for Complex")
12275 (description "This package provides a Haskell library including a
12276Storable instance for Complex which is binary compatible with C99, C++
12277and Fortran complex data types.")
12278 (license license:bsd-3)))
12279
ad80074a
JS
12280(define-public ghc-storable-record
12281 (package
12282 (name "ghc-storable-record")
12283 (version "0.0.4")
12284 (source
12285 (origin
12286 (method url-fetch)
12287 (uri
12288 (string-append
12289 "https://hackage.haskell.org/package/storable-record/"
12290 "storable-record-" version ".tar.gz"))
12291 (sha256
12292 (base32
12293 "0hjs1km0fc9ch0i1rbycxia5w3939hk4p4md73ikgg4aipqb5zyf"))))
12294 (build-system haskell-build-system)
12295 (inputs
12296 `(("ghc-semigroups" ,ghc-semigroups)
12297 ("ghc-utility-ht" ,ghc-utility-ht)
12298 ("ghc-storablevector" ,ghc-storablevector)
12299 ("ghc-timeit" ,ghc-timeit)))
12300 (home-page "https://hackage.haskell.org/package/storable-record")
12301 (synopsis "Elegant definition of Storable instances for records")
12302 (description "With this package you can build a Storable instance of
12303a record type from Storable instances of its elements in an elegant way.
12304It does not do any magic, just a bit arithmetic to compute the right
12305offsets, that would be otherwise done manually or by a preprocessor like
12306C2HS. There is no guarantee that the generated memory layout is
12307compatible with that of a corresponding C struct. However, the module
12308generates the smallest layout that is possible with respect to the
12309alignment of the record elements.")
12310 (license license:bsd-3)))
12311
55f4c653
JS
12312(define-public ghc-storable-tuple
12313 (package
12314 (name "ghc-storable-tuple")
12315 (version "0.0.3.3")
12316 (source
12317 (origin
12318 (method url-fetch)
12319 (uri
12320 (string-append
12321 "https://hackage.haskell.org/package/storable-tuple/"
12322 "storable-tuple-" version ".tar.gz"))
12323 (sha256
12324 (base32
12325 "0dfzhxgkn1l6ls7zh6iifhyvhm8l47n40z0ar23c6ibsa94w1ynw"))))
12326 (build-system haskell-build-system)
12327 (inputs
12328 `(("ghc-storable-record" ,ghc-storable-record)
12329 ("ghc-utility-ht" ,ghc-utility-ht)
12330 ("ghc-base-orphans" ,ghc-base-orphans)))
12331 (home-page "https://hackage.haskell.org/package/storable-tuple")
12332 (synopsis "Storable instance for pairs and triples")
12333 (description "This package provides a Storable instance for pairs
12334and triples which should be binary compatible with C99 and C++. The
12335only purpose of this package is to provide a standard location for this
12336instance so that other packages needing this instance can play nicely
12337together.")
12338 (license license:bsd-3)))
12339
bc06ca45
JS
12340(define-public ghc-storablevector
12341 (package
12342 (name "ghc-storablevector")
12343 (version "0.2.13")
12344 (source
12345 (origin
12346 (method url-fetch)
12347 (uri
12348 (string-append
12349 "https://hackage.haskell.org/package/storablevector/storablevector-"
12350 version ".tar.gz"))
12351 (sha256
12352 (base32
12353 "1zmr738vwnhnyxbikayqnaz31ilv2qlmscp6iqgl7adcfbal4dzq"))))
12354 (build-system haskell-build-system)
12355 (inputs
12356 `(("ghc-non-negative" ,ghc-non-negative)
12357 ("ghc-utility-ht" ,ghc-utility-ht)
12358 ("ghc-semigroups" ,ghc-semigroups)
12359 ("ghc-unsafe" ,ghc-unsafe)
12360 ("ghc-quickcheck" ,ghc-quickcheck)
12361 ("ghc-syb" ,ghc-syb)))
228d2901 12362 (home-page "https://wiki.haskell.org/Storable_Vector")
bc06ca45
JS
12363 (synopsis "Fast, packed, strict storable arrays with a list interface")
12364 (description "This library provides fast, packed, strict storable
12365arrays with a list interface, a chunky lazy list interface with variable
12366chunk size and an interface for write access via the ST monad. This is
12367much like bytestring and binary but can be used for every
12368@code{Foreign.Storable.Storable} type. See also
12369@url{http://hackage.haskell.org/package/vector}, a library with a
12370similar intention.
12371
12372This library does not do advanced fusion optimization, since especially
12373for lazy vectors this would either be incorrect or not applicable. See
12374@url{http://hackage.haskell.org/package/storablevector-streamfusion} for
12375a library that provides fusion with lazy lists.")
12376 (license license:bsd-3)))
12377
dddbc90c
RV
12378(define-public ghc-streaming-commons
12379 (package
12380 (name "ghc-streaming-commons")
12381 (version "0.2.1.1")
12382 (source
12383 (origin
12384 (method url-fetch)
12385 (uri (string-append "https://hackage.haskell.org/package/"
12386 "streaming-commons/streaming-commons-"
12387 version ".tar.gz"))
12388 (sha256
12389 (base32
12390 "1lmyx3wkjsayhy5yilzvy0kf8qwmycwlk26r1d8f3cxbfhkr7s52"))))
12391 (build-system haskell-build-system)
12392 (inputs
12393 `(("ghc-async" ,ghc-async)
12394 ("ghc-blaze-builder" ,ghc-blaze-builder)
12395 ("ghc-network" ,ghc-network)
12396 ("ghc-random" ,ghc-random)
12397 ("ghc-zlib" ,ghc-zlib)))
12398 (native-inputs
12399 `(("ghc-quickcheck" ,ghc-quickcheck)
12400 ("ghc-hspec" ,ghc-hspec)
12401 ("hspec-discover" ,hspec-discover)))
12402 (home-page "https://hackage.haskell.org/package/streaming-commons")
12403 (synopsis "Conduit and pipes needed by some streaming data libraries")
12404 (description "This package provides low-dependency functionality commonly
12405needed by various Haskell streaming data libraries, such as @code{conduit} and
12406@code{pipe}s.")
12407 (license license:expat)))
12408
12409(define-public ghc-strict
12410 (package
12411 (name "ghc-strict")
12412 (version "0.3.2")
12413 (source
12414 (origin
12415 (method url-fetch)
12416 (uri (string-append "https://hackage.haskell.org/package/strict/strict-"
12417 version ".tar.gz"))
12418 (sha256
12419 (base32 "08cjajqz9h47fkq98mlf3rc8n5ghbmnmgn8pfsl3bdldjdkmmlrc"))))
12420 (build-system haskell-build-system)
12421 (home-page "https://hackage.haskell.org/package/strict")
12422 (synopsis "Strict data types and String IO")
12423 (description
12424 "This package provides strict versions of some standard Haskell data
12425types, such as pairs, @code{Maybe} and @code{Either}. It also contains strict
12426IO operations.")
12427 (license license:bsd-3)))
12428
12429(define-public ghc-stringbuilder
12430 (package
12431 (name "ghc-stringbuilder")
12432 (version "0.5.1")
12433 (source
12434 (origin
12435 (method url-fetch)
12436 (uri (string-append
12437 "https://hackage.haskell.org/package/stringbuilder/stringbuilder-"
12438 version
12439 ".tar.gz"))
12440 (sha256
12441 (base32
12442 "1fh3csx1wcssn8xyvl4ip4aprh9l4qyz2kk8mgjvqvc0vb2bsy6q"))))
12443 (build-system haskell-build-system)
12444 (arguments `(#:tests? #f)) ; FIXME: circular dependencies with tests
12445 ; enabled
12446 (home-page "https://hackage.haskell.org/package/stringbuilder")
12447 (synopsis "Writer monad for multi-line string literals")
12448 (description "This package provides a writer monad for multi-line string
12449literals.")
12450 (license license:expat)))
12451
12452(define-public ghc-string-qq
12453 (package
12454 (name "ghc-string-qq")
4d6fddc3 12455 (version "0.0.4")
dddbc90c
RV
12456 (source
12457 (origin
12458 (method url-fetch)
12459 (uri (string-append
12460 "https://hackage.haskell.org/package/string-qq/string-qq-"
12461 version
12462 ".tar.gz"))
12463 (sha256
12464 (base32
4d6fddc3 12465 "0wfxkw4x6j6jq9nd82k83g2k3hskpsvk1dp4cpkshvjr4wg9qny8"))))
dddbc90c 12466 (build-system haskell-build-system)
4d6fddc3
TS
12467 (native-inputs
12468 `(("ghc-hunit" ,ghc-hunit)))
3ef91e15 12469 (home-page "https://hackage.haskell.org/package/string-qq")
dddbc90c
RV
12470 (synopsis
12471 "QuasiQuoter for non-interpolated strings, texts and bytestrings.")
12472 (description
12473 "This package provides a quasiquoter for non-interpolated strings, texts
12474and bytestrings.")
12475 (license license:public-domain)))
12476
12477(define-public ghc-stringsearch
12478 (package
12479 (name "ghc-stringsearch")
12480 (version "0.3.6.6")
12481 (source
12482 (origin
12483 (method url-fetch)
12484 (uri (string-append
12485 "https://hackage.haskell.org/package/stringsearch/stringsearch-"
12486 version
12487 ".tar.gz"))
12488 (sha256
12489 (base32
12490 "0jpy9xjcjdbpi3wk6mg7xwd7wfi2mma70p97v1ij5i8bj9qijpr9"))))
12491 (build-system haskell-build-system)
e2303abb
TS
12492 (arguments
12493 `(#:cabal-revision
12494 ("1" "0z5pz5dccapz9k39r2zmf056m0x2m2lj3jahhnw3mfxlmps07378")))
dddbc90c
RV
12495 (home-page "https://bitbucket.org/dafis/stringsearch")
12496 (synopsis "Fast searching, splitting and replacing of ByteStrings")
12497 (description "This package provides several functions to quickly search
12498for substrings in strict or lazy @code{ByteStrings}. It also provides
12499functions for breaking or splitting on substrings and replacing all
12500occurrences of a substring (the first in case of overlaps) with another.")
12501 (license license:bsd-3)))
12502
dcf3f8f4
TS
12503(define-public ghc-svg-builder
12504 (package
12505 (name "ghc-svg-builder")
12506 (version "0.1.1")
12507 (source
12508 (origin
12509 (method url-fetch)
12510 (uri (string-append "https://hackage.haskell.org/package/"
12511 "svg-builder/svg-builder-" version ".tar.gz"))
12512 (sha256
12513 (base32
12514 "1k420f497lzkymmxin88ql6ib8dziic43avykv31yq65rgrf7l2g"))))
12515 (build-system haskell-build-system)
12516 (inputs
12517 `(("ghc-blaze-builder" ,ghc-blaze-builder)
12518 ("ghc-hashable" ,ghc-hashable)
12519 ("ghc-unordered-containers" ,ghc-unordered-containers)))
12520 (arguments
12521 `(#:cabal-revision
12522 ("1" "1bhp9gvid2iis411k1vvyj5krzc4ahxcqcd9cwx9h37jxg180xw1")))
12523 (home-page "https://github.com/diagrams/svg-builder.git")
12524 (synopsis "Domain-specific language for building Scalable Vector Graphics")
12525 (description "Easy-to-write domain-specific language (DSL) for
12526building Scalable Vector Graphics (SVG).")
12527 (license license:bsd-3)))
12528
dddbc90c
RV
12529(define-public ghc-syb
12530 (package
12531 (name "ghc-syb")
07d65eef 12532 (version "0.7.1")
534d6caa 12533 (outputs '("out" "static" "doc"))
dddbc90c
RV
12534 (source
12535 (origin
12536 (method url-fetch)
12537 (uri (string-append
12538 "https://hackage.haskell.org/package/syb/syb-"
12539 version
12540 ".tar.gz"))
12541 (sha256
12542 (base32
07d65eef 12543 "0077vxzyi9ppbphi2ialac3p376k49qly1kskdgf57wdwix9qjp0"))))
dddbc90c
RV
12544 (build-system haskell-build-system)
12545 (inputs
12546 `(("ghc-hunit" ,ghc-hunit)))
12547 (home-page
12548 "http://www.cs.uu.nl/wiki/GenericProgramming/SYB")
12549 (synopsis "Scrap Your Boilerplate")
12550 (description "This package contains the generics system described in the
12551/Scrap Your Boilerplate/ papers (see
12552@uref{http://www.cs.uu.nl/wiki/GenericProgramming/SYB, the website}). It
12553defines the @code{Data} class of types permitting folding and unfolding of
12554constructor applications, instances of this class for primitive types, and a
12555variety of traversals.")
12556 (license license:bsd-3)))
12557
12558(define-public ghc-system-fileio
12559 (package
12560 (name "ghc-system-fileio")
dcfb99d4 12561 (version "0.3.16.4")
dddbc90c
RV
12562 (source
12563 (origin
12564 (method url-fetch)
12565 (uri (string-append
12566 "https://hackage.haskell.org/package/system-fileio/system-fileio-"
12567 version ".tar.gz"))
12568 (sha256
12569 (base32
dcfb99d4 12570 "1iy6g1f35gzyj12g9mdiw4zf75mmxpv1l8cyaldgyscsl648pr9l"))))
dddbc90c 12571 (build-system haskell-build-system)
dcfb99d4
TS
12572 (arguments
12573 `(#:phases
12574 (modify-phases %standard-phases
12575 (add-before 'configure 'update-constraints
12576 (lambda _
12577 (substitute* "system-fileio.cabal"
12578 (("chell >= 0\\.4 && < 0\\.5") "chell >= 0.4"))
12579 #t)))))
dddbc90c
RV
12580 (inputs
12581 `(("ghc-system-filepath" ,ghc-system-filepath)
12582 ("ghc-chell" ,ghc-chell)
12583 ("ghc-temporary" ,ghc-temporary)))
12584 (home-page "https://github.com/fpco/haskell-filesystem")
12585 (synopsis "Consistent file system interaction across GHC versions")
12586 (description
12587 "This is a small wrapper around the directory, unix, and Win32 packages,
12588for use with system-filepath. It provides a consistent API to the various
12589versions of these packages distributed with different versions of GHC.
12590In particular, this library supports working with POSIX files that have paths
12591which can't be decoded in the current locale encoding.")
12592 (license license:expat)))
12593
12594;; See ghc-system-filepath-bootstrap. In addition this package depends on
12595;; ghc-system-filepath.
12596(define ghc-system-fileio-bootstrap
12597 (package
12598 (name "ghc-system-fileio-bootstrap")
12599 (version "0.3.16.3")
12600 (source
12601 (origin
12602 (method url-fetch)
12603 (uri (string-append
12604 "https://hackage.haskell.org/package/system-fileio/system-fileio-"
12605 version ".tar.gz"))
12606 (sha256
12607 (base32
12608 "1484hcl27s2qcby8ws5djj11q9bz68bspcifz9h5gii2ndy70x9i"))))
12609 (build-system haskell-build-system)
12610 (arguments
12611 `(#:tests? #f))
12612 (inputs
12613 `(("ghc-system-filepath-bootstrap" ,ghc-system-filepath-bootstrap)
12614 ("ghc-temporary" ,ghc-temporary)))
12615 (home-page "https://github.com/fpco/haskell-filesystem")
12616 (synopsis "Consistent file system interaction across GHC versions")
12617 (description
12618 "This is a small wrapper around the directory, unix, and Win32 packages,
12619for use with system-filepath. It provides a consistent API to the various
12620versions of these packages distributed with different versions of GHC.
12621In particular, this library supports working with POSIX files that have paths
12622which can't be decoded in the current locale encoding.")
12623 (license license:expat)))
12624
12625
12626(define-public ghc-system-filepath
12627 (package
12628 (name "ghc-system-filepath")
12629 (version "0.4.14")
12630 (source
12631 (origin
12632 (method url-fetch)
12633 (uri (string-append
12634 "https://hackage.haskell.org/package/system-filepath/system-filepath-"
12635 version ".tar.gz"))
12636 (sha256
12637 (base32
12638 "14yras4pz2dh55xpwmazcgxijvi8913pjgzb9iw50mjq1lycwmhn"))))
12639 (build-system haskell-build-system)
12640 ;; FIXME: One of the tests fails:
12641 ;; [ FAIL ] tests.validity.posix
12642 ;; note: seed=7310214548328823169
12643 ;; *** Failed! Falsifiable (after 24 tests):
12644 ;; 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"
12645 (arguments `(#:tests? #f))
12646 (inputs
12647 `(("ghc-chell" ,ghc-chell)
12648 ("ghc-chell-quickcheck" ,ghc-chell-quickcheck)
12649 ("ghc-quickcheck" ,ghc-quickcheck)))
12650 (home-page "https://github.com/fpco/haskell-filesystem")
12651 (synopsis "High-level, byte-based file and directory path manipulations")
12652 (description
12653 "Provides a FilePath datatype and utility functions for operating on it.
12654Unlike the filepath package, this package does not simply reuse String,
12655increasing type safety.")
12656 (license license:expat)))
12657
12658;; Ghc-shelly depends on ghc-system-filepath and ghc-system-fileio, who in turn depend on
12659;; ghc-chell and ghc-chell-quickcheck for the test phase. Ghc-chell depends on ghc-options
12660;; which depends on ghc-chell and ghc-chell-quickcheck.
12661;; Therefore we bootstrap it with tests disabled.
12662(define ghc-system-filepath-bootstrap
12663 (package
12664 (name "ghc-system-filepath-bootstrap")
12665 (version "0.4.14")
12666 (source
12667 (origin
12668 (method url-fetch)
12669 (uri (string-append
12670 "https://hackage.haskell.org/package/system-filepath/system-filepath-"
12671 version ".tar.gz"))
12672 (sha256
12673 (base32
12674 "14yras4pz2dh55xpwmazcgxijvi8913pjgzb9iw50mjq1lycwmhn"))))
12675 (build-system haskell-build-system)
12676 (arguments
12677 `(#:tests? #f))
12678 (inputs
12679 `(("ghc-quickcheck" ,ghc-quickcheck)))
12680 (home-page "https://github.com/fpco/haskell-filesystem")
12681 (synopsis "High-level, byte-based file and directory path manipulations")
12682 (description
12683 "Provides a FilePath datatype and utility functions for operating on it.
12684Unlike the filepath package, this package does not simply reuse String,
12685increasing type safety.")
12686 (license license:expat)))
12687
12688
12689(define-public ghc-tagged
12690 (package
12691 (name "ghc-tagged")
f0f3756a 12692 (version "0.8.6")
dddbc90c
RV
12693 (source
12694 (origin
12695 (method url-fetch)
12696 (uri (string-append
12697 "https://hackage.haskell.org/package/tagged/tagged-"
12698 version
12699 ".tar.gz"))
12700 (sha256
12701 (base32
f0f3756a 12702 "1pciqzxf9ncv954v4r527xkxkn7r5hcr13mfw5dg1xjci3qdw5md"))))
dddbc90c
RV
12703 (build-system haskell-build-system)
12704 (arguments
12705 `(#:cabal-revision
f0f3756a 12706 ("1" "070xwfw7y81hd63il76dmwbdl9ca1rd07c54zynfx6vpr4wyx4vh")))
dddbc90c
RV
12707 (inputs
12708 `(("ghc-transformers-compat" ,ghc-transformers-compat)))
12709 (home-page "https://hackage.haskell.org/package/tagged")
12710 (synopsis "Haskell phantom types to avoid passing dummy arguments")
12711 (description "This library provides phantom types for Haskell 98, to avoid
12712having to unsafely pass dummy arguments.")
12713 (license license:bsd-3)))
12714
12715(define-public ghc-tar
12716 (package
12717 (name "ghc-tar")
ec83929f 12718 (version "0.5.1.1")
dddbc90c
RV
12719 (source
12720 (origin
12721 (method url-fetch)
12722 (uri (string-append
12723 "https://hackage.haskell.org/package/tar/tar-"
12724 version ".tar.gz"))
12725 (sha256
12726 (base32
ec83929f 12727 "1ppim7cgmn7ng8zbdrwkxhhizc30h15h1c9cdlzamc5jcagl915k"))))
dddbc90c
RV
12728 (build-system haskell-build-system)
12729 ;; FIXME: 2/24 tests fail.
12730 (arguments `(#:tests? #f))
12731 (inputs
12732 `(("ghc-bytestring-handle" ,ghc-bytestring-handle)
12733 ("ghc-quickcheck" ,ghc-quickcheck)
12734 ("ghc-tasty" ,ghc-tasty)
12735 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
12736 (home-page "https://hackage.haskell.org/package/tar")
12737 (synopsis "Reading, writing and manipulating \".tar\" archive files")
12738 (description
12739 "This library is for working with \\\"@.tar@\\\" archive files.
12740It can read and write a range of common variations of the tar archive format
12741including V7, POSIX USTAR and GNU formats. It provides support for packing and
12742unpacking portable archives. This makes it suitable for distribution but not
12743backup because details like file ownership and exact permissions are not
12744preserved. It also provides features for random access to archive content using
12745an index.")
12746 (license license:bsd-3)))
12747
f8d17902
TS
12748(define-public ghc-tar-conduit
12749 (package
12750 (name "ghc-tar-conduit")
12751 (version "0.3.2")
12752 (source
12753 (origin
12754 (method url-fetch)
12755 (uri (string-append "https://hackage.haskell.org/package/"
12756 "tar-conduit/tar-conduit-" version ".tar.gz"))
12757 (sha256
12758 (base32
12759 "0bgn3hyf20g1gfnzy8f41s7nj54kfcyjk2izw99svrw8f3dphi80"))))
12760 (build-system haskell-build-system)
12761 (inputs
12762 `(("ghc-conduit" ,ghc-conduit)
12763 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
12764 ("ghc-safe-exceptions" ,ghc-safe-exceptions)))
12765 (native-inputs
12766 `(("ghc-quickcheck" ,ghc-quickcheck)
12767 ("ghc-conduit-extra" ,ghc-conduit-extra)
12768 ("ghc-hspec" ,ghc-hspec)
12769 ("ghc-hspec" ,ghc-hspec)
12770 ("ghc-weigh" ,ghc-weigh)))
12771 (home-page "https://github.com/snoyberg/tar-conduit#readme")
12772 (synopsis "Extract and create tar files using conduit for streaming")
12773 (description "This library provides a conduit-based, streaming
12774interface for extracting and creating tar files.")
12775 (license license:expat)))
12776
dddbc90c
RV
12777(define-public ghc-temporary
12778 (package
12779 (name "ghc-temporary")
12780 (version "1.3")
12781 (source
12782 (origin
12783 (method url-fetch)
12784 (uri (string-append
12785 "https://hackage.haskell.org/package/temporary/temporary-"
12786 version
12787 ".tar.gz"))
12788 (sha256
12789 (base32
12790 "144qhwfwg37l3k313raf4ssiz16jbgwlm1nf4flgqpsbd69jji4c"))))
12791 (build-system haskell-build-system)
12792 (inputs
12793 `(("ghc-exceptions" ,ghc-exceptions)
12794 ("ghc-random" ,ghc-random)))
12795 (native-inputs
12796 `(("ghc-base-compat" ,ghc-base-compat)
12797 ("ghc-tasty" ,ghc-tasty)
12798 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
12799 (home-page "https://www.github.com/batterseapower/temporary")
12800 (synopsis "Temporary file and directory support")
12801 (description "The functions for creating temporary files and directories
12802in the Haskelll base library are quite limited. This library just repackages
12803the Cabal implementations of its own temporary file and folder functions so
12804that you can use them without linking against Cabal or depending on it being
12805installed.")
12806 (license license:bsd-3)))
12807
12808(define-public ghc-temporary-rc
12809 (package
12810 (name "ghc-temporary-rc")
12811 (version "1.2.0.3")
12812 (source
12813 (origin
12814 (method url-fetch)
12815 (uri (string-append
12816 "https://hackage.haskell.org/package/temporary-rc/temporary-rc-"
12817 version
12818 ".tar.gz"))
12819 (sha256
12820 (base32
12821 "1nqih0qks439k3pr5kmbbc8rjdw730slrxlflqb27fbxbzb8skqs"))))
12822 (build-system haskell-build-system)
12823 (inputs `(("ghc-exceptions" ,ghc-exceptions)))
12824 (home-page
12825 "https://www.github.com/feuerbach/temporary")
12826 (synopsis
12827 "Portable temporary file and directory support")
12828 (description
12829 "The functions for creating temporary files and directories in the base
12830library are quite limited. The unixutils package contains some good ones, but
12831they aren't portable to Windows. This library just repackages the Cabal
12832implementations of its own temporary file and folder functions so that you can
12833use them without linking against Cabal or depending on it being installed.
12834This is a better maintained fork of the \"temporary\" package.")
12835 (license license:bsd-3)))
12836
12837(define-public ghc-terminal-size
12838 (package
12839 (name "ghc-terminal-size")
12840 (version "0.3.2.1")
12841 (source (origin
12842 (method url-fetch)
12843 (uri (string-append
12844 "https://hackage.haskell.org/package/terminal-size/"
12845 "terminal-size-" version ".tar.gz"))
12846 (sha256
12847 (base32
12848 "0n4nvj3dbj9gxfnprgish45asn9z4dipv9j98s8i7g2n8yb3xhmm"))))
12849 (build-system haskell-build-system)
12850 (home-page "https://hackage.haskell.org/package/terminal-size")
12851 (synopsis "Get terminal window height and width")
12852 (description "Get terminal window height and width without ncurses
12853dependency.")
12854 (license license:bsd-3)))
12855
12856(define-public ghc-texmath
12857 (package
12858 (name "ghc-texmath")
7fec7e66 12859 (version "0.11.3")
dddbc90c
RV
12860 (source (origin
12861 (method url-fetch)
12862 (uri (string-append "https://hackage.haskell.org/package/"
12863 "texmath/texmath-" version ".tar.gz"))
12864 (sha256
12865 (base32
7fec7e66 12866 "03rpxbp43bjs62mmw4hv4785n6f6nbf8kj2y9mma5nzk6i2xs09f"))))
dddbc90c
RV
12867 (build-system haskell-build-system)
12868 (inputs
12869 `(("ghc-syb" ,ghc-syb)
12870 ("ghc-network-uri" ,ghc-network-uri)
12871 ("ghc-split" ,ghc-split)
12872 ("ghc-temporary" ,ghc-temporary)
12873 ("ghc-utf8-string" ,ghc-utf8-string)
12874 ("ghc-xml" ,ghc-xml)
12875 ("ghc-pandoc-types" ,ghc-pandoc-types)))
12876 (home-page "https://github.com/jgm/texmath")
12877 (synopsis "Conversion between formats used to represent mathematics")
12878 (description
12879 "The texmath library provides functions to read and write TeX math,
12880presentation MathML, and OMML (Office Math Markup Language, used in Microsoft
12881Office). Support is also included for converting math formats to pandoc's
12882native format (allowing conversion, via pandoc, to a variety of different
12883markup formats). The TeX reader supports basic LaTeX and AMS extensions, and
12884it can parse and apply LaTeX macros.")
12885 (license license:gpl2+)))
12886
12887(define-public ghc-text-binary
12888 (package
12889 (name "ghc-text-binary")
12890 (version "0.2.1.1")
12891 (source
12892 (origin
12893 (method url-fetch)
12894 (uri (string-append "https://hackage.haskell.org/package/"
12895 "text-binary/text-binary-"
12896 version ".tar.gz"))
12897 (sha256
12898 (base32
12899 "18gl10pwg3qwsk0za3c70j4n6a9129wwf1b7d3a461h816yv55xn"))))
12900 (build-system haskell-build-system)
12901 (home-page "https://github.com/kawu/text-binary")
12902 (synopsis "Binary instances for text types")
12903 (description
12904 "This package provides a compatibility layer providing @code{Binary}
12905instances for strict and lazy text types for versions older than 1.2.1 of the
12906text package.")
12907 (license license:bsd-2)))
12908
714e5605
JS
12909(define-public ghc-text-manipulate
12910 (package
12911 (name "ghc-text-manipulate")
12912 (version "0.2.0.1")
12913 (source
12914 (origin
12915 (method url-fetch)
12916 (uri (string-append
12917 "https://hackage.haskell.org/package/text-manipulate"
12918 "/text-manipulate-"
12919 version
12920 ".tar.gz"))
12921 (sha256
12922 (base32
12923 "0bwxyjj3ll45srxhsp2ihikgqglvjc6m02ixr8xpvyqwkcfwgsg0"))))
12924 (build-system haskell-build-system)
12925 (native-inputs
12926 `(("ghc-tasty" ,ghc-tasty)
12927 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
12928 (home-page
12929 "https://github.com/brendanhay/text-manipulate")
12930 (synopsis
12931 "Case conversion, word boundary manipulation, and textual subjugation")
12932 (description
12933 "Manipulate identifiers and structurally non-complex pieces of text by
12934delimiting word boundaries via a combination of whitespace,
12935control-characters, and case-sensitivity.
12936
12937Has support for common idioms like casing of programmatic variable names,
12938taking, dropping, and splitting by word, and modifying the first character of
12939a piece of text.
12940
12941Caution: this library makes heavy use of the text library's internal loop
12942optimisation framework. Since internal modules are not guaranteed to have a
12943stable API there is potential for build breakage when the text dependency is
12944upgraded. Consider yourself warned!")
12945 (license license:mpl2.0)))
12946
bdc877c4
TS
12947(define-public ghc-text-metrics
12948 (package
12949 (name "ghc-text-metrics")
12950 (version "0.3.0")
12951 (source
12952 (origin
12953 (method url-fetch)
12954 (uri (string-append "https://hackage.haskell.org/package/"
12955 "text-metrics/text-metrics-" version ".tar.gz"))
12956 (sha256
12957 (base32
12958 "18mzxwkdvjp31r720ai9bnxr638qq8x3a2v408bz0d8f0rsayx1q"))))
12959 (build-system haskell-build-system)
12960 (inputs
12961 `(("ghc-vector" ,ghc-vector)))
12962 (native-inputs
12963 `(("ghc-quickcheck" ,ghc-quickcheck)
12964 ("ghc-hspec" ,ghc-hspec)))
12965 (arguments
12966 `(#:cabal-revision
12967 ("4" "017drxq9x56b345d8w5m8xdsi1zzs0z16pbdx8j35cd1lsnh3kf1")))
12968 (home-page "https://github.com/mrkkrp/text-metrics")
12969 (synopsis "Calculate various string metrics efficiently")
12970 (description "This library provides tools to calculate various
12971string metrics efficiently.")
12972 (license license:bsd-3)))
12973
dddbc90c
RV
12974(define-public ghc-tf-random
12975 (package
12976 (name "ghc-tf-random")
12977 (version "0.5")
534d6caa 12978 (outputs '("out" "static" "doc"))
dddbc90c
RV
12979 (source
12980 (origin
12981 (method url-fetch)
12982 (uri (string-append
12983 "https://hackage.haskell.org/package/tf-random/tf-random-"
12984 version
12985 ".tar.gz"))
12986 (sha256
12987 (base32 "0445r2nns6009fmq0xbfpyv7jpzwv0snccjdg7hwj4xk4z0cwc1f"))))
12988 (build-system haskell-build-system)
12989 (inputs
12990 `(("ghc-primitive" ,ghc-primitive)
12991 ("ghc-random" ,ghc-random)))
12992 (home-page "https://hackage.haskell.org/package/tf-random")
12993 (synopsis "High-quality splittable pseudorandom number generator")
12994 (description "This package contains an implementation of a high-quality
12995splittable pseudorandom number generator. The generator is based on a
12996cryptographic hash function built on top of the ThreeFish block cipher. See
12997the paper \"Splittable Pseudorandom Number Generators Using Cryptographic
12998Hashing\" by Claessen, Pałka for details and the rationale of the design.")
12999 (license license:bsd-3)))
13000
13001(define-public ghc-th-abstraction
13002 (package
13003 (name "ghc-th-abstraction")
1188eabb 13004 (version "0.3.1.0")
dddbc90c
RV
13005 (source
13006 (origin
13007 (method url-fetch)
13008 (uri (string-append "https://hackage.haskell.org/package/"
13009 "th-abstraction/th-abstraction-"
13010 version ".tar.gz"))
13011 (sha256
13012 (base32
1188eabb 13013 "1f81w0gshvc816cf9qz0f19jsrzh6wpzmmy317xrgn63dv61p7jb"))))
dddbc90c
RV
13014 (build-system haskell-build-system)
13015 (home-page "https://github.com/glguy/th-abstraction")
13016 (synopsis "Nicer interface for reified information about data types")
13017 (description
13018 "This package normalizes variations in the interface for inspecting
13019datatype information via Template Haskell so that packages and support a
13020single, easier to use informational datatype while supporting many versions of
13021Template Haskell.")
13022 (license license:isc)))
13023
13024(define-public ghc-th-expand-syns
13025 (package
13026 (name "ghc-th-expand-syns")
8c766600 13027 (version "0.4.5.0")
dddbc90c
RV
13028 (source (origin
13029 (method url-fetch)
13030 (uri (string-append "https://hackage.haskell.org/package/"
13031 "th-expand-syns/th-expand-syns-"
13032 version ".tar.gz"))
13033 (sha256
13034 (base32
8c766600 13035 "1p4wfyycan8zsp9wi7npx36qwbfsbcgdyxi3ii51scf69dkrx42y"))))
dddbc90c
RV
13036 (build-system haskell-build-system)
13037 (inputs
13038 `(("ghc-syb" ,ghc-syb)))
13039 (home-page "https://hackage.haskell.org/package/th-expand-syns")
13040 (synopsis "Expands type synonyms in Template Haskell ASTs")
13041 (description
13042 "This package enables users to expand type synonyms in Template Haskell
13043@dfn{abstract syntax trees} (ASTs).")
13044 (license license:bsd-3)))
13045
13046(define-public ghc-th-lift
13047 (package
13048 (name "ghc-th-lift")
bd76b20a 13049 (version "0.8.0.1")
dddbc90c
RV
13050 (source (origin
13051 (method url-fetch)
13052 (uri (string-append "https://hackage.haskell.org/package/"
13053 "th-lift/th-lift-" version ".tar.gz"))
13054 (sha256
13055 (base32
bd76b20a 13056 "1a6qlbdg15cfr5rvl9g3blgwx4v1p0xic0pzv13zx165xbc36ld0"))))
dddbc90c
RV
13057 (build-system haskell-build-system)
13058 (inputs
13059 `(("ghc-th-abstraction" ,ghc-th-abstraction)))
13060 (home-page "https://github.com/mboes/th-lift")
13061 (synopsis "Derive Template Haskell's Lift class for datatypes")
13062 (description
13063 "This is a Haskell library to derive Template Haskell's Lift class for
13064datatypes.")
13065 (license license:bsd-3)))
13066
13067(define-public ghc-th-lift-instances
13068 (package
13069 (name "ghc-th-lift-instances")
d3db399e 13070 (version "0.1.14")
dddbc90c
RV
13071 (source
13072 (origin
13073 (method url-fetch)
13074 (uri (string-append "https://hackage.haskell.org/package/"
13075 "th-lift-instances/th-lift-instances-"
13076 version ".tar.gz"))
13077 (sha256
13078 (base32
d3db399e 13079 "0r1b4jnvcj64wp4hfccwkl4a70n1p1q7qzyx6ax7cmd8k961jz78"))))
dddbc90c
RV
13080 (build-system haskell-build-system)
13081 (inputs
13082 `(("ghc-th-lift" ,ghc-th-lift)
13083 ("ghc-vector" ,ghc-vector)
13084 ("ghc-quickcheck" ,ghc-quickcheck)))
13085 (home-page "https://github.com/bennofs/th-lift-instances/")
13086 (synopsis "Lift instances for template-haskell for common data types.")
13087 (description "Most data types in the Haskell platform do not have Lift
13088instances. This package provides orphan instances for @code{containers},
13089@code{text}, @code{bytestring} and @code{vector}.")
13090 (license license:bsd-3)))
13091
13092(define-public ghc-th-orphans
13093 (package
13094 (name "ghc-th-orphans")
882b23e2 13095 (version "0.13.9")
dddbc90c
RV
13096 (source (origin
13097 (method url-fetch)
13098 (uri (string-append "https://hackage.haskell.org/package/"
13099 "th-orphans/th-orphans-" version ".tar.gz"))
13100 (sha256
13101 (base32
882b23e2 13102 "1xj1gssv77hdx1r3ndg8k49v3ipj3a6r7crkyvx13jrps3m6ng1z"))))
dddbc90c
RV
13103 (build-system haskell-build-system)
13104 (inputs
13105 `(("ghc-th-lift" ,ghc-th-lift)
13106 ("ghc-th-lift-instances" ,ghc-th-lift-instances)
13107 ("ghc-th-reify-many" ,ghc-th-reify-many)
13108 ("ghc-generic-deriving" ,ghc-generic-deriving)))
13109 (native-inputs
13110 `(("ghc-hspec" ,ghc-hspec)))
13111 (home-page "https://hackage.haskell.org/package/th-orphans")
13112 (synopsis "Orphan instances for TH datatypes")
13113 (description
13114 "This package provides orphan instances for Template Haskell datatypes. In particular,
13115instances for @code{Ord} and @code{Lift}, as well as a few missing @code{Show}
13116and @code{Eq} instances. These instances used to live in the haskell-src-meta
13117package, and that's where the version number started.")
13118 (license license:bsd-3)))
13119
20c440ea
JS
13120(define-public ghc-these
13121 (package
13122 (name "ghc-these")
13123 (version "1.0.1")
13124 (source
13125 (origin
13126 (method url-fetch)
13127 (uri (string-append
13128 "https://hackage.haskell.org/package/these/these-"
13129 version
13130 ".tar.gz"))
13131 (sha256
13132 (base32
13133 "1k0pi65g7cm9hzdw6my6bzz2zvddkmj1qs45ymqmi316bpiixk3r"))))
13134 (build-system haskell-build-system)
13135 (inputs
13136 `(("ghc-base-compat" ,ghc-base-compat)
13137 ("ghc-hashable" ,ghc-hashable)
13138 ("ghc-aeson" ,ghc-aeson)
13139 ("ghc-unordered-containers" ,ghc-unordered-containers)
13140 ("ghc-assoc" ,ghc-assoc)
13141 ("ghc-semigroupoids" ,ghc-semigroupoids)
13142 ("ghc-quickcheck" ,ghc-quickcheck)))
13143 (arguments
13144 `(#:cabal-revision
13145 ("1"
13146 "0923r86fnmgpx0msm68aszirh2n19nn5bccgjxfh2146jw4z7w3z")))
13147 (home-page
13148 "https://github.com/isomorphism/these")
13149 (synopsis "Either-or-both data type")
13150 (description
13151 "This package provides a data type @code{These a b} which can
13152hold a value of either type or values of each type. This is usually
13153thought of as an \"inclusive or\" type (contrasting @code{Either a b} as
13154\"exclusive or\") or as an \"outer join\" type (contrasting @code{(a, b)}
13155as \"inner join\").
13156
13157@code{data These a b = This a | That b | These a b}
13158
13159Since version 1, this package was split into parts:
13160
13161@itemize
13162@item
13163https://hackage.haskell.org/package/semialign For @code{Align} and
13164@code{Zip} type-classes.
13165@item
13166https://hackage.haskell.org/package/semialign-indexed For
13167@code{SemialignWithIndex} class, providing @code{ialignWith} and
13168@code{izipWith}
13169@item
13170https://hackage.haskell.org/package/these-lens For lens combinators.
13171@item
13172http://hackage.haskell.org/package/monad-chronicle For transformers
13173variant of @code{These}.
13174@end itemize")
13175 (license license:bsd-3)))
13176
dddbc90c
RV
13177(define-public ghc-threads
13178 (package
13179 (name "ghc-threads")
13180 (version "0.5.1.6")
13181 (source
13182 (origin
13183 (method url-fetch)
13184 (uri (string-append "https://hackage.haskell.org/package/"
13185 "threads/threads-" version ".tar.gz"))
13186 (sha256
13187 (base32
13188 "0bjnjhnq3km6xqk0fn1fgyz5xdw4h6lylbwwbcmkkfzwcz0c76hk"))))
13189 (build-system haskell-build-system)
13190 (native-inputs
13191 `(("ghc-concurrent-extra" ,ghc-concurrent-extra)
13192 ("ghc-hunit" ,ghc-hunit)
13193 ("ghc-test-framework" ,ghc-test-framework)
13194 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
13195 (home-page "https://github.com/basvandijk/threads")
13196 (synopsis "Fork threads and wait for their result")
13197 (description "This package provides functions to fork threads and
13198wait for their result, whether it's an exception or a normal value.
13199Besides waiting for the termination of a single thread this package also
13200provides functions to wait for a group of threads to terminate. This
bbf8bf31
RV
13201package is similar to the @code{threadmanager}, @code{async} and
13202@code{spawn} packages. The advantages of this package are:
13203
dddbc90c
RV
13204@itemize
13205@item Simpler API.
13206@item More efficient in both space and time.
13207@item No space-leak when forking a large number of threads.
13208@item Correct handling of asynchronous exceptions.
13209@item GHC specific functionality like @code{forkOn} and
13210@code{forkIOWithUnmask}.
13211@end itemize")
13212 (license license:bsd-3)))
13213
13214(define-public ghc-th-reify-many
13215 (package
13216 (name "ghc-th-reify-many")
32d4a6ae 13217 (version "0.1.9")
dddbc90c
RV
13218 (source (origin
13219 (method url-fetch)
13220 (uri (string-append "https://hackage.haskell.org/package/"
13221 "th-reify-many/th-reify-many-"
13222 version ".tar.gz"))
13223 (sha256
13224 (base32
32d4a6ae 13225 "0hxf56filzqnyrc8q7766vai80y6cgrrbrczx6n93caskl1dv2gq"))))
dddbc90c
RV
13226 (build-system haskell-build-system)
13227 (inputs
13228 `(("ghc-safe" ,ghc-safe)
13229 ("ghc-th-expand-syns" ,ghc-th-expand-syns)))
13230 (home-page "https://github.com/mgsloan/th-reify-many")
13231 (synopsis "Recurseively reify template haskell datatype info")
13232 (description
13233 "th-reify-many provides functions for recursively reifying top level
13234declarations. The main intended use case is for enumerating the names of
13235datatypes reachable from an initial datatype, and passing these names to some
13236function which generates instances.")
13237 (license license:bsd-3)))
13238
75cfc9a2
TS
13239(define-public ghc-time-compat
13240 (package
13241 (name "ghc-time-compat")
13242 (version "1.9.2.2")
13243 (source
13244 (origin
13245 (method url-fetch)
13246 (uri (string-append "https://hackage.haskell.org/package/"
13247 "time-compat/time-compat-" version ".tar.gz"))
13248 (sha256
13249 (base32
13250 "05va0rqs759vbridbcl6hksp967j9anjvys8vx72fnfkhlrn2s52"))))
13251 (build-system haskell-build-system)
13252 (inputs
13253 `(("ghc-base-orphans" ,ghc-base-orphans)))
13254 (native-inputs
13255 `(("ghc-hunit" ,ghc-hunit)
13256 ("ghc-base-compat" ,ghc-base-compat)
13257 ("ghc-quickcheck" ,ghc-quickcheck)
13258 ("ghc-tagged" ,ghc-tagged)
13259 ("ghc-tasty" ,ghc-tasty)
13260 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
13261 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
13262 (arguments
13263 `(#:cabal-revision
13264 ("1" "0k8ph4sydaiqp8dav4if6hpiaq8h1xsr93khmdr7a1mmfwdxr64r")))
13265 (home-page "https://github.com/phadej/time-compat")
13266 (synopsis "Compatibility package for time")
a8d73e69 13267 (description "This package tries to compat as many @code{time}
75cfc9a2
TS
13268features as possible.")
13269 (license license:bsd-3)))
13270
dddbc90c
RV
13271(define-public ghc-time-locale-compat
13272 (package
13273 (name "ghc-time-locale-compat")
13274 (version "0.1.1.5")
13275 (source
13276 (origin
13277 (method url-fetch)
13278 (uri (string-append "https://hackage.haskell.org/package/"
13279 "time-locale-compat/time-locale-compat-"
13280 version ".tar.gz"))
13281 (sha256
13282 (base32
13283 "0b2hmj8wwrfkndwzgm11qr496ca2ahwdxcj3m0ii91bxvrk1bzq7"))))
13284 (build-system haskell-build-system)
13285 (inputs `(("ghc-old-locale" ,ghc-old-locale)))
13286 (home-page "https://github.com/khibino/haskell-time-locale-compat")
13287 (synopsis "Compatibility of TimeLocale between old-locale and time-1.5")
13288 (description "This package contains a wrapped name module for
13289@code{TimeLocale}.")
13290 (license license:bsd-3)))
13291
c022a4d4
TS
13292(define-public ghc-time-manager
13293 (package
13294 (name "ghc-time-manager")
13295 (version "0.0.0")
13296 (source
13297 (origin
13298 (method url-fetch)
13299 (uri (string-append "https://hackage.haskell.org/package/"
13300 "time-manager/time-manager-" version ".tar.gz"))
13301 (sha256
13302 (base32
13303 "1nzwj0fxz370ks6vr1sylcidx33rnqq45y3q9yv9n4dj43nid9lh"))))
13304 (build-system haskell-build-system)
13305 (inputs
13306 `(("ghc-auto-update" ,ghc-auto-update)))
13307 (home-page "https://github.com/yesodweb/wai")
13308 (synopsis "Scalable timer")
13309 (description "This library contains scalable timer functions provided by a
13310timer manager.")
13311 (license license:expat)))
13312
7bbfa392
JS
13313(define-public ghc-timeit
13314 (package
13315 (name "ghc-timeit")
13316 (version "2.0")
13317 (source
13318 (origin
13319 (method url-fetch)
13320 (uri
13321 (string-append
13322 "https://hackage.haskell.org/package/timeit/timeit-"
13323 version ".tar.gz"))
13324 (sha256
13325 (base32
13326 "1sliqpvl501rlcj6s0lhmsf5ym24j4h881wzc1f1wdyvg3jz8kd1"))))
13327 (build-system haskell-build-system)
13328 (home-page "https://github.com/merijn/timeit")
13329 (synopsis "Time monadic computations with an IO base")
13330 (description "This package provides a simple wrapper to show the
13331used CPU time of monadic computation with an IO base.")
13332 (license license:bsd-3)))
13333
2ed8bd2d
JS
13334(define-public ghc-timezone-series
13335 (package
13336 (name "ghc-timezone-series")
13337 (version "0.1.9")
13338 (source
13339 (origin
13340 (method url-fetch)
13341 (uri
13342 (string-append
13343 "mirror://hackage/package/timezone-series/timezone-series-"
13344 version ".tar.gz"))
13345 (sha256
13346 (base32
13347 "1blwgnyzqn917rgqkl4dncv9whv3xmk0lav040qq0214vksmvlz5"))))
13348 (build-system haskell-build-system)
13349 (home-page "https://archives.haskell.org/projects.haskell.org/time-ng/")
13350 (synopsis "Enhanced timezone handling for Time")
13351 (description
13352 "This package endows @code{Data.Time}, from the time package, with several
13353data types and functions for enhanced processing of timezones. For one way to
13354create timezone series, see the ghc-timezone-olson package.")
13355 (license license:bsd-3)))
13356
ff0f5786
JS
13357(define-public ghc-timezone-olson
13358 (package
13359 (name "ghc-timezone-olson")
13360 (version "0.1.9")
13361 (source
13362 (origin
13363 (method url-fetch)
13364 (uri
13365 (string-append
13366 "mirror://hackage/package/timezone-olson/timezone-olson-"
13367 version ".tar.gz"))
13368 (sha256
13369 (base32
13370 "05abywx1nrcaz0nqzfy4zw62bc5qd7pdfnjvv4drxkwv084ha8rj"))))
13371 (build-system haskell-build-system)
13372 (inputs
13373 `(("ghc-timezone-series" ,ghc-timezone-series)
13374 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)))
13375 (home-page "https://archives.haskell.org/projects.haskell.org/time-ng/")
13376 (synopsis "Parser and renderer for binary Olson timezone files")
13377 (description
13378 "A parser and renderer for binary Olson timezone files whose format
13379is specified by the tzfile(5) man page on Unix-like systems. For more
13380information about this format, see
13381@url{http://www.iana.org/time-zones/repository/tz-link.html}. Functions
13382are provided for converting the parsed data into @code{TimeZoneSeries}
13383objects from the timezone-series package.")
13384 (license license:bsd-3)))
13385
dddbc90c
RV
13386(define-public ghc-tldr
13387 (package
13388 (name "ghc-tldr")
871ceb31 13389 (version "0.4.0.2")
dddbc90c
RV
13390 (source
13391 (origin
13392 (method url-fetch)
13393 (uri (string-append
13394 "https://hackage.haskell.org/package/tldr/tldr-"
13395 version
13396 ".tar.gz"))
13397 (sha256
13398 (base32
871ceb31 13399 "1zy9yyg7bxiyz1prkvrscggsb9p0f8y0nqxxxzlgzvnh2nmqf8f2"))))
dddbc90c
RV
13400 (build-system haskell-build-system)
13401 (inputs
13402 `(("ghc-cmark" ,ghc-cmark)
13403 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
13404 ("ghc-typed-process" ,ghc-typed-process)
13405 ("ghc-semigroups" ,ghc-semigroups)))
13406 (native-inputs
13407 `(("ghc-tasty" ,ghc-tasty)
13408 ("ghc-tasty-golden" ,ghc-tasty-golden)))
13409 (home-page "https://github.com/psibi/tldr-hs#readme")
13410 (synopsis "Haskell tldr client")
13411 (description "This package provides the @command{tldr} command and a
13412Haskell client library allowing users to update and view @code{tldr} pages
13413from a shell. The @code{tldr} pages are a community effort to simplify the
13414man pages with practical examples.")
13415 (license license:bsd-3)))
13416
460e4e42
JS
13417(define-public ghc-transformers
13418 (package
13419 (name "ghc-transformers")
13420 (version "0.5.6.2")
13421 (source
13422 (origin
13423 (method url-fetch)
13424 (uri (string-append
13425 "mirror://hackage/package/transformers/transformers-"
13426 version
13427 ".tar.gz"))
13428 (sha256
13429 (base32
13430 "0v66j5k0xqk51pmca55wq192qyw2p43s2mgxlz4f95q2c1fpjs5n"))))
13431 (build-system haskell-build-system)
13432 (home-page
13433 "http://hackage.haskell.org/package/transformers")
13434 (synopsis "Concrete functor and monad transformers")
13435 (description
13436 "Transformers provides functor and monad transformers, inspired by the
13437paper \"Functional Programming with Overloading and Higher-Order
13438Polymorphism\", by Mark P Jones, in Advanced School of Functional Programming,
134391995 @url{http://web.cecs.pdx.edu/~mpj/pubs/springschool.html}.
13440
13441This package contains:
13442@itemize
13443@item the monad transformer class (in @code{Control.Monad.Trans.Class})
13444@item concrete functor and monad transformers, each with associated operations
13445and functions to lift operations associated with other transformers.
13446@end itemize
13447
13448This package can be used on its own in portable Haskell code, in which case
13449operations need to be manually lifted through transformer stacks (see
13450@code{Control.Monad.Trans.Class} for some examples). Alternatively, it can be
13451used with the non-portable monad classes in the mtl or monads-tf packages,
13452which automatically lift operations introduced by monad transformers through
13453other transformers.")
13454 (license license:bsd-3)))
13455
dddbc90c
RV
13456(define-public ghc-transformers-base
13457 (package
13458 (name "ghc-transformers-base")
13459 (version "0.4.5.2")
13460 (source
13461 (origin
13462 (method url-fetch)
13463 (uri (string-append
13464 "https://hackage.haskell.org/package/transformers-base/transformers-base-"
13465 version
13466 ".tar.gz"))
13467 (sha256
13468 (base32
13469 "1s256bi0yh0x2hp2gwd30f3mg1cv53zz397dv1yhfsnfzmihrj6h"))))
13470 (build-system haskell-build-system)
13471 (inputs
13472 `(("ghc-transformers-compat" ,ghc-transformers-compat)))
13473 (home-page
13474 "https://hackage.haskell.org/package/transformers-compat")
13475 (synopsis
13476 "Backported transformer library")
13477 (description
13478 "Backported versions of types that were added to transformers in
13479transformers 0.3 and 0.4 for users who need strict transformers 0.2 or 0.3
13480compatibility to run on old versions of the platform.")
13481 (license license:bsd-3)))
13482
13483(define-public ghc-transformers-compat
13484 (package
13485 (name "ghc-transformers-compat")
1c9c4d58 13486 (version "0.6.5")
dddbc90c
RV
13487 (source
13488 (origin
13489 (method url-fetch)
13490 (uri (string-append
13491 "https://hackage.haskell.org/package/transformers-compat"
13492 "/transformers-compat-" version ".tar.gz"))
13493 (sha256
13494 (base32
1c9c4d58 13495 "02v2fjbvcrlpvhcsssap8dy8y9pp95jykrlc5arm39sxa48wyrys"))))
dddbc90c
RV
13496 (build-system haskell-build-system)
13497 (home-page "https://github.com/ekmett/transformers-compat/")
13498 (synopsis "Small compatibility shim between transformers 0.3 and 0.4")
13499 (description "This package includes backported versions of types that were
13500added to transformers in transformers 0.3 and 0.4 for users who need strict
13501transformers 0.2 or 0.3 compatibility to run on old versions of the platform,
13502but also need those types.")
13503 (license license:bsd-3)))
13504
13505(define-public ghc-tree-diff
13506 (package
13507 (name "ghc-tree-diff")
b4e26067 13508 (version "0.1")
dddbc90c
RV
13509 (source
13510 (origin
13511 (method url-fetch)
13512 (uri (string-append
13513 "https://hackage.haskell.org/package/tree-diff/tree-diff-"
13514 version
13515 ".tar.gz"))
13516 (sha256
13517 (base32
b4e26067 13518 "1156nbqn0pn9lp4zjsy4vv5g5wmy4zxwmbqdgvq349rydynh3ng3"))))
dddbc90c 13519 (build-system haskell-build-system)
dddbc90c
RV
13520 (inputs
13521 `(("ghc-aeson" ,ghc-aeson)
13522 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
13523 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
13524 ("ghc-base-compat" ,ghc-base-compat)
b4e26067 13525 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
dddbc90c 13526 ("ghc-hashable" ,ghc-hashable)
dddbc90c
RV
13527 ("ghc-parsers" ,ghc-parsers)
13528 ("ghc-quickcheck" ,ghc-quickcheck)
13529 ("ghc-scientific" ,ghc-scientific)
13530 ("ghc-tagged" ,ghc-tagged)
13531 ("ghc-unordered-containers" ,ghc-unordered-containers)
13532 ("ghc-uuid-types" ,ghc-uuid-types)
13533 ("ghc-vector" ,ghc-vector)))
13534 (native-inputs
13535 `(("ghc-base-compat" ,ghc-base-compat)
13536 ("ghc-quickcheck" ,ghc-quickcheck)
13537 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
13538 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
13539 ("ghc-trifecta" ,ghc-trifecta)
13540 ("ghc-tasty" ,ghc-tasty)
13541 ("ghc-tasty-golden" ,ghc-tasty-golden)
13542 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
13543 (home-page "https://github.com/phadej/tree-diff")
13544 (synopsis "Compute difference between (expression) trees")
13545 (description "This Haskell library provides a function for computing
13546the difference between (expression) trees. It also provides a way to
13547compute the difference between arbitrary abstract datatypes (ADTs) using
13548@code{Generics}-derivable helpers.")
13549 (license license:bsd-3)))
13550
13551(define-public ghc-trifecta
13552 (package
13553 (name "ghc-trifecta")
13554 (version "2")
13555 (source (origin
13556 (method url-fetch)
13557 (uri (string-append
13558 "https://hackage.haskell.org/package/trifecta/"
13559 "trifecta-" version ".tar.gz"))
13560 (sha256
13561 (base32
13562 "0hznd8i65s81xy13i2qc7cvipw3lfb2yhkv53apbdsh6sbljz5sk"))))
13563 (build-system haskell-build-system)
5ffe8cfd
TS
13564 (arguments
13565 `(#:tests? #f ; doctest suite fails to build on i686
13566 #:cabal-revision
13567 ("4" "0xbwyvwl6f2zylk60f2akwgq03qv49113xil7b1z1s3vlwbn5aj1")))
dddbc90c
RV
13568 (inputs
13569 `(("ghc-reducers" ,ghc-reducers)
13570 ("ghc-semigroups" ,ghc-semigroups)
13571 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
13572 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
13573 ("ghc-blaze-builder" ,ghc-blaze-builder)
13574 ("ghc-blaze-html" ,ghc-blaze-html)
13575 ("ghc-blaze-markup" ,ghc-blaze-markup)
13576 ("ghc-charset" ,ghc-charset)
13577 ("ghc-comonad" ,ghc-comonad)
13578 ("ghc-fingertree" ,ghc-fingertree)
13579 ("ghc-hashable" ,ghc-hashable)
13580 ("ghc-lens" ,ghc-lens)
13581 ("ghc-parsers" ,ghc-parsers)
13582 ("ghc-profunctors" ,ghc-profunctors)
13583 ("ghc-unordered-containers" ,ghc-unordered-containers)
13584 ("ghc-utf8-string" ,ghc-utf8-string)))
13585 (native-inputs
13586 `(("cabal-doctest" ,cabal-doctest)
13587 ("ghc-doctest" ,ghc-doctest)
13588 ("ghc-quickcheck" ,ghc-quickcheck)))
13589 (home-page "https://github.com/ekmett/trifecta/")
13590 (synopsis "Parser combinator library with convenient diagnostics")
13591 (description "Trifecta is a modern parser combinator library for Haskell,
13592with slicing and Clang-style colored diagnostics.")
13593 (license license:bsd-3)))
13594
13595(define-public ghc-tuple-th
13596 (package
13597 (name "ghc-tuple-th")
13598 (version "0.2.5")
13599 (source
13600 (origin
13601 (method url-fetch)
13602 (uri (string-append "https://hackage.haskell.org/package/"
13603 "tuple-th-" version "/"
13604 "tuple-th-" version ".tar.gz"))
13605 (sha256
13606 (base32
13607 "1mrl4vvxmby7sf1paf7hklzidnr6wq55822i73smqyz0xpf3gsjn"))))
13608 (build-system haskell-build-system)
13609 (home-page "https://github.com/DanielSchuessler/tuple-th")
13610 (synopsis "Generate utility functions for tuples of statically known size
13611for Haskell")
13612 (description "This Haskell package contains Template Haskell functions for
13613generating functions similar to those in @code{Data.List} for tuples of
13614statically known size.")
13615 (license license:bsd-3)))
13616
9f776fe2
JS
13617(define-public ghc-turtle
13618 (package
13619 (name "ghc-turtle")
13620 (version "1.5.15")
13621 (source
13622 (origin
13623 (method url-fetch)
13624 (uri (string-append
13625 "mirror://hackage/package/turtle/turtle-"
13626 version
13627 ".tar.gz"))
13628 (sha256
13629 (base32
13630 "0yckgsc2a4g5x867gni80ldp226bsnhncfbil4ql6v2zwm4r8p7f"))))
13631 (build-system haskell-build-system)
13632 (inputs
13633 `(("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
13634 ("ghc-async" ,ghc-async)
13635 ("ghc-clock" ,ghc-clock)
13636 ("ghc-exceptions" ,ghc-exceptions)
13637 ("ghc-foldl" ,ghc-foldl)
13638 ("ghc-hostname" ,ghc-hostname)
13639 ("ghc-managed" ,ghc-managed)
13640 ("ghc-semigroups" ,ghc-semigroups)
13641 ("ghc-system-filepath" ,ghc-system-filepath)
13642 ("ghc-system-fileio" ,ghc-system-fileio)
13643 ("ghc-streaming-commons" ,ghc-streaming-commons)
13644 ("ghc-temporary" ,ghc-temporary)
13645 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
13646 ("ghc-optional-args" ,ghc-optional-args)
13647 ("ghc-unix-compat" ,ghc-unix-compat)))
13648 (native-inputs
13649 `(("ghc-doctest" ,ghc-doctest)
13650 ("ghc-fail" ,ghc-fail)))
13651 (arguments
13652 `(#:cabal-revision
13653 ("1" "02q1rv7zx31xz9wnmcqwd4w3iw7623p07iyi21zr0cqlignic5pg")))
13654 (home-page
13655 "http://hackage.haskell.org/package/turtle")
13656 (synopsis "Shell programming, Haskell-style")
13657 (description
13658 "Turtle is a reimplementation of the Unix command line environment in
13659Haskell so that you can use Haskell as both a shell and a scripting
13660language. Features include:
13661
13662@itemize
13663@item Batteries included: Command an extended suite of predefined utilities.
13664@item Interoperability: You can still run external shell commands.
13665@item Portability: Works on Windows, OS X, and Linux.
13666@item Exception safety: Safely acquire and release resources.
13667@item Streaming: Transform or fold command output in constant space.
13668@item Patterns: Use typed regular expressions that can parse structured values.
13669@item Formatting: Type-safe printf-style text formatting.
13670@item Modern: Supports text and system-filepath.
13671@end itemize
13672
13673Read \"Turtle.Tutorial\" for a detailed tutorial or \"Turtle.Prelude\" for a
13674quick-start guide. Turtle is designed to be beginner-friendly, but as a
13675result lacks certain features, like tracing commands. If you feel comfortable
13676using turtle then you should also check out the Shelly library which provides
13677similar functionality.")
13678 (license license:bsd-3)))
13679
dddbc90c
RV
13680(define-public ghc-typed-process
13681 (package
13682 (name "ghc-typed-process")
72fb84a5 13683 (version "0.2.6.0")
dddbc90c
RV
13684 (source
13685 (origin
13686 (method url-fetch)
13687 (uri (string-append "https://hackage.haskell.org/package/"
13688 "typed-process/typed-process-"
13689 version ".tar.gz"))
13690 (sha256
13691 (base32
72fb84a5 13692 "1cf2pfym8zdxvvy7xv72ixj7wy3rjrdss6f57k1ysgs66cgsi8ii"))))
dddbc90c
RV
13693 (build-system haskell-build-system)
13694 (inputs
72fb84a5
TS
13695 `(("ghc-async" ,ghc-async)
13696 ("ghc-unliftio-core" ,ghc-unliftio-core)))
dddbc90c
RV
13697 (native-inputs
13698 `(("ghc-base64-bytestring" ,ghc-base64-bytestring)
13699 ("ghc-hspec" ,ghc-hspec)
13700 ("hspec-discover" ,hspec-discover)
13701 ("ghc-temporary" ,ghc-temporary)))
13702 (home-page "https://haskell-lang.org/library/typed-process")
13703 (synopsis "Run external processes with strong typing of streams")
13704 (description
13705 "This library provides the ability to launch and interact with external
13706processes. It wraps around the @code{process} library, and intends to improve
13707upon it.")
13708 (license license:expat)))
13709
d392f803
AG
13710(define-public ghc-unagi-chan
13711 (package
13712 (name "ghc-unagi-chan")
13713 (version "0.4.1.2")
13714 (source
13715 (origin
13716 (method url-fetch)
13717 (uri (string-append "https://hackage.haskell.org/package/unagi-chan"
13718 "/unagi-chan-" version ".tar.gz"))
13719 (sha256
13720 (base32
13721 "1lnl5n4jnjmm4chp461glcwkrrw63rjz3fvprwxcy3lkpbkrqvgn"))))
13722 (build-system haskell-build-system)
13723 (inputs
13724 `(("ghc-atomic-primops" ,ghc-atomic-primops)
13725 ("ghc-primitive" ,ghc-primitive)))
13726 (arguments
13727 `(#:tests? #f ; FIXME: Tests expect primitive 0.7
13728 #:cabal-revision
13729 ("1"
13730 "09pqi867wskwgc5lpn197f895mbn1174ydgllvcppcsmrz2b6yr6")))
3ef91e15 13731 (home-page "https://hackage.haskell.org/package/unagi-chan")
d392f803
AG
13732 (synopsis "Fast concurrent queues with a Chan-like API, and more")
13733 (description
13734 "This library provides implementations of concurrent FIFO queues (for
13735both general boxed and primitive unboxed values) that are fast, perform well
13736under contention, and offer a Chan-like interface. The library may be of
13737limited usefulness outside of x86 architectures where the fetch-and-add
13738instruction is not available.")
13739 (license license:bsd-3)))
13740
dddbc90c
RV
13741(define-public ghc-unbounded-delays
13742 (package
13743 (name "ghc-unbounded-delays")
13744 (version "0.1.1.0")
13745 (source
13746 (origin
13747 (method url-fetch)
13748 (uri (string-append
13749 "https://hackage.haskell.org/package/unbounded-delays/unbounded-delays-"
13750 version
13751 ".tar.gz"))
13752 (sha256
13753 (base32
13754 "1ir9fghbrc214c97bwafk5ck6cacxz1pdnq4i18p604d1b8zg9wa"))))
13755 (build-system haskell-build-system)
13756 (home-page "https://github.com/basvandijk/unbounded-delays")
13757 (synopsis "Unbounded thread delays and timeouts")
13758 (description "The @code{threadDelay} and @code{timeout} functions from the
13759Haskell base library use the bounded @code{Int} type for specifying the delay
13760or timeout period. This package provides alternative functions which use the
13761unbounded @code{Integer} type.")
13762 (license license:bsd-3)))
13763
13764(define-public ghc-unexceptionalio
13765 (package
13766 (name "ghc-unexceptionalio")
13767 (version "0.4.0")
13768 (source
13769 (origin
13770 (method url-fetch)
13771 (uri (string-append "https://hackage.haskell.org/package/"
13772 "unexceptionalio-" version "/" "unexceptionalio-"
13773 version ".tar.gz"))
13774 (sha256 (base32 "09gynk472l7nn5l2w320n4dwigwp0wh0shfp6dyw6r5h2jdxz18p"))))
13775 (build-system haskell-build-system)
13776 (home-page "https://github.com/singpolyma/unexceptionalio")
13777 (synopsis "IO without any non-error, synchronous exceptions")
13778 (description "When you've caught all the exceptions that can be
13779handled safely, this is what you're left with.")
13780 (license license:isc)))
13781
b69d4aa7
TS
13782(define-public ghc-unicode-transforms
13783 (package
13784 (name "ghc-unicode-transforms")
13785 (version "0.3.6")
13786 (source
13787 (origin
13788 (method url-fetch)
13789 (uri (string-append "https://hackage.haskell.org/package/"
13790 "unicode-transforms/unicode-transforms-"
13791 version ".tar.gz"))
13792 (sha256
13793 (base32
13794 "1akscvyssif4hki3g6hy0jmjyr8cqly1whzvzj0km2b3qh0x09l3"))))
13795 (build-system haskell-build-system)
13796 (inputs
13797 `(("ghc-bitarray" ,ghc-bitarray)))
13798 (native-inputs
13799 `(("ghc-quickcheck" ,ghc-quickcheck)
13800 ("ghc-getopt-generics" ,ghc-getopt-generics)
13801 ("ghc-split" ,ghc-split)))
13802 (home-page "https://github.com/composewell/unicode-transforms")
13803 (synopsis "Unicode normalization")
13804 (description "This library provides tools for fast Unicode 12.1.0
13805normalization in Haskell (normalization forms C, KC, D, and KD).")
13806 (license license:bsd-3)))
13807
dddbc90c
RV
13808(define-public ghc-union-find
13809 (package
13810 (name "ghc-union-find")
13811 (version "0.2")
13812 (source (origin
13813 (method url-fetch)
13814 (uri (string-append
13815 "https://hackage.haskell.org/package/union-find/union-find-"
13816 version ".tar.gz"))
13817 (sha256
13818 (base32
13819 "1v7hj42j9w6jlzi56jg8rh4p58gfs1c5dx30wd1qqvn0p0mnihp6"))))
13820 (build-system haskell-build-system)
13821 (home-page "https://github.com/nominolo/union-find")
13822 (synopsis "Efficient union and equivalence testing of sets")
13823 (description
13824 "The Union/Find algorithm implements these operations in (effectively)
13825constant-time:
13826@enumerate
13827@item Check whether two elements are in the same equivalence class.
13828@item Create a union of two equivalence classes.
13829@item Look up the descriptor of the equivalence class.
13830@end enumerate\n")
13831 (license license:bsd-3)))
13832
13833(define-public ghc-uniplate
13834 (package
13835 (name "ghc-uniplate")
13836 (version "1.6.12")
13837 (source
13838 (origin
13839 (method url-fetch)
13840 (uri (string-append
13841 "https://hackage.haskell.org/package/uniplate/uniplate-"
13842 version
13843 ".tar.gz"))
13844 (sha256
13845 (base32
13846 "1dx8f9aw27fz8kw0ad1nm6355w5rdl7bjvb427v2bsgnng30pipw"))))
13847 (build-system haskell-build-system)
13848 (inputs
13849 `(("ghc-syb" ,ghc-syb)
13850 ("ghc-hashable" ,ghc-hashable)
13851 ("ghc-unordered-containers" ,ghc-unordered-containers)))
f5d88758 13852 (home-page "https://github.com/ndmitchell/uniplate")
dddbc90c
RV
13853 (synopsis "Simple, concise and fast generic operations")
13854 (description "Uniplate is a library for writing simple and concise generic
13855operations. Uniplate has similar goals to the original Scrap Your Boilerplate
13856work, but is substantially simpler and faster.")
13857 (license license:bsd-3)))
13858
13859(define-public ghc-unix-compat
13860 (package
13861 (name "ghc-unix-compat")
bc82e9f5 13862 (version "0.5.2")
dddbc90c
RV
13863 (source
13864 (origin
13865 (method url-fetch)
13866 (uri (string-append
13867 "https://hackage.haskell.org/package/unix-compat/unix-compat-"
13868 version
13869 ".tar.gz"))
13870 (sha256
13871 (base32
bc82e9f5 13872 "1a8brv9fax76b1fymslzyghwa6ma8yijiyyhn12msl3i5x24x6k5"))))
dddbc90c
RV
13873 (build-system haskell-build-system)
13874 (home-page
13875 "https://github.com/jystic/unix-compat")
13876 (synopsis "Portable POSIX-compatibility layer")
13877 (description
13878 "This package provides portable implementations of parts of the unix
13879package. This package re-exports the unix package when available. When it
13880isn't available, portable implementations are used.")
13881 (license license:bsd-3)))
13882
13883(define-public ghc-unix-time
13884 (package
13885 (name "ghc-unix-time")
fad9cff2 13886 (version "0.4.7")
dddbc90c
RV
13887 (source
13888 (origin
13889 (method url-fetch)
13890 (uri (string-append
13891 "https://hackage.haskell.org/package/unix-time/unix-time-"
13892 version
13893 ".tar.gz"))
13894 (sha256
13895 (base32
fad9cff2 13896 "02fyh298lm8jsg52i3z0ikazwz477ljqjmhnqr2d88grmn5ky8qr"))))
dddbc90c
RV
13897 (build-system haskell-build-system)
13898 (arguments
13899 `(#:tests? #f)) ; FIXME: Test fails with "System.Time not found". This
13900 ; is weird, that should be provided by GHC 7.10.2.
13901 (inputs
13902 `(("ghc-old-time" ,ghc-old-time)
13903 ("ghc-old-locale" ,ghc-old-locale)))
13904 (home-page "https://hackage.haskell.org/package/unix-time")
13905 (synopsis "Unix time parser/formatter and utilities")
13906 (description "This library provides fast parsing and formatting utilities
13907for Unix time in Haskell.")
13908 (license license:bsd-3)))
13909
13910(define-public ghc-unliftio
13911 (package
13912 (name "ghc-unliftio")
a4084db1 13913 (version "0.2.12")
dddbc90c
RV
13914 (source
13915 (origin
13916 (method url-fetch)
13917 (uri (string-append
13918 "https://hackage.haskell.org/package/unliftio/unliftio-"
13919 version
13920 ".tar.gz"))
13921 (sha256
13922 (base32
a4084db1 13923 "02gy1zrxgzg4xmzm8lafsf1nyr3as1q20r8ld73xg3q7rkag9acg"))))
dddbc90c
RV
13924 (build-system haskell-build-system)
13925 (arguments `(#:tests? #f)) ; FIXME: hspec-discover not in PATH
2b3466de 13926 (outputs '("out" "static" "doc"))
dddbc90c
RV
13927 (inputs
13928 `(("ghc-async" ,ghc-async)
13929 ("ghc-unliftio-core" ,ghc-unliftio-core)))
13930 (native-inputs `(("ghc-hspec" ,ghc-hspec)))
13931 (home-page "https://github.com/fpco/unliftio")
13932 (synopsis "Provides MonadUnliftIO typecplass for unlifting monads to
13933IO (batteries included)")
13934 (description "This Haskell package provides the core @code{MonadUnliftIO}
13935typeclass, a number of common instances, and a collection of common functions
13936working with it.")
13937 (license license:expat)))
13938
13939(define-public ghc-unliftio-core
13940 (package
13941 (name "ghc-unliftio-core")
2ae42618 13942 (version "0.1.2.0")
dddbc90c
RV
13943 (source
13944 (origin
13945 (method url-fetch)
13946 (uri (string-append "https://hackage.haskell.org/package/"
13947 "unliftio-core-" version "/"
13948 "unliftio-core-" version ".tar.gz"))
13949 (sha256
13950 (base32
2ae42618 13951 "0y3siyx3drkw7igs380a87h8qfbbgcyxxlcnshp698hcc4yqphr4"))))
dddbc90c
RV
13952 (build-system haskell-build-system)
13953 (arguments
13954 `(#:cabal-revision
2ae42618 13955 ("2" "0jqrjjbgicx48wzcjxs1xmih48ay79rhmrz6081dldlfxynli6vz")))
dddbc90c
RV
13956 (home-page
13957 "https://github.com/fpco/unliftio/tree/master/unliftio-core#readme")
13958 (synopsis "The MonadUnliftIO typeclass for unlifting monads to IO")
13959 (description "This Haskell package provides the core @code{MonadUnliftIO}
13960typeclass, instances for base and transformers, and basic utility
13961functions.")
13962 (license license:expat)))
13963
13964(define-public ghc-unordered-containers
13965 (package
13966 (name "ghc-unordered-containers")
ca01f8d3 13967 (version "0.2.10.0")
534d6caa 13968 (outputs '("out" "static" "doc"))
dddbc90c
RV
13969 (source
13970 (origin
13971 (method url-fetch)
13972 (uri (string-append
13973 "https://hackage.haskell.org/package/unordered-containers"
13974 "/unordered-containers-" version ".tar.gz"))
13975 (sha256
13976 (base32
ca01f8d3 13977 "0wy5hfrs880hh8hvp648bl07ws777n3kkmczzdszr7papnyigwb5"))))
dddbc90c
RV
13978 (build-system haskell-build-system)
13979 (inputs
13980 `(("ghc-chasingbottoms" ,ghc-chasingbottoms)
13981 ("ghc-hunit" ,ghc-hunit)
13982 ("ghc-quickcheck" ,ghc-quickcheck)
13983 ("ghc-test-framework" ,ghc-test-framework)
13984 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
13985 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
13986 ("ghc-hashable" ,ghc-hashable)))
13987 (home-page
13988 "https://github.com/tibbe/unordered-containers")
13989 (synopsis
13990 "Efficient hashing-based container types")
13991 (description
13992 "Efficient hashing-based container types. The containers have been
13993optimized for performance critical use, both in terms of large data quantities
13994and high speed.")
13995 (license license:bsd-3)))
13996
13997(define-public ghc-unordered-containers-bootstrap
13998 (package
13999 (inherit ghc-unordered-containers)
14000 (name "ghc-unordered-containers-bootstrap")
14001 (arguments `(#:tests? #f))
14002 (inputs
14003 `(("ghc-hashable" ,ghc-hashable-bootstrap)))
799d8d3c 14004 (properties '((hidden? #t)))))
dddbc90c 14005
a52f4c57
JS
14006(define-public ghc-unsafe
14007 (package
14008 (name "ghc-unsafe")
14009 (version "0.0")
14010 (source
14011 (origin
14012 (method url-fetch)
14013 (uri
14014 (string-append
14015 "https://hackage.haskell.org/package/unsafe/unsafe-"
14016 version ".tar.gz"))
14017 (sha256
14018 (base32
14019 "0hc6xr1i3hkz25gdgfx1jqgpsc9mwa05bkfynp0mcfdlyz6782nz"))))
14020 (build-system haskell-build-system)
14021 (home-page "https://hackage.haskell.org/package/unsafe")
14022 (synopsis "Unified interface to unsafe functions")
14023 (description "Safe Haskell introduced the notion of safe and unsafe
14024modules. In order to make as many as possible modules ``safe'', the
14025well-known unsafe functions were moved to distinguished modules. This
14026makes it hard to write packages that work with both old and new versions
14027of GHC. This package provides a single module System.Unsafe that
14028exports the unsafe functions from the base package. It provides them in
14029a style ready for qualification, that is, you should import them by
14030@code{import qualified System.Unsafe as Unsafe}.")
14031 (license license:bsd-3)))
14032
dddbc90c
RV
14033(define-public ghc-uri-bytestring
14034 (package
14035 (name "ghc-uri-bytestring")
d35ffd39 14036 (version "0.3.2.2")
dddbc90c
RV
14037 (source
14038 (origin
14039 (method url-fetch)
14040 (uri (string-append "https://hackage.haskell.org/package/"
14041 "uri-bytestring-" version "/"
14042 "uri-bytestring-" version ".tar.gz"))
14043 (sha256
14044 (base32
d35ffd39 14045 "0spzv3mwlpxiamd7347sxwcy2xri16ak1y7p1v4fisnvq4jprm67"))))
dddbc90c
RV
14046 (build-system haskell-build-system)
14047 (inputs `(("ghc-attoparsec" ,ghc-attoparsec)
dddbc90c
RV
14048 ("ghc-blaze-builder" ,ghc-blaze-builder)
14049 ("ghc-th-lift-instances" ,ghc-th-lift-instances)))
d35ffd39 14050 (native-inputs `(("ghc-hunit" ,ghc-hunit)
dddbc90c
RV
14051 ("ghc-tasty" ,ghc-tasty)
14052 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
d35ffd39
TS
14053 ("ghc-hedgehog" ,ghc-hedgehog)
14054 ("ghc-tasty-hedgehog" ,ghc-tasty-hedgehog)
dddbc90c 14055 ("ghc-base-compat" ,ghc-base-compat)
dddbc90c 14056 ("ghc-semigroups" ,ghc-semigroups)
d35ffd39 14057 ("ghc-safe" ,ghc-safe)))
dddbc90c
RV
14058 (home-page "https://github.com/Soostone/uri-bytestring")
14059 (synopsis "Haskell URI parsing as ByteStrings")
14060 (description "This Haskell package aims to be an RFC3986 compliant URI
14061parser that uses ByteStrings for parsing and representing the URI data.")
14062 (license license:bsd-3)))
14063
d7ad0823
JS
14064(define-public ghc-utf8-light
14065 (package
14066 (name "ghc-utf8-light")
14067 (version "0.4.2")
14068 (source
14069 (origin
14070 (method url-fetch)
14071 (uri (string-append
14072 "mirror://hackage/package/utf8-light/utf8-light-"
14073 version
14074 ".tar.gz"))
14075 (sha256
14076 (base32
14077 "0rwyc5z331yfnm4hpx0sph6i1zvkd1z10vvglhnp0vc9wy644k0q"))))
14078 (build-system haskell-build-system)
14079 (home-page
14080 "http://hackage.haskell.org/package/utf8-light")
14081 (synopsis "Lightweight unicode support for Haskell")
14082 (description
14083 "This package profides a class for encoding and decoding UTF8 strings
14084with instances for several common types. It also includes several functions
14085for working with UTF8. It aims to be lightweight, depending only on Base and
14086including only one module.")
14087 (license license:bsd-3)))
14088
dddbc90c
RV
14089(define-public ghc-utf8-string
14090 (package
14091 (name "ghc-utf8-string")
14092 (version "1.0.1.1")
14093 (source
14094 (origin
14095 (method url-fetch)
14096 (uri (string-append
14097 "https://hackage.haskell.org/package/utf8-string/utf8-string-"
14098 version
14099 ".tar.gz"))
14100 (sha256
14101 (base32 "0h7imvxkahiy8pzr8cpsimifdfvv18lizrb33k6mnq70rcx9w2zv"))))
14102 (build-system haskell-build-system)
14103 (arguments
14104 `(#:cabal-revision
14105 ("3" "02vhj5gykkqa2dyn7s6gn8is1b5fdn9xcqqvlls268g7cpv6rk38")))
14106 (home-page "https://github.com/glguy/utf8-string/")
14107 (synopsis "Support for reading and writing UTF8 Strings")
14108 (description
14109 "A UTF8 layer for Strings. The utf8-string package provides operations
14110for encoding UTF8 strings to Word8 lists and back, and for reading and writing
14111UTF8 without truncation.")
14112 (license license:bsd-3)))
14113
14114(define-public ghc-utility-ht
14115 (package
14116 (name "ghc-utility-ht")
14117 (version "0.0.14")
14118 (home-page "https://hackage.haskell.org/package/utility-ht")
14119 (source
14120 (origin
14121 (method url-fetch)
14122 (uri (string-append home-page "/utility-ht-" version ".tar.gz"))
14123 (sha256
14124 (base32 "1a7bgk7wv7sqbxbiv7kankiimr3wij7zdm7s83zwsf886ghyxhk9"))))
14125 (build-system haskell-build-system)
14126 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
14127 (synopsis "Haskell helper functions for Lists, Maybes, Tuples, Functions")
14128 (description "This package includes Hakell modules providing various
14129helper functions for Lists, Maybes, Tuples, Functions.")
14130 (license license:bsd-3)))
14131
14132(define-public ghc-uuid
14133 (package
14134 (name "ghc-uuid")
14135 (version "1.3.13")
14136 (source
14137 (origin
14138 (method url-fetch)
14139 (uri (string-append "https://hackage.haskell.org/package/"
14140 "uuid-" version "/"
14141 "uuid-" version ".tar.gz"))
14142 (sha256
14143 (base32
14144 "09xhk42yhxvqmka0iqrv3338asncz8cap3j0ic0ps896f2581b6z"))))
14145 (build-system haskell-build-system)
14146 (arguments
14147 `(#:cabal-revision
14148 ("2" "0m185q62jkfb5jsv358nxbnrkv8y8hd0qqvgvh22wvc5g9ipz0r9")
14149 #:phases
14150 (modify-phases %standard-phases
14151 (add-before 'configure 'strip-test-framework-constraints
14152 (lambda _
14153 (substitute* "uuid.cabal"
14154 (("HUnit >= 1\\.2 && < 1\\.4") "HUnit")
14155 (("QuickCheck >= 2\\.4 && < 2\\.10") "QuickCheck")
14156 (("tasty >= 0\\.10 && < 0\\.12") "tasty")
14157 (("tasty-hunit == 0\\.9\\.\\*") "tasty-hunit")
14158 (("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
14159 (inputs `(("ghc-cryptohash-sha1" ,ghc-cryptohash-sha1)
14160 ("ghc-cryptohash-md5" ,ghc-cryptohash-md5)
14161 ("ghc-entropy" ,ghc-entropy)
14162 ("ghc-network-info" ,ghc-network-info)
14163 ("ghc-random" ,ghc-random)
14164 ("ghc-uuid-types" ,ghc-uuid-types)))
14165 (native-inputs `(("ghc-hunit" ,ghc-hunit)
14166 ("ghc-quickcheck" ,ghc-quickcheck)
14167 ("ghc-tasty" ,ghc-tasty)
14168 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
14169 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
14170 (home-page "https://github.com/hvr/uuid")
14171 (synopsis "Haskell library to create, compare, parse, and print UUIDs")
14172 (description "This Haskell library provides utilities creating, comparing,
14173parsing and printing @dfn{Universally Unique Identifiers} or UUIDs.")
14174 (license license:bsd-3)))
14175
14176(define-public ghc-uuid-types
14177 (package
14178 (name "ghc-uuid-types")
14179 (version "1.0.3")
14180 (source
14181 (origin
14182 (method url-fetch)
14183 (uri (string-append "https://hackage.haskell.org/package/"
14184 "uuid-types-" version "/"
14185 "uuid-types-" version ".tar.gz"))
14186 (sha256
14187 (base32
14188 "1zdka5jnm1h6k36w3nr647yf3b5lqb336g3fkprhd6san9x52xlj"))))
14189 (build-system haskell-build-system)
14190 (arguments
14191 `(#:phases
14192 (modify-phases %standard-phases
14193 (add-before 'configure 'strip-test-framework-constraints
14194 (lambda _
14195 (substitute* "uuid-types.cabal"
14196 (("HUnit >=1\\.2 && < 1\\.4") "HUnit")
14197 (("QuickCheck >=2\\.4 && < 2\\.9") "QuickCheck")
14198 (("tasty >= 0\\.10 && < 0\\.12") "tasty")
14199 (("tasty-hunit == 0\\.9\\.\\*") "tasty-hunit")
14200 (("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
14201 (inputs `(("ghc-hashable" ,ghc-hashable)
14202 ("ghc-random" ,ghc-random)))
14203 (native-inputs `(("ghc-hunit" ,ghc-hunit)
14204 ("ghc-quickcheck" ,ghc-quickcheck)
14205 ("ghc-tasty" ,ghc-tasty)
14206 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
14207 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
14208 (home-page "https://github.com/hvr/uuid")
14209 (synopsis "Haskell type definitions for UUIDs")
14210 (description "This Haskell library contains type definitions for
14211@dfn{Universally Unique Identifiers} or
14212@uref{https://en.wikipedia.org/wiki/UUID, UUIDs}, and basic conversion
14213functions.")
14214 (license license:bsd-3)))
14215
14216(define-public ghc-validation
14217 (package
14218 (name "ghc-validation")
08397fde 14219 (version "1.1")
dddbc90c
RV
14220 (source
14221 (origin
14222 (method url-fetch)
14223 (uri (string-append
14224 "mirror://hackage/package/validation/validation-"
14225 version
14226 ".tar.gz"))
14227 (sha256
14228 (base32
08397fde 14229 "1acj7mh3581ks405xswxw6667z7y1y0slisg6jvp6chc191ji9l5"))))
dddbc90c
RV
14230 (build-system haskell-build-system)
14231 (arguments
14232 `(#:cabal-revision
08397fde 14233 ("1" "1rrjg9z399k6pb55nv85mlr5bkmdqbjwkvl1cy7ydccdx6ks4syp")))
dddbc90c
RV
14234 (inputs
14235 `(("ghc-semigroups" ,ghc-semigroups)
14236 ("ghc-semigroupoids" ,ghc-semigroupoids)
14237 ("ghc-bifunctors" ,ghc-bifunctors)
14238 ("ghc-lens" ,ghc-lens)))
14239 (native-inputs
14240 `(("ghc-hedgehog" ,ghc-hedgehog)
14241 ("ghc-hunit" ,ghc-hunit)))
14242 (home-page "https://github.com/qfpl/validation")
14243 (synopsis
14244 "Data-type like Either but with an accumulating Applicative")
14245 (description
14246 "A data-type like Either but with differing properties and type-class
14247instances.
14248
14249Library support is provided for this different representation, including
14250@code{lens}-related functions for converting between each and abstracting over
14251their similarities.
14252
14253The @code{Validation} data type is isomorphic to @code{Either}, but has an
14254instance of @code{Applicative} that accumulates on the error side. That is to
14255say, if two (or more) errors are encountered, they are appended using a
14256@{Semigroup} operation.
14257
14258As a consequence of this @code{Applicative} instance, there is no
14259corresponding @code{Bind} or @code{Monad} instance. @code{Validation} is an
14260example of, \"An applicative functor that is not a monad.\"")
14261 (license license:bsd-3)))
14262
14263(define-public ghc-validity
14264 (package
14265 (name "ghc-validity")
3f1ba75d 14266 (version "0.9.0.2")
dddbc90c
RV
14267 (source
14268 (origin
14269 (method url-fetch)
14270 (uri (string-append
14271 "https://hackage.haskell.org/package/validity/validity-"
14272 version
14273 ".tar.gz"))
14274 (sha256
14275 (base32
3f1ba75d 14276 "1aa93lp1pqwv7vhx19nazlig8qhbp3psblbz360s5lii3s5rli2v"))))
dddbc90c
RV
14277 (build-system haskell-build-system)
14278 (native-inputs `(("ghc-hspec" ,ghc-hspec)
14279 ("hspec-discover" ,hspec-discover)))
14280 (home-page
14281 "https://github.com/NorfairKing/validity")
14282 (synopsis "Validity typeclass")
14283 (description
14284 "Values of custom types usually have invariants imposed upon them. This
14285package provides the @code{Validity} type class, which makes these invariants
14286explicit by providing a function to check whether the invariants hold.")
14287 (license license:expat)))
14288
14289(define-public ghc-vault
14290 (package
14291 (name "ghc-vault")
b40a436e 14292 (version "0.3.1.3")
dddbc90c
RV
14293 (source
14294 (origin
14295 (method url-fetch)
14296 (uri (string-append
14297 "https://hackage.haskell.org/package/vault/vault-"
14298 version
14299 ".tar.gz"))
14300 (sha256
14301 (base32
b40a436e 14302 "0vdm472vn734xa27jjm2mjacl37mxiqaaahvm4hzqjgyh4cqq377"))))
dddbc90c
RV
14303 (build-system haskell-build-system)
14304 (inputs
14305 `(("ghc-unordered-containers" ,ghc-unordered-containers)
14306 ("ghc-hashable" ,ghc-hashable)
b40a436e 14307 ("ghc-semigroups" ,ghc-semigroups)))
dddbc90c
RV
14308 (home-page
14309 "https://github.com/HeinrichApfelmus/vault")
14310 (synopsis "Persistent store for arbitrary values")
14311 (description "This package provides vaults for Haskell. A vault is a
14312persistent store for values of arbitrary types. It's like having first-class
14313access to the storage space behind @code{IORefs}. The data structure is
14314analogous to a bank vault, where you can access different bank boxes with
14315different keys; hence the name. Also provided is a @code{locker} type,
14316representing a store for a single element.")
14317 (license license:bsd-3)))
14318
14319(define-public ghc-vector
14320 (package
14321 (name "ghc-vector")
3ad67f6b 14322 (version "0.12.0.3")
534d6caa 14323 (outputs '("out" "static" "doc"))
dddbc90c
RV
14324 (source
14325 (origin
14326 (method url-fetch)
14327 (uri (string-append
14328 "https://hackage.haskell.org/package/vector/vector-"
14329 version
14330 ".tar.gz"))
14331 (sha256
14332 (base32
3ad67f6b 14333 "1a756s4w759ji3als5alfxwlckh5zcmykfg9rll4mlr2knzvz8mq"))))
dddbc90c
RV
14334 (build-system haskell-build-system)
14335 ;; FIXME: To simplify upgrading all Haskell packages, we leave the tests
14336 ;; disabled for now.
14337 (arguments
3ad67f6b 14338 `(#:tests? #f))
dddbc90c
RV
14339 (inputs
14340 `(("ghc-primitive" ,ghc-primitive)
14341 ("ghc-random" ,ghc-random)
14342 ("ghc-quickcheck" ,ghc-quickcheck)
14343 ;; ("ghc-hunit" ,ghc-hunit)
14344 ;; ("ghc-test-framework" ,ghc-test-framework)
14345 ;; ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
14346 ;; ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14347 ))
14348 (home-page "https://github.com/haskell/vector")
14349 (synopsis "Efficient Arrays")
14350 (description "This library provides an efficient implementation of
14351Int-indexed arrays (both mutable and immutable), with a powerful loop
14352optimisation framework.")
14353 (license license:bsd-3)))
14354
14355(define-public ghc-vector-algorithms
14356 (package
14357 (name "ghc-vector-algorithms")
e71f316f 14358 (version "0.8.0.1")
dddbc90c
RV
14359 (source
14360 (origin
14361 (method url-fetch)
14362 (uri (string-append "https://hackage.haskell.org/package/"
14363 "vector-algorithms-" version "/"
14364 "vector-algorithms-" version ".tar.gz"))
14365 (sha256
14366 (base32
e71f316f 14367 "1zip8r7hh5g12xrjvhbg38z6hfxy7l6h6pl88qcqc0ygdmwdxg0m"))))
dddbc90c
RV
14368 (build-system haskell-build-system)
14369 (inputs
14370 `(("ghc-vector" ,ghc-vector)))
14371 (native-inputs
14372 `(("ghc-quickcheck" ,ghc-quickcheck)))
14373 (home-page "https://github.com/bos/math-functions")
14374 (synopsis "Algorithms for vector arrays in Haskell")
14375 (description "This Haskell library algorithms for vector arrays.")
14376 (license license:bsd-3)))
14377
14378(define-public ghc-vector-binary-instances
14379 (package
14380 (name "ghc-vector-binary-instances")
ca0701ef 14381 (version "0.2.5.1")
dddbc90c
RV
14382 (source
14383 (origin
14384 (method url-fetch)
14385 (uri (string-append
14386 "https://hackage.haskell.org/package/"
14387 "vector-binary-instances/vector-binary-instances-"
14388 version ".tar.gz"))
14389 (sha256
14390 (base32
ca0701ef 14391 "04n5cqm1v95pw1bp68l9drjkxqiy2vswxdq0fy1rqcgxisgvji9r"))))
dddbc90c 14392 (build-system haskell-build-system)
dddbc90c
RV
14393 (inputs
14394 `(("ghc-vector" ,ghc-vector)))
14395 (native-inputs
14396 `(("ghc-tasty" ,ghc-tasty)
14397 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
14398 (home-page "https://github.com/bos/vector-binary-instances")
14399 (synopsis "Instances of Data.Binary and Data.Serialize for vector")
14400 (description "This library provides instances of @code{Binary} for the
14401types defined in the @code{vector} package, making it easy to serialize
14402vectors to and from disk. We use the generic interface to vectors, so all
14403vector types are supported. Specific instances are provided for unboxed,
14404boxed and storable vectors.")
14405 (license license:bsd-3)))
14406
14407(define-public ghc-vector-builder
14408 (package
14409 (name "ghc-vector-builder")
1fc05441 14410 (version "0.3.8")
dddbc90c
RV
14411 (source
14412 (origin
14413 (method url-fetch)
14414 (uri (string-append "https://hackage.haskell.org/package/"
14415 "vector-builder-" version "/"
14416 "vector-builder-" version ".tar.gz"))
14417 (sha256
14418 (base32
1fc05441 14419 "0ww0l52p8s6gmh985adnjbvm1vrqpqbm08qdcrvxwhhcqmxgv6m3"))))
dddbc90c
RV
14420 (build-system haskell-build-system)
14421 (inputs `(("ghc-vector" ,ghc-vector)
14422 ("ghc-semigroups" ,ghc-semigroups)
14423 ("ghc-base-prelude" ,ghc-base-prelude)))
14424 (native-inputs `(("ghc-attoparsec" ,ghc-attoparsec)
14425 ("ghc-tasty" ,ghc-tasty)
14426 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
14427 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
14428 ("ghc-hunit" ,ghc-hunit)
14429 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
14430 ("ghc-rerebase" ,ghc-rerebase)))
14431 (home-page "https://github.com/nikita-volkov/vector-builder")
14432 (synopsis "Vector builder for Haskell")
14433 (description "This Haskell package provides an API for constructing vectors.
14434It provides the composable @code{Builder} abstraction, which has instances of the
14435@code{Monoid} and @code{Semigroup} classes.
14436
14437You would first use the @code{Builder} abstraction to specify the structure of
14438the vector; then you can execute the builder to actually produce the
14439vector. ")
14440 (license license:expat)))
14441
14442(define-public ghc-vector-th-unbox
14443 (package
14444 (name "ghc-vector-th-unbox")
63056e61 14445 (version "0.2.1.7")
dddbc90c
RV
14446 (source
14447 (origin
14448 (method url-fetch)
14449 (uri (string-append "https://hackage.haskell.org/package/"
14450 "vector-th-unbox-" version "/"
14451 "vector-th-unbox-" version ".tar.gz"))
14452 (sha256
14453 (base32
63056e61 14454 "0q8dqnbv1c2gi7jjdhqj14abj1vik23ki6lq4iz2sz18yc7q69fi"))))
dddbc90c
RV
14455 (build-system haskell-build-system)
14456 (inputs
14457 `(("ghc-vector" ,ghc-vector)
14458 ("ghc-data-default" ,ghc-data-default)))
14459 (home-page "https://github.com/liyang/vector-th-unbox")
14460 (synopsis "Deriver for Data.Vector.Unboxed using Template Haskell")
14461 (description "This Haskell library provides a Template Haskell
14462deriver for unboxed vectors, given a pair of coercion functions to
14463and from some existing type with an Unbox instance.")
14464 (license license:bsd-3)))
14465
14466(define-public ghc-void
14467 (package
14468 (name "ghc-void")
51889121 14469 (version "0.7.3")
dddbc90c
RV
14470 (source
14471 (origin
14472 (method url-fetch)
14473 (uri (string-append
14474 "https://hackage.haskell.org/package/void/void-"
14475 version
14476 ".tar.gz"))
14477 (sha256
14478 (base32
51889121 14479 "05vk3x1r9a2pqnzfji475m5gdih2im1h7rbi2sc67p1pvj6pbbsk"))))
dddbc90c
RV
14480 (build-system haskell-build-system)
14481 (inputs
14482 `(("ghc-semigroups" ,ghc-semigroups)
14483 ("ghc-hashable" ,ghc-hashable)))
14484 (home-page "https://github.com/ekmett/void")
14485 (synopsis
14486 "Logically uninhabited data type")
14487 (description
14488 "A Haskell 98 logically uninhabited data type, used to indicate that a
14489given term should not exist.")
14490 (license license:bsd-3)))
14491
14492(define-public ghc-wave
14493 (package
14494 (name "ghc-wave")
1631a0f7 14495 (version "0.2.0")
dddbc90c
RV
14496 (source (origin
14497 (method url-fetch)
14498 (uri (string-append
14499 "https://hackage.haskell.org/package/wave/wave-"
14500 version
14501 ".tar.gz"))
14502 (sha256
14503 (base32
1631a0f7 14504 "149kgwngq3qxc7gxpkqb16j669j0wpv2f3gnvfwp58yg6m4259ki"))))
dddbc90c
RV
14505 (build-system haskell-build-system)
14506 (arguments
14507 '(#:phases
14508 (modify-phases %standard-phases
14509 (add-before 'configure 'update-constraints
14510 (lambda _
14511 (substitute* "wave.cabal"
14512 (("temporary.* < 1\\.3")
14513 "temporary >= 1.1 && < 1.4")))))))
14514 (inputs
14515 `(("ghc-cereal" ,ghc-cereal)
14516 ("ghc-data-default-class"
14517 ,ghc-data-default-class)
14518 ("ghc-quickcheck" ,ghc-quickcheck)
14519 ("ghc-temporary" ,ghc-temporary)))
14520 (native-inputs
14521 `(("hspec-discover" ,hspec-discover)
14522 ("ghc-hspec" ,ghc-hspec)))
14523 (home-page "https://github.com/mrkkrp/wave")
14524 (synopsis "Work with WAVE and RF64 files in Haskell")
14525 (description "This package allows you to work with WAVE and RF64
14526files in Haskell.")
14527 (license license:bsd-3)))
14528
14529(define-public ghc-wcwidth
14530 (package
14531 (name "ghc-wcwidth")
14532 (version "0.0.2")
14533 (source
14534 (origin
14535 (method url-fetch)
14536 (uri (string-append "https://hackage.haskell.org/package/wcwidth/wcwidth-"
14537 version ".tar.gz"))
14538 (sha256
14539 (base32
14540 "1n1fq7v64b59ajf5g50iqj9sa34wm7s2j3viay0kxpmvlcv8gipz"))))
14541 (build-system haskell-build-system)
14542 (inputs
14543 `(("ghc-setlocale" ,ghc-setlocale)
14544 ("ghc-utf8-string" ,ghc-utf8-string)
14545 ("ghc-attoparsec" ,ghc-attoparsec)))
14546 (home-page "https://github.com/solidsnack/wcwidth/")
14547 (synopsis "Haskell bindings to wcwidth")
14548 (description "This package provides Haskell bindings to your system's
14549native wcwidth and a command line tool to examine the widths assigned by it.
14550The command line tool can compile a width table to Haskell code that assigns
14551widths to the Char type.")
14552 (license license:bsd-3)))
14553
14554(define-public ghc-wcwidth-bootstrap
14555 (package
14556 (inherit ghc-wcwidth)
14557 (name "ghc-wcwidth-bootstrap")
14558 (inputs
14559 `(("ghc-setlocale" ,ghc-setlocale)
14560 ("ghc-utf8-string" ,ghc-utf8-string)
14561 ("ghc-attoparsec" ,ghc-attoparsec-bootstrap)))
799d8d3c 14562 (properties '((hidden? #t)))))
dddbc90c
RV
14563
14564(define-public ghc-weigh
14565 (package
14566 (name "ghc-weigh")
b6d9777f 14567 (version "0.0.14")
dddbc90c
RV
14568 (source
14569 (origin
14570 (method url-fetch)
14571 (uri (string-append "https://hackage.haskell.org/package/weigh/"
14572 "weigh-" version ".tar.gz"))
14573 (sha256
14574 (base32
b6d9777f 14575 "0l85marb5rl9nr1c0id42dnr5i9fk1jciy5h6lywhb34w3hbj61g"))))
dddbc90c
RV
14576 (build-system haskell-build-system)
14577 (inputs
14578 `(("ghc-split" ,ghc-split)
14579 ("ghc-temporary" ,ghc-temporary)))
14580 (home-page "https://github.com/fpco/weigh#readme")
14581 (synopsis "Measure allocations of a Haskell functions/values")
14582 (description "This package provides tools to measure the memory usage of a
14583Haskell value or function.")
14584 (license license:bsd-3)))
14585
14586(define-public ghc-wl-pprint
14587 (package
14588 (name "ghc-wl-pprint")
14589 (version "1.2.1")
14590 (source (origin
14591 (method url-fetch)
14592 (uri (string-append
14593 "https://hackage.haskell.org/package/wl-pprint/wl-pprint-"
14594 version ".tar.gz"))
14595 (sha256
14596 (base32
14597 "0kn7y8pdrv8f87zhd5mifcl8fy3b2zvnzmzwhdqhxxlyzwiq6z0c"))))
14598 (build-system haskell-build-system)
14599 (home-page "https://hackage.haskell.org/package/wl-pprint")
14600 (synopsis "Wadler/Leijen pretty printer")
14601 (description
14602 "This is a pretty printing library based on Wadler's paper @i{A Prettier
14603Printer}. This version allows the library user to declare overlapping
14604instances of the @code{Pretty} class.")
14605 (license license:bsd-3)))
14606
14607(define-public ghc-wl-pprint-annotated
14608 (package
14609 (name "ghc-wl-pprint-annotated")
14610 (version "0.1.0.1")
14611 (source
14612 (origin
14613 (method url-fetch)
14614 (uri (string-append
14615 "mirror://hackage/package/wl-pprint-annotated/wl-pprint-annotated-"
14616 version
14617 ".tar.gz"))
14618 (sha256
14619 (base32
14620 "1br7qyf27iza213inwhf9bm2k6in0zbmfw6w4clqlc9f9cj2nrkb"))))
14621 (build-system haskell-build-system)
14622 (native-inputs
14623 `(("ghc-tasty" ,ghc-tasty)
14624 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
14625 (home-page
14626 "https://github.com/minad/wl-pprint-annotated#readme")
14627 (synopsis
14628 "Wadler/Leijen pretty printer with annotation support")
14629 (description
14630 "Annotations are useful for coloring. This is a limited version of
14631@code{wl-pprint-extras} without support for point effects and without the free
14632monad. Like in @code{annotated-wl-pprint}, only annotations are supported.
14633Compared to @code{annotated-wl-pprint} this library provides a slightly
14634modernized interface.")
14635 (license license:bsd-3)))
14636
14637(define-public ghc-wl-pprint-text
14638 (package
14639 (name "ghc-wl-pprint-text")
14640 (version "1.2.0.0")
14641 (source
14642 (origin
14643 (method url-fetch)
14644 (uri (string-append
14645 "https://hackage.haskell.org/package/wl-pprint-text/wl-pprint-text-"
14646 version ".tar.gz"))
14647 (sha256
14648 (base32
14649 "0g3w92rad6x5appfb22rbzcas2ix2h0hy91sdxhq8a4a5cnlrpa0"))))
14650 (build-system haskell-build-system)
14651 (inputs
14652 `(("ghc-base-compat" ,ghc-base-compat)))
14653 (home-page "https://hackage.haskell.org/package/wl-pprint-text")
14654 (synopsis "Wadler/Leijen Pretty Printer for Text values")
14655 (description
14656 "A clone of wl-pprint for use with the text library.")
14657 (license license:bsd-3)))
14658
14659(define-public ghc-word8
14660 (package
14661 (name "ghc-word8")
14662 (version "0.1.3")
14663 (source
14664 (origin
14665 (method url-fetch)
14666 (uri (string-append
14667 "https://hackage.haskell.org/package/word8/word8-"
14668 version
14669 ".tar.gz"))
14670 (sha256
14671 (base32
14672 "12jx7f13d2h1djq4fh4dyrab61sm49mj1w61j3rzp2vjfm696c16"))))
14673 (build-system haskell-build-system)
14674 (native-inputs
14675 `(("ghc-hspec" ,ghc-hspec)
14676 ("hspec-discover" ,hspec-discover)))
14677 (home-page "https://hackage.haskell.org/package/word8")
14678 (synopsis "Word8 library for Haskell")
14679 (description "Word8 library to be used with @code{Data.ByteString}.")
14680 (license license:bsd-3)))
14681
14682(define-public ghc-x11
14683 (package
14684 (name "ghc-x11")
6c4581a3 14685 (version "1.9.1")
dddbc90c
RV
14686 (source
14687 (origin
14688 (method url-fetch)
14689 (uri (string-append "https://hackage.haskell.org/package/X11/"
14690 "X11-" version ".tar.gz"))
14691 (sha256
6c4581a3 14692 (base32 "0gg6852mrlgl8zng1j84fismz7k81jr5fk92glgkscf8q6ryg0bm"))))
dddbc90c 14693 (build-system haskell-build-system)
54a5fd07
TS
14694 (arguments
14695 `(#:extra-directories
14696 ("libx11" "libxrandr" "libxinerama" "libxscrnsaver")))
dddbc90c
RV
14697 (inputs
14698 `(("libx11" ,libx11)
14699 ("libxrandr" ,libxrandr)
14700 ("libxinerama" ,libxinerama)
14701 ("libxscrnsaver" ,libxscrnsaver)
14702 ("ghc-data-default" ,ghc-data-default)))
14703 (home-page "https://github.com/haskell-pkg-janitors/X11")
14704 (synopsis "Bindings to the X11 graphics library")
14705 (description
14706 "This package provides Haskell bindings to the X11 graphics library. The
14707bindings are a direct translation of the C bindings.")
14708 (license license:bsd-3)))
14709
14710(define-public ghc-x11-xft
14711 (package
14712 (name "ghc-x11-xft")
14713 (version "0.3.1")
14714 (source
14715 (origin
14716 (method url-fetch)
14717 (uri (string-append "https://hackage.haskell.org/package/X11-xft/"
14718 "X11-xft-" version ".tar.gz"))
14719 (sha256
14720 (base32 "1lgqb0s2qfwwgbvwxhjbi23rbwamzdi0l0slfr20c3jpcbp3zfjf"))))
54a5fd07
TS
14721 (arguments
14722 `(#:extra-directories ("libx11" "libxft" "xorgproto")))
dddbc90c
RV
14723 (inputs
14724 `(("ghc-x11" ,ghc-x11)
14725 ("ghc-utf8-string" ,ghc-utf8-string)
14726 ("libx11" ,libx11)
14727 ("libxft" ,libxft)
14728 ("xorgproto" ,xorgproto)))
14729 (native-inputs
14730 `(("pkg-config" ,pkg-config)))
14731 (build-system haskell-build-system)
14732 (home-page "https://hackage.haskell.org/package/X11-xft")
14733 (synopsis "Bindings to Xft")
14734 (description
14735 "Bindings to the Xft, X Free Type interface library, and some Xrender
14736parts.")
14737 (license license:lgpl2.1)))
14738
14739(define-public ghc-xdg-basedir
14740 (package
14741 (name "ghc-xdg-basedir")
14742 (version "0.2.2")
14743 (source
14744 (origin
14745 (method url-fetch)
14746 (uri (string-append
14747 "https://hackage.haskell.org/package/xdg-basedir/"
14748 "xdg-basedir-" version ".tar.gz"))
14749 (sha256
14750 (base32
14751 "0azlzaxp2dn4l1nr7shsxah2magk1szf6fx0mv75az00qsjw6qg4"))))
14752 (build-system haskell-build-system)
702a1012 14753 (home-page "https://github.com/willdonnelly/xdg-basedir")
dddbc90c
RV
14754 (synopsis "XDG Base Directory library for Haskell")
14755 (description "This package provides a library implementing the XDG Base Directory spec.")
14756 (license license:bsd-3)))
14757
14758(define-public ghc-xml
14759 (package
14760 (name "ghc-xml")
14761 (version "1.3.14")
14762 (source
14763 (origin
14764 (method url-fetch)
14765 (uri (string-append
14766 "https://hackage.haskell.org/package/xml/xml-"
14767 version
14768 ".tar.gz"))
14769 (sha256
14770 (base32
14771 "0g814lj7vaxvib2g3r734221k80k7ap9czv9hinifn8syals3l9j"))))
14772 (build-system haskell-build-system)
2b62f5d0 14773 (home-page "https://github.com/GaloisInc/xml")
dddbc90c
RV
14774 (synopsis "Simple XML library for Haskell")
14775 (description "This package provides a simple XML library for Haskell.")
14776 (license license:bsd-3)))
14777
14778(define-public ghc-xml-conduit
14779 (package
14780 (name "ghc-xml-conduit")
14781 (version "1.8.0.1")
14782 (source
14783 (origin
14784 (method url-fetch)
14785 (uri (string-append "https://hackage.haskell.org/package/xml-conduit/"
14786 "xml-conduit-" version ".tar.gz"))
14787 (sha256
14788 (base32
14789 "177gmyigxql1pn3ncz0r8annwv5cbxnihbgrrg1dhm4gmc9jy2wq"))))
14790 (build-system haskell-build-system)
14791 (inputs
14792 `(("ghc-conduit" ,ghc-conduit)
14793 ("ghc-conduit-extra" ,ghc-conduit-extra)
14794 ("ghc-doctest" ,ghc-doctest)
14795 ("ghc-resourcet" ,ghc-resourcet)
14796 ("ghc-xml-types" ,ghc-xml-types)
14797 ("ghc-attoparsec" ,ghc-attoparsec)
14798 ("ghc-data-default-class" ,ghc-data-default-class)
14799 ("ghc-blaze-markup" ,ghc-blaze-markup)
14800 ("ghc-blaze-html" ,ghc-blaze-html)
14801 ("ghc-monad-control" ,ghc-monad-control)
14802 ("ghc-hspec" ,ghc-hspec)
14803 ("ghc-hunit" ,ghc-hunit)))
14804 (home-page "https://github.com/snoyberg/xml")
14805 (synopsis "Utilities for dealing with XML with the conduit package")
14806 (description
14807 "This package provides pure-Haskell utilities for dealing with XML with
14808the @code{conduit} package.")
14809 (license license:expat)))
14810
14811(define-public ghc-xml-types
14812 (package
14813 (name "ghc-xml-types")
14814 (version "0.3.6")
14815 (source
14816 (origin
14817 (method url-fetch)
14818 (uri (string-append "https://hackage.haskell.org/package/xml-types/"
14819 "xml-types-" version ".tar.gz"))
14820 (sha256
14821 (base32
14822 "1jgqxsa9p2q3h6nymbfmvhldqrqlwrhrzmwadlyc0li50x0d8dwr"))))
14823 (build-system haskell-build-system)
14824 (home-page "https://john-millikin.com/software/haskell-xml/")
14825 (synopsis "Basic types for representing XML")
14826 (description "This package provides basic types for representing XML
14827documents.")
14828 (license license:expat)))
14829
7f89dfc9
KM
14830(define-public ghc-xml-hamlet
14831 (package
14832 (name "ghc-xml-hamlet")
14833 (version "0.5.0.1")
14834 (source
14835 (origin
14836 (method url-fetch)
14837 (uri (string-append "https://hackage.haskell.org/package/xml-hamlet/"
14838 "xml-hamlet-" version ".tar.gz"))
14839 (sha256
14840 (base32 "0jrhcjy7ww59dafg857f2g2df1fw2jmbwcs1q379ph0pc5rxj3lj"))))
14841 (build-system haskell-build-system)
14842 (inputs
14843 `(("ghc-shakespeare" ,ghc-shakespeare)
14844 ("ghc-xml-conduit" ,ghc-xml-conduit)))
14845 (native-inputs
14846 `(("ghc-hspec" ,ghc-hspec)
14847 ("ghc-hunit" ,ghc-hunit)))
14848 (home-page "https://www.yesodweb.com/")
14849 (synopsis "Hamlet-style quasiquoter for XML content")
14850 (description "This package provides a type-safe tool for generating XML
14851code via quasi-quoting built on top of @code{ghc-shakespeare}.")
14852 (license license:bsd-3)))
14853
dddbc90c
RV
14854(define-public ghc-yaml
14855 (package
14856 (name "ghc-yaml")
b58e5b84 14857 (version "0.11.1.2")
dddbc90c
RV
14858 (source (origin
14859 (method url-fetch)
14860 (uri (string-append "https://hackage.haskell.org/package/"
14861 "yaml/yaml-" version ".tar.gz"))
14862 (sha256
14863 (base32
b58e5b84 14864 "028pz77n92l6kjgjv263h4b6yhw1iibdbf3a3dkn5qnz537xpzhc"))))
dddbc90c 14865 (build-system haskell-build-system)
dddbc90c
RV
14866 (inputs
14867 `(("ghc-conduit" ,ghc-conduit)
14868 ("ghc-resourcet" ,ghc-resourcet)
14869 ("ghc-aeson" ,ghc-aeson)
14870 ("ghc-unordered-containers" ,ghc-unordered-containers)
14871 ("ghc-vector" ,ghc-vector)
14872 ("ghc-attoparsec" ,ghc-attoparsec)
14873 ("ghc-scientific" ,ghc-scientific)
14874 ("ghc-semigroups" ,ghc-semigroups)
14875 ("ghc-temporary" ,ghc-temporary)
14876 ("ghc-enclosed-exceptions" ,ghc-enclosed-exceptions)
b58e5b84
TS
14877 ("ghc-base-compat" ,ghc-base-compat)
14878 ("ghc-libyaml" ,ghc-libyaml)))
dddbc90c
RV
14879 (native-inputs
14880 `(("ghc-hspec" ,ghc-hspec)
14881 ("ghc-hunit" ,ghc-hunit)
14882 ("hspec-discover" ,hspec-discover)
b58e5b84
TS
14883 ("ghc-mockery" ,ghc-mockery)
14884 ("ghc-raw-strings-qq" ,ghc-raw-strings-qq)))
dddbc90c
RV
14885 (home-page "https://github.com/snoyberg/yaml/")
14886 (synopsis "Parsing and rendering YAML documents")
14887 (description
14888 "This package provides a library to parse and render YAML documents.")
14889 (license license:bsd-3)))
14890
14891(define-public ghc-zip-archive
14892 (package
14893 (name "ghc-zip-archive")
93c1fdd3 14894 (version "0.4.1")
dddbc90c
RV
14895 (source
14896 (origin
14897 (method url-fetch)
14898 (uri (string-append
14899 "https://hackage.haskell.org/package/zip-archive/zip-archive-"
14900 version
14901 ".tar.gz"))
14902 (sha256
14903 (base32
93c1fdd3 14904 "1cdix5mnxrbs7b2kivhdydhfzgxidd9dqlw71mdw5p21cabwkmf5"))))
dddbc90c 14905 (build-system haskell-build-system)
93c1fdd3
TS
14906 (arguments
14907 `(#:phases
14908 (modify-phases %standard-phases
14909 (add-before 'check 'set-PATH-for-tests
14910 (lambda* (#:key inputs #:allow-other-keys)
14911 (let ((unzip (assoc-ref inputs "unzip"))
14912 (which (assoc-ref inputs "which"))
14913 (path (getenv "PATH")))
14914 (setenv "PATH" (string-append unzip "/bin:" which "/bin:" path))
14915 #t))))))
dddbc90c
RV
14916 (inputs
14917 `(("ghc-digest" ,ghc-digest)
14918 ("ghc-temporary" ,ghc-temporary)
14919 ("ghc-zlib" ,ghc-zlib)))
14920 (native-inputs
14921 `(("ghc-hunit" ,ghc-hunit)
93c1fdd3
TS
14922 ("unzip" ,unzip)
14923 ("which" ,which)))
dddbc90c
RV
14924 (home-page "https://hackage.haskell.org/package/zip-archive")
14925 (synopsis "Zip archive library for Haskell")
14926 (description "The zip-archive library provides functions for creating,
14927modifying, and extracting files from zip archives in Haskell.")
14928 (license license:bsd-3)))
14929
14930(define-public ghc-zlib
14931 (package
14932 (name "ghc-zlib")
bf12089a 14933 (version "0.6.2.1")
534d6caa 14934 (outputs '("out" "static" "doc"))
dddbc90c
RV
14935 (source
14936 (origin
14937 (method url-fetch)
14938 (uri (string-append
14939 "https://hackage.haskell.org/package/zlib/zlib-"
14940 version
14941 ".tar.gz"))
14942 (sha256
14943 (base32
bf12089a 14944 "1l11jraslcrp9d4wnhwfyhwk4fsiq1aq8i6vj81vcq1m2zzi1y7h"))))
dddbc90c
RV
14945 (build-system haskell-build-system)
14946 (arguments
54a5fd07
TS
14947 `(#:extra-directories ("zlib")
14948 #:phases
dddbc90c
RV
14949 (modify-phases %standard-phases
14950 (add-before 'configure 'strip-test-framework-constraints
14951 (lambda _
14952 (substitute* "zlib.cabal"
14953 (("tasty >= 0\\.8 && < 0\\.12") "tasty")
14954 (("tasty-hunit >= 0\\.8 && < 0\\.10") "tasty-hunit")
14955 (("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
14956 (inputs `(("zlib" ,zlib)))
14957 (native-inputs
14958 `(("ghc-quickcheck" ,ghc-quickcheck)
14959 ("ghc-tasty" ,ghc-tasty)
14960 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
14961 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
14962 (home-page "https://hackage.haskell.org/package/zlib")
14963 (synopsis
14964 "Compression and decompression in the gzip and zlib formats")
14965 (description
14966 "This package provides a pure interface for compressing and decompressing
14967streams of data represented as lazy @code{ByteString}s. It uses the zlib C
14968library so it has high performance. It supports the @code{zlib}, @code{gzip}
14969and @code{raw} compression formats. It provides a convenient high level API
14970suitable for most tasks and for the few cases where more control is needed it
14971provides access to the full zlib feature set.")
bbf8bf31 14972 (license license:bsd-3)))
14e41996
RV
14973
14974(define-public ghc-zlib-bindings
14975 (package
14976 (name "ghc-zlib-bindings")
14977 (version "0.1.1.5")
14978 (source
14979 (origin
14980 (method url-fetch)
14981 (uri (string-append "https://hackage.haskell.org/package/"
14982 "zlib-bindings/zlib-bindings-" version ".tar.gz"))
14983 (sha256
14984 (base32
14985 "02ciywlz4wdlymgc3jsnicz9kzvymjw1www2163gxidnz4wb8fy8"))))
14986 (build-system haskell-build-system)
14987 (inputs
14988 `(("ghc-zlib" ,ghc-zlib)))
14989 (native-inputs
14990 `(("ghc-hspec" ,ghc-hspec)
14991 ("ghc-quickcheck" ,ghc-quickcheck)))
14992 (arguments
14993 `(#:cabal-revision
14994 ("2" "0fq49694gqkab8m0vq4i879blswczwd66n7xh4r4gwiahf0ryvqc")))
14995 (home-page "https://github.com/snapframework/zlib-bindings")
14996 (synopsis "Low-level bindings to the @code{zlib} package")
14997 (description "This package provides low-level bindings to the
14998@code{zlib} package.")
14999 (license license:bsd-3)))
8428e92c
TS
15000
15001(define-public ghc-zstd
15002 (package
15003 (name "ghc-zstd")
15004 (version "0.1.1.2")
15005 (source
15006 (origin
15007 (method url-fetch)
15008 (uri (string-append "https://hackage.haskell.org/package/"
15009 "zstd/zstd-" version ".tar.gz"))
15010 (sha256
15011 (base32
15012 "147s496zvw13akxqzg65mgfvk3bvhrcilxgf8n786prxg5cm4jz2"))))
15013 (build-system haskell-build-system)
15014 (native-inputs
15015 `(("ghc-quickcheck" ,ghc-quickcheck)
15016 ("ghc-test-framework" ,ghc-test-framework)
15017 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)))
15018 (home-page "https://github.com/luispedro/hs-zstd")
15019 (synopsis "Haskell bindings to the Zstandard compression algorithm")
15020 (description "This library provides Haskell bindings to the
15021Zstandard compression algorithm, a fast lossless compression algorithm
15022targeting real-time compression scenarios at zlib-level and better
15023compression ratios.")
15024 (license license:bsd-3)))