on bc43cb2 help sign in
stackage/Stackage/Config.hs
644 lines 25 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 -> Set PackageName
24defaultExpectedFailures ghcVer = execWriter $ do
25 -- Requires an old version of WAI and Warp for tests
26 add "HTTP"
28 -- text and setenv have recursive dependencies in their tests, which
29 -- cabal can't (yet) handle
30 add "text"
31 add "setenv"
33 -- The version of GLUT included with the HP does not generate
34 -- documentation correctly.
35 add "GLUT"
37 -- https://github.com/bos/statistics/issues/42
38 add "statistics"
40 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
41 add "simple-sendfile"
43 -- http://hackage.haskell.org/trac/hackage/ticket/954
44 add "diagrams"
46 -- https://github.com/fpco/stackage/issues/24
47 add "unix-time"
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
53 -- databases
54 add "HTF"
56 -- https://github.com/simonmar/monad-par/issues/28
57 add "monad-par"
59 -- Unfortunately network failures seem to happen haphazardly
60 add "network"
62 -- https://github.com/ekmett/hyphenation/issues/1
63 add "hyphenation"
65 -- Test suite takes too long to run on some systems
66 add "punycode"
68 -- http://hub.darcs.net/stepcut/happstack/issue/1
69 add "happstack-server"
71 -- Requires a Facebook app.
72 add "fb"
74 -- https://github.com/tibbe/hashable/issues/64
75 add "hashable"
77 -- https://github.com/vincenthz/language-java/issues/10
78 add "language-java"
80 add "threads"
81 add "crypto-conduit"
82 add "pandoc"
83 add "language-ecmascript"
84 add "hspec"
85 add "alex"
87 -- https://github.com/basvandijk/concurrent-extra/issues/
88 add "concurrent-extra"
90 -- https://github.com/skogsbaer/xmlgen/issues/2
91 add "xmlgen"
93 -- Something very strange going on with the test suite, I can't figure
94 -- out how to fix it
95 add "bson"
97 -- Requires a locally running PostgreSQL server with appropriate users
98 add "postgresql-simple"
100 -- Missing files
101 add "websockets"
103 -- Some kind of Cabal bug when trying to run tests
104 add "thyme"
106 when (ghcVer < GhcMajorVersion 7 6) $ do
107 -- https://github.com/haskell-suite/haskell-names/issues/39
108 add "haskell-names"
110 add "shake"
112 -- https://github.com/jgm/pandoc-citeproc/issues/5
113 add "pandoc-citeproc"
115 -- Problems with doctest and sandboxing
116 add "warp"
117 add "wai-logger"
119 -- https://github.com/fpco/stackage/issues/163
120 add "hTalos"
121 add "seqloc"
123 -- https://github.com/bos/math-functions/issues/25
124 add "math-functions"
126 -- FIXME the test suite fails fairly regularly in builds, though I haven't
127 -- discovered why yet
128 add "crypto-numbers"
130 -- Test suite is currently failing regularly, needs to be worked out still.
131 add "lens"
133 -- Requires too old a version of test-framework
134 add "time"
136 -- No code included any more, therefore Haddock fails
137 mapM_ add $ words =<<
138 [ "comonad-transformers comonads-fd groupoids"
139 , "profunctor-extras semigroupoid-extras"
140 , "hamlet shakespeare-css shakespeare-i18n"
141 , "shakespeare-js shakespeare-text"
142 , "attoparsec-conduit blaze-builder-conduit http-client-conduit"
143 , "network-conduit zlib-conduit http-client-multipart"
144 , "wai-eventsource wai-test"
145 ]
147 -- Cloud Haskell tests seem to be unreliable
148 mapM_ add $ words =<<
149 [ "distributed-process lockfree-queue network-transport-tcp"
150 ]
152 -- Pulls in monad-peel which does not compile
153 when (ghcVer >= GhcMajorVersion 7 8) $ add "monad-control"
155 -- issues with pthread
156 mapM_ add $ words "hlibgit2 gitlib-s3 gitlib-libgit2"
158 -- https://github.com/fpco/stackage/issues/226
159 add "options"
161 -- Requires too high a bytestring
162 when (ghcVer <= GhcMajorVersion 7 4) $ add "scientific"
164 -- https://github.com/gtk2hs/gtk2hs/issues/36
165 add "glib"
166 add "pango"
168 -- https://github.com/acw/bytestring-progress/issues/3
169 add "bytestring-progress"
171 -- Seems to require 32-bit functions
172 add "nettle"
174 -- Depends on a missing graphviz executable
175 add "graphviz"
177 -- https://github.com/silkapp/json-schema/issues/8
178 when (ghcVer <= GhcMajorVersion 7 6) $
179 add "json-schema"
181 -- No AWS creds available
182 add "aws"
184 -- Not sure why...
185 add "singletons"
187 -- Requires too new a version of time
188 when (ghcVer < GhcMajorVersion 7 8) $ add "cookie"
190 where
191 add = tell . singleton . PackageName
193-- | List of packages for our stable Hackage. All dependencies will be
194-- included as well. Please indicate who will be maintaining the package
195-- via comments.
196defaultStablePackages :: GhcMajorVersion
197 -> Bool -- ^ using haskell platform?
198 -> Map PackageName (VersionRange, Maintainer)
199defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
200 when (ghcVer == GhcMajorVersion 7 8 && requireHP) haskellPlatform78
201 mapM_ (add "michael@snoyman.com") $ words =<<
202 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
203 , "markdown mime-mail-ses"
204 , "persistent persistent-template persistent-sqlite persistent-postgresql persistent-mysql"
205 , "network-conduit-tls yackage warp-tls keter"
206 , "process-conduit stm-conduit"
207 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
208 , "random-shuffle hebrew-time"
209 , "bzlib-conduit case-insensitive"
210 , "conduit-extra conduit-combinators yesod-websockets"
211 ]
213 -- https://github.com/fpco/stackage/issues/261
214 addRange "Michael Snoyman" "cabal-install" $
215 case () of
216 ()
217 | ghcVer <= GhcMajorVersion 7 4 -> "< 1.15"
218 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
219 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
220 | otherwise -> "-any"
222 when (ghcVer >= GhcMajorVersion 7 6) $ add "michael@snoyman.com" "cabal-src"
223#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
224 -- Does not compile on Windows
225 mapM_ (add "michael@snoyman.com") $ words "judy"
226#endif
228 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
229 [ "web-fpco th-expand-syns configurator smtLib"
230 , "fixed-list indents language-c pretty-class"
231 , "aws csv-conduit cassava"
232 , "async shelly thyme"
233 , "hxt hxt-relaxng dimensional"
234 , "cairo diagrams-cairo gtk2hs-buildtools"
235 , "persistent-mongoDB fpco-api"
236 , "base16-bytestring convertible"
237 , "compdata hybrid-vectors"
238 , "executable-path formatting quandl-api"
239 , "fgl hmatrix hmatrix-gsl"
240 , "alex happy"
241 ]
242 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
243 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
244 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
245 , "threepenny-gui unification-fd"
246 ]
247 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
248 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
249 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
250 [ "criterion"
251 , "th-lift singletons th-desugar quickcheck-assertions"
252 ]
254 -- Deprecated version
255 addRange "FP Complete <michael@fpcomplete.com>" "persistent-mongoDB" "< 1.3.1 || > 1.3.1"
256 when (ghcVer < GhcMajorVersion 7 6) $ do
257 when requireHP $ do
258 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
259 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
260 addRange "FP Complete <michael@fpcomplete.com>" "lockfree-queue" "== 0.2"
261 -- when (ghcVer == GhcMajorVersion 7 6) $ do -- No GHC 7.8 support
262 -- add "FP Complete <michael@fpcomplete.com>" "repa-devil"
263 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
265 mapM_ (add "Neil Mitchell") $ words
266 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis"
268 mapM_ (add "Alan Zimmerman") $ words
269 "hjsmin language-javascript"
270 -- Requires newer alex than provided with HP
271 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $
272 addRange "Alan Zimmerman" "language-javascript" "== 0.5.9"
274 mapM_ (add "Jasper Van der Jeugt") $ words
275 "blaze-html blaze-markup stylish-haskell"
277 mapM_ (add "Antoine Latter") $ words
278 "uuid byteorder"
280 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
281 "HTF xmlgen stm-stats"
282 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
284 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
285 "parseargs"
287 mapM_ (add "Vincent Hanquez") $ words =<<
288 [ "bytedump certificate cipher-aes cipher-rc4 connection"
289 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
290 , "cryptohash hit language-java libgit pem siphash socks tls"
291 , "tls-debug vhd language-java"
292 ]
294 mapM_ (add "Chris Done") $ words
295 "statistics-linreg"
297#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
298 -- Does not compile on Windows
299 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
300#endif
302 when (ghcVer < GhcMajorVersion 7 8) $
303 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
304 "RefSerialize TCache Workflow MFlow"
306 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
307 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
308 , "comonads-fd compressed concurrent-supply constraints contravariant"
309 , "distributive either eq free groupoids heaps hyphenation"
310 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
311 , "mtl profunctors profunctor-extras reducers reflection"
312 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
313 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
314 , "numeric-extras parsers pointed prelude-extras reducers"
315 , "streams vector-instances"
316 ]
317 when (ghcVer < GhcMajorVersion 7 8) $
318 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
319 [ "categories comonad-extras recursion-schemes syb-extras"
320 ]
322 when (ghcVer >= GhcMajorVersion 7 6) $
323 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
324 "scotty wai-middleware-static"
326 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
327 "hspec doctest base-compat"
329 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
330 "monad-parallel monad-coroutine"
331 -- https://github.com/blamario/monoid-subclasses/issues/3
332 when (ghcVer >= GhcMajorVersion 7 6) $ do
333 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
334 "incremental-parser monoid-subclasses"
336 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
337 [ "monoid-extras dual-tree vector-space-points active force-layout"
338 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
339 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
340 , "BlogLiterately BlogLiterately-diagrams"
341 , "MonadRandom"
342 ]
343 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
344 "JuicyPixels"
346 mapM_ (add "Patrick Brisbin") $ words "gravatar"
348 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
349 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
351 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
352 "base-unicode-symbols containers-unicode-symbols"
354 -- NOTE: accelerate not yet supported on GHC 7.8
355 when (ghcVer == GhcMajorVersion 7 6) $ do
356 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
357 "accelerate"
358 when (ghcVer < GhcMajorVersion 7 6) $ do
359 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.14"
360 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "fclabels" "< 2.0"
362 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
363 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
364 , "tardis lens-family-th"
365 ]
367 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
368 "HaTeX matrix"
370 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
371 ["pipes", "pipes-parse", "pipes-concurrency"]
373 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
374 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
376 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
377 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
379 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
380 "sqlite-simple"
382 mapM_ (add "Michal J. Gajda") $ words
383 "iterable Octree FenwickTree"
384 -- https://github.com/BioHaskell/hPDB/issues/2
385 when (ghcVer >= GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
386 mapM_ (add "Michal J. Gajda") $ words
387 "hPDB hPDB-examples"
389 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
390 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
391 , "traverse-with-class regex-applicative time-lens"
392 , "haskell-names haskell-packages hse-cpp"
393 ]
395 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
396 "HCodecs YampaSynth"
398 when (ghcVer >= GhcMajorVersion 7 6) $ do -- No GHC 7.4 support
399 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
400 "courier"
402#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
403 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
404 "hdaemonize hsyslog hweblib"
405#else
406 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
407 "hweblib"
408#endif
410 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
411 "circle-packing arbtt"
413 when (ghcVer < GhcMajorVersion 7 8) $
414 mapM_ (add "John Wiegley") $ words =<<
415 -- Removed these: bad semigroups upper bound
416 [ "bindings-DSL github monad-extras numbers hlibgit2"
417 , "gitlib gitlib-cmdline gitlib-test"
418 , "gitlib-libgit2"
419 -- https://github.com/jwiegley/gitlib/issues/31
420 -- "gitlib-s3"
421 ]
423 mapM_ (add "Ben Ford <ben@dlstartup.com") $ words
424 "HandsomeSoup"
426 mapM_ (add "Clint Adams <clint@debian.org>") $ words
427 "DAV hOpenPGP hopenpgp-tools openpgp-asciiarmor MusicBrainz"
429 -- https://github.com/fpco/stackage/issues/160
430 when (ghcVer >= GhcMajorVersion 7 6) $ do
431 mapM_ (add "Ketil Malde") $ words =<<
432 [ "biocore biofasta biofastq biosff"
433 , "blastxml bioace biophd"
434 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
435 , "seqloc bioalign BlastHTTP"
436 -- The following have out-of-date dependencies currently
437 -- biostockholm memexml RNAwolf
438 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
439 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
440 -- , "BiobaseTypes BiobaseFasta"
441 -- MC-Fold-DP
442 ]
443 -- https://github.com/fpco/stackage/issues/163
444 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
445 when (ghcVer == GhcMajorVersion 7 6) $ do
446 mapM_ (add "Ketil Malde") $ words =<<
447 -- RNAFold
448 [ "hTalos parsestar"
449 ]
451 mapM_ (add "Silk <code@silk.co>") $ words =<<
452 [ "arrow-list attoparsec-expr bumper code-builder fay-builder"
453 , "hxt-pickle-utils multipart regular-xmlpickler"
454 , "tostring uri-encode imagesize-conduit"
455 ]
456 unless (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
457 mapM_ (add "Silk <code@silk.co>") $ words =<<
458 [ "aeson-utils generic-aeson json-schema"
459 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
460 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
461 ]
463 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
464 "hledger"
466 mapM_ (add "Mihai Maruseac <mihai.maruseac@gmail.com>") $ words
467 "io-manager"
469 when (ghcVer >= GhcMajorVersion 7 8) $
470 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
471 "holy-project"
473 -- Newest hxt requires network 2.4 or newest
474 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $ do
475 addRange "Michael Snoyman" "hxt" "< 9.3.1"
476 addRange "Michael Snoyman" "network" "< 2.4"
478 -- https://github.com/fpco/stackage/issues/197
479 when (ghcVer == GhcMajorVersion 7 6 && requireHP) $
480 addRange "Michael Snoyman" "parsers" "< 0.11"
482 -- https://github.com/fpco/stackage/issues/216
483 -- QuickCheck constraint
484 -- when (ghcVer == GhcMajorVersion 7 6) $
485 -- addRange "Michael Snoyman" "repa" "< 3.2.5.1"
487 -- https://github.com/fpco/stackage/issues/217
488 addRange "Michael Snoyman" "transformers" "< 0.4"
489 addRange "Michael Snoyman" "mtl" "< 2.2"
490 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
492 -- https://github.com/fpco/stackage/issues/224
493 when (ghcVer <= GhcMajorVersion 7 6) $ do
494 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
495 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
496 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
498 -- https://github.com/fpco/stackage/issues/231
499 addRange "Michael Snoyman" "optparse-applicative" "< 0.9"
501 -- https://github.com/fpco/stackage/issues/242
502 addRange "Michael Snoyman" "mongoDB" "< 1.6"
504 -- Requires too new a version of text
505 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $ do
506 addRange "Michael Snoyman" "attoparsec" "< 0.11.2.1"
507 addRange "Michael Snoyman" "parsers" "< 0.11"
509 -- local patch
510 addRange "Michael Snoyman" "bson" "== 0.2.4"
512 -- 0.16.2 fixes dependency issues with different version of GHC
513 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
514 -- guaranteed to break the API. See
515 -- https://travis-ci.org/jswebtools/language-ecmascript for
516 -- current build status.
517 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
519 -- https://github.com/fpco/stackage/issues/269
520 addRange "Michael Snoyman" "tasty-hunit" "< 0.9"
521 addRange "Michael Snoyman" "lifted-async" "< 0.2.0.2"
523 -- https://github.com/fpco/stackage/issues/271
524 when (ghcVer < GhcMajorVersion 7 8) $
525 addRange "Michael Snoyman" "aeson" "< 0.8"
527 -- https://github.com/fpco/stackage/issues/274
528 addRange "Michael Snoyman" "pandoc-citeproc" "< 0.4"
530 -- https://github.com/fpco/stackage/issues/276
531 addRange "Michael Snoyman" "network" "< 2.6"
533 -- https://github.com/fpco/stackage/issues/279
534 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
536 -- https://github.com/fpco/stackage/issues/281
537 addRange "Michael Snoyman" "lens" "< 4.4"
539 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
540 -- Yay workarounds for unnecessarily old versions
541 let peg x y = addRange "Haskell Platform" x y
542 peg "aeson" "== 0.7.0.4"
543 peg "scientific" "== 0.2.0.2"
544 peg "criterion" "<= 0.8.1.0"
545 peg "tasty-quickcheck" "< 0.8.0.3"
546 peg "formatting" "< 5.0"
547 peg "parsers" "< 0.11"
548 peg "lens" "< 4.2"
549 peg "contravariant" "< 1"
550 peg "adjunctions" "< 4.2"
551 peg "kan-extensions" "< 4.1"
552 peg "semigroupoids" "< 4.1"
553 peg "aws" "< 0.10"
554 peg "pandoc" "< 1.13"
555 peg "texmath" "<= 0.6.6.3"
557add :: String -> String -> Writer PackageMap ()
558add maintainer package = addRange maintainer package "-any"
560addRange :: String -> String -> String -> Writer PackageMap ()
561addRange maintainer package range =
562 case simpleParse range of
563 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
564 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
566-- | Hard coded Haskell Platform versions
567haskellPlatform78 :: Writer PackageMap ()
568haskellPlatform78 = do
569 addRange "Haskell Platform" "ghc" "== 7.8.3"
570 addRange "Haskell Platform" "haddock" "== 2.14.3"
571 addRange "Haskell Platform" "array" "== 0.5.0.0"
572 addRange "Haskell Platform" "base" "== 4.7.0.1"
573 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
574 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
575 addRange "Haskell Platform" "containers" "== 0.5.5.1"
576 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
577 addRange "Haskell Platform" "directory" "== 1.2.1.0"
578 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
579 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
580 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
581 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
582 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
583 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
584 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
585 addRange "Haskell Platform" "process" "== 1.2.0.0"
586 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
587 addRange "Haskell Platform" "time" "== 1.4.2"
588 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
589 addRange "Haskell Platform" "unix" "== 2.7.0.1"
590 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
591 addRange "Haskell Platform" "async" "== 2.0.1.5"
592 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
593 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
594 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
595 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
596 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
597 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
598 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
599 addRange "Haskell Platform" "html" "== 1.0.1.2"
600 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
601 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
602 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
603 addRange "Haskell Platform" "network" "== 2.4.2.3"
604 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
605 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
606 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
607 addRange "Haskell Platform" "parsec" "== 3.1.5"
608 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
609 addRange "Haskell Platform" "QuickCheck" "== 2.6"
610 addRange "Haskell Platform" "random" "== 1.0.1.1"
611 addRange "Haskell Platform" "regex-base" "== 0.93.2"
612 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
613 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
614 addRange "Haskell Platform" "split" "== 0.2.2"
615 addRange "Haskell Platform" "stm" "== 2.4.2"
616 addRange "Haskell Platform" "syb" "== 0.4.1"
617 addRange "Haskell Platform" "text" "== 1.1.0.0"
618 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
619 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
620 addRange "Haskell Platform" "vector" "== 0.10.9.1"
621 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
622 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
623 addRange "Haskell Platform" "alex" "== 3.1.3"
624 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
625 addRange "Haskell Platform" "happy" "== 1.19.4"
626 addRange "Haskell Platform" "hscolour" "== 1.20.3"
628-- | Replacement Github users. This is useful when a project is owned by an
629-- organization. It also lets you ping multiple users.
630--
631-- Note that cross organization team mentions aren't allowed by Github.
632convertGithubUser :: String -> [String]
633convertGithubUser x =
634 fromMaybe [x] $ Map.lookup (map toLower x) pairs
635 where
636 pairs = Map.fromList
637 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
638 , ("yesodweb", ["snoyberg"])
639 , ("fpco", ["snoyberg"])
640 , ("faylang", ["bergmark"])
641 , ("silkapp", ["bergmark", "hesselink"])
642 , ("snapframework",["mightybyte"])
643 , ("haskell-ro", ["mihaimaruseac"])
644 ]