haskell-apps.scm 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
  3. ;;; Copyright © 2015, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
  4. ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
  5. ;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
  6. ;;; Copyright © 2017, 2018 Alex Vong <alexvong1995@gmail.com>
  7. ;;; Copyright © 2017–2019, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
  8. ;;; Copyright © 2018 Timothy Sample <samplet@ngyro.com>
  9. ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
  10. ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
  11. ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
  12. ;;; Copyright © 2019, 2020 Kyle Meyer <kyle@kyleam.com>
  13. ;;; Copyright © 2015 John Soo <jsoo1@asu.edu>
  14. ;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
  15. ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
  16. ;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
  17. ;;; Copyright © 2020 Brian Leung <bkleung89@gmail.com>
  18. ;;; Copyright © 2021 EuAndreh <eu@euandre.org>
  19. ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
  20. ;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
  21. ;;;
  22. ;;; This file is part of GNU Guix.
  23. ;;;
  24. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  25. ;;; under the terms of the GNU General Public License as published by
  26. ;;; the Free Software Foundation; either version 3 of the License, or (at
  27. ;;; your option) any later version.
  28. ;;;
  29. ;;; GNU Guix is distributed in the hope that it will be useful, but
  30. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  31. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. ;;; GNU General Public License for more details.
  33. ;;;
  34. ;;; You should have received a copy of the GNU General Public License
  35. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  36. (define-module (gnu packages haskell-apps)
  37. #:use-module (guix download)
  38. #:use-module (guix git-download)
  39. #:use-module (guix packages)
  40. #:use-module ((guix licenses) #:prefix license:)
  41. #:use-module (guix build-system haskell)
  42. #:use-module (gnu packages base)
  43. #:use-module (gnu packages curl)
  44. #:use-module (gnu packages gl)
  45. #:use-module (gnu packages haskell)
  46. #:use-module (gnu packages haskell-check)
  47. #:use-module (gnu packages haskell-crypto)
  48. #:use-module (gnu packages haskell-web)
  49. #:use-module (gnu packages haskell-xyz)
  50. #:use-module (gnu packages ncurses)
  51. #:use-module (gnu packages perl)
  52. #:use-module (gnu packages pkg-config)
  53. #:use-module (gnu packages rsync)
  54. #:use-module (gnu packages version-control)
  55. #:use-module (gnu packages xorg))
  56. (define-public apply-refact
  57. (package
  58. (name "apply-refact")
  59. (version "0.6.0.0")
  60. (source
  61. (origin
  62. (method url-fetch)
  63. (uri (string-append
  64. "https://hackage.haskell.org/package/apply-refact/apply-refact-"
  65. version ".tar.gz"))
  66. (sha256
  67. (base32
  68. "0p2mqgjcqr1zcmk8zgr0yq7g8z1agsa6l493lkj6g3ya9lyhxgig"))))
  69. (build-system haskell-build-system)
  70. (inputs
  71. `(("ghc-refact" ,ghc-refact)
  72. ("ghc-exactprint" ,ghc-exactprint)
  73. ("ghc-syb" ,ghc-syb)
  74. ("ghc-temporary" ,ghc-temporary)
  75. ("ghc-filemanip" ,ghc-filemanip)
  76. ("ghc-unix-compat" ,ghc-unix-compat)
  77. ("ghc-optparse-applicative"
  78. ,ghc-optparse-applicative)))
  79. (native-inputs
  80. `(("ghc-tasty" ,ghc-tasty)
  81. ("ghc-tasty-golden" ,ghc-tasty-golden)
  82. ("ghc-tasty-expected-failure"
  83. ,ghc-tasty-expected-failure)
  84. ("ghc-silently" ,ghc-silently)))
  85. (home-page "https://hackage.haskell.org/package/apply-refact")
  86. (synopsis "Perform refactorings specified by the refact library")
  87. (description
  88. "This package lets you perform refactorings specified by the refact
  89. library. It is primarily used with HLint's @code{--refactor} flag.")
  90. (license license:bsd-3)))
  91. ;; In Stackage LTS 14, this package is at 2.4.1.0. However, that
  92. ;; version requires version 2.4.1.0 of the 'Cabal' package, which is
  93. ;; provided by GHC 8.6.5 at version 2.4.0.1. Hence, we use an older
  94. ;; version to match the compiler's library.
  95. (define-public cabal-install
  96. (package
  97. (name "cabal-install")
  98. (version "2.4.0.0")
  99. (source
  100. (origin
  101. (method url-fetch)
  102. (uri (string-append
  103. "https://hackage.haskell.org/package/cabal-install/cabal-install-"
  104. version
  105. ".tar.gz"))
  106. (sha256
  107. (base32 "1xmyl0x8wqfrnray6ky5wy0g0samv4264fbdlzxhqsvk9dbfja8k"))))
  108. (build-system haskell-build-system)
  109. (arguments
  110. `(#:cabal-revision
  111. ("2" "1xil5pim6j1ckqj61zz6l7xpfxxr3rkw2hvpws2f7pr9shk645dl")
  112. #:phases
  113. (modify-phases %standard-phases
  114. (add-before 'configure 'update-constraints
  115. (lambda _
  116. (substitute* "cabal-install.cabal"
  117. (("zip-archive >= 0\\.3\\.2\\.5 && < 0\\.4,")
  118. "zip-archive >= 0.3.2.5 && <= 0.4.1,"))
  119. #t)))))
  120. (inputs
  121. `(("ghc-async" ,ghc-async)
  122. ("ghc-base16-bytestring" ,ghc-base16-bytestring)
  123. ("ghc-cryptohash-sha256" ,ghc-cryptohash-sha256)
  124. ("ghc-echo" ,ghc-echo)
  125. ("ghc-edit-distance" ,ghc-edit-distance)
  126. ("ghc-hackage-security" ,ghc-hackage-security)
  127. ("ghc-hashable" ,ghc-hashable)
  128. ("ghc-http" ,ghc-http)
  129. ("ghc-network-uri" ,ghc-network-uri)
  130. ("ghc-network" ,ghc-network)
  131. ("ghc-random" ,ghc-random)
  132. ("ghc-resolv" ,ghc-resolv)
  133. ("ghc-tar" ,ghc-tar)
  134. ("ghc-zip-archive" ,ghc-zip-archive)
  135. ("ghc-zlib" ,ghc-zlib)))
  136. (home-page "https://www.haskell.org/cabal/")
  137. (synopsis "Command-line interface for Cabal and Hackage")
  138. (description
  139. "The cabal command-line program simplifies the process of managing
  140. Haskell software by automating the fetching, configuration, compilation and
  141. installation of Haskell libraries and programs.")
  142. (license license:bsd-3)))
  143. (define-public corrode
  144. (let ((revision "0")
  145. (commit "b6699fb2fa552a07c6091276285a44133e5c9789"))
  146. (package
  147. (name "corrode")
  148. (version (git-version "0.0.0" revision commit))
  149. (source
  150. (origin
  151. (method git-fetch)
  152. (uri (git-reference
  153. (url "https://github.com/jameysharp/corrode")
  154. (commit commit)))
  155. (file-name (git-file-name name version))
  156. (sha256
  157. (base32 "02v0yyj6sk4gpg2222wzsdqjxn8w66scbnf6b20x0kbmc69qcz4r"))))
  158. (build-system haskell-build-system)
  159. (inputs
  160. `(("ghc-language-c" ,ghc-language-c)
  161. ("ghc-markdown-unlit" ,ghc-markdown-unlit)))
  162. (home-page "https://github.com/jameysharp/corrode")
  163. (synopsis "Automatic semantics-preserving translation from C to Rust")
  164. (description
  165. "This program reads a C source file and prints an equivalent module in
  166. Rust syntax. It is intended to be useful for two different purposes:
  167. @enumerate
  168. @item Partial automation for migrating legacy code that was implemented in C.
  169. @item A new, complementary approach to static analysis for C programs.
  170. @end enumerate\n")
  171. (license license:gpl2+))))
  172. (define-public cpphs
  173. (package
  174. (name "cpphs")
  175. (version "1.20.8")
  176. (source
  177. (origin
  178. (method url-fetch)
  179. (uri (string-append
  180. "https://hackage.haskell.org/package/" name "/"
  181. name "-" version ".tar.gz"))
  182. (sha256
  183. (base32
  184. "1bh524asqhk9v1s0wvipl0hgn7l63iy3js867yv0z3h5v2kn8vg5"))))
  185. (build-system haskell-build-system)
  186. (inputs
  187. `(("ghc-polyparse" ,ghc-polyparse)
  188. ("ghc-old-locale" ,ghc-old-locale)
  189. ("ghc-old-time" ,ghc-old-time)))
  190. (home-page "http://projects.haskell.org/cpphs/")
  191. (synopsis "Liberalised re-implementation of cpp, the C pre-processor")
  192. (description "Cpphs is a re-implementation of the C pre-processor that is
  193. both more compatible with Haskell, and itself written in Haskell so that it
  194. can be distributed with compilers. This version of the C pre-processor is
  195. pretty-much feature-complete and compatible with traditional (K&R)
  196. pre-processors. Additional features include: a plain-text mode; an option to
  197. unlit literate code files; and an option to turn off macro-expansion.")
  198. (license (list license:lgpl2.1+ license:gpl3+))))
  199. ;; Darcs has no https support:
  200. ;; http://darcs.net/manual/Configuring_darcs.html#SECTION00440070000000000000
  201. ;; and results of search engines will show that if the protocol is http, https
  202. ;; is never mentioned.
  203. (define-public darcs
  204. (package
  205. (name "darcs")
  206. (version "2.14.2")
  207. (source
  208. (origin
  209. (method url-fetch)
  210. (uri (string-append "https://hackage.haskell.org/package/darcs/"
  211. "darcs-" version ".tar.gz"))
  212. (sha256
  213. (base32
  214. "0zm2486gyhiga1amclbg92cd09bvki6vgh0ll75hv5kl72j61lb5"))
  215. (modules '((guix build utils)))
  216. ;; Remove time-dependent code for reproducibility.
  217. (snippet
  218. '(begin
  219. (substitute* "darcs/darcs.hs"
  220. (("__DATE__") "\"1970-01-01\"")
  221. (("__TIME__") "\"00:00:00\""))
  222. #t))))
  223. (build-system haskell-build-system)
  224. (arguments
  225. `(#:cabal-revision
  226. ("1" "0xl7j5cm704pbl2ms0dkydh7jvrz0ym76d725ifpg4h902m1zkhg")
  227. #:configure-flags '("-fpkgconfig" "-fcurl" "-flibiconv" "-fthreaded"
  228. "-fnetwork-uri" "-fhttp" "--flag=executable"
  229. "--flag=library")
  230. #:phases
  231. (modify-phases %standard-phases
  232. (add-after 'patch-source-shebangs 'patch-sh
  233. (lambda _
  234. (substitute* "tests/issue538.sh"
  235. (("/bin/sh") (which "sh")))
  236. #t))
  237. (add-before 'configure 'update-constraints
  238. (lambda _
  239. (substitute* "darcs.cabal"
  240. (("QuickCheck >= 2\\.8\\.2 && < 2\\.13,")
  241. "QuickCheck >= 2.8.2 && < 2.14,"))
  242. #t)))))
  243. (inputs
  244. `(("ghc-cmdargs" ,ghc-cmdargs)
  245. ("ghc-split" ,ghc-split)
  246. ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
  247. ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
  248. ("ghc-test-framework" ,ghc-test-framework)
  249. ("ghc-quickcheck" ,ghc-quickcheck)
  250. ("ghc-findbin" ,ghc-findbin)
  251. ("ghc-hunit" ,ghc-hunit)
  252. ("ghc-async" ,ghc-async)
  253. ("ghc-attoparsec" ,ghc-attoparsec)
  254. ("ghc-base16-bytestring" ,ghc-base16-bytestring)
  255. ("ghc-bytestring-builder" ,ghc-bytestring-builder)
  256. ("ghc-cryptohash" ,ghc-cryptohash)
  257. ("ghc-data-ordlist" ,ghc-data-ordlist)
  258. ("ghc-fgl" ,ghc-fgl)
  259. ("ghc-system-filepath" ,ghc-system-filepath)
  260. ("ghc-graphviz" ,ghc-graphviz)
  261. ("ghc-hashable" ,ghc-hashable)
  262. ("ghc-html" ,ghc-html)
  263. ("ghc-mmap" ,ghc-mmap)
  264. ("ghc-old-time" ,ghc-old-time)
  265. ("ghc-random" ,ghc-random)
  266. ("ghc-regex-applicative" ,ghc-regex-applicative)
  267. ("ghc-regex-compat-tdfa" ,ghc-regex-compat-tdfa)
  268. ("ghc-sandi" ,ghc-sandi)
  269. ("ghc-shelly" ,ghc-shelly)
  270. ("ghc-tar" ,ghc-tar)
  271. ("ghc-transformers-compat" ,ghc-transformers-compat)
  272. ("ghc-unix-compat" ,ghc-unix-compat)
  273. ("ghc-utf8-string" ,ghc-utf8-string)
  274. ("ghc-vector" ,ghc-vector)
  275. ("ghc-zip-archive" ,ghc-zip-archive)
  276. ("ghc-zlib" ,ghc-zlib)
  277. ("ghc-http" ,ghc-http)
  278. ("curl" ,curl)
  279. ("ghc" ,ghc)
  280. ("ncurses" ,ncurses)
  281. ("perl" ,perl)
  282. ("libiconv" ,libiconv)
  283. ("ghc-network" ,ghc-network)
  284. ("ghc-network-uri" ,ghc-network-uri)))
  285. (native-inputs
  286. `(("pkg-config" ,pkg-config)))
  287. (home-page "http://darcs.net")
  288. (synopsis "Distributed Revision Control System")
  289. (description
  290. "Darcs is a revision control system. It is:
  291. @enumerate
  292. @item Distributed: Every user has access to the full command set, removing boundaries
  293. between server and client or committer and non-committers.
  294. @item Interactive: Darcs is easy to learn and efficient to use because it asks you
  295. questions in response to simple commands, giving you choices in your work flow.
  296. You can choose to record one change in a file, while ignoring another. As you update
  297. from upstream, you can review each patch name, even the full diff for interesting
  298. patches.
  299. @item Smart: Originally developed by physicist David Roundy, darcs is based on a
  300. unique algebra of patches called @url{http://darcs.net/Theory,Patchtheory}.
  301. @end enumerate")
  302. (license license:gpl2)))
  303. (define-public ghcid
  304. (package
  305. (name "ghcid")
  306. (version "0.8.7")
  307. (source
  308. (origin
  309. (method url-fetch)
  310. (uri (string-append "https://hackage.haskell.org/package/ghcid/"
  311. "ghcid-" version ".tar.gz"))
  312. (sha256
  313. (base32 "0yqc1pkfajnr56gnh43sbj50r7c3r41b2jfz07ivgl6phi4frjbq"))))
  314. (build-system haskell-build-system)
  315. (inputs
  316. `(("ghc-extra" ,ghc-extra)
  317. ("ghc-ansi-terminal" ,ghc-ansi-terminal)
  318. ("ghc-cmdargs" ,ghc-cmdargs)
  319. ("ghc-fsnotify" ,ghc-fsnotify)
  320. ("ghc-terminal-size" ,ghc-terminal-size)))
  321. (native-inputs
  322. `(("ghc-tasty" ,ghc-tasty)
  323. ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
  324. (home-page "https://github.com/ndmitchell/ghcid#readme")
  325. (synopsis "GHCi based bare bones IDE")
  326. (description
  327. "Either \"GHCi as a daemon\" or \"GHC + a bit of an IDE\". A very simple Haskell
  328. development tool which shows you the errors in your project and updates them whenever
  329. you save. Run @code{ghcid --topmost --command=ghci}, where @code{--topmost} makes the
  330. window on top of all others (Windows only) and @code{--command} is the command to start
  331. GHCi on your project (defaults to @code{ghci} if you have a @file{.ghci} file, or else
  332. to @code{cabal repl}).")
  333. (license license:bsd-3)))
  334. (define-public git-annex
  335. (package
  336. (name "git-annex")
  337. (version "8.20210903")
  338. (source
  339. (origin
  340. (method url-fetch)
  341. (uri (string-append "https://hackage.haskell.org/package/"
  342. "git-annex/git-annex-" version ".tar.gz"))
  343. (sha256
  344. (base32 "1p6zgk98jmxvqdin5xsdxhgq276bjdr2spi0wabj8x0ziry97rvl"))))
  345. (build-system haskell-build-system)
  346. (arguments
  347. `(#:configure-flags
  348. '("--flags=-Android -Webapp")
  349. #:phases
  350. (modify-phases %standard-phases
  351. (add-before 'configure 'patch-shell-for-tests
  352. (lambda _
  353. ;; Shell.hs defines "/bin/sh" that is used in Git hooks. We
  354. ;; shouldn't patch hooks with Guix's current bash because the
  355. ;; hooks can exist after that bash is garbage collected, but
  356. ;; let's temporarily patch it so that we can run the tests.
  357. (copy-file "Utility/Shell.hs" "/tmp/Shell.hs")
  358. (substitute* "Utility/Shell.hs"
  359. (("/bin/sh") (which "sh")))
  360. #t))
  361. (add-before 'configure 'factor-setup
  362. (lambda _
  363. ;; Factor out necessary build logic from the provided
  364. ;; `Setup.hs' script. The script as-is does not work because
  365. ;; it cannot find its dependencies, and there is no obvious way
  366. ;; to tell it where to look.
  367. (call-with-output-file "PreConf.hs"
  368. (lambda (out)
  369. (format out "import qualified Build.Configure as Configure~%")
  370. (format out "main = Configure.run Configure.tests~%")))
  371. (call-with-output-file "Setup.hs"
  372. (lambda (out)
  373. (format out "import Distribution.Simple~%")
  374. (format out "main = defaultMain~%")))
  375. #t))
  376. (add-before 'configure 'pre-configure
  377. (lambda _
  378. (invoke "runhaskell" "PreConf.hs")
  379. #t))
  380. (add-after 'build 'build-manpages
  381. (lambda _
  382. ;; The Setup.hs rewrite above removed custom code for building
  383. ;; the man pages. In addition to that code, git-annex's source
  384. ;; tree has a file that's not included in the tarball but is used
  385. ;; by the Makefile to build man pages. Copy the core bits here.
  386. (call-with-output-file "Build/MakeMans.hs"
  387. (lambda (out)
  388. (format out "module Main where~%")
  389. (format out "import Build.Mans~%")
  390. (format out "main = buildMansOrWarn~%")))
  391. (invoke "runhaskell" "Build/MakeMans.hs")))
  392. (replace 'check
  393. (lambda _
  394. ;; We need to set the path so that Git recognizes
  395. ;; `git annex' as a custom command.
  396. (setenv "PATH" (string-append (getenv "PATH") ":"
  397. (getcwd) "/dist/build/git-annex"))
  398. (with-directory-excursion "dist/build/git-annex"
  399. (symlink "git-annex" "git-annex-shell"))
  400. (invoke "git-annex" "test")
  401. #t))
  402. (add-after 'check 'unpatch-shell-and-rebuild
  403. (lambda args
  404. ;; Undo `patch-shell-for-tests'.
  405. (copy-file "/tmp/Shell.hs" "Utility/Shell.hs")
  406. (apply (assoc-ref %standard-phases 'build) args)))
  407. (add-after 'install 'install-manpages
  408. (lambda* (#:key outputs #:allow-other-keys)
  409. (let ((man (string-append (assoc-ref outputs "out")
  410. "/man/man1/")))
  411. (mkdir-p man)
  412. (for-each (lambda (file) (install-file file man))
  413. (find-files "man")))
  414. #t))
  415. (add-after 'install 'install-symlinks
  416. (lambda* (#:key outputs #:allow-other-keys)
  417. (let* ((out (assoc-ref outputs "out"))
  418. (bin (string-append out "/bin")))
  419. (symlink (string-append bin "/git-annex")
  420. (string-append bin "/git-annex-shell"))
  421. (symlink (string-append bin "/git-annex")
  422. (string-append bin "/git-remote-tor-annex"))
  423. #t)))
  424. (add-after 'install 'touch-static-output
  425. (lambda* (#:key outputs #:allow-other-keys)
  426. ;; The Haskell build system adds a "static" output by
  427. ;; default, and there is no way to override this until
  428. ;; <https://issues.guix.gnu.org/41569> is fixed. Without
  429. ;; this phase, the daemon complains because we do not
  430. ;; create the "static" output.
  431. (with-output-to-file (assoc-ref outputs "static")
  432. (lambda ()
  433. (display "static output not used\n"))))))))
  434. (inputs
  435. `(("curl" ,curl)
  436. ("ghc-aeson" ,ghc-aeson)
  437. ("ghc-async" ,ghc-async)
  438. ("ghc-aws" ,ghc-aws)
  439. ("ghc-bloomfilter" ,ghc-bloomfilter)
  440. ("ghc-byteable" ,ghc-byteable)
  441. ("ghc-case-insensitive" ,ghc-case-insensitive)
  442. ("ghc-concurrent-output" ,ghc-concurrent-output)
  443. ("ghc-crypto-api" ,ghc-crypto-api)
  444. ("ghc-cryptonite" ,ghc-cryptonite)
  445. ("ghc-data-default" ,ghc-data-default)
  446. ("ghc-dav" ,ghc-dav)
  447. ("ghc-disk-free-space" ,ghc-disk-free-space)
  448. ("ghc-dlist" ,ghc-dlist)
  449. ("ghc-edit-distance" ,ghc-edit-distance)
  450. ("ghc-esqueleto" ,ghc-esqueleto)
  451. ("ghc-exceptions" ,ghc-exceptions)
  452. ("ghc-feed" ,ghc-feed)
  453. ("ghc-filepath-bytestring" ,ghc-filepath-bytestring)
  454. ("ghc-free" ,ghc-free)
  455. ("ghc-hinotify" ,ghc-hinotify)
  456. ("ghc-hslogger" ,ghc-hslogger)
  457. ("ghc-http-client" ,ghc-http-client)
  458. ("ghc-http-conduit" ,ghc-http-conduit)
  459. ("ghc-http-types" ,ghc-http-types)
  460. ("ghc-ifelse" ,ghc-ifelse)
  461. ("ghc-magic" ,ghc-magic)
  462. ("ghc-memory" ,ghc-memory)
  463. ("ghc-monad-control" ,ghc-monad-control)
  464. ("ghc-monad-logger" ,ghc-monad-logger)
  465. ("ghc-mountpoints" ,ghc-mountpoints)
  466. ("ghc-network" ,ghc-network)
  467. ("ghc-network-info" ,ghc-network-info)
  468. ("ghc-network-multicast" ,ghc-network-multicast)
  469. ("ghc-old-locale" ,ghc-old-locale)
  470. ("ghc-optparse-applicative" ,ghc-optparse-applicative)
  471. ("ghc-persistent" ,ghc-persistent)
  472. ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
  473. ("ghc-persistent-template" ,ghc-persistent-template)
  474. ("ghc-quickcheck" ,ghc-quickcheck)
  475. ("ghc-random" ,ghc-random)
  476. ("ghc-regex-tdfa" ,ghc-regex-tdfa)
  477. ("ghc-resourcet" ,ghc-resourcet)
  478. ("ghc-safesemaphore" ,ghc-safesemaphore)
  479. ("ghc-sandi" ,ghc-sandi)
  480. ("ghc-securemem" ,ghc-securemem)
  481. ("ghc-socks" ,ghc-socks)
  482. ("ghc-split" ,ghc-split)
  483. ("ghc-stm-chans" ,ghc-stm-chans)
  484. ("ghc-tagsoup" ,ghc-tagsoup)
  485. ("ghc-torrent" ,ghc-torrent)
  486. ("ghc-unix-compat" ,ghc-unix-compat)
  487. ("ghc-unordered-containers" ,ghc-unordered-containers)
  488. ("ghc-utf8-string" ,ghc-utf8-string)
  489. ("ghc-uuid" ,ghc-uuid)
  490. ("git" ,git)
  491. ("rsync" ,rsync)))
  492. (native-inputs
  493. `(("ghc-tasty" ,ghc-tasty)
  494. ("ghc-tasty-hunit" ,ghc-tasty-hunit)
  495. ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
  496. ("ghc-tasty-rerun" ,ghc-tasty-rerun)
  497. ("perl" ,perl)))
  498. (home-page "https://git-annex.branchable.com/")
  499. (synopsis "Manage files with Git, without checking in their contents")
  500. (description "This package allows managing files with Git, without
  501. checking the file contents into Git. It can store files in many places,
  502. such as local hard drives and cloud storage services. It can also be
  503. used to keep a folder in sync between computers.")
  504. ;; The main author has released all his changes under AGPLv3+ as of March
  505. ;; 2019 (7.20190219-187-g40ecf58d4). These are also licensed under the
  506. ;; original GPLv3+ license, but going forward new changes will be under
  507. ;; only AGPLv3+. The other licenses below cover code written by others.
  508. ;; See git-annex's COPYRIGHT file for details on each file.
  509. (license (list license:agpl3+
  510. license:gpl3+
  511. license:bsd-2
  512. license:expat
  513. license:gpl2))))
  514. (define-public hlint
  515. (package
  516. (name "hlint")
  517. (version "2.1.26")
  518. (source
  519. (origin
  520. (method url-fetch)
  521. (uri (string-append
  522. "https://hackage.haskell.org/package/" name
  523. "/" name "-" version ".tar.gz"))
  524. (sha256
  525. (base32
  526. "16zkkpbfrd69853cdqf597fva969lirfc86b039i9zd7ghlrcayc"))))
  527. (build-system haskell-build-system)
  528. (inputs
  529. `(("cpphs" ,cpphs)
  530. ("ghc-unordered-containers" ,ghc-unordered-containers)
  531. ("ghc-yaml" ,ghc-yaml)
  532. ("ghc-vector" ,ghc-vector)
  533. ("ghc-data-default" ,ghc-data-default)
  534. ("ghc-cmdargs" ,ghc-cmdargs)
  535. ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
  536. ("ghc-haskell-src-exts-util" ,ghc-haskell-src-exts-util)
  537. ("ghc-uniplate" ,ghc-uniplate)
  538. ("ghc-ansi-terminal" ,ghc-ansi-terminal)
  539. ("ghc-extra" ,ghc-extra)
  540. ("ghc-refact" ,ghc-refact)
  541. ("ghc-aeson" ,ghc-aeson)
  542. ("ghc-lib-parser" ,ghc-lib-parser)
  543. ("hscolour" ,hscolour)))
  544. (home-page "https://github.com/ndmitchell/hlint")
  545. (synopsis "Suggest improvements for Haskell source code")
  546. (description "HLint reads Haskell programs and suggests changes that
  547. hopefully make them easier to read. HLint also makes it easy to disable
  548. unwanted suggestions, and to add your own custom suggestions.")
  549. (license license:bsd-3)))
  550. (define-public hoogle
  551. (package
  552. (name "hoogle")
  553. (version "5.0.17.11")
  554. (source
  555. (origin
  556. (method url-fetch)
  557. (uri
  558. (string-append
  559. "https://hackage.haskell.org/package/hoogle/hoogle-"
  560. version ".tar.gz"))
  561. (sha256
  562. (base32
  563. "1svp8z9pad8z2j386pr0dda0ds8ddxab0salnz4gm51q877w93p1"))))
  564. (build-system haskell-build-system)
  565. (inputs
  566. `(("ghc-quickcheck" ,ghc-quickcheck)
  567. ("ghc-aeson" ,ghc-aeson)
  568. ("ghc-blaze-html" ,ghc-blaze-html)
  569. ("ghc-blaze-markup" ,ghc-blaze-markup)
  570. ("ghc-cmdargs" ,ghc-cmdargs)
  571. ("ghc-conduit" ,ghc-conduit)
  572. ("ghc-conduit-extra" ,ghc-conduit-extra)
  573. ("ghc-connection" ,ghc-connection)
  574. ("ghc-extra" ,ghc-extra)
  575. ("ghc-foundation" ,ghc-foundation)
  576. ("ghc-old-locale" ,ghc-old-locale)
  577. ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
  578. ("ghc-http-conduit" ,ghc-http-conduit)
  579. ("ghc-http-types" ,ghc-http-types)
  580. ("ghc-js-flot" ,ghc-js-flot)
  581. ("ghc-js-jquery" ,ghc-js-jquery)
  582. ("ghc-mmap" ,ghc-mmap)
  583. ("ghc-process-extras" ,ghc-process-extras)
  584. ("ghc-resourcet" ,ghc-resourcet)
  585. ("ghc-storable-tuple" ,ghc-storable-tuple)
  586. ("ghc-tar" ,ghc-tar)
  587. ("ghc-uniplate" ,ghc-uniplate)
  588. ("ghc-utf8-string" ,ghc-utf8-string)
  589. ("ghc-vector" ,ghc-vector)
  590. ("ghc-wai" ,ghc-wai)
  591. ("ghc-wai-logger" ,ghc-wai-logger)
  592. ("ghc-warp" ,ghc-warp)
  593. ("ghc-warp-tls" ,ghc-warp-tls)
  594. ("ghc-zlib" ,ghc-zlib)))
  595. (home-page "https://hoogle.haskell.org/")
  596. (synopsis "Haskell API Search")
  597. (description "Hoogle is a Haskell API search engine, which allows
  598. you to search many standard Haskell libraries by either function name,
  599. or by approximate type signature.")
  600. (license license:bsd-3)))
  601. (define-public hscolour
  602. (package
  603. (name "hscolour")
  604. (version "1.24.4")
  605. (source
  606. (origin
  607. (method url-fetch)
  608. (uri (string-append
  609. "https://hackage.haskell.org/package/hscolour/hscolour-"
  610. version
  611. ".tar.gz"))
  612. (sha256
  613. (base32
  614. "079jwph4bwllfp03yfr26s5zc6m6kw3nhb1cggrifh99haq34cr4"))))
  615. (build-system haskell-build-system)
  616. (home-page "https://hackage.haskell.org/package/hscolour")
  617. (synopsis "Script to colourise Haskell code")
  618. (description "HSColour is a small Haskell script to colourise Haskell
  619. code. It currently has six output formats: ANSI terminal codes (optionally
  620. XTerm-256colour codes), HTML 3.2 with font tags, HTML 4.01 with CSS, HTML 4.01
  621. with CSS and mouseover annotations, XHTML 1.0 with inline CSS styling, LaTeX,
  622. and mIRC chat codes.")
  623. (license license:bsd-3)))
  624. (define-public kmonad
  625. (package
  626. (name "kmonad")
  627. (version "0.4.1")
  628. (source
  629. (origin
  630. (method git-fetch)
  631. (uri (git-reference
  632. (url "https://github.com/david-janssen/kmonad")
  633. (commit version)))
  634. (file-name (git-file-name name version))
  635. (sha256
  636. (base32 "1rp880zxvrznx0y1k464wjrds441dpsz94syhrkaw5dnmxf74yjd"))))
  637. (build-system haskell-build-system)
  638. (arguments
  639. `(#:phases
  640. (modify-phases %standard-phases
  641. (delete 'haddock) ; Haddock fails to generate docs
  642. (add-after 'install 'install-udev-rules
  643. (lambda* (#:key outputs #:allow-other-keys)
  644. (let* ((out (assoc-ref outputs "out"))
  645. (rules (string-append out "/lib/udev/rules.d")))
  646. (mkdir-p rules)
  647. (call-with-output-file (string-append rules "/70-kmonad.rules")
  648. (lambda (port)
  649. (display
  650. (string-append
  651. "KERNEL==\"uinput\", MODE=\"0660\", "
  652. "GROUP=\"input\", OPTIONS+=\"static_node=uinput\"\n")
  653. port)))
  654. #t)))
  655. (add-after 'install-udev-rules 'install-documentation
  656. (lambda* (#:key outputs #:allow-other-keys)
  657. (let* ((out (assoc-ref outputs "out"))
  658. (doc (string-append out "/share/doc/kmonad-" ,version)))
  659. (install-file "README.md" doc)
  660. (copy-recursively "doc" doc)
  661. (copy-recursively "keymap" (string-append doc "/keymap"))
  662. #t))))))
  663. (inputs
  664. `(("ghc-cereal" ,ghc-cereal)
  665. ("ghc-exceptions" ,ghc-exceptions)
  666. ("ghc-hashable" ,ghc-hashable)
  667. ("ghc-lens" ,ghc-lens)
  668. ("ghc-megaparsec" ,ghc-megaparsec)
  669. ("ghc-optparse-applicative" ,ghc-optparse-applicative)
  670. ("ghc-resourcet" ,ghc-resourcet)
  671. ("ghc-rio" ,ghc-rio)
  672. ("ghc-unagi-chan" ,ghc-unagi-chan)
  673. ("ghc-unliftio" ,ghc-unliftio)
  674. ("ghc-unordered-containers" ,ghc-unordered-containers)))
  675. (home-page "https://github.com/david-janssen/kmonad")
  676. (synopsis "Advanced keyboard manager")
  677. (description "KMonad is a keyboard remapping utility that supports
  678. advanced functionality, such as custom keymap layers and modifiers, macros,
  679. and conditional mappings that send a different keycode when tapped or held.
  680. By operating at a lower level than most similar tools, it supports X11,
  681. Wayland, and Linux console environments alike.")
  682. (license license:expat)))
  683. (define-public nixfmt
  684. (package
  685. (name "nixfmt")
  686. (version "0.4.0")
  687. (source
  688. (origin
  689. (method url-fetch)
  690. (uri (string-append
  691. "https://hackage.haskell.org/package/nixfmt/nixfmt-"
  692. version
  693. ".tar.gz"))
  694. (sha256
  695. (base32 "1ispgl8rc2scr6v8bb6sks7px856jf61x74zj2iyddrn5qamkb3n"))))
  696. (build-system haskell-build-system)
  697. (inputs
  698. `(("ghc-megaparsec" ,ghc-megaparsec)
  699. ("ghc-parser-combinators" ,ghc-parser-combinators)
  700. ("ghc-cmdargs" ,ghc-cmdargs)
  701. ("ghc-safe-exceptions" ,ghc-safe-exceptions)))
  702. (arguments
  703. `(#:cabal-revision
  704. ("1" "1hsj0jh6siph3afd9c2wii09sffl48rzqv653n4clpd8qy0rn48d")))
  705. (home-page "https://github.com/serokell/nixfmt")
  706. (synopsis "Opinionated formatter for Nix")
  707. (description
  708. "Nixfmt is a formatter for Nix that ensures consistent and clear
  709. formatting by forgetting all existing formatting during parsing.")
  710. (license license:mpl2.0)))
  711. (define-public greenclip
  712. (package
  713. (name "greenclip")
  714. (version "3.4")
  715. (source
  716. (origin
  717. (method git-fetch)
  718. (uri (git-reference
  719. (url "https://github.com/erebe/greenclip")
  720. (commit version)))
  721. (file-name (git-file-name name version))
  722. (sha256
  723. (base32 "1baw360dcnyavacf7a8v6wq4m5g6bcmyybkckv4cz7r4xl5p3qws"))))
  724. (build-system haskell-build-system)
  725. (native-inputs
  726. `(("pkg-config" ,pkg-config)))
  727. (inputs
  728. `(("libx11" ,libx11)
  729. ("libxext" ,libxext)
  730. ("libxscrnsaver" ,libxscrnsaver)
  731. ("ghc-x11" ,ghc-x11)
  732. ("ghc-exceptions" ,ghc-exceptions)
  733. ("ghc-hashable" ,ghc-hashable)
  734. ("ghc-microlens" ,ghc-microlens)
  735. ("ghc-microlens-mtl" ,ghc-microlens-mtl)
  736. ("ghc-protolude" ,ghc-protolude-0.3)
  737. ("ghc-vector" ,ghc-vector)
  738. ("ghc-wordexp" ,ghc-wordexp)))
  739. (home-page "https://github.com/erebe/greenclip")
  740. (synopsis "Simple Clipboard manager")
  741. (description "@code{greenclip} is a clipboard manager written in
  742. Haskell.")
  743. (license license:bsd-3)))
  744. (define-public raincat
  745. (package
  746. (name "raincat")
  747. (version "1.2.1")
  748. (source
  749. (origin
  750. (method url-fetch)
  751. (uri (string-append "mirror://hackage/package/Raincat/"
  752. "Raincat-" version ".tar.gz"))
  753. (sha256
  754. (base32
  755. "10y9zi22m6hf13c9h8zd9vg7mljpwbw0r3djb6r80bna701fdf6c"))))
  756. (build-system haskell-build-system)
  757. (arguments
  758. `(#:phases
  759. (modify-phases %standard-phases
  760. (add-after 'install 'wrap-executable
  761. (lambda* (#:key inputs outputs #:allow-other-keys)
  762. (let ((out (assoc-ref outputs "out")))
  763. (wrap-program (string-append out "/bin/raincat")
  764. `("LD_LIBRARY_PATH" ":" =
  765. (,(string-append (assoc-ref inputs "freeglut")
  766. "/lib"))))
  767. #t))))))
  768. (inputs
  769. `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
  770. ("ghc-random" ,ghc-random)
  771. ("ghc-glut" ,ghc-glut)
  772. ("freeglut" ,freeglut)
  773. ("ghc-opengl" ,ghc-opengl)
  774. ("ghc-sdl2" ,ghc-sdl2)
  775. ("ghc-sdl2-image" ,ghc-sdl2-image)
  776. ("ghc-sdl2-mixer" ,ghc-sdl2-mixer)))
  777. (home-page "https://www.gamecreation.org/games/raincat")
  778. (synopsis "Puzzle game with a cat in lead role")
  779. (description "Project Raincat is a game developed by Carnegie Mellon
  780. students through GCS during the Fall 2008 semester. Raincat features game
  781. play inspired from classics Lemmings and The Incredible Machine. The project
  782. proved to be an excellent learning experience for the programmers. Everything
  783. is programmed in Haskell.")
  784. (license license:bsd-3)))
  785. (define-public scroll
  786. (package
  787. (name "scroll")
  788. (version "1.20180421")
  789. (source
  790. (origin
  791. (method url-fetch)
  792. (uri (string-append
  793. "https://hackage.haskell.org/package/scroll/scroll-"
  794. version ".tar.gz"))
  795. (sha256
  796. (base32
  797. "0apzrvf99rskj4dbmn57jjxrsf19j436s8a09m950df5aws3a0wj"))))
  798. (build-system haskell-build-system)
  799. (arguments
  800. '(#:phases
  801. (modify-phases %standard-phases
  802. (add-after 'install 'touch-static-output
  803. (lambda* (#:key outputs #:allow-other-keys)
  804. ;; The Haskell build system adds a "static" output by
  805. ;; default, and there is no way to override this until
  806. ;; <https://issues.guix.gnu.org/41569> is fixed. Without
  807. ;; this phase, the daemon complains because we do not
  808. ;; create the "static" output.
  809. (with-output-to-file (assoc-ref outputs "static")
  810. (lambda ()
  811. (display "static output not used\n")))
  812. #t)))))
  813. (inputs
  814. `(("ghc-case-insensitive" ,ghc-case-insensitive)
  815. ("ghc-data-default" ,ghc-data-default)
  816. ("ghc-ifelse" ,ghc-ifelse)
  817. ("ghc-monad-loops" ,ghc-monad-loops)
  818. ("ghc-ncurses" ,ghc-ncurses)
  819. ("ghc-optparse-applicative" ,ghc-optparse-applicative)
  820. ("ghc-random" ,ghc-random)
  821. ("ghc-vector" ,ghc-vector)))
  822. (home-page "https://joeyh.name/code/scroll/")
  823. (synopsis "scroll(6), a roguelike game")
  824. (description
  825. "You're a bookworm that's stuck on a scroll. You have to dodge between
  826. words and use spells to make your way down the page as the scroll is read. Go
  827. too slow and you'll get wound up in the scroll and crushed.")
  828. (license license:gpl2)))
  829. (define-public shellcheck
  830. (package
  831. (name "shellcheck")
  832. (version "0.7.1")
  833. (source
  834. (origin
  835. (method url-fetch)
  836. (uri (string-append
  837. "https://hackage.haskell.org/package/ShellCheck/ShellCheck-"
  838. version ".tar.gz"))
  839. (sha256
  840. (base32 "06m4wh891nah3y0br4wh3adpsb16zawkb2ijgf1vcz61fznj6ps1"))
  841. (file-name (string-append name "-" version ".tar.gz"))))
  842. (build-system haskell-build-system)
  843. (arguments
  844. '(#:phases
  845. (modify-phases %standard-phases
  846. (add-after 'build 'build-man-page
  847. (lambda _
  848. (invoke "./manpage")))
  849. (add-after 'install 'install-man-page
  850. (lambda* (#:key outputs #:allow-other-keys)
  851. (install-file "shellcheck.1"
  852. (string-append (assoc-ref outputs "out")
  853. "/share/man/man1/")))))))
  854. (native-inputs
  855. `(("pandoc" ,pandoc)))
  856. (inputs
  857. `(("ghc-aeson" ,ghc-aeson)
  858. ("ghc-diff" ,ghc-diff)
  859. ("ghc-quickcheck" ,ghc-quickcheck)
  860. ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
  861. (home-page "https://www.shellcheck.net/")
  862. (synopsis "Static analysis for shell scripts")
  863. (description "@code{shellcheck} provides static analysis for
  864. @command{bash} and @command{sh} shell scripts.
  865. It gives warnings and suggestions in order to:
  866. @enumerate
  867. @item Point out and clarify typical beginner's syntax issues that cause
  868. a shell to give cryptic error messages.
  869. @item Point out and clarify typical intermediate level semantic problems
  870. that cause a shell to behave strangely and counter-intuitively.
  871. @item Point out subtle caveats, corner cases and pitfalls that may cause an
  872. advanced user's otherwise working script to fail under future circumstances.
  873. @end enumerate")
  874. ;; CVE-2021-28794 is for a completely different, unofficial add-on.
  875. (properties `((lint-hidden-cve . ("CVE-2021-28794"))))
  876. (license license:gpl3+)))
  877. (define-public shelltestrunner
  878. (package
  879. (name "shelltestrunner")
  880. (version "1.9")
  881. (source (origin
  882. (method url-fetch)
  883. (uri (string-append "mirror://hackage/package/shelltestrunner-"
  884. version "/shelltestrunner-" version ".tar.gz"))
  885. (sha256
  886. (base32
  887. "1a5kzqbwg6990249ypw0cx6cqj6663as1kbj8nzblcky8j6kbi6b"))))
  888. (build-system haskell-build-system)
  889. (arguments
  890. '(#:phases
  891. (modify-phases %standard-phases
  892. (delete 'check)
  893. (add-after 'install 'check
  894. (lambda* (#:key outputs tests? parallel-tests? #:allow-other-keys)
  895. ;; This test is inspired by the Makefile in the upstream
  896. ;; repository, which is missing in the Hackage release tarball
  897. ;; along with some of the tests. The Makefile would not work
  898. ;; anyway as it ties into the 'stack' build tool.
  899. (let* ((out (assoc-ref outputs "out"))
  900. (shelltest (string-append out "/bin/shelltest"))
  901. (numjobs (if parallel-tests?
  902. (number->string (parallel-job-count))
  903. "1")))
  904. (if tests?
  905. (invoke shelltest (string-append "-j" numjobs)
  906. "tests/examples")
  907. (format #t "test suite not run~%"))
  908. #t))))))
  909. (inputs
  910. `(("ghc-diff" ,ghc-diff)
  911. ("ghc-cmdargs" ,ghc-cmdargs)
  912. ("ghc-filemanip" ,ghc-filemanip)
  913. ("ghc-hunit" ,ghc-hunit)
  914. ("ghc-pretty-show" ,ghc-pretty-show)
  915. ("ghc-regex-tdfa" ,ghc-regex-tdfa)
  916. ("ghc-safe" ,ghc-safe)
  917. ("ghc-utf8-string" ,ghc-utf8-string)
  918. ("ghc-test-framework" ,ghc-test-framework)
  919. ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
  920. (home-page "https://github.com/simonmichael/shelltestrunner")
  921. (synopsis "Test CLI programs")
  922. (description
  923. "shelltestrunner (executable: @command{shelltest}) is a command-line tool
  924. for testing command-line programs, or general shell commands. It reads simple
  925. test specifications defining a command to run, some input, and the expected
  926. output, stderr, and exit status.")
  927. (license license:gpl3+)))
  928. (define-public stylish-haskell
  929. (package
  930. (name "stylish-haskell")
  931. (version "0.9.2.2")
  932. (source
  933. (origin
  934. (method url-fetch)
  935. (uri
  936. (string-append
  937. "mirror://hackage/package/stylish-haskell/"
  938. "stylish-haskell-" version ".tar.gz"))
  939. (sha256
  940. (base32
  941. "1zs624xqp6j8vrl6pfv18dm8vz8hvz25grri65ximxhcizgwhnax"))))
  942. (build-system haskell-build-system)
  943. (inputs
  944. `(("ghc-aeson" ,ghc-aeson)
  945. ("ghc-file-embed" ,ghc-file-embed)
  946. ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
  947. ("ghc-semigroups" ,ghc-semigroups)
  948. ("ghc-syb" ,ghc-syb)
  949. ("ghc-yaml" ,ghc-yaml)
  950. ("ghc-strict" ,ghc-strict)
  951. ("ghc-optparse-applicative" ,ghc-optparse-applicative)
  952. ("ghc-hunit" ,ghc-hunit)
  953. ("ghc-test-framework" ,ghc-test-framework)
  954. ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
  955. (home-page "https://github.com/jaspervdj/stylish-haskell")
  956. (synopsis "Haskell code prettifier")
  957. (description "Stylish-haskell is a Haskell code prettifier. The goal is
  958. not to format all of the code in a file, to avoid \"getting in the way\".
  959. However, this tool can e.g. clean up import statements and help doing various
  960. tasks that get tedious very quickly. It can
  961. @itemize
  962. @item
  963. Align and sort @code{import} statements
  964. @item
  965. Group and wrap @code{{-# LANGUAGE #-}} pragmas, remove (some) redundant
  966. pragmas
  967. @item
  968. Remove trailing whitespaces
  969. @item
  970. Align branches in @code{case} and fields in records
  971. @item
  972. Convert line endings (customisable)
  973. @item
  974. Replace tabs by four spaces (turned off by default)
  975. @item
  976. Replace some ASCII sequences by their Unicode equivalent (turned off by
  977. default)
  978. @end itemize")
  979. (license license:bsd-3)))
  980. (define-public ghc-stylish-haskell
  981. (deprecated-package "ghc-stylish-haskell" stylish-haskell))