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