on 77fa7fa help sign in
stackage/Stackage/Config.hs
706 lines 27 kB history raw
1{-# LANGUAGE CPP #-}
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)
11import Stackage.Types
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
24 -> Set PackageName
25defaultExpectedFailures ghcVer requireHP = execWriter $ do
26 -- Requires an old version of WAI and Warp for tests
27 add "HTTP"
29 -- text and setenv have recursive dependencies in their tests, which
30 -- cabal can't (yet) handle
31 add "text"
32 add "setenv"
34 -- The version of GLUT included with the HP does not generate
35 -- documentation correctly.
36 add "GLUT"
38 -- https://github.com/bos/statistics/issues/42
39 add "statistics"
41 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
42 add "simple-sendfile"
44 -- http://hackage.haskell.org/trac/hackage/ticket/954
45 add "diagrams"
47 -- https://github.com/fpco/stackage/issues/24
48 add "unix-time"
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
54 -- databases
55 add "HTF"
57 -- https://github.com/simonmar/monad-par/issues/28
58 add "monad-par"
60 -- Unfortunately network failures seem to happen haphazardly
61 add "network"
63 -- https://github.com/ekmett/hyphenation/issues/1
64 add "hyphenation"
66 -- Test suite takes too long to run on some systems
67 add "punycode"
69 -- http://hub.darcs.net/stepcut/happstack/issue/1
70 add "happstack-server"
72 -- Requires a Facebook app.
73 add "fb"
75 -- https://github.com/tibbe/hashable/issues/64
76 add "hashable"
78 -- https://github.com/vincenthz/language-java/issues/10
79 add "language-java"
81 add "threads"
82 add "crypto-conduit"
83 add "pandoc"
84 add "language-ecmascript"
85 add "hspec"
86 add "alex"
88 -- https://github.com/basvandijk/concurrent-extra/issues/
89 add "concurrent-extra"
91 -- https://github.com/skogsbaer/xmlgen/issues/2
92 add "xmlgen"
94 -- Something very strange going on with the test suite, I can't figure
95 -- out how to fix it
96 add "bson"
98 -- Requires a locally running PostgreSQL server with appropriate users
99 add "postgresql-simple"
101 -- Missing files
102 add "websockets"
104 -- Some kind of Cabal bug when trying to run tests
105 add "thyme"
107 add "shake"
109 -- https://github.com/jgm/pandoc-citeproc/issues/5
110 add "pandoc-citeproc"
112 -- Problems with doctest and sandboxing
113 add "warp"
114 add "wai-logger"
116 -- https://github.com/fpco/stackage/issues/163
117 add "hTalos"
118 add "seqloc"
120 -- https://github.com/bos/math-functions/issues/25
121 add "math-functions"
123 -- FIXME the test suite fails fairly regularly in builds, though I haven't
124 -- discovered why yet
125 add "crypto-numbers"
127 -- Test suite is currently failing regularly, needs to be worked out still.
128 add "lens"
130 -- Requires too old a version of test-framework
131 add "time"
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"
142 ]
144 -- Cloud Haskell tests seem to be unreliable
145 mapM_ add $ words =<<
146 [ "distributed-process lockfree-queue network-transport-tcp"
147 ]
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
156 add "options"
158 -- https://github.com/gtk2hs/gtk2hs/issues/36
159 add "glib"
160 add "pango"
162 -- https://github.com/acw/bytestring-progress/issues/3
163 add "bytestring-progress"
165 -- Seems to require 32-bit functions
166 add "nettle"
168 -- Depends on a missing graphviz executable
169 add "graphviz"
171 -- https://github.com/silkapp/json-schema/issues/8
172 when (ghcVer <= GhcMajorVersion 7 6) $
173 add "json-schema"
175 -- No AWS creds available
176 add "aws"
178 -- Not sure why...
179 add "singletons"
181 add "hspec2"
182 add "hspec-wai"
184 -- Requires too new a version of time
185 when (ghcVer < GhcMajorVersion 7 8) $ add "cookie"
187 -- https://github.com/fpco/stackage/issues/285
188 add "diagrams-haddock"
189 add "scientific"
190 add "json-schema"
192 -- https://github.com/BioHaskell/octree/issues/4
193 add "Octree"
195 -- No code until we upgrade to network 2.6
196 add "network-uri"
198 -- https://github.com/goldfirere/th-desugar/issues/12
199 add "th-desugar"
201 -- https://github.com/haskell/c2hs/issues/108
202 add "c2hs"
204 -- https://github.com/jmillikin/haskell-filesystem/issues/3
205 add "system-filepath"
207 -- For some unknown reason, doctest has trouble on GHC 7.6. This only
208 -- happens during a Stackage test.
209 --
210 -- See: http://www.reddit.com/r/haskell/comments/2go92u/beginner_error_messages_in_c_vs_haskell/cklaspk
211 when (ghcVer == GhcMajorVersion 7 6) $ add "http-types"
213 -- Requires a running webdriver server
214 add "webdriver"
215 add "webdriver-snoy"
217 -- Weird conflicts with sandboxing
218 add "ghc-mod"
219 add "ghcid"
221 -- Requires locally running server
222 add "bloodhound"
224 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
225 -- https://github.com/vincenthz/hs-asn1/issues/11
226 add "asn1-encoding"
228 -- https://github.com/vincenthz/hs-tls/issues/84
229 add "tls"
231 add "x509"
232 where
233 add = tell . singleton . PackageName
235-- | List of packages for our stable Hackage. All dependencies will be
236-- included as well. Please indicate who will be maintaining the package
237-- via comments.
238defaultStablePackages :: GhcMajorVersion
239 -> Bool -- ^ using haskell platform?
240 -> Map PackageName (VersionRange, Maintainer)
241defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
242 when (ghcVer == GhcMajorVersion 7 8 && requireHP) haskellPlatform78
243 mapM_ (add "michael@snoyman.com") $ words =<<
244 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
245 , "markdown mime-mail-ses"
246 , "persistent persistent-template persistent-sqlite persistent-postgresql persistent-mysql"
247 , "network-conduit-tls yackage warp-tls keter"
248 , "process-conduit stm-conduit"
249 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
250 , "random-shuffle hebrew-time"
251 , "bzlib-conduit case-insensitive"
252 , "conduit-extra conduit-combinators yesod-websockets"
253 , "cabal-src"
254 , "yesod-auth-deskcom monadcryptorandom sphinx"
255 , "yesod-gitrepo"
256 ]
258 -- https://github.com/fpco/stackage/issues/261
259 addRange "Michael Snoyman" "cabal-install" $
260 case () of
261 ()
262 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
263 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
264 | otherwise -> "-any"
266 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
267 [ "web-fpco th-expand-syns configurator smtLib"
268 , "fixed-list indents language-c pretty-class"
269 , "csv-conduit cassava"
270 , "async shelly thyme"
271 , "hxt hxt-relaxng dimensional"
272 , "cairo diagrams-cairo gtk2hs-buildtools"
273 , "base16-bytestring convertible"
274 , "compdata hybrid-vectors"
275 , "executable-path formatting quandl-api"
276 , "fgl hmatrix hmatrix-gsl"
277 , "alex happy c2hs"
278 , "fpco-api aws persistent-mongoDB"
279 , "random-fu lhs2tex"
280 , "Chart Chart-diagrams histogram-fill random-source"
281 , "webdriver-snoy" -- Replace with webdriver after: https://github.com/kallisti-dev/hs-webdriver/issues/53
282 -- https://github.com/Soostone/retry/pull/15
283 -- , "retry"
284 ]
285 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
286 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
287 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
288 -- https://github.com/fpco/stackage/issues/295
289 --, "threepenny-gui unification-fd"
290 ]
291 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
292 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
293 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
294 [ "criterion"
295 , "th-lift singletons th-desugar quickcheck-assertions"
296 ]
298 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
300 mapM_ (add "Neil Mitchell") $ words
301 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis js-jquery extra bake ghcid"
303 mapM_ (add "Alan Zimmerman") $ words
304 "hjsmin language-javascript"
306 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
307 mapM_ (add "Alfredo Di Napoli <alfredo.dinapoli@gmail.com>") $ words
308 "mandrill"
310 mapM_ (add "Jasper Van der Jeugt") $ words
311 "blaze-html blaze-markup stylish-haskell"
313 mapM_ (add "Antoine Latter") $ words
314 "uuid byteorder"
316 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
317 "HTF xmlgen stm-stats"
318 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
320 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
321 "parseargs"
323 mapM_ (add "Vincent Hanquez") $ words =<<
324 [ "bytedump certificate cipher-aes cipher-rc4 connection"
325 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
326 , "cryptohash hit language-java libgit pem siphash socks tls"
327 , "tls-debug vhd language-java"
328 ]
330 mapM_ (add "Chris Done") $ words
331 "statistics-linreg"
332 -- https://github.com/isomorphism/these/issues/11
333 -- when (ghcVer >= GhcMajorVersion 7 8) $ add "Chris Done" "shell-conduit"
335#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
336 -- Does not compile on Windows
337 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
338#endif
340 when (ghcVer < GhcMajorVersion 7 8) $
341 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
342 "RefSerialize TCache Workflow MFlow"
344 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
345 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
346 , "comonads-fd compressed concurrent-supply constraints contravariant"
347 , "distributive either eq free groupoids heaps hyphenation"
348 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
349 , "mtl profunctors profunctor-extras reducers reflection"
350 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
351 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
352 , "numeric-extras parsers pointed prelude-extras reducers"
353 , "streams vector-instances"
354 ]
355 when (ghcVer < GhcMajorVersion 7 8) $
356 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
357 [ "categories comonad-extras recursion-schemes syb-extras"
358 ]
360 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
361 "scotty wai-middleware-static"
363 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
364 "hspec doctest base-compat"
366 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
367 "monad-parallel monad-coroutine incremental-parser monoid-subclasses"
369 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
370 [ "monoid-extras dual-tree vector-space-points active force-layout"
371 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
372 , "diagrams-postscript haxr"
373 , "BlogLiterately"
374 , "MonadRandom"
375 -- #289: diagrams-builder diagrams-haddock BlogLiterately-diagrams
376 ]
377 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
378 "JuicyPixels"
380 mapM_ (add "Patrick Brisbin") $ words "gravatar"
382 -- https://github.com/fpco/stackage/issues/299
383 -- mapM_ (add "Paul Harper <benekastah@gmail.com>") $ words "yesod-auth-oauth2"
385 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
386 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
388 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
389 "base-unicode-symbols containers-unicode-symbols"
391 if ghcVer >= GhcMajorVersion 7 8
392 then add "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate"
393 else addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.15"
395 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
396 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
397 , "tardis lens-family-th"
398 ]
400 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
401 "HaTeX matrix"
402 when (ghcVer >= GhcMajorVersion 7 8) $
403 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
404 "binary-list"
406 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
407 ["pipes", "pipes-parse", "pipes-concurrency"]
409 when (ghcVer >= GhcMajorVersion 7 8) $
410 mapM_ (add "Chris Allen <cma@bitemyapp.com>")
411 ["bloodhound"]
413 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
414 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
416 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
417 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
419 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
420 "sqlite-simple"
422 mapM_ (add "Michal J. Gajda") $ words
423 "iterable Octree FenwickTree"
424 -- https://github.com/BioHaskell/hPDB/issues/2
425 when (ghcVer >= GhcMajorVersion 7 8) $ do
426 mapM_ (add "Michal J. Gajda") $ words
427 "hPDB hPDB-examples"
429 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
430 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
431 , "traverse-with-class regex-applicative time-lens"
432 , "haskell-names haskell-packages hse-cpp"
433 ]
435 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
436 "HCodecs YampaSynth"
438 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
439 "courier"
441#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
442 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
443 "hdaemonize hsyslog hweblib"
444#else
445 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
446 "hweblib"
447#endif
449 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
450 "circle-packing arbtt"
451 when (ghcVer >= GhcMajorVersion 7 8) $
452 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
453 "ghc-heap-view"
455 when (ghcVer < GhcMajorVersion 7 8) $
456 mapM_ (add "John Wiegley") $ words =<<
457 -- Removed these: bad semigroups upper bound
458 [ "bindings-DSL github monad-extras numbers hlibgit2"
459 , "gitlib gitlib-cmdline gitlib-test"
460 , "gitlib-libgit2"
461 -- https://github.com/jwiegley/gitlib/issues/31
462 -- "gitlib-s3"
463 ]
465 mapM_ (add "Aditya Bhargava <adit@adit.io") $ words
466 "HandsomeSoup"
468 mapM_ (add "Clint Adams <clint@debian.org>") $ words
469 "hOpenPGP openpgp-asciiarmor MusicBrainz DAV hopenpgp-tools"
471 -- https://github.com/fpco/stackage/issues/160
472 mapM_ (add "Ketil Malde") $ words =<<
473 [ "biocore biofasta biofastq biosff"
474 , "blastxml bioace biophd"
475 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
476 , "seqloc bioalign BlastHTTP"
477 -- The following have out-of-date dependencies currently
478 -- biostockholm memexml RNAwolf
479 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
480 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
481 -- , "BiobaseTypes BiobaseFasta"
482 -- MC-Fold-DP
483 ]
484 -- https://github.com/fpco/stackage/issues/163
485 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
487 mapM_ (add "Silk <code@silk.co>") $ words =<<
488 [ "arrow-list attoparsec-expr bumper code-builder fay-builder"
489 , "hxt-pickle-utils multipart regular-xmlpickler"
490 , "tostring uri-encode imagesize-conduit"
491 ]
492 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $ do
493 mapM_ (add "Silk <code@silk.co>") $ words =<<
494 [ "aeson-utils generic-aeson json-schema"
495 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
496 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
497 ]
499 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
500 "hledger"
502 mapM_ (add "Mihai Maruseac <mihai.maruseac@gmail.com>") $ words
503 "io-manager"
505 mapM_ (add "Dimitri Sabadie <dimitri.sabadie@gmail.com") $ words
506 "monad-journal"
508 mapM_ (add "Thomas Schilling <nominolo@googlemail.com>") $ words
509 "ghc-syb-utils"
511 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
512 "ghc-mod io-choice"
513 when (ghcVer >= GhcMajorVersion 7 8) $
514 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
515 "system-canonicalpath"
517 when (ghcVer >= GhcMajorVersion 7 8) $
518 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
519 "holy-project"
520 when requireHP $ addRange "Yann Esposito <yann.esposito@gmail.com>" "holy-project" "< 0.1.1.1"
522 mapM_ (add "Paul Rouse <pgr@doynton.org>") $ words
523 "yesod-auth-hashdb"
525 add "Toralf Wittner <tw@dtex.org>" "zeromq4-haskell"
527 mapM_ (add "trupill@gmail.com") $ words
528 "djinn-lib djinn-ghc"
530 mapM_ (add "Arash Rouhani <miffoljud@gmail.com>") $ words
531 "yesod-text-markdown"
533 -- https://github.com/fpco/stackage/issues/216
534 -- QuickCheck constraint
535 -- when (ghcVer == GhcMajorVersion 7 6) $
536 -- addRange "Michael Snoyman" "repa" "< 3.2.5.1"
538 -- https://github.com/fpco/stackage/issues/217
539 addRange "Michael Snoyman" "transformers" "< 0.4"
540 addRange "Michael Snoyman" "mtl" "< 2.2"
541 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
543 -- https://github.com/liyang/thyme/issues/29
544 when (ghcVer <= GhcMajorVersion 7 6) $
545 addRange "Michael Snoyman" "thyme" "< 0.3.5.3"
547 -- https://github.com/fpco/stackage/issues/224
548 when (ghcVer <= GhcMajorVersion 7 6) $ do
549 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
550 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
551 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
552 addRange "Michael Snoyman" "attoparsec" "== 0.11.3.1"
553 addRange "Michael Snoyman" "parsers" "< 0.11"
554 addRange "Michael Snoyman" "scientific" "< 0.3"
555 addRange "Michael Snoyman" "aeson" "< 0.7.0.5"
556 addRange "Michael Snoyman" "aeson-utils" "< 0.2.2"
557 addRange "Michael Snoyman" "formatting" "< 5"
558 addRange "Michael Snoyman" "aws" "< 0.10"
560 -- 0.16.2 fixes dependency issues with different version of GHC
561 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
562 -- guaranteed to break the API. See
563 -- https://travis-ci.org/jswebtools/language-ecmascript for
564 -- current build status.
565 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
567 -- https://github.com/fpco/stackage/issues/271
568 when (ghcVer < GhcMajorVersion 7 8) $
569 addRange "Michael Snoyman" "aeson" "< 0.8"
571 -- https://github.com/fpco/stackage/issues/274
572 addRange "Michael Snoyman" "pandoc-citeproc" "< 0.4"
574 -- https://github.com/fpco/stackage/issues/276
575 addRange "Michael Snoyman" "network" "< 2.6"
576 addRange "Michael Snoyman" "network-uri" "< 2.6"
578 -- https://github.com/fpco/stackage/issues/279
579 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
581 -- https://github.com/fpco/stackage/issues/288
582 addRange "Michael Snoyman" "text" "< 1.2"
584 -- Force a specific version that's compatible with transformers 0.3
585 addRange "Michael Snoyman" "transformers-compat" "== 0.3.3.3"
587 -- https://github.com/fpco/stackage/issues/291
588 addRange "Michael Snoyman" "random" "< 1.0.1.3"
590 -- https://github.com/fpco/stackage/issues/314
591 addRange "Michael Snoyman" "hxt" "< 9.3.1.9"
593 -- https://github.com/fpco/stackage/issues/318
594 addRange "Michael Snoyman" "HaXml" "< 1.25"
596 -- https://github.com/fpco/stackage/issues/319
597 addRange "Michael Snoyman" "polyparse" "< 1.10"
599 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
600 -- Yay workarounds for unnecessarily old versions
601 let peg x y = addRange "Haskell Platform" x y
602 peg "aeson" "== 0.7.0.4"
603 peg "scientific" "== 0.2.0.2"
604 peg "criterion" "<= 0.8.1.0"
605 peg "tasty-quickcheck" "< 0.8.0.3"
606 peg "formatting" "< 5.0"
607 peg "parsers" "< 0.11"
608 peg "lens" "< 4.2"
609 peg "contravariant" "< 1"
610 peg "adjunctions" "< 4.2"
611 peg "kan-extensions" "< 4.1"
612 peg "semigroupoids" "< 4.1"
613 peg "aws" "< 0.10"
614 peg "pandoc" "< 1.13"
615 peg "texmath" "<= 0.6.6.3"
616 peg "checkers" "== 0.3.2"
617 peg "HandsomeSoup" "< 0.3.3"
619add :: String -> String -> Writer PackageMap ()
620add maintainer package = addRange maintainer package "-any"
622addRange :: String -> String -> String -> Writer PackageMap ()
623addRange maintainer package range =
624 case simpleParse range of
625 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
626 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
628-- | Hard coded Haskell Platform versions
629haskellPlatform78 :: Writer PackageMap ()
630haskellPlatform78 = do
631 addRange "Haskell Platform" "ghc" "== 7.8.3"
632 addRange "Haskell Platform" "haddock" "== 2.14.3"
633 addRange "Haskell Platform" "array" "== 0.5.0.0"
634 addRange "Haskell Platform" "base" "== 4.7.0.1"
635 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
636 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
637 addRange "Haskell Platform" "containers" "== 0.5.5.1"
638 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
639 addRange "Haskell Platform" "directory" "== 1.2.1.0"
640 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
641 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
642 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
643 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
644 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
645 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
646 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
647 addRange "Haskell Platform" "process" "== 1.2.0.0"
648 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
649 addRange "Haskell Platform" "time" "== 1.4.2"
650 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
651 addRange "Haskell Platform" "unix" "== 2.7.0.1"
652 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
653 addRange "Haskell Platform" "async" "== 2.0.1.5"
654 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
655 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
656 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
657 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
658 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
659 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
660 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
661 addRange "Haskell Platform" "html" "== 1.0.1.2"
662 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
663 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
664 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
665 addRange "Haskell Platform" "network" "== 2.4.2.3"
666 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
667 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
668 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
669 addRange "Haskell Platform" "parsec" "== 3.1.5"
670 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
671 addRange "Haskell Platform" "QuickCheck" "== 2.6"
672 addRange "Haskell Platform" "random" "== 1.0.1.1"
673 addRange "Haskell Platform" "regex-base" "== 0.93.2"
674 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
675 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
676 addRange "Haskell Platform" "split" "== 0.2.2"
677 addRange "Haskell Platform" "stm" "== 2.4.2"
678 addRange "Haskell Platform" "syb" "== 0.4.1"
679 addRange "Haskell Platform" "text" "== 1.1.0.0"
680 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
681 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
682 addRange "Haskell Platform" "vector" "== 0.10.9.1"
683 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
684 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
685 addRange "Haskell Platform" "alex" "== 3.1.3"
686 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
687 addRange "Haskell Platform" "happy" "== 1.19.4"
688 addRange "Haskell Platform" "hscolour" "== 1.20.3"
690-- | Replacement Github users. This is useful when a project is owned by an
691-- organization. It also lets you ping multiple users.
692--
693-- Note that cross organization team mentions aren't allowed by Github.
694convertGithubUser :: String -> [String]
695convertGithubUser x =
696 fromMaybe [x] $ Map.lookup (map toLower x) pairs
697 where
698 pairs = Map.fromList
699 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
700 , ("yesodweb", ["snoyberg"])
701 , ("fpco", ["snoyberg"])
702 , ("faylang", ["bergmark"])
703 , ("silkapp", ["bergmark", "hesselink"])
704 , ("snapframework",["mightybyte"])
705 , ("haskell-ro", ["mihaimaruseac"])
706 ]