2module Stackage.Config where
4import Control.Monad (when, unless)
5import Control.Monad.Trans.Writer (Writer, execWriter, tell)
6import Data.Char (toLower)
7import qualified Data.Map as Map
8import Data.Maybe (fromMaybe)
9import Data.Set (fromList, singleton)
10import Distribution.Text (simpleParse)
13-- | Packages which are shipped with GHC but are not included in the
14-- Haskell Platform list of core packages.
15defaultExtraCore :: GhcMajorVersion -> Set PackageName
16defaultExtraCore _ = fromList $ map PackageName $ words
17 "binary Win32 ghc-prim integer-gmp"
19-- | Test suites which are expected to fail for some reason. The test suite
20-- will still be run and logs kept, but a failure will not indicate an
21-- error in our package combination.
22defaultExpectedFailures :: GhcMajorVersion
23 -> Bool -- ^ haskell platform
25defaultExpectedFailures ghcVer requireHP = execWriter $ do
26 -- Requires an old version of WAI and Warp for tests
29 -- text and setenv have recursive dependencies in their tests, which
30 -- cabal can't (yet) handle
34 -- The version of GLUT included with the HP does not generate
35 -- documentation correctly.
38 -- https://github.com/bos/statistics/issues/42
41 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
44 -- http://hackage.haskell.org/trac/hackage/ticket/954
47 -- https://github.com/fpco/stackage/issues/24
50 -- With transformers 0.3, it doesn't provide any modules
51 add "transformers-compat"
53 -- Tests require shell script and are incompatible with sandboxed package
57 -- https://github.com/simonmar/monad-par/issues/28
60 -- Unfortunately network failures seem to happen haphazardly
63 -- https://github.com/ekmett/hyphenation/issues/1
66 -- Test suite takes too long to run on some systems
69 -- http://hub.darcs.net/stepcut/happstack/issue/1
70 add "happstack-server"
72 -- Requires a Facebook app.
75 -- https://github.com/tibbe/hashable/issues/64
78 -- https://github.com/vincenthz/language-java/issues/10
84 add "language-ecmascript"
88 -- https://github.com/basvandijk/concurrent-extra/issues/
89 add "concurrent-extra"
91 -- https://github.com/skogsbaer/xmlgen/issues/2
94 -- Something very strange going on with the test suite, I can't figure
98 -- Requires a locally running PostgreSQL server with appropriate users
99 add "postgresql-simple"
104 -- Some kind of Cabal bug when trying to run tests
109 -- https://github.com/jgm/pandoc-citeproc/issues/5
110 add "pandoc-citeproc"
112 -- Problems with doctest and sandboxing
116 -- https://github.com/fpco/stackage/issues/163
120 -- https://github.com/bos/math-functions/issues/25
123 -- FIXME the test suite fails fairly regularly in builds, though I haven't
124 -- discovered why yet
127 -- Test suite is currently failing regularly, needs to be worked out still.
130 -- Requires too old a version of test-framework
133 -- No code included any more, therefore Haddock fails
134 mapM_ add $ words =<<
135 [ "comonad-transformers comonads-fd groupoids"
136 , "profunctor-extras semigroupoid-extras"
137 , "hamlet shakespeare-css shakespeare-i18n"
138 , "shakespeare-js shakespeare-text"
139 , "attoparsec-conduit blaze-builder-conduit http-client-conduit"
140 , "network-conduit zlib-conduit http-client-multipart"
141 , "wai-eventsource wai-test"
145 -- Cloud Haskell tests seem to be unreliable
146 mapM_ add $ words =<<
147 [ "distributed-process lockfree-queue network-transport-tcp"
150 -- Pulls in monad-peel which does not compile
151 when (ghcVer >= GhcMajorVersion 7 8) $ add "monad-control"
153 -- https://github.com/fpco/stackage/issues/226
156 -- https://github.com/gtk2hs/gtk2hs/issues/36
160 -- https://github.com/acw/bytestring-progress/issues/3
161 add "bytestring-progress"
163 -- Seems to require 32-bit functions
166 -- Depends on a missing graphviz executable
169 -- https://github.com/silkapp/json-schema/issues/8
170 when (ghcVer <= GhcMajorVersion 7 6) $
173 -- No AWS creds available
182 -- Requires too new a version of time
183 when (ghcVer < GhcMajorVersion 7 8) $ add "cookie"
185 -- https://github.com/fpco/stackage/issues/285
186 add "diagrams-haddock"
190 -- https://github.com/BioHaskell/octree/issues/4
193 -- No code until we upgrade to network 2.6
196 -- https://github.com/goldfirere/th-desugar/issues/12
199 -- https://github.com/haskell/c2hs/issues/108
202 -- https://github.com/jmillikin/haskell-filesystem/issues/3
203 add "system-filepath"
205 -- For some unknown reason, doctest has trouble on GHC 7.6. This only
206 -- happens during a Stackage test.
208 -- See: http://www.reddit.com/r/haskell/comments/2go92u/beginner_error_messages_in_c_vs_haskell/cklaspk
209 when (ghcVer == GhcMajorVersion 7 6) $ add "http-types"
211 -- Requires a running webdriver server
215 -- Weird conflicts with sandboxing
219 -- Requires locally running server
222 -- Requires PostgreSQL running
223 add "postgresql-binary"
227 -- https://github.com/gtk2hs/gtk2hs/issues/79
231 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
232 -- https://github.com/vincenthz/hs-asn1/issues/11
235 -- https://github.com/vincenthz/hs-tls/issues/84
240 add = tell . singleton . PackageName
242-- | List of packages for our stable Hackage. All dependencies will be
243-- included as well. Please indicate who will be maintaining the package
245defaultStablePackages :: GhcMajorVersion
246 -> Bool -- ^ using haskell platform?
247 -> Map PackageName (VersionRange, Maintainer)
248defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
249 when (ghcVer == GhcMajorVersion 7 8 && requireHP) haskellPlatform78
250 mapM_ (add "michael@snoyman.com") $ words =<<
251 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
252 , "markdown mime-mail-ses"
253 , "persistent persistent-template persistent-sqlite persistent-postgresql persistent-mysql"
254 , "network-conduit-tls yackage warp-tls keter"
255 , "process-conduit stm-conduit"
256 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
257 , "random-shuffle hebrew-time"
258 , "bzlib-conduit case-insensitive"
259 , "conduit-extra conduit-combinators yesod-websockets"
261 , "yesod-auth-deskcom monadcryptorandom sphinx"
265 -- https://github.com/fpco/stackage/issues/261
266 addRange "Michael Snoyman" "cabal-install" $
269 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
270 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
271 | otherwise -> "-any"
273 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
274 [ "web-fpco th-expand-syns configurator smtLib"
275 , "fixed-list indents language-c pretty-class"
276 , "csv-conduit cassava"
277 , "async shelly thyme"
278 , "hxt hxt-relaxng dimensional"
279 , "cairo diagrams-cairo gtk2hs-buildtools"
280 , "base16-bytestring convertible"
281 , "compdata hybrid-vectors"
282 , "executable-path formatting quandl-api"
283 , "fgl hmatrix hmatrix-gsl"
285 , "fpco-api aws persistent-mongoDB"
286 , "random-fu lhs2tex"
287 , "Chart Chart-diagrams histogram-fill random-source"
290 , "statistics-linreg"
291 -- https://github.com/Soostone/retry/issues/18
294 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
295 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
296 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
297 -- https://github.com/fpco/stackage/issues/295
298 --, "threepenny-gui unification-fd"
300 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
301 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
302 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
304 , "th-lift singletons th-desugar quickcheck-assertions"
307 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
309 mapM_ (add "Omari Norman <omari@smileystation.com>") $ words
310 "barecheck quickpull rainbow rainbow-tests"
312 mapM_ (add "Neil Mitchell") $ words
313 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis js-jquery js-flot extra bake ghcid"
315 mapM_ (add "Alan Zimmerman") $ words
316 "hjsmin language-javascript"
318 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
319 mapM_ (add "Alfredo Di Napoli <alfredo.dinapoli@gmail.com>") $ words
322 mapM_ (add "Jasper Van der Jeugt") $ words
323 "blaze-html blaze-markup stylish-haskell"
325 mapM_ (add "Antoine Latter") $ words
328 mapM_ (add "Philipp Middendorf <pmidden@secure.mailbox.org>") $ words
331 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
332 "HTF xmlgen stm-stats"
333 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
335 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
338 mapM_ (add "Vincent Hanquez") $ words =<<
339 [ "bytedump certificate cipher-aes cipher-rc4 connection"
340 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
341 , "cryptohash hit language-java libgit pem siphash socks tls"
342 , "tls-debug vhd language-java"
345 mapM_ (add "Chris Done") $ words =<<
346 [ "ace check-email freenect gd"
347 , "hostname-validate ini lucid osdkeys pdfinfo"
348 , "pure-io sourcemap frisby"
349 -- https://github.com/nominolo/atto-lisp/issues/15
353 -- Requires older haddock currently
354 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $
355 mapM_ (add "Chris Done") $ words =<<
359 -- https://github.com/jgoerzen/testpack/issues/10
360 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
361 mapM_ (add "Chris Done") $ words =<<
365 -- Requires too new a process for GHC 7.6
366 when (ghcVer >= GhcMajorVersion 7 8) $
367 mapM_ (add "Chris Done") $ words =<<
371 -- TODO: Add hindent and structured-haskell-mode once they've been ported to HSE 1.16.
373#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
374 -- Does not compile on Windows
375 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
378 when (ghcVer < GhcMajorVersion 7 8) $
379 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
380 "RefSerialize TCache Workflow MFlow"
382 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
383 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
384 , "comonads-fd compressed concurrent-supply constraints contravariant"
385 , "distributive either eq free groupoids heaps hyphenation"
386 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
387 , "mtl profunctors profunctor-extras reducers reflection"
388 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
389 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
390 , "numeric-extras parsers pointed prelude-extras reducers"
391 , "streams vector-instances"
393 when (ghcVer < GhcMajorVersion 7 8) $
394 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
395 [ "categories comonad-extras recursion-schemes syb-extras"
398 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
399 "scotty wai-middleware-static"
401 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
402 "hspec hspec-wai hspec-wai-json aeson-qq interpolate doctest base-compat"
404 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
405 "monad-parallel monad-coroutine incremental-parser monoid-subclasses"
407 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
408 [ "monoid-extras dual-tree vector-space-points active force-layout"
409 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
410 , "diagrams-postscript haxr"
413 , "diagrams-builder diagrams-haddock BlogLiterately-diagrams"
415 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
418 mapM_ (add "Patrick Brisbin") $ words "gravatar"
420 -- https://github.com/fpco/stackage/issues/299
421 -- mapM_ (add "Paul Harper <benekastah@gmail.com>") $ words "yesod-auth-oauth2"
423 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
424 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
426 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
427 "base-unicode-symbols containers-unicode-symbols"
429 if ghcVer >= GhcMajorVersion 7 8
430 then add "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate"
431 else addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.15"
433 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
434 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
435 , "tardis lens-family-th"
438 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
440 when (ghcVer >= GhcMajorVersion 7 8) $
441 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
444 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
445 ["pipes", "pipes-parse", "pipes-concurrency"]
447 when (ghcVer >= GhcMajorVersion 7 8) $
448 mapM_ (add "Chris Allen <cma@bitemyapp.com>")
451 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
452 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
454 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
455 mapM_ (add "Rodrigo Setti <rodrigosetti@gmail.com>") $ words
456 "messagepack messagepack-rpc"
458 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
459 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
461 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
464 mapM_ (add "Michal J. Gajda") $ words
465 "iterable Octree FenwickTree"
466 -- https://github.com/BioHaskell/hPDB/issues/2
467 when (ghcVer >= GhcMajorVersion 7 8) $ do
468 mapM_ (add "Michal J. Gajda") $ words
471 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
472 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
473 , "traverse-with-class regex-applicative time-lens"
474 , "haskell-names haskell-packages hse-cpp"
477 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
480 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
483#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
484 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
485 "hdaemonize hsyslog hweblib"
487 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
491 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
492 "circle-packing arbtt"
493 when (ghcVer >= GhcMajorVersion 7 8) $
494 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
497 when (ghcVer < GhcMajorVersion 7 8) $
498 mapM_ (add "John Wiegley") $ words =<<
499 [ "bindings-DSL github monad-extras numbers"
502 mapM_ (add "Aditya Bhargava <adit@adit.io") $ words
505 mapM_ (add "Clint Adams <clint@debian.org>") $ words
506 "hOpenPGP openpgp-asciiarmor MusicBrainz DAV hopenpgp-tools"
508 -- https://github.com/fpco/stackage/issues/160
509 mapM_ (add "Ketil Malde") $ words =<<
510 [ "biocore biofasta biofastq biosff"
511 , "blastxml bioace biophd"
512 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
513 , "seqloc bioalign BlastHTTP"
514 -- The following have out-of-date dependencies currently
515 -- biostockholm memexml RNAwolf
516 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
517 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
518 -- , "BiobaseTypes BiobaseFasta"
521 -- https://github.com/fpco/stackage/issues/163
522 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
524 mapM_ (add "Silk <code@silk.co>") $ words =<<
525 [ "arrow-list attoparsec-expr bumper code-builder fay-builder"
526 , "hxt-pickle-utils multipart regular-xmlpickler"
527 , "tostring uri-encode imagesize-conduit"
529 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $ do
530 mapM_ (add "Silk <code@silk.co>") $ words =<<
531 [ "aeson-utils generic-aeson json-schema"
532 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
533 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
536 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
539 mapM_ (add "Mihai Maruseac <mihai.maruseac@gmail.com>") $ words
542 mapM_ (add "Dimitri Sabadie <dimitri.sabadie@gmail.com") $ words
545 mapM_ (add "Thomas Schilling <nominolo@googlemail.com>") $ words
548 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
550 when (ghcVer >= GhcMajorVersion 7 8) $
551 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
552 "system-canonicalpath"
554 when (ghcVer >= GhcMajorVersion 7 8) $
555 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
557 when requireHP $ addRange "Yann Esposito <yann.esposito@gmail.com>" "holy-project" "< 0.1.1.1"
559 mapM_ (add "Paul Rouse <pgr@doynton.org>") $ words
562 add "Toralf Wittner <tw@dtex.org>" "zeromq4-haskell"
564 mapM_ (add "trupill@gmail.com") $ words
565 "djinn-lib djinn-ghc"
567 mapM_ (add "Arash Rouhani <miffoljud@gmail.com>") $ words
568 "yesod-text-markdown"
570 mapM_ (add "Matvey Aksenov <matvey.aksenov@gmail.com") $ words
573 mapM_ (add "Luis G. Torres <lgtorres42@gmail.com") $ words
575 {- https://github.com/fpco/stackage/pull/331
576 mapM_ (add "Jyotirmoy Bhattacharya <jyotirmoy@jyotirmoy.net") $ words
580 mapM_ (add "Emanuel Borsobom <manny@fpcomplete.com>") $ words
582 when (ghcVer >= GhcMajorVersion 7 8) $
583 mapM_ (add "Emanuel Borsobom <manny@fpcomplete.com>") $ words
586 mapM_ (add "Michael Sloan <mgsloan@gmail.com") $ words
587 "th-orphans th-reify-many"
589 when (ghcVer == GhcMajorVersion 7 8 && not requireHP) $
590 mapM_ (add "Michael Snoyman") $ words =<<
591 [ "repa repa-io repa-algorithms repa-devil JuicyPixels-repa"
594 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $ do
595 mapM_ (add "Nikita Volkov <nikita.y.volkov@mail.ru>") $
596 words "hasql hasql-postgres hasql-backend postgresql-binary" ++
597 words "stm-containers focus list-t slave-thread partial-handler" ++
598 words "neat-interpolation cases" ++
599 words "base-prelude mtl-prelude"
600 addRange "Nikita Volkov <nikita.y.volkov@mail.ru>" "mtl-prelude" "< 2"
602 mapM_ (add "Iustin Pop <iustin@k1024.org>") $ words
605 -- https://github.com/fpco/stackage/issues/217
606 addRange "Michael Snoyman" "transformers" "< 0.4"
607 addRange "Michael Snoyman" "mtl" "< 2.2"
608 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
610 -- https://github.com/fpco/stackage/issues/224
611 when (ghcVer <= GhcMajorVersion 7 6) $ do
612 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
613 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
614 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
615 addRange "Michael Snoyman" "attoparsec" "== 0.11.3.1"
616 addRange "Michael Snoyman" "parsers" "< 0.11"
617 addRange "Michael Snoyman" "scientific" "< 0.3"
618 addRange "Michael Snoyman" "aeson" "< 0.7.0.5"
619 addRange "Michael Snoyman" "aeson-utils" "< 0.2.2"
620 addRange "Michael Snoyman" "formatting" "< 5"
621 addRange "Michael Snoyman" "aws" "< 0.10"
622 addRange "Michael Snoyman" "network" "< 2.6"
623 addRange "Michael Snoyman" "network-uri" "< 2.6"
625 -- 0.16.2 fixes dependency issues with different version of GHC
626 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
627 -- guaranteed to break the API. See
628 -- https://travis-ci.org/jswebtools/language-ecmascript for
629 -- current build status.
630 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
632 -- https://github.com/fpco/stackage/issues/271
633 when (ghcVer < GhcMajorVersion 7 8) $
634 addRange "Michael Snoyman" "aeson" "< 0.8"
636 -- https://github.com/fpco/stackage/issues/279
637 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
639 -- https://github.com/fpco/stackage/issues/288
640 addRange "Michael Snoyman" "text" "< 1.2"
642 -- Force a specific version that's compatible with transformers 0.3
643 addRange "Michael Snoyman" "transformers-compat" "== 0.3.3.3"
645 -- https://github.com/fpco/stackage/issues/291
646 addRange "Michael Snoyman" "random" "< 1.0.1.3"
648 -- https://github.com/fpco/stackage/issues/314
649 addRange "Michael Snoyman" "hxt" "< 9.3.1.9"
651 -- https://github.com/fpco/stackage/issues/318
652 addRange "Michael Snoyman" "HaXml" "< 1.25"
654 -- https://github.com/fpco/stackage/issues/319
655 addRange "Michael Snoyman" "polyparse" "< 1.10"
657 -- https://github.com/fpco/stackage/issues/320
658 addRange "Michael Snoyman" "lens" "< 4.5"
660 -- https://github.com/fpco/stackage/issues/341
661 addRange "Michael Snoyman" "haskell-names" "< 0.5"
663 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
664 -- Yay workarounds for unnecessarily old versions
665 let peg x y = addRange "Haskell Platform" x y
666 peg "aeson" "== 0.7.0.4"
667 peg "scientific" "== 0.2.0.2"
668 peg "criterion" "<= 0.8.1.0"
669 peg "tasty-quickcheck" "< 0.8.0.3"
670 peg "formatting" "< 5.0"
671 peg "parsers" "< 0.11"
673 peg "contravariant" "< 1"
674 peg "adjunctions" "< 4.2"
675 peg "kan-extensions" "< 4.1"
676 peg "semigroupoids" "< 4.1"
678 peg "pandoc" "< 1.13"
679 peg "texmath" "<= 0.6.6.3"
680 peg "checkers" "== 0.3.2"
681 peg "HandsomeSoup" "< 0.3.3"
682 peg "network-uri" "< 2.6"
684add :: String -> String -> Writer PackageMap ()
685add maintainer package = addRange maintainer package "-any"
687addRange :: String -> String -> String -> Writer PackageMap ()
688addRange maintainer package range =
689 case simpleParse range of
690 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
691 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
693-- | Hard coded Haskell Platform versions
694haskellPlatform78 :: Writer PackageMap ()
695haskellPlatform78 = do
696 addRange "Haskell Platform" "ghc" "== 7.8.3"
697 addRange "Haskell Platform" "haddock" "== 2.14.3"
698 addRange "Haskell Platform" "array" "== 0.5.0.0"
699 addRange "Haskell Platform" "base" "== 4.7.0.1"
700 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
701 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
702 addRange "Haskell Platform" "containers" "== 0.5.5.1"
703 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
704 addRange "Haskell Platform" "directory" "== 1.2.1.0"
705 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
706 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
707 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
708 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
709 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
710 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
711 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
712 addRange "Haskell Platform" "process" "== 1.2.0.0"
713 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
714 addRange "Haskell Platform" "time" "== 1.4.2"
715 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
716 addRange "Haskell Platform" "unix" "== 2.7.0.1"
717 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
718 addRange "Haskell Platform" "async" "== 2.0.1.5"
719 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
720 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
721 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
722 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
723 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
724 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
725 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
726 addRange "Haskell Platform" "html" "== 1.0.1.2"
727 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
728 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
729 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
730 addRange "Haskell Platform" "network" "== 2.4.2.3"
731 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
732 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
733 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
734 addRange "Haskell Platform" "parsec" "== 3.1.5"
735 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
736 addRange "Haskell Platform" "QuickCheck" "== 2.6"
737 addRange "Haskell Platform" "random" "== 1.0.1.1"
738 addRange "Haskell Platform" "regex-base" "== 0.93.2"
739 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
740 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
741 addRange "Haskell Platform" "split" "== 0.2.2"
742 addRange "Haskell Platform" "stm" "== 2.4.2"
743 addRange "Haskell Platform" "syb" "== 0.4.1"
744 addRange "Haskell Platform" "text" "== 1.1.0.0"
745 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
746 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
747 addRange "Haskell Platform" "vector" "== 0.10.9.1"
748 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
749 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
750 addRange "Haskell Platform" "alex" "== 3.1.3"
751 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
752 addRange "Haskell Platform" "happy" "== 1.19.4"
753 addRange "Haskell Platform" "hscolour" "== 1.20.3"
755-- | Replacement Github users. This is useful when a project is owned by an
756-- organization. It also lets you ping multiple users.
758-- Note that cross organization team mentions aren't allowed by Github.
759convertGithubUser :: String -> [String]
761 fromMaybe [x] $ Map.lookup (map toLower x) pairs
764 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
765 , ("yesodweb", ["snoyberg"])
766 , ("fpco", ["snoyberg"])
767 , ("faylang", ["bergmark"])
768 , ("silkapp", ["bergmark", "hesselink"])
769 , ("snapframework",["mightybyte"])
770 , ("haskell-ro", ["mihaimaruseac"])
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list