2module Stackage.Config where
4import Control.Monad (when)
5import Control.Monad.Trans.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
106 when (ghcVer < GhcMajorVersion 7 6) $ do
107 -- https://github.com/haskell-suite/haskell-names/issues/39
112 -- https://github.com/jgm/pandoc-citeproc/issues/5
113 add "pandoc-citeproc"
115 -- Problems with doctest and sandboxing
119 -- https://github.com/fpco/stackage/issues/163
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"
144 -- Cloud Haskell tests seem to be unreliable
145 mapM_ add $ words =<<
146 [ "distributed-process lockfree-queue network-transport-tcp"
149 -- Pulls in monad-peel which does not compile
150 when (ghcVer >= GhcMajorVersion 7 8) $ add "monad-control"
152 -- issues with pthread
153 mapM_ add $ words "hlibgit2 gitlib-s3 gitlib-libgit2"
155 -- https://github.com/fpco/stackage/issues/226
158 -- Requires too high a bytestring
159 when (ghcVer <= GhcMajorVersion 7 4) $ add "scientific"
161 -- https://github.com/gtk2hs/gtk2hs/issues/36
165 -- https://github.com/acw/bytestring-progress/issues/3
166 add "bytestring-progress"
168 -- Seems to require 32-bit functions
171 -- Depends on a missing graphviz executable
174 -- https://github.com/silkapp/json-schema/issues/8
175 when (ghcVer <= GhcMajorVersion 7 6) $
179 add = tell . singleton . PackageName
181-- | List of packages for our stable Hackage. All dependencies will be
182-- included as well. Please indicate who will be maintaining the package
184defaultStablePackages :: GhcMajorVersion
185 -> Bool -- ^ using haskell platform?
186 -> Map PackageName (VersionRange, Maintainer)
187defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
188 mapM_ (add "michael@snoyman.com") $ words =<<
189 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
190 , "markdown mime-mail-ses"
191 , "persistent persistent-template persistent-sqlite"
192 , "network-conduit-tls yackage warp-tls keter"
193 , "process-conduit stm-conduit"
194 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
195 , "random-shuffle hebrew-time"
196 , "bzlib-conduit case-insensitive"
197 , "conduit-extra conduit-combinators yesod-websockets"
200 -- https://github.com/fpco/stackage/issues/261
201 addRange "Michael Snoyman" "cabal-install" $
204 | ghcVer <= GhcMajorVersion 7 4 -> "< 1.15"
205 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
206 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
207 | otherwise -> "-any"
209 when (ghcVer >= GhcMajorVersion 7 6) $ add "michael@snoyman.com" "cabal-src"
210#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
211 -- Does not compile on Windows
212 mapM_ (add "michael@snoyman.com") $ words "judy"
215 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
216 [ "web-fpco th-expand-syns configurator smtLib"
217 , "fixed-list indents language-c pretty-class"
218 , "aws csv-conduit cassava"
219 , "async shelly thyme"
220 , "hxt hxt-relaxng dimensional"
221 , "cairo diagrams-cairo gtk2hs-buildtools"
222 , "persistent-mongoDB fpco-api"
223 , "base16-bytestring convertible"
224 , "compdata hybrid-vectors"
225 , "executable-path formatting"
227 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
228 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
229 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
230 , "threepenny-gui unification-fd"
232 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
233 when (ghcVer >= GhcMajorVersion 7 8) $
234 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
238 -- Deprecated version
239 addRange "FP Complete <michael@fpcomplete.com>" "persistent-mongoDB" "< 1.3.1 || > 1.3.1"
240 when (ghcVer < GhcMajorVersion 7 6) $ do
242 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
243 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
244 addRange "FP Complete <michael@fpcomplete.com>" "lockfree-queue" "== 0.2"
245 -- when (ghcVer == GhcMajorVersion 7 6) $ do -- No GHC 7.8 support
246 -- add "FP Complete <michael@fpcomplete.com>" "repa-devil"
247 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
249 mapM_ (add "Neil Mitchell") $ words
250 "hlint hoogle shake derive"
252 mapM_ (add "Alan Zimmerman") $ words
253 "hjsmin language-javascript"
254 -- Requires newer alex than provided with HP
255 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $
256 addRange "Alan Zimmerman" "language-javascript" "== 0.5.9"
258 mapM_ (add "Jasper Van der Jeugt") $ words
259 "blaze-html blaze-markup stylish-haskell"
261 mapM_ (add "Antoine Latter") $ words
264 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
265 "HTF xmlgen stm-stats"
266 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
268 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
271 mapM_ (add "Vincent Hanquez") $ words =<<
272 [ "bytedump certificate cipher-aes cipher-rc4 connection"
273 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
274 , "cryptohash hit language-java libgit pem siphash socks tls"
275 , "tls-debug vhd language-java"
278 mapM_ (add "Chris Done") $ words
281#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
282 -- Does not compile on Windows
283 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
286 when (ghcVer < GhcMajorVersion 7 8) $
287 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
288 "RefSerialize TCache Workflow MFlow"
290 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
291 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
292 , "comonads-fd compressed concurrent-supply constraints contravariant"
293 , "distributive either eq free groupoids heaps hyphenation"
294 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
295 , "mtl profunctors profunctor-extras reducers reflection"
296 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
297 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
298 , "numeric-extras parsers pointed prelude-extras reducers"
299 , "streams vector-instances"
301 when (ghcVer < GhcMajorVersion 7 8) $
302 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
303 [ "categories comonad-extras recursion-schemes syb-extras"
306 when (ghcVer >= GhcMajorVersion 7 6) $
307 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
308 "scotty wai-middleware-static"
310 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
311 "hspec doctest base-compat"
313 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
314 "monad-parallel monad-coroutine"
315 -- https://github.com/blamario/monoid-subclasses/issues/3
316 when (ghcVer >= GhcMajorVersion 7 6) $ do
317 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
318 "incremental-parser monoid-subclasses"
320 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
321 [ "monoid-extras dual-tree vector-space-points active force-layout"
322 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
323 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
324 , "BlogLiterately BlogLiterately-diagrams"
327 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
330 mapM_ (add "Patrick Brisbin") $ words "gravatar"
332 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
333 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
335 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
336 "base-unicode-symbols containers-unicode-symbols"
338 -- NOTE: accelerate not yet supported on GHC 7.8
339 when (ghcVer == GhcMajorVersion 7 6) $ do
340 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
342 when (ghcVer < GhcMajorVersion 7 6) $ do
343 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.14"
344 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "fclabels" "< 2.0"
346 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
347 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
348 , "tardis lens-family-th"
351 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
354 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
355 ["pipes", "pipes-parse", "pipes-concurrency"]
357 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
358 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
360 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
361 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
363 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
366 mapM_ (add "Michal J. Gajda") $ words
367 "iterable Octree FenwickTree hPDB"
368 when (ghcVer == GhcMajorVersion 7 6) $ do -- No GHC 7.8 support
369 mapM_ (add "Michal J. Gajda") $ words
372 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
373 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
374 , "traverse-with-class regex-applicative time-lens"
375 , "haskell-names haskell-packages hse-cpp"
378 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
381 when (ghcVer >= GhcMajorVersion 7 6) $ do -- No GHC 7.4 support
382 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
385#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
386 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
387 "hdaemonize hsyslog hweblib"
389 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
393 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
394 "circle-packing arbtt"
396 when (ghcVer < GhcMajorVersion 7 8) $
397 mapM_ (add "John Wiegley") $ words =<<
398 -- Removed these: bad semigroups upper bound
399 [ "bindings-DSL github monad-extras numbers hlibgit2"
400 , "gitlib gitlib-cmdline gitlib-test"
401 , "gitlib-libgit2 gitlib-s3"
404 mapM_ (add "Ben Ford <ben@dlstartup.com") $ words
407 mapM_ (add "Clint Adams <clint@debian.org>") $ words
408 "DAV hOpenPGP hopenpgp-tools openpgp-asciiarmor MusicBrainz"
410 -- https://github.com/fpco/stackage/issues/160
411 when (ghcVer >= GhcMajorVersion 7 6) $ do
412 mapM_ (add "Ketil Malde") $ words =<<
413 [ "biocore biofasta biofastq biosff"
414 , "blastxml bioace biophd"
415 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
416 , "seqloc bioalign BlastHTTP"
417 -- The following have out-of-date dependencies currently
418 -- biostockholm memexml RNAwolf
419 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
420 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
421 -- , "BiobaseTypes BiobaseFasta"
424 -- https://github.com/fpco/stackage/issues/163
425 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
426 when (ghcVer == GhcMajorVersion 7 6) $ do
427 mapM_ (add "Ketil Malde") $ words =<<
432 mapM_ (add "Silk <code@silk.co>") $ words =<<
433 [ "aeson-utils arrow-list attoparsec-expr bumper code-builder fay-builder"
434 , "generic-aeson hxt-pickle-utils json-schema multipart regular-xmlpickler"
435 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
436 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
439 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
442 -- Newest hxt requires network 2.4 or newest
443 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $ do
444 addRange "Michael Snoyman" "hxt" "< 9.3.1"
445 addRange "Michael Snoyman" "network" "< 2.4"
447 -- https://github.com/fpco/stackage/issues/197
448 when (ghcVer == GhcMajorVersion 7 6 && requireHP) $
449 addRange "Michael Snoyman" "parsers" "< 0.11"
451 -- https://github.com/fpco/stackage/issues/216
452 -- QuickCheck constraint
453 -- when (ghcVer == GhcMajorVersion 7 6) $
454 -- addRange "Michael Snoyman" "repa" "< 3.2.5.1"
456 -- https://github.com/fpco/stackage/issues/217
457 addRange "Michael Snoyman" "transformers" "< 0.4"
458 addRange "Michael Snoyman" "mtl" "< 2.2"
459 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
461 -- https://github.com/fpco/stackage/issues/224
462 when (ghcVer <= GhcMajorVersion 7 6) $ do
463 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
465 -- https://github.com/fpco/stackage/issues/231
466 addRange "Michael Snoyman" "optparse-applicative" "< 0.9"
468 -- https://github.com/fpco/stackage/issues/237
469 addRange "Michael Snoyman" "lens" "< 4.2"
470 addRange "Michael Snoyman" "contravariant" "< 1"
471 addRange "Michael Snoyman" "kan-extensions" "< 4.1"
472 addRange "Michael Snoyman" "adjunctions" "< 4.2"
474 -- https://github.com/fpco/stackage/issues/242
475 addRange "Michael Snoyman" "mongoDB" "< 1.5"
477 -- https://github.com/fpco/stackage/issues/257
478 addRange "Michael Snoyman" "aeson" "< 0.8"
480 -- https://github.com/fpco/stackage/issues/263
481 addRange "Michael Snoyman" "semigroupoids" "< 4.1"
483 -- https://github.com/jgm/pandoc/issues/1442
484 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
486 -- Requires too new a version of text
487 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $ do
488 addRange "Michael Snoyman" "attoparsec" "< 0.11.2.1"
489 addRange "Michael Snoyman" "parsers" "< 0.11"
492 addRange "Michael Snoyman" "bson" "== 0.2.4"
494 -- 0.16.2 fixes dependency issues with different version of GHC
495 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
496 -- guaranteed to break the API. See
497 -- https://travis-ci.org/jswebtools/language-ecmascript for
498 -- current build status.
499 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
501 add maintainer package = addRange maintainer package "-any"
502 addRange maintainer package range =
503 case simpleParse range of
504 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
505 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
507-- | Replacement Github users. This is useful when a project is owned by an
508-- organization. It also lets you ping multiple users.
510-- Note that cross organization team mentions aren't allowed by Github.
511convertGithubUser :: String -> [String]
513 fromMaybe [x] $ Map.lookup (map toLower x) pairs
516 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
517 , ("yesodweb", ["snoyberg"])
518 , ("fpco", ["snoyberg"])
519 , ("faylang", ["bergmark"])
520 , ("silkapp", ["bergmark"])
521 , ("snapframework",["mightybyte"])
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