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"
245 -- aws fpco-api persistent-mongoDB
246 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
247 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
248 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
249 , "threepenny-gui unification-fd"
251 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
252 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
253 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
255 , "th-lift singletons th-desugar quickcheck-assertions"
258 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
260 mapM_ (add "Neil Mitchell") $ words
261 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis"
263 mapM_ (add "Alan Zimmerman") $ words
264 "hjsmin language-javascript"
266 mapM_ (add "Jasper Van der Jeugt") $ words
267 "blaze-html blaze-markup stylish-haskell"
269 mapM_ (add "Antoine Latter") $ words
272 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
273 "HTF xmlgen stm-stats"
274 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
276 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
279 mapM_ (add "Vincent Hanquez") $ words =<<
280 [ "bytedump certificate cipher-aes cipher-rc4 connection"
281 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
282 , "cryptohash hit language-java libgit pem siphash socks tls"
283 , "tls-debug vhd language-java"
286 mapM_ (add "Chris Done") $ words
289#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
290 -- Does not compile on Windows
291 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
294 when (ghcVer < GhcMajorVersion 7 8) $
295 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
296 "RefSerialize TCache Workflow MFlow"
298 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
299 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
300 , "comonads-fd compressed concurrent-supply constraints contravariant"
301 , "distributive either eq free groupoids heaps hyphenation"
302 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
303 , "mtl profunctors profunctor-extras reducers reflection"
304 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
305 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
306 , "numeric-extras parsers pointed prelude-extras reducers"
307 , "streams vector-instances"
309 when (ghcVer < GhcMajorVersion 7 8) $
310 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
311 [ "categories comonad-extras recursion-schemes syb-extras"
314 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
315 "scotty wai-middleware-static"
317 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
318 "hspec doctest base-compat"
320 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
321 "monad-parallel monad-coroutine incremental-parser monoid-subclasses"
323 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
324 [ "monoid-extras dual-tree vector-space-points active force-layout"
325 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
326 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
327 , "BlogLiterately BlogLiterately-diagrams"
330 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
333 mapM_ (add "Patrick Brisbin") $ words "gravatar"
335 {- persistent 2.0/conduit 1.2
336 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
337 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
340 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
341 "base-unicode-symbols containers-unicode-symbols"
343 -- NOTE: accelerate not yet supported on GHC 7.8
344 when (ghcVer == GhcMajorVersion 7 6) $ do
345 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
348 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
349 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
350 , "tardis lens-family-th"
353 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
354 "HaTeX matrix binary-list"
356 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
357 ["pipes", "pipes-parse", "pipes-concurrency"]
359 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
360 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
362 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
363 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
365 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
368 mapM_ (add "Michal J. Gajda") $ words
369 "iterable Octree FenwickTree"
370 -- https://github.com/BioHaskell/hPDB/issues/2
371 when (ghcVer >= GhcMajorVersion 7 8) $ do
372 mapM_ (add "Michal J. Gajda") $ words
375 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
376 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
377 , "traverse-with-class regex-applicative time-lens"
378 , "haskell-names haskell-packages hse-cpp"
381 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
384 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
387#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
388 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
389 "hdaemonize hsyslog hweblib"
391 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
395 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
396 "circle-packing arbtt"
398 when (ghcVer < GhcMajorVersion 7 8) $
399 mapM_ (add "John Wiegley") $ words =<<
400 -- Removed these: bad semigroups upper bound
401 [ "bindings-DSL github monad-extras numbers hlibgit2"
402 , "gitlib gitlib-cmdline gitlib-test"
404 -- https://github.com/jwiegley/gitlib/issues/31
408 mapM_ (add "Ben Ford <ben@dlstartup.com") $ words
411 mapM_ (add "Clint Adams <clint@debian.org>") $ words
412 "hOpenPGP openpgp-asciiarmor MusicBrainz"
413 -- 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
450 when (ghcVer >= GhcMajorVersion 7 8) $
451 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
455 -- https://github.com/fpco/stackage/issues/216
456 -- QuickCheck constraint
457 -- when (ghcVer == GhcMajorVersion 7 6) $
458 -- addRange "Michael Snoyman" "repa" "< 3.2.5.1"
460 -- https://github.com/fpco/stackage/issues/217
461 addRange "Michael Snoyman" "transformers" "< 0.4"
462 addRange "Michael Snoyman" "mtl" "< 2.2"
463 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
465 -- https://github.com/fpco/stackage/issues/224
466 when (ghcVer <= GhcMajorVersion 7 6) $ do
467 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
468 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
469 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
471 -- 0.16.2 fixes dependency issues with different version of GHC
472 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
473 -- guaranteed to break the API. See
474 -- https://travis-ci.org/jswebtools/language-ecmascript for
475 -- current build status.
476 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
478 -- https://github.com/fpco/stackage/issues/271
479 when (ghcVer < GhcMajorVersion 7 8) $
480 addRange "Michael Snoyman" "aeson" "< 0.8"
482 -- https://github.com/fpco/stackage/issues/274
483 addRange "Michael Snoyman" "pandoc-citeproc" "< 0.4"
485 -- https://github.com/fpco/stackage/issues/276
486 addRange "Michael Snoyman" "network" "< 2.6"
487 addRange "Michael Snoyman" "network-uri" "< 2.6"
489 -- https://github.com/fpco/stackage/issues/279
490 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
492 -- https://github.com/fpco/stackage/issues/288
493 addRange "Michael Snoyman" "text" "< 1.2"
495 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
496 -- Yay workarounds for unnecessarily old versions
497 let peg x y = addRange "Haskell Platform" x y
498 peg "aeson" "== 0.7.0.4"
499 peg "scientific" "== 0.2.0.2"
500 peg "criterion" "<= 0.8.1.0"
501 peg "tasty-quickcheck" "< 0.8.0.3"
502 peg "formatting" "< 5.0"
503 peg "parsers" "< 0.11"
505 peg "contravariant" "< 1"
506 peg "adjunctions" "< 4.2"
507 peg "kan-extensions" "< 4.1"
508 peg "semigroupoids" "< 4.1"
510 peg "pandoc" "< 1.13"
511 peg "texmath" "<= 0.6.6.3"
513add :: String -> String -> Writer PackageMap ()
514add maintainer package = addRange maintainer package "-any"
516addRange :: String -> String -> String -> Writer PackageMap ()
517addRange maintainer package range =
518 case simpleParse range of
519 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
520 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
522-- | Hard coded Haskell Platform versions
523haskellPlatform78 :: Writer PackageMap ()
524haskellPlatform78 = do
525 addRange "Haskell Platform" "ghc" "== 7.8.3"
526 addRange "Haskell Platform" "haddock" "== 2.14.3"
527 addRange "Haskell Platform" "array" "== 0.5.0.0"
528 addRange "Haskell Platform" "base" "== 4.7.0.1"
529 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
530 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
531 addRange "Haskell Platform" "containers" "== 0.5.5.1"
532 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
533 addRange "Haskell Platform" "directory" "== 1.2.1.0"
534 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
535 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
536 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
537 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
538 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
539 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
540 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
541 addRange "Haskell Platform" "process" "== 1.2.0.0"
542 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
543 addRange "Haskell Platform" "time" "== 1.4.2"
544 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
545 addRange "Haskell Platform" "unix" "== 2.7.0.1"
546 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
547 addRange "Haskell Platform" "async" "== 2.0.1.5"
548 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
549 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
550 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
551 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
552 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
553 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
554 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
555 addRange "Haskell Platform" "html" "== 1.0.1.2"
556 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
557 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
558 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
559 addRange "Haskell Platform" "network" "== 2.4.2.3"
560 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
561 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
562 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
563 addRange "Haskell Platform" "parsec" "== 3.1.5"
564 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
565 addRange "Haskell Platform" "QuickCheck" "== 2.6"
566 addRange "Haskell Platform" "random" "== 1.0.1.1"
567 addRange "Haskell Platform" "regex-base" "== 0.93.2"
568 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
569 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
570 addRange "Haskell Platform" "split" "== 0.2.2"
571 addRange "Haskell Platform" "stm" "== 2.4.2"
572 addRange "Haskell Platform" "syb" "== 0.4.1"
573 addRange "Haskell Platform" "text" "== 1.1.0.0"
574 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
575 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
576 addRange "Haskell Platform" "vector" "== 0.10.9.1"
577 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
578 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
579 addRange "Haskell Platform" "alex" "== 3.1.3"
580 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
581 addRange "Haskell Platform" "happy" "== 1.19.4"
582 addRange "Haskell Platform" "hscolour" "== 1.20.3"
584-- | Replacement Github users. This is useful when a project is owned by an
585-- organization. It also lets you ping multiple users.
587-- Note that cross organization team mentions aren't allowed by Github.
588convertGithubUser :: String -> [String]
590 fromMaybe [x] $ Map.lookup (map toLower x) pairs
593 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
594 , ("yesodweb", ["snoyberg"])
595 , ("fpco", ["snoyberg"])
596 , ("faylang", ["bergmark"])
597 , ("silkapp", ["bergmark", "hesselink"])
598 , ("snapframework",["mightybyte"])
599 , ("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