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
24defaultExpectedFailures ghcVer = execWriter $ do
25 -- Requires an old version of WAI and Warp for tests
28 -- text and setenv have recursive dependencies in their tests, which
29 -- cabal can't (yet) handle
33 -- The version of GLUT included with the HP does not generate
34 -- documentation correctly.
37 -- https://github.com/bos/statistics/issues/42
40 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
43 -- http://hackage.haskell.org/trac/hackage/ticket/954
46 -- https://github.com/fpco/stackage/issues/24
49 -- With transformers 0.3, it doesn't provide any modules
50 add "transformers-compat"
52 -- Tests require shell script and are incompatible with sandboxed package
56 -- https://github.com/simonmar/monad-par/issues/28
59 -- Unfortunately network failures seem to happen haphazardly
62 -- https://github.com/ekmett/hyphenation/issues/1
65 -- Test suite takes too long to run on some systems
68 -- http://hub.darcs.net/stepcut/happstack/issue/1
69 add "happstack-server"
71 -- Requires a Facebook app.
74 -- https://github.com/tibbe/hashable/issues/64
77 -- https://github.com/vincenthz/language-java/issues/10
83 add "language-ecmascript"
87 -- https://github.com/basvandijk/concurrent-extra/issues/
88 add "concurrent-extra"
90 -- https://github.com/skogsbaer/xmlgen/issues/2
93 -- Something very strange going on with the test suite, I can't figure
97 -- Requires a locally running PostgreSQL server with appropriate users
98 add "postgresql-simple"
103 -- Some kind of Cabal bug when trying to run tests
108 -- https://github.com/jgm/pandoc-citeproc/issues/5
109 add "pandoc-citeproc"
111 -- Problems with doctest and sandboxing
115 -- https://github.com/fpco/stackage/issues/163
119 -- https://github.com/bos/math-functions/issues/25
122 -- FIXME the test suite fails fairly regularly in builds, though I haven't
123 -- discovered why yet
126 -- Test suite is currently failing regularly, needs to be worked out still.
129 -- Requires too old a version of test-framework
132 -- No code included any more, therefore Haddock fails
133 mapM_ add $ words =<<
134 [ "comonad-transformers comonads-fd groupoids"
135 , "profunctor-extras semigroupoid-extras"
136 , "hamlet shakespeare-css shakespeare-i18n"
137 , "shakespeare-js shakespeare-text"
138 , "attoparsec-conduit blaze-builder-conduit http-client-conduit"
139 , "network-conduit zlib-conduit http-client-multipart"
140 , "wai-eventsource wai-test"
143 -- Cloud Haskell tests seem to be unreliable
144 mapM_ add $ words =<<
145 [ "distributed-process lockfree-queue network-transport-tcp"
148 -- Pulls in monad-peel which does not compile
149 when (ghcVer >= GhcMajorVersion 7 8) $ add "monad-control"
151 -- issues with pthread
152 mapM_ add $ words "hlibgit2 gitlib-s3 gitlib-libgit2"
154 -- https://github.com/fpco/stackage/issues/226
157 -- https://github.com/gtk2hs/gtk2hs/issues/36
161 -- https://github.com/acw/bytestring-progress/issues/3
162 add "bytestring-progress"
164 -- Seems to require 32-bit functions
167 -- Depends on a missing graphviz executable
170 -- https://github.com/silkapp/json-schema/issues/8
171 when (ghcVer <= GhcMajorVersion 7 6) $
174 -- No AWS creds available
183 -- Requires too new a version of time
184 when (ghcVer < GhcMajorVersion 7 8) $ add "cookie"
186 -- https://github.com/fpco/stackage/issues/285
187 add "diagrams-haddock"
192 -- https://github.com/BioHaskell/octree/issues/4
195 -- No code until we upgrade to network 2.6
198 -- https://github.com/goldfirere/th-desugar/issues/12
201 add = tell . singleton . PackageName
203-- | List of packages for our stable Hackage. All dependencies will be
204-- included as well. Please indicate who will be maintaining the package
206defaultStablePackages :: GhcMajorVersion
207 -> Bool -- ^ using haskell platform?
208 -> Map PackageName (VersionRange, Maintainer)
209defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
210 when (ghcVer == GhcMajorVersion 7 8 && requireHP) haskellPlatform78
211 mapM_ (add "michael@snoyman.com") $ words =<<
212 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
213 , "markdown mime-mail-ses"
214 , "persistent persistent-template persistent-sqlite persistent-postgresql persistent-mysql"
215 , "network-conduit-tls yackage warp-tls keter"
216 , "process-conduit stm-conduit"
217 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
218 , "random-shuffle hebrew-time"
219 , "bzlib-conduit case-insensitive"
220 , "conduit-extra conduit-combinators yesod-websockets"
224 -- https://github.com/fpco/stackage/issues/261
225 addRange "Michael Snoyman" "cabal-install" $
228 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
229 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
230 | otherwise -> "-any"
232 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
233 [ "web-fpco th-expand-syns configurator smtLib"
234 , "fixed-list indents language-c pretty-class"
235 , "csv-conduit cassava"
236 , "async shelly thyme"
237 , "hxt hxt-relaxng dimensional"
238 , "cairo diagrams-cairo gtk2hs-buildtools"
239 , "base16-bytestring convertible"
240 , "compdata hybrid-vectors"
241 , "executable-path formatting quandl-api"
242 , "fgl hmatrix hmatrix-gsl"
246 -- aws persistent-mongoDB
247 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
248 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
249 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
250 , "threepenny-gui unification-fd"
252 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
253 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
254 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
256 , "th-lift singletons th-desugar quickcheck-assertions"
259 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
261 mapM_ (add "Neil Mitchell") $ words
262 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis"
264 mapM_ (add "Alan Zimmerman") $ words
265 "hjsmin language-javascript"
267 mapM_ (add "Jasper Van der Jeugt") $ words
268 "blaze-html blaze-markup stylish-haskell"
270 mapM_ (add "Antoine Latter") $ words
273 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
274 "HTF xmlgen stm-stats"
275 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
277 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
280 mapM_ (add "Vincent Hanquez") $ words =<<
281 [ "bytedump certificate cipher-aes cipher-rc4 connection"
282 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
283 , "cryptohash hit language-java libgit pem siphash socks tls"
284 , "tls-debug vhd language-java"
287 mapM_ (add "Chris Done") $ words
290#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
291 -- Does not compile on Windows
292 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
295 when (ghcVer < GhcMajorVersion 7 8) $
296 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
297 "RefSerialize TCache Workflow MFlow"
299 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
300 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
301 , "comonads-fd compressed concurrent-supply constraints contravariant"
302 , "distributive either eq free groupoids heaps hyphenation"
303 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
304 , "mtl profunctors profunctor-extras reducers reflection"
305 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
306 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
307 , "numeric-extras parsers pointed prelude-extras reducers"
308 , "streams vector-instances"
310 when (ghcVer < GhcMajorVersion 7 8) $
311 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
312 [ "categories comonad-extras recursion-schemes syb-extras"
315 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
316 "scotty wai-middleware-static"
318 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
319 "hspec doctest base-compat"
321 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
322 "monad-parallel monad-coroutine incremental-parser monoid-subclasses"
324 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
325 [ "monoid-extras dual-tree vector-space-points active force-layout"
326 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
327 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
328 , "BlogLiterately BlogLiterately-diagrams"
331 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
334 mapM_ (add "Patrick Brisbin") $ words "gravatar"
336 {- persistent 2.0/conduit 1.2
337 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
338 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
341 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
342 "base-unicode-symbols containers-unicode-symbols"
344 -- NOTE: accelerate not yet supported on GHC 7.8
345 when (ghcVer == GhcMajorVersion 7 6) $ do
346 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
349 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
350 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
351 , "tardis lens-family-th"
354 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
355 "HaTeX matrix binary-list"
357 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
358 ["pipes", "pipes-parse", "pipes-concurrency"]
360 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
361 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
363 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
364 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
366 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
369 mapM_ (add "Michal J. Gajda") $ words
370 "iterable Octree FenwickTree"
371 -- https://github.com/BioHaskell/hPDB/issues/2
372 when (ghcVer >= GhcMajorVersion 7 8) $ do
373 mapM_ (add "Michal J. Gajda") $ words
376 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
377 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
378 , "traverse-with-class regex-applicative time-lens"
379 , "haskell-names haskell-packages hse-cpp"
382 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
385 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
388#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
389 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
390 "hdaemonize hsyslog hweblib"
392 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
396 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
397 "circle-packing arbtt"
399 when (ghcVer < GhcMajorVersion 7 8) $
400 mapM_ (add "John Wiegley") $ words =<<
401 -- Removed these: bad semigroups upper bound
402 [ "bindings-DSL github monad-extras numbers hlibgit2"
403 , "gitlib gitlib-cmdline gitlib-test"
405 -- https://github.com/jwiegley/gitlib/issues/31
409 mapM_ (add "Ben Ford <ben@dlstartup.com") $ words
412 mapM_ (add "Clint Adams <clint@debian.org>") $ words
413 "hOpenPGP openpgp-asciiarmor MusicBrainz DAV hopenpgp-tools"
415 -- https://github.com/fpco/stackage/issues/160
416 mapM_ (add "Ketil Malde") $ words =<<
417 [ "biocore biofasta biofastq biosff"
418 , "blastxml bioace biophd"
419 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
420 , "seqloc bioalign BlastHTTP"
421 -- The following have out-of-date dependencies currently
422 -- biostockholm memexml RNAwolf
423 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
424 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
425 -- , "BiobaseTypes BiobaseFasta"
428 -- https://github.com/fpco/stackage/issues/163
429 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
431 mapM_ (add "Silk <code@silk.co>") $ words =<<
432 [ "arrow-list attoparsec-expr bumper code-builder fay-builder"
433 , "hxt-pickle-utils multipart regular-xmlpickler"
434 , "tostring uri-encode imagesize-conduit"
436 unless (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
437 mapM_ (add "Silk <code@silk.co>") $ words =<<
438 [ "aeson-utils generic-aeson json-schema"
439 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
440 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
443 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
446 mapM_ (add "Mihai Maruseac <mihai.maruseac@gmail.com>") $ words
449 when (ghcVer >= GhcMajorVersion 7 8) $
450 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
453 -- https://github.com/fpco/stackage/issues/216
454 -- QuickCheck constraint
455 -- when (ghcVer == GhcMajorVersion 7 6) $
456 -- addRange "Michael Snoyman" "repa" "< 3.2.5.1"
458 -- https://github.com/fpco/stackage/issues/217
459 addRange "Michael Snoyman" "transformers" "< 0.4"
460 addRange "Michael Snoyman" "mtl" "< 2.2"
461 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
463 -- https://github.com/fpco/stackage/issues/224
464 when (ghcVer <= GhcMajorVersion 7 6) $ do
465 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
466 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
467 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
469 -- 0.16.2 fixes dependency issues with different version of GHC
470 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
471 -- guaranteed to break the API. See
472 -- https://travis-ci.org/jswebtools/language-ecmascript for
473 -- current build status.
474 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
476 -- https://github.com/fpco/stackage/issues/271
477 when (ghcVer < GhcMajorVersion 7 8) $
478 addRange "Michael Snoyman" "aeson" "< 0.8"
480 -- https://github.com/fpco/stackage/issues/274
481 addRange "Michael Snoyman" "pandoc-citeproc" "< 0.4"
483 -- https://github.com/fpco/stackage/issues/276
484 addRange "Michael Snoyman" "network" "< 2.6"
485 addRange "Michael Snoyman" "network-uri" "< 2.6"
487 -- https://github.com/fpco/stackage/issues/279
488 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
490 -- https://github.com/fpco/stackage/issues/288
491 addRange "Michael Snoyman" "text" "< 1.2"
493 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
494 -- Yay workarounds for unnecessarily old versions
495 let peg x y = addRange "Haskell Platform" x y
496 peg "aeson" "== 0.7.0.4"
497 peg "scientific" "== 0.2.0.2"
498 peg "criterion" "<= 0.8.1.0"
499 peg "tasty-quickcheck" "< 0.8.0.3"
500 peg "formatting" "< 5.0"
501 peg "parsers" "< 0.11"
503 peg "contravariant" "< 1"
504 peg "adjunctions" "< 4.2"
505 peg "kan-extensions" "< 4.1"
506 peg "semigroupoids" "< 4.1"
508 peg "pandoc" "< 1.13"
509 peg "texmath" "<= 0.6.6.3"
511add :: String -> String -> Writer PackageMap ()
512add maintainer package = addRange maintainer package "-any"
514addRange :: String -> String -> String -> Writer PackageMap ()
515addRange maintainer package range =
516 case simpleParse range of
517 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
518 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
520-- | Hard coded Haskell Platform versions
521haskellPlatform78 :: Writer PackageMap ()
522haskellPlatform78 = do
523 addRange "Haskell Platform" "ghc" "== 7.8.3"
524 addRange "Haskell Platform" "haddock" "== 2.14.3"
525 addRange "Haskell Platform" "array" "== 0.5.0.0"
526 addRange "Haskell Platform" "base" "== 4.7.0.1"
527 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
528 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
529 addRange "Haskell Platform" "containers" "== 0.5.5.1"
530 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
531 addRange "Haskell Platform" "directory" "== 1.2.1.0"
532 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
533 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
534 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
535 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
536 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
537 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
538 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
539 addRange "Haskell Platform" "process" "== 1.2.0.0"
540 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
541 addRange "Haskell Platform" "time" "== 1.4.2"
542 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
543 addRange "Haskell Platform" "unix" "== 2.7.0.1"
544 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
545 addRange "Haskell Platform" "async" "== 2.0.1.5"
546 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
547 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
548 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
549 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
550 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
551 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
552 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
553 addRange "Haskell Platform" "html" "== 1.0.1.2"
554 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
555 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
556 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
557 addRange "Haskell Platform" "network" "== 2.4.2.3"
558 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
559 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
560 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
561 addRange "Haskell Platform" "parsec" "== 3.1.5"
562 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
563 addRange "Haskell Platform" "QuickCheck" "== 2.6"
564 addRange "Haskell Platform" "random" "== 1.0.1.1"
565 addRange "Haskell Platform" "regex-base" "== 0.93.2"
566 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
567 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
568 addRange "Haskell Platform" "split" "== 0.2.2"
569 addRange "Haskell Platform" "stm" "== 2.4.2"
570 addRange "Haskell Platform" "syb" "== 0.4.1"
571 addRange "Haskell Platform" "text" "== 1.1.0.0"
572 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
573 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
574 addRange "Haskell Platform" "vector" "== 0.10.9.1"
575 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
576 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
577 addRange "Haskell Platform" "alex" "== 3.1.3"
578 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
579 addRange "Haskell Platform" "happy" "== 1.19.4"
580 addRange "Haskell Platform" "hscolour" "== 1.20.3"
582-- | Replacement Github users. This is useful when a project is owned by an
583-- organization. It also lets you ping multiple users.
585-- Note that cross organization team mentions aren't allowed by Github.
586convertGithubUser :: String -> [String]
588 fromMaybe [x] $ Map.lookup (map toLower x) pairs
591 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
592 , ("yesodweb", ["snoyberg"])
593 , ("fpco", ["snoyberg"])
594 , ("faylang", ["bergmark"])
595 , ("silkapp", ["bergmark", "hesselink"])
596 , ("snapframework",["mightybyte"])
597 , ("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