on 270cd21 help sign in
stackage/Stackage/Config.hs
723 lines 28 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 , "hspec-discover"
143 ]
145 -- Cloud Haskell tests seem to be unreliable
146 mapM_ add $ words =<<
147 [ "distributed-process lockfree-queue network-transport-tcp"
148 ]
150 -- Pulls in monad-peel which does not compile
151 when (ghcVer >= GhcMajorVersion 7 8) $ add "monad-control"
153 -- issues with pthread
154 mapM_ add $ words "hlibgit2 gitlib-s3 gitlib-libgit2"
156 -- https://github.com/fpco/stackage/issues/226
157 add "options"
159 -- https://github.com/gtk2hs/gtk2hs/issues/36
160 add "glib"
161 add "pango"
163 -- https://github.com/acw/bytestring-progress/issues/3
164 add "bytestring-progress"
166 -- Seems to require 32-bit functions
167 add "nettle"
169 -- Depends on a missing graphviz executable
170 add "graphviz"
172 -- https://github.com/silkapp/json-schema/issues/8
173 when (ghcVer <= GhcMajorVersion 7 6) $
174 add "json-schema"
176 -- No AWS creds available
177 add "aws"
179 -- Not sure why...
180 add "singletons"
182 add "hspec2"
183 add "hspec-wai"
185 -- Requires too new a version of time
186 when (ghcVer < GhcMajorVersion 7 8) $ add "cookie"
188 -- https://github.com/fpco/stackage/issues/285
189 add "diagrams-haddock"
190 add "scientific"
191 add "json-schema"
193 -- https://github.com/BioHaskell/octree/issues/4
194 add "Octree"
196 -- No code until we upgrade to network 2.6
197 add "network-uri"
199 -- https://github.com/goldfirere/th-desugar/issues/12
200 add "th-desugar"
202 -- https://github.com/haskell/c2hs/issues/108
203 add "c2hs"
205 -- https://github.com/jmillikin/haskell-filesystem/issues/3
206 add "system-filepath"
208 -- For some unknown reason, doctest has trouble on GHC 7.6. This only
209 -- happens during a Stackage test.
210 --
211 -- See: http://www.reddit.com/r/haskell/comments/2go92u/beginner_error_messages_in_c_vs_haskell/cklaspk
212 when (ghcVer == GhcMajorVersion 7 6) $ add "http-types"
214 -- Requires a running webdriver server
215 add "webdriver"
216 add "webdriver-snoy"
218 -- Weird conflicts with sandboxing
219 add "ghc-mod"
220 add "ghcid"
222 -- Requires locally running server
223 add "bloodhound"
225 -- Requires PostgreSQL running
226 add "postgresql-binary"
227 add "hasql-postgres"
229 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
230 -- https://github.com/vincenthz/hs-asn1/issues/11
231 add "asn1-encoding"
233 -- https://github.com/vincenthz/hs-tls/issues/84
234 add "tls"
236 add "x509"
237 where
238 add = tell . singleton . PackageName
240-- | List of packages for our stable Hackage. All dependencies will be
241-- included as well. Please indicate who will be maintaining the package
242-- via comments.
243defaultStablePackages :: GhcMajorVersion
244 -> Bool -- ^ using haskell platform?
245 -> Map PackageName (VersionRange, Maintainer)
246defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
247 when (ghcVer == GhcMajorVersion 7 8 && requireHP) haskellPlatform78
248 mapM_ (add "michael@snoyman.com") $ words =<<
249 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
250 , "markdown mime-mail-ses"
251 , "persistent persistent-template persistent-sqlite persistent-postgresql persistent-mysql"
252 , "network-conduit-tls yackage warp-tls keter"
253 , "process-conduit stm-conduit"
254 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
255 , "random-shuffle hebrew-time"
256 , "bzlib-conduit case-insensitive"
257 , "conduit-extra conduit-combinators yesod-websockets"
258 , "cabal-src"
259 , "yesod-auth-deskcom monadcryptorandom sphinx"
260 , "yesod-gitrepo"
261 ]
263 -- https://github.com/fpco/stackage/issues/261
264 addRange "Michael Snoyman" "cabal-install" $
265 case () of
266 ()
267 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
268 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
269 | otherwise -> "-any"
271 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
272 [ "web-fpco th-expand-syns configurator smtLib"
273 , "fixed-list indents language-c pretty-class"
274 , "csv-conduit cassava"
275 , "async shelly thyme"
276 , "hxt hxt-relaxng dimensional"
277 , "cairo diagrams-cairo gtk2hs-buildtools"
278 , "base16-bytestring convertible"
279 , "compdata hybrid-vectors"
280 , "executable-path formatting quandl-api"
281 , "fgl hmatrix hmatrix-gsl"
282 , "alex happy c2hs"
283 , "fpco-api aws persistent-mongoDB"
284 , "random-fu lhs2tex"
285 , "Chart Chart-diagrams histogram-fill random-source"
286 , "webdriver-snoy" -- Replace with webdriver after: https://github.com/kallisti-dev/hs-webdriver/issues/53
287 -- https://github.com/Soostone/retry/pull/15
288 -- , "retry"
289 ]
290 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
291 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
292 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
293 -- https://github.com/fpco/stackage/issues/295
294 --, "threepenny-gui unification-fd"
295 ]
296 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
297 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
298 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
299 [ "criterion"
300 , "th-lift singletons th-desugar quickcheck-assertions"
301 ]
303 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
305 mapM_ (add "Neil Mitchell") $ words
306 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis js-jquery js-flot extra bake ghcid"
308 mapM_ (add "Alan Zimmerman") $ words
309 "hjsmin language-javascript"
311 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
312 mapM_ (add "Alfredo Di Napoli <alfredo.dinapoli@gmail.com>") $ words
313 "mandrill"
315 mapM_ (add "Jasper Van der Jeugt") $ words
316 "blaze-html blaze-markup stylish-haskell"
318 mapM_ (add "Antoine Latter") $ words
319 "uuid byteorder"
321 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
322 "HTF xmlgen stm-stats"
323 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
325 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
326 "parseargs"
328 mapM_ (add "Vincent Hanquez") $ words =<<
329 [ "bytedump certificate cipher-aes cipher-rc4 connection"
330 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
331 , "cryptohash hit language-java libgit pem siphash socks tls"
332 , "tls-debug vhd language-java"
333 ]
335 mapM_ (add "Chris Done") $ words
336 "statistics-linreg"
337 -- https://github.com/isomorphism/these/issues/11
338 -- when (ghcVer >= GhcMajorVersion 7 8) $ add "Chris Done" "shell-conduit"
340#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
341 -- Does not compile on Windows
342 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
343#endif
345 when (ghcVer < GhcMajorVersion 7 8) $
346 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
347 "RefSerialize TCache Workflow MFlow"
349 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
350 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
351 , "comonads-fd compressed concurrent-supply constraints contravariant"
352 , "distributive either eq free groupoids heaps hyphenation"
353 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
354 , "mtl profunctors profunctor-extras reducers reflection"
355 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
356 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
357 , "numeric-extras parsers pointed prelude-extras reducers"
358 , "streams vector-instances"
359 ]
360 when (ghcVer < GhcMajorVersion 7 8) $
361 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
362 [ "categories comonad-extras recursion-schemes syb-extras"
363 ]
365 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
366 "scotty wai-middleware-static"
368 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
369 "hspec doctest base-compat"
371 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
372 "monad-parallel monad-coroutine incremental-parser monoid-subclasses"
374 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
375 [ "monoid-extras dual-tree vector-space-points active force-layout"
376 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
377 , "diagrams-postscript haxr"
378 , "BlogLiterately"
379 , "MonadRandom"
380 -- #289: diagrams-builder diagrams-haddock BlogLiterately-diagrams
381 ]
382 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
383 "JuicyPixels"
385 mapM_ (add "Patrick Brisbin") $ words "gravatar"
387 -- https://github.com/fpco/stackage/issues/299
388 -- mapM_ (add "Paul Harper <benekastah@gmail.com>") $ words "yesod-auth-oauth2"
390 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
391 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
393 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
394 "base-unicode-symbols containers-unicode-symbols"
396 if ghcVer >= GhcMajorVersion 7 8
397 then add "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate"
398 else addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.15"
400 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
401 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
402 , "tardis lens-family-th"
403 ]
405 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
406 "HaTeX matrix"
407 when (ghcVer >= GhcMajorVersion 7 8) $
408 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
409 "binary-list"
411 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
412 ["pipes", "pipes-parse", "pipes-concurrency"]
414 when (ghcVer >= GhcMajorVersion 7 8) $
415 mapM_ (add "Chris Allen <cma@bitemyapp.com>")
416 ["bloodhound"]
418 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
419 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
421 mapM_ (add "Rodrigo Setti <rodrigosetti@gmail.com>") $ words
422 "messagepack messagepack-rpc"
424 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
425 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
427 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
428 "sqlite-simple"
430 mapM_ (add "Michal J. Gajda") $ words
431 "iterable Octree FenwickTree"
432 -- https://github.com/BioHaskell/hPDB/issues/2
433 when (ghcVer >= GhcMajorVersion 7 8) $ do
434 mapM_ (add "Michal J. Gajda") $ words
435 "hPDB hPDB-examples"
437 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
438 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
439 , "traverse-with-class regex-applicative time-lens"
440 , "haskell-names haskell-packages hse-cpp"
441 ]
443 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
444 "HCodecs YampaSynth"
446 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
447 "courier"
449#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
450 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
451 "hdaemonize hsyslog hweblib"
452#else
453 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
454 "hweblib"
455#endif
457 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
458 "circle-packing arbtt"
459 when (ghcVer >= GhcMajorVersion 7 8) $
460 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
461 "ghc-heap-view"
463 when (ghcVer < GhcMajorVersion 7 8) $
464 mapM_ (add "John Wiegley") $ words =<<
465 -- Removed these: bad semigroups upper bound
466 [ "bindings-DSL github monad-extras numbers hlibgit2"
467 , "gitlib gitlib-cmdline gitlib-test"
468 , "gitlib-libgit2"
469 -- https://github.com/jwiegley/gitlib/issues/31
470 -- "gitlib-s3"
471 ]
473 mapM_ (add "Aditya Bhargava <adit@adit.io") $ words
474 "HandsomeSoup"
476 mapM_ (add "Clint Adams <clint@debian.org>") $ words
477 "hOpenPGP openpgp-asciiarmor MusicBrainz DAV hopenpgp-tools"
479 -- https://github.com/fpco/stackage/issues/160
480 mapM_ (add "Ketil Malde") $ words =<<
481 [ "biocore biofasta biofastq biosff"
482 , "blastxml bioace biophd"
483 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
484 , "seqloc bioalign BlastHTTP"
485 -- The following have out-of-date dependencies currently
486 -- biostockholm memexml RNAwolf
487 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
488 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
489 -- , "BiobaseTypes BiobaseFasta"
490 -- MC-Fold-DP
491 ]
492 -- https://github.com/fpco/stackage/issues/163
493 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
495 mapM_ (add "Silk <code@silk.co>") $ words =<<
496 [ "arrow-list attoparsec-expr bumper code-builder fay-builder"
497 , "hxt-pickle-utils multipart regular-xmlpickler"
498 , "tostring uri-encode imagesize-conduit"
499 ]
500 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $ do
501 mapM_ (add "Silk <code@silk.co>") $ words =<<
502 [ "aeson-utils generic-aeson json-schema"
503 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
504 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
505 ]
507 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
508 "hledger"
510 mapM_ (add "Mihai Maruseac <mihai.maruseac@gmail.com>") $ words
511 "io-manager"
513 mapM_ (add "Dimitri Sabadie <dimitri.sabadie@gmail.com") $ words
514 "monad-journal"
516 mapM_ (add "Thomas Schilling <nominolo@googlemail.com>") $ words
517 "ghc-syb-utils"
519 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
520 "ghc-mod io-choice"
521 when (ghcVer >= GhcMajorVersion 7 8) $
522 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
523 "system-canonicalpath"
525 when (ghcVer >= GhcMajorVersion 7 8) $
526 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
527 "holy-project"
528 when requireHP $ addRange "Yann Esposito <yann.esposito@gmail.com>" "holy-project" "< 0.1.1.1"
530 mapM_ (add "Paul Rouse <pgr@doynton.org>") $ words
531 "yesod-auth-hashdb"
533 add "Toralf Wittner <tw@dtex.org>" "zeromq4-haskell"
535 mapM_ (add "trupill@gmail.com") $ words
536 "djinn-lib djinn-ghc"
538 mapM_ (add "Arash Rouhani <miffoljud@gmail.com>") $ words
539 "yesod-text-markdown"
541 mapM_ (add "Matvey Aksenov <matvey.aksenov@gmail.com") $ words
542 "terminal-size"
544 when (ghcVer == GhcMajorVersion 7 8 && not requireHP) $
545 mapM_ (add "Michael Snoyman") $ words =<<
546 [ "repa repa-io repa-algorithms repa-devil JuicyPixels-repa"
547 ]
549 mapM_ (add "Nikita Volkov <nikita.y.volkov@mail.ru>") $
550 words "hasql hasql-postgres hasql-backend postgresql-binary" ++
551 words "stm-containers focus list-t slave-thread partial-handler" ++
552 words "neat-interpolation cases" ++
553 words "base-prelude mtl-prelude"
554 addRange "Nikita Volkov <nikita.y.volkov@mail.ru>" "mtl-prelude" "< 2"
556 -- https://github.com/fpco/stackage/issues/217
557 addRange "Michael Snoyman" "transformers" "< 0.4"
558 addRange "Michael Snoyman" "mtl" "< 2.2"
559 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
561 -- https://github.com/fpco/stackage/issues/224
562 when (ghcVer <= GhcMajorVersion 7 6) $ do
563 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
564 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
565 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
566 addRange "Michael Snoyman" "attoparsec" "== 0.11.3.1"
567 addRange "Michael Snoyman" "parsers" "< 0.11"
568 addRange "Michael Snoyman" "scientific" "< 0.3"
569 addRange "Michael Snoyman" "aeson" "< 0.7.0.5"
570 addRange "Michael Snoyman" "aeson-utils" "< 0.2.2"
571 addRange "Michael Snoyman" "formatting" "< 5"
572 addRange "Michael Snoyman" "aws" "< 0.10"
574 -- 0.16.2 fixes dependency issues with different version of GHC
575 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
576 -- guaranteed to break the API. See
577 -- https://travis-ci.org/jswebtools/language-ecmascript for
578 -- current build status.
579 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
581 -- https://github.com/fpco/stackage/issues/271
582 when (ghcVer < GhcMajorVersion 7 8) $
583 addRange "Michael Snoyman" "aeson" "< 0.8"
585 -- https://github.com/fpco/stackage/issues/274
586 addRange "Michael Snoyman" "pandoc-citeproc" "< 0.4"
588 -- https://github.com/fpco/stackage/issues/276
589 addRange "Michael Snoyman" "network" "< 2.6"
590 addRange "Michael Snoyman" "network-uri" "< 2.6"
592 -- https://github.com/fpco/stackage/issues/279
593 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
595 -- https://github.com/fpco/stackage/issues/288
596 addRange "Michael Snoyman" "text" "< 1.2"
598 -- Force a specific version that's compatible with transformers 0.3
599 addRange "Michael Snoyman" "transformers-compat" "== 0.3.3.3"
601 -- https://github.com/fpco/stackage/issues/291
602 addRange "Michael Snoyman" "random" "< 1.0.1.3"
604 -- https://github.com/fpco/stackage/issues/314
605 addRange "Michael Snoyman" "hxt" "< 9.3.1.9"
607 -- https://github.com/fpco/stackage/issues/318
608 addRange "Michael Snoyman" "HaXml" "< 1.25"
610 -- https://github.com/fpco/stackage/issues/319
611 addRange "Michael Snoyman" "polyparse" "< 1.10"
613 -- https://github.com/fpco/stackage/issues/320
614 addRange "Michael Snoyman" "lens" "< 4.5"
616 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
617 -- Yay workarounds for unnecessarily old versions
618 let peg x y = addRange "Haskell Platform" x y
619 peg "aeson" "== 0.7.0.4"
620 peg "scientific" "== 0.2.0.2"
621 peg "criterion" "<= 0.8.1.0"
622 peg "tasty-quickcheck" "< 0.8.0.3"
623 peg "formatting" "< 5.0"
624 peg "parsers" "< 0.11"
625 peg "lens" "< 4.2"
626 peg "contravariant" "< 1"
627 peg "adjunctions" "< 4.2"
628 peg "kan-extensions" "< 4.1"
629 peg "semigroupoids" "< 4.1"
630 peg "aws" "< 0.10"
631 peg "pandoc" "< 1.13"
632 peg "texmath" "<= 0.6.6.3"
633 peg "checkers" "== 0.3.2"
634 peg "HandsomeSoup" "< 0.3.3"
636add :: String -> String -> Writer PackageMap ()
637add maintainer package = addRange maintainer package "-any"
639addRange :: String -> String -> String -> Writer PackageMap ()
640addRange maintainer package range =
641 case simpleParse range of
642 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
643 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
645-- | Hard coded Haskell Platform versions
646haskellPlatform78 :: Writer PackageMap ()
647haskellPlatform78 = do
648 addRange "Haskell Platform" "ghc" "== 7.8.3"
649 addRange "Haskell Platform" "haddock" "== 2.14.3"
650 addRange "Haskell Platform" "array" "== 0.5.0.0"
651 addRange "Haskell Platform" "base" "== 4.7.0.1"
652 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
653 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
654 addRange "Haskell Platform" "containers" "== 0.5.5.1"
655 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
656 addRange "Haskell Platform" "directory" "== 1.2.1.0"
657 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
658 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
659 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
660 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
661 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
662 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
663 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
664 addRange "Haskell Platform" "process" "== 1.2.0.0"
665 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
666 addRange "Haskell Platform" "time" "== 1.4.2"
667 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
668 addRange "Haskell Platform" "unix" "== 2.7.0.1"
669 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
670 addRange "Haskell Platform" "async" "== 2.0.1.5"
671 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
672 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
673 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
674 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
675 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
676 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
677 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
678 addRange "Haskell Platform" "html" "== 1.0.1.2"
679 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
680 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
681 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
682 addRange "Haskell Platform" "network" "== 2.4.2.3"
683 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
684 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
685 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
686 addRange "Haskell Platform" "parsec" "== 3.1.5"
687 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
688 addRange "Haskell Platform" "QuickCheck" "== 2.6"
689 addRange "Haskell Platform" "random" "== 1.0.1.1"
690 addRange "Haskell Platform" "regex-base" "== 0.93.2"
691 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
692 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
693 addRange "Haskell Platform" "split" "== 0.2.2"
694 addRange "Haskell Platform" "stm" "== 2.4.2"
695 addRange "Haskell Platform" "syb" "== 0.4.1"
696 addRange "Haskell Platform" "text" "== 1.1.0.0"
697 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
698 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
699 addRange "Haskell Platform" "vector" "== 0.10.9.1"
700 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
701 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
702 addRange "Haskell Platform" "alex" "== 3.1.3"
703 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
704 addRange "Haskell Platform" "happy" "== 1.19.4"
705 addRange "Haskell Platform" "hscolour" "== 1.20.3"
707-- | Replacement Github users. This is useful when a project is owned by an
708-- organization. It also lets you ping multiple users.
709--
710-- Note that cross organization team mentions aren't allowed by Github.
711convertGithubUser :: String -> [String]
712convertGithubUser x =
713 fromMaybe [x] $ Map.lookup (map toLower x) pairs
714 where
715 pairs = Map.fromList
716 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
717 , ("yesodweb", ["snoyberg"])
718 , ("fpco", ["snoyberg"])
719 , ("faylang", ["bergmark"])
720 , ("silkapp", ["bergmark", "hesselink"])
721 , ("snapframework",["mightybyte"])
722 , ("haskell-ro", ["mihaimaruseac"])
723 ]