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 -- Requires SAT solver and old QuickCheck
234 -- https://github.com/ekmett/gl/issues/3
243 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
244 -- https://github.com/vincenthz/hs-asn1/issues/11
247 -- https://github.com/vincenthz/hs-tls/issues/84
252 add = tell . singleton . PackageName
254-- | List of packages for our stable Hackage. All dependencies will be
255-- included as well. Please indicate who will be maintaining the package
257defaultStablePackages :: GhcMajorVersion
258 -> Bool -- ^ using haskell platform?
259 -> Map PackageName (VersionRange, Maintainer)
260defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
261 when (ghcVer == GhcMajorVersion 7 8 && requireHP) haskellPlatform78
262 mapM_ (add "michael@snoyman.com") $ words =<<
263 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
264 , "markdown mime-mail-ses"
265 , "persistent persistent-template persistent-sqlite persistent-postgresql persistent-mysql"
266 , "network-conduit-tls yackage warp-tls keter"
267 , "process-conduit stm-conduit"
268 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
269 , "random-shuffle hebrew-time"
270 , "bzlib-conduit case-insensitive"
271 , "conduit-extra conduit-combinators yesod-websockets"
273 , "yesod-auth-deskcom monadcryptorandom sphinx"
277 -- https://github.com/fpco/stackage/issues/261
278 addRange "Michael Snoyman" "cabal-install" $
281 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
282 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
283 | otherwise -> "-any"
285 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
286 [ "web-fpco th-expand-syns configurator smtLib"
287 , "fixed-list indents language-c pretty-class"
288 , "csv-conduit cassava"
289 , "async shelly thyme"
290 , "hxt hxt-relaxng dimensional"
291 , "cairo diagrams-cairo gtk2hs-buildtools"
292 , "base16-bytestring convertible"
293 , "compdata hybrid-vectors"
294 , "executable-path formatting quandl-api"
295 , "fgl hmatrix hmatrix-gsl"
297 , "fpco-api aws persistent-mongoDB"
298 , "random-fu lhs2tex"
299 , "Chart Chart-diagrams histogram-fill random-source"
302 , "statistics-linreg"
303 -- https://github.com/Soostone/retry/issues/18
306 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
307 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
308 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
309 -- https://github.com/fpco/stackage/issues/295
310 --, "threepenny-gui unification-fd"
312 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
313 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
314 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
316 , "th-lift singletons th-desugar quickcheck-assertions"
319 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
321 mapM_ (add "Omari Norman <omari@smileystation.com>") $ words
322 "barecheck rainbow rainbow-tests"
323 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
324 mapM_ (add "Omari Norman <omari@smileystation.com>") $ words
327 mapM_ (add "Neil Mitchell") $ words
328 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis js-jquery js-flot extra bake ghcid"
330 mapM_ (add "Alan Zimmerman") $ words
331 "hjsmin language-javascript"
335 https://github.com/fpco/stackage/issues/320
337 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
338 mapM_ (add "Alfredo Di Napoli <alfredo.dinapoli@gmail.com>") $ words
342 mapM_ (add "Jasper Van der Jeugt") $ words
343 "blaze-html blaze-markup stylish-haskell"
345 mapM_ (add "Antoine Latter") $ words
348 mapM_ (add "Philipp Middendorf <pmidden@secure.mailbox.org>") $ words
351 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
352 "HTF xmlgen stm-stats"
353 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
355 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
358 mapM_ (add "Vincent Hanquez") $ words =<<
359 [ "bytedump certificate cipher-aes cipher-rc4 connection"
360 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
361 , "cryptohash hit language-java libgit pem siphash socks tls"
362 , "tls-debug vhd language-java"
365 mapM_ (add "Chris Done") $ words =<<
366 [ "ace check-email freenect gd"
367 , "hostname-validate ini lucid osdkeys pdfinfo"
368 , "pure-io sourcemap frisby"
369 -- https://github.com/nominolo/atto-lisp/issues/15
373 -- Requires older haddock currently
374 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $
375 mapM_ (add "Chris Done") $ words =<<
379 -- https://github.com/jgoerzen/testpack/issues/10
380 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
381 mapM_ (add "Chris Done") $ words =<<
385 -- Requires too new a process for GHC 7.6
386 when (ghcVer >= GhcMajorVersion 7 8) $
387 mapM_ (add "Chris Done") $ words =<<
391 -- TODO: Add hindent and structured-haskell-mode once they've been ported to HSE 1.16.
393#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
394 -- Does not compile on Windows
395 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
398 when (ghcVer < GhcMajorVersion 7 8) $
399 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
400 "RefSerialize TCache Workflow MFlow"
402 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
403 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
404 , "comonads-fd compressed concurrent-supply constraints contravariant"
405 , "distributive either eq free groupoids heaps hyphenation"
406 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
407 , "mtl profunctors profunctor-extras reducers reflection"
408 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
409 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
410 , "numeric-extras parsers pointed prelude-extras reducers"
411 , "streams vector-instances"
412 , "approximate bits bytes compensated exceptions fixed gl"
413 , "half linear-accelerate log-domain"
414 , "monad-products monad-st nats"
418 when (ghcVer < GhcMajorVersion 7 8) $
419 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
420 [ "categories comonad-extras recursion-schemes syb-extras"
422 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
423 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
424 [ "lens-aeson quickpull zlib-lens"
426 -- Temporary upper bound for some of the above packages
427 addRange "Edward Kmett <ekmett@gmail.com>" "generic-deriving" "< 1.7"
429 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
430 "scotty wai-middleware-static"
432 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
433 "hspec hspec-wai hspec-wai-json aeson-qq interpolate doctest base-compat"
435 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
436 "monad-parallel monad-coroutine incremental-parser monoid-subclasses"
438 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
439 [ "monoid-extras dual-tree vector-space-points active force-layout"
440 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
441 , "diagrams-postscript haxr"
444 , "diagrams-builder diagrams-haddock BlogLiterately-diagrams"
446 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
449 mapM_ (add "Patrick Brisbin") $ words "gravatar"
451 -- https://github.com/fpco/stackage/issues/299
452 -- mapM_ (add "Paul Harper <benekastah@gmail.com>") $ words "yesod-auth-oauth2"
454 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
455 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
457 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
458 "base-unicode-symbols containers-unicode-symbols"
460 if ghcVer >= GhcMajorVersion 7 8
461 then add "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate"
463 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.15"
464 addRange "Michael Snoyman" "linear-accelerate" "< 0.2"
466 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
467 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
468 , "tardis lens-family-th"
471 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
473 when (ghcVer >= GhcMajorVersion 7 8) $
474 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
477 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
478 ["pipes", "pipes-parse", "pipes-concurrency"]
480 when (ghcVer >= GhcMajorVersion 7 8) $
481 mapM_ (add "Chris Allen <cma@bitemyapp.com>")
484 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
485 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
487 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
488 mapM_ (add "Rodrigo Setti <rodrigosetti@gmail.com>") $ words
489 "messagepack messagepack-rpc"
491 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
492 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
494 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
497 mapM_ (add "Michal J. Gajda") $ words
498 "iterable Octree FenwickTree"
499 -- https://github.com/BioHaskell/hPDB/issues/2
500 when (ghcVer >= GhcMajorVersion 7 8) $ do
501 mapM_ (add "Michal J. Gajda") $ words
504 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
505 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
506 , "traverse-with-class regex-applicative time-lens"
507 , "haskell-names haskell-packages hse-cpp"
508 , "action-permutations amqp curl generics-sop heredoc immortal timezone-olson timezone-series"
511 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
514 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
517#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
518 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
519 "hdaemonize hsyslog hweblib"
521 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
525 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
526 "circle-packing arbtt"
527 when (ghcVer >= GhcMajorVersion 7 8) $
528 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
531 when (ghcVer < GhcMajorVersion 7 8) $
532 mapM_ (add "John Wiegley") $ words =<<
533 [ "bindings-DSL github monad-extras numbers"
536 mapM_ (add "Aditya Bhargava <adit@adit.io") $ words
539 mapM_ (add "Clint Adams <clint@debian.org>") $ words
540 "hOpenPGP openpgp-asciiarmor MusicBrainz DAV hopenpgp-tools"
542 -- https://github.com/fpco/stackage/issues/160
543 mapM_ (add "Ketil Malde") $ words =<<
544 [ "biocore biofasta biofastq biosff"
545 , "blastxml bioace biophd"
546 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
547 , "seqloc bioalign BlastHTTP"
548 -- The following have out-of-date dependencies currently
549 -- biostockholm memexml RNAwolf
550 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
551 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
552 -- , "BiobaseTypes BiobaseFasta"
555 -- https://github.com/fpco/stackage/issues/163
556 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
558 mapM_ (add "Silk <code@silk.co>") $ words =<<
559 [ "arrow-list attoparsec-expr bumper code-builder fay-builder"
560 , "hxt-pickle-utils multipart regular-xmlpickler"
561 , "tostring uri-encode imagesize-conduit"
563 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $ do
564 mapM_ (add "Silk <code@silk.co>") $ words =<<
565 [ "aeson-utils generic-aeson json-schema"
566 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
567 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
570 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
573 mapM_ (add "Mihai Maruseac <mihai.maruseac@gmail.com>") $ words
576 mapM_ (add "Dimitri Sabadie <dimitri.sabadie@gmail.com") $ words
579 mapM_ (add "Thomas Schilling <nominolo@googlemail.com>") $ words
582 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
584 when (ghcVer >= GhcMajorVersion 7 8) $
585 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
586 "system-canonicalpath"
588 when (ghcVer >= GhcMajorVersion 7 8) $
589 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
591 when requireHP $ addRange "Yann Esposito <yann.esposito@gmail.com>" "holy-project" "< 0.1.1.1"
593 mapM_ (add "Paul Rouse <pgr@doynton.org>") $ words
596 add "Toralf Wittner <tw@dtex.org>" "zeromq4-haskell"
598 mapM_ (add "trupill@gmail.com") $ words
599 "djinn-lib djinn-ghc"
601 mapM_ (add "Arash Rouhani <miffoljud@gmail.com>") $ words
602 "yesod-text-markdown"
604 mapM_ (add "Matvey Aksenov <matvey.aksenov@gmail.com") $ words
607 mapM_ (add "Luis G. Torres <lgtorres42@gmail.com") $ words
609 {- https://github.com/fpco/stackage/pull/331
610 mapM_ (add "Jyotirmoy Bhattacharya <jyotirmoy@jyotirmoy.net") $ words
614 mapM_ (add "Emanuel Borsobom <manny@fpcomplete.com>") $ words
616 when (ghcVer >= GhcMajorVersion 7 8) $
617 mapM_ (add "Emanuel Borsobom <manny@fpcomplete.com>") $ words
620 mapM_ (add "Michael Sloan <mgsloan@gmail.com") $ words
621 "th-orphans th-reify-many"
623 when (ghcVer == GhcMajorVersion 7 8 && not requireHP) $
624 mapM_ (add "Michael Snoyman") $ words =<<
625 [ "repa repa-io repa-algorithms repa-devil JuicyPixels-repa"
628 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $ do
629 mapM_ (add "Nikita Volkov <nikita.y.volkov@mail.ru>") $
630 words "hasql hasql-postgres hasql-backend postgresql-binary" ++
631 words "stm-containers focus list-t slave-thread partial-handler" ++
632 words "neat-interpolation cases" ++
633 words "base-prelude mtl-prelude"
634 addRange "Nikita Volkov <nikita.y.volkov@mail.ru>" "mtl-prelude" "< 2"
636 mapM_ (add "Iustin Pop <iustin@k1024.org>") $ words
639 -- https://github.com/fpco/stackage/issues/217
640 addRange "Michael Snoyman" "transformers" "< 0.4"
641 addRange "Michael Snoyman" "mtl" "< 2.2"
642 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
644 -- https://github.com/fpco/stackage/issues/224
645 when (ghcVer <= GhcMajorVersion 7 6) $ do
646 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
647 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
648 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
649 addRange "Michael Snoyman" "attoparsec" "== 0.11.3.1"
650 addRange "Michael Snoyman" "parsers" "< 0.11"
651 addRange "Michael Snoyman" "scientific" "< 0.3"
652 addRange "Michael Snoyman" "aeson" "< 0.7.0.5"
653 addRange "Michael Snoyman" "aeson-utils" "< 0.2.2"
654 addRange "Michael Snoyman" "formatting" "< 5"
655 addRange "Michael Snoyman" "aws" "< 0.10"
656 addRange "Michael Snoyman" "network" "< 2.6"
657 addRange "Michael Snoyman" "network-uri" "< 2.6"
659 -- 0.16.2 fixes dependency issues with different version of GHC
660 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
661 -- guaranteed to break the API. See
662 -- https://travis-ci.org/jswebtools/language-ecmascript for
663 -- current build status.
664 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
666 -- https://github.com/fpco/stackage/issues/271
667 when (ghcVer < GhcMajorVersion 7 8) $
668 addRange "Michael Snoyman" "aeson" "< 0.8"
670 -- https://github.com/fpco/stackage/issues/279
671 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
673 -- https://github.com/fpco/stackage/issues/288
674 addRange "Michael Snoyman" "text" "< 1.2"
676 -- Force a specific version that's compatible with transformers 0.3
677 addRange "Michael Snoyman" "transformers-compat" "== 0.3.3.3"
679 -- https://github.com/fpco/stackage/issues/291
680 addRange "Michael Snoyman" "random" "< 1.0.1.3"
682 -- https://github.com/fpco/stackage/issues/314
683 addRange "Michael Snoyman" "hxt" "< 9.3.1.9"
685 -- https://github.com/fpco/stackage/issues/318
686 addRange "Michael Snoyman" "HaXml" "< 1.25"
688 -- https://github.com/fpco/stackage/issues/319
689 addRange "Michael Snoyman" "polyparse" "< 1.10"
691 -- https://github.com/fpco/stackage/issues/341
692 addRange "Michael Snoyman" "haskell-names" "< 0.5"
694 -- https://github.com/fpco/stackage/issues/350
695 addRange "Michael Snoyman" "semigroups" "< 0.16"
696 addRange "Michael Snoyman" "nats" "< 1"
697 addRange "Michael Snoyman" "void" "< 0.7"
699 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
700 -- Yay workarounds for unnecessarily old versions
701 let peg x y = addRange "Haskell Platform" x y
702 peg "aeson" "== 0.7.0.4"
703 peg "scientific" "== 0.2.0.2"
704 peg "criterion" "<= 0.8.1.0"
705 peg "tasty-quickcheck" "< 0.8.0.3"
706 peg "formatting" "< 5.0"
707 peg "parsers" "< 0.11"
709 peg "contravariant" "< 1"
710 peg "adjunctions" "< 4.2"
711 peg "kan-extensions" "< 4.1"
712 peg "semigroupoids" "< 4.1"
714 peg "pandoc" "< 1.13"
715 peg "texmath" "<= 0.6.6.3"
716 peg "checkers" "== 0.3.2"
717 peg "HandsomeSoup" "< 0.3.3"
718 peg "network-uri" "< 2.6"
720add :: String -> String -> Writer PackageMap ()
721add maintainer package = addRange maintainer package "-any"
723addRange :: String -> String -> String -> Writer PackageMap ()
724addRange maintainer package range =
725 case simpleParse range of
726 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
727 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
729-- | Hard coded Haskell Platform versions
730haskellPlatform78 :: Writer PackageMap ()
731haskellPlatform78 = do
732 addRange "Haskell Platform" "ghc" "== 7.8.3"
733 addRange "Haskell Platform" "haddock" "== 2.14.3"
734 addRange "Haskell Platform" "array" "== 0.5.0.0"
735 addRange "Haskell Platform" "base" "== 4.7.0.1"
736 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
737 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
738 addRange "Haskell Platform" "containers" "== 0.5.5.1"
739 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
740 addRange "Haskell Platform" "directory" "== 1.2.1.0"
741 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
742 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
743 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
744 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
745 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
746 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
747 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
748 addRange "Haskell Platform" "process" "== 1.2.0.0"
749 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
750 addRange "Haskell Platform" "time" "== 1.4.2"
751 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
752 addRange "Haskell Platform" "unix" "== 2.7.0.1"
753 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
754 addRange "Haskell Platform" "async" "== 2.0.1.5"
755 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
756 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
757 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
758 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
759 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
760 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
761 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
762 addRange "Haskell Platform" "html" "== 1.0.1.2"
763 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
764 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
765 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
766 addRange "Haskell Platform" "network" "== 2.4.2.3"
767 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
768 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
769 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
770 addRange "Haskell Platform" "parsec" "== 3.1.5"
771 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
772 addRange "Haskell Platform" "QuickCheck" "== 2.6"
773 addRange "Haskell Platform" "random" "== 1.0.1.1"
774 addRange "Haskell Platform" "regex-base" "== 0.93.2"
775 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
776 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
777 addRange "Haskell Platform" "split" "== 0.2.2"
778 addRange "Haskell Platform" "stm" "== 2.4.2"
779 addRange "Haskell Platform" "syb" "== 0.4.1"
780 addRange "Haskell Platform" "text" "== 1.1.0.0"
781 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
782 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
783 addRange "Haskell Platform" "vector" "== 0.10.9.1"
784 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
785 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
786 addRange "Haskell Platform" "alex" "== 3.1.3"
787 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
788 addRange "Haskell Platform" "happy" "== 1.19.4"
789 addRange "Haskell Platform" "hscolour" "== 1.20.3"
791-- | Replacement Github users. This is useful when a project is owned by an
792-- organization. It also lets you ping multiple users.
794-- Note that cross organization team mentions aren't allowed by Github.
795convertGithubUser :: String -> [String]
797 fromMaybe [x] $ Map.lookup (map toLower x) pairs
800 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
801 , ("yesodweb", ["snoyberg"])
802 , ("fpco", ["snoyberg"])
803 , ("faylang", ["bergmark"])
804 , ("silkapp", ["bergmark", "hesselink"])
805 , ("snapframework",["mightybyte"])
806 , ("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