on ad678a8 help sign in
stackage/Stackage/Config.hs
597 lines 23 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 add "shake"
108 -- https://github.com/jgm/pandoc-citeproc/issues/5
109 add "pandoc-citeproc"
111 -- Problems with doctest and sandboxing
112 add "warp"
113 add "wai-logger"
115 -- https://github.com/fpco/stackage/issues/163
116 add "hTalos"
117 add "seqloc"
119 -- https://github.com/bos/math-functions/issues/25
120 add "math-functions"
122 -- FIXME the test suite fails fairly regularly in builds, though I haven't
123 -- discovered why yet
124 add "crypto-numbers"
126 -- Test suite is currently failing regularly, needs to be worked out still.
127 add "lens"
129 -- Requires too old a version of test-framework
130 add "time"
132 -- No code included any more, therefore Haddock fails
133 mapM_ add $ words =<<
134 [ "comonad-transformers comonads-fd groupoids"
135 , "profunctor-extras semigroupoid-extras"
136 , "hamlet shakespeare-css shakespeare-i18n"
137 , "shakespeare-js shakespeare-text"
138 , "attoparsec-conduit blaze-builder-conduit http-client-conduit"
139 , "network-conduit zlib-conduit http-client-multipart"
140 , "wai-eventsource wai-test"
141 ]
143 -- Cloud Haskell tests seem to be unreliable
144 mapM_ add $ words =<<
145 [ "distributed-process lockfree-queue network-transport-tcp"
146 ]
148 -- Pulls in monad-peel which does not compile
149 when (ghcVer >= GhcMajorVersion 7 8) $ add "monad-control"
151 -- issues with pthread
152 mapM_ add $ words "hlibgit2 gitlib-s3 gitlib-libgit2"
154 -- https://github.com/fpco/stackage/issues/226
155 add "options"
157 -- https://github.com/gtk2hs/gtk2hs/issues/36
158 add "glib"
159 add "pango"
161 -- https://github.com/acw/bytestring-progress/issues/3
162 add "bytestring-progress"
164 -- Seems to require 32-bit functions
165 add "nettle"
167 -- Depends on a missing graphviz executable
168 add "graphviz"
170 -- https://github.com/silkapp/json-schema/issues/8
171 when (ghcVer <= GhcMajorVersion 7 6) $
172 add "json-schema"
174 -- No AWS creds available
175 add "aws"
177 -- Not sure why...
178 add "singletons"
180 add "hspec2"
181 add "hspec-wai"
183 -- Requires too new a version of time
184 when (ghcVer < GhcMajorVersion 7 8) $ add "cookie"
186 -- Restrictive checkers upper bound in test suite
187 add "incremental-parser"
189 -- Restrictive QuickCheck upper bound in test suite
190 add "uuid"
192 where
193 add = tell . singleton . PackageName
195-- | List of packages for our stable Hackage. All dependencies will be
196-- included as well. Please indicate who will be maintaining the package
197-- via comments.
198defaultStablePackages :: GhcMajorVersion
199 -> Bool -- ^ using haskell platform?
200 -> Map PackageName (VersionRange, Maintainer)
201defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
202 when (ghcVer == GhcMajorVersion 7 8 && requireHP) haskellPlatform78
203 mapM_ (add "michael@snoyman.com") $ words =<<
204 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
205 , "markdown mime-mail-ses"
206 , "persistent persistent-template persistent-sqlite persistent-postgresql persistent-mysql"
207 , "network-conduit-tls yackage warp-tls keter"
208 , "process-conduit stm-conduit"
209 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
210 , "random-shuffle hebrew-time"
211 , "bzlib-conduit case-insensitive"
212 , "conduit-extra conduit-combinators yesod-websockets"
213 , "cabal-src"
214 ]
216 -- https://github.com/fpco/stackage/issues/261
217 addRange "Michael Snoyman" "cabal-install" $
218 case () of
219 ()
220 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
221 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
222 | otherwise -> "-any"
224 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
225 [ "web-fpco th-expand-syns configurator smtLib"
226 , "fixed-list indents language-c pretty-class"
227 , "csv-conduit cassava"
228 , "async shelly thyme"
229 , "hxt hxt-relaxng dimensional"
230 , "cairo diagrams-cairo gtk2hs-buildtools"
231 , "persistent-mongoDB fpco-api"
232 , "base16-bytestring convertible"
233 , "compdata hybrid-vectors"
234 , "executable-path formatting quandl-api"
235 , "fgl hmatrix hmatrix-gsl"
236 , "alex happy"
237 ]
238 -- aws
239 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
240 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
241 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
242 , "threepenny-gui unification-fd"
243 ]
244 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
245 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
246 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
247 [ "criterion"
248 , "th-lift singletons th-desugar quickcheck-assertions"
249 ]
251 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
253 mapM_ (add "Neil Mitchell") $ words
254 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis"
256 mapM_ (add "Alan Zimmerman") $ words
257 "hjsmin language-javascript"
259 mapM_ (add "Jasper Van der Jeugt") $ words
260 "blaze-html blaze-markup stylish-haskell"
262 mapM_ (add "Antoine Latter") $ words
263 "uuid byteorder"
265 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
266 "HTF xmlgen stm-stats"
267 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
269 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
270 "parseargs"
272 mapM_ (add "Vincent Hanquez") $ words =<<
273 [ "bytedump certificate cipher-aes cipher-rc4 connection"
274 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
275 , "cryptohash hit language-java libgit pem siphash socks tls"
276 , "tls-debug vhd language-java"
277 ]
279 mapM_ (add "Chris Done") $ words
280 "statistics-linreg"
282#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
283 -- Does not compile on Windows
284 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
285#endif
287 when (ghcVer < GhcMajorVersion 7 8) $
288 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
289 "RefSerialize TCache Workflow MFlow"
291 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
292 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
293 , "comonads-fd compressed concurrent-supply constraints contravariant"
294 , "distributive either eq free groupoids heaps hyphenation"
295 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
296 , "mtl profunctors profunctor-extras reducers reflection"
297 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
298 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
299 , "numeric-extras parsers pointed prelude-extras reducers"
300 , "streams vector-instances"
301 ]
302 when (ghcVer < GhcMajorVersion 7 8) $
303 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
304 [ "categories comonad-extras recursion-schemes syb-extras"
305 ]
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 incremental-parser monoid-subclasses"
316 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
317 [ "monoid-extras dual-tree vector-space-points active force-layout"
318 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
319 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
320 , "BlogLiterately BlogLiterately-diagrams"
321 , "MonadRandom"
322 ]
323 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
324 "JuicyPixels"
326 mapM_ (add "Patrick Brisbin") $ words "gravatar"
328 {- persistent 2.0/conduit 1.2
329 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
330 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
331 -}
333 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
334 "base-unicode-symbols containers-unicode-symbols"
336 -- NOTE: accelerate not yet supported on GHC 7.8
337 when (ghcVer == GhcMajorVersion 7 6) $ do
338 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
339 "accelerate"
341 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
342 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
343 , "tardis lens-family-th"
344 ]
346 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
347 "HaTeX matrix binary-list"
349 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
350 ["pipes", "pipes-parse", "pipes-concurrency"]
352 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
353 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
355 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
356 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
358 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
359 "sqlite-simple"
361 mapM_ (add "Michal J. Gajda") $ words
362 "iterable Octree FenwickTree"
363 -- https://github.com/BioHaskell/hPDB/issues/2
364 when (ghcVer >= GhcMajorVersion 7 8) $ do
365 mapM_ (add "Michal J. Gajda") $ words
366 "hPDB hPDB-examples"
368 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
369 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
370 , "traverse-with-class regex-applicative time-lens"
371 , "haskell-names haskell-packages hse-cpp"
372 ]
374 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
375 "HCodecs YampaSynth"
377 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
378 "courier"
380#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
381 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
382 "hdaemonize hsyslog hweblib"
383#else
384 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
385 "hweblib"
386#endif
388 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
389 "circle-packing arbtt"
391 when (ghcVer < GhcMajorVersion 7 8) $
392 mapM_ (add "John Wiegley") $ words =<<
393 -- Removed these: bad semigroups upper bound
394 [ "bindings-DSL github monad-extras numbers hlibgit2"
395 , "gitlib gitlib-cmdline gitlib-test"
396 , "gitlib-libgit2"
397 -- https://github.com/jwiegley/gitlib/issues/31
398 -- "gitlib-s3"
399 ]
401 mapM_ (add "Ben Ford <ben@dlstartup.com") $ words
402 "HandsomeSoup"
404 mapM_ (add "Clint Adams <clint@debian.org>") $ words
405 "DAV hOpenPGP hopenpgp-tools openpgp-asciiarmor MusicBrainz"
407 -- https://github.com/fpco/stackage/issues/160
408 mapM_ (add "Ketil Malde") $ words =<<
409 [ "biocore biofasta biofastq biosff"
410 , "blastxml bioace biophd"
411 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
412 , "seqloc bioalign BlastHTTP"
413 -- The following have out-of-date dependencies currently
414 -- biostockholm memexml RNAwolf
415 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
416 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
417 -- , "BiobaseTypes BiobaseFasta"
418 -- MC-Fold-DP
419 ]
420 -- https://github.com/fpco/stackage/issues/163
421 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
423 mapM_ (add "Silk <code@silk.co>") $ words =<<
424 [ "arrow-list attoparsec-expr bumper code-builder fay-builder"
425 , "hxt-pickle-utils multipart regular-xmlpickler"
426 , "tostring uri-encode imagesize-conduit"
427 ]
428 unless (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
429 mapM_ (add "Silk <code@silk.co>") $ words =<<
430 [ "aeson-utils generic-aeson json-schema"
431 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
432 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
433 ]
435 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
436 "hledger"
438 mapM_ (add "Mihai Maruseac <mihai.maruseac@gmail.com>") $ words
439 "io-manager"
441 when (ghcVer >= GhcMajorVersion 7 8) $
442 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
443 "holy-project"
445 -- https://github.com/fpco/stackage/issues/216
446 -- QuickCheck constraint
447 -- when (ghcVer == GhcMajorVersion 7 6) $
448 -- addRange "Michael Snoyman" "repa" "< 3.2.5.1"
450 -- https://github.com/fpco/stackage/issues/217
451 addRange "Michael Snoyman" "transformers" "< 0.4"
452 addRange "Michael Snoyman" "mtl" "< 2.2"
453 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
455 -- https://github.com/fpco/stackage/issues/224
456 when (ghcVer <= GhcMajorVersion 7 6) $ do
457 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
458 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
459 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
461 -- 0.16.2 fixes dependency issues with different version of GHC
462 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
463 -- guaranteed to break the API. See
464 -- https://travis-ci.org/jswebtools/language-ecmascript for
465 -- current build status.
466 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
468 -- https://github.com/fpco/stackage/issues/269
469 addRange "Michael Snoyman" "tasty-hunit" "< 0.9"
470 addRange "Michael Snoyman" "lifted-async" "< 0.2.0.2"
472 -- https://github.com/fpco/stackage/issues/271
473 when (ghcVer < GhcMajorVersion 7 8) $
474 addRange "Michael Snoyman" "aeson" "< 0.8"
476 -- https://github.com/fpco/stackage/issues/274
477 addRange "Michael Snoyman" "pandoc-citeproc" "< 0.4"
479 -- https://github.com/fpco/stackage/issues/276
480 addRange "Michael Snoyman" "network" "< 2.6"
481 addRange "Michael Snoyman" "network-uri" "< 2.6"
483 -- https://github.com/fpco/stackage/issues/279
484 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
486 -- https://github.com/fpco/stackage/issues/281
487 addRange "Michael Snoyman" "lens" "< 4.4"
489 -- https://github.com/fpco/stackage/issues/285
490 addRange "Michael Snoyman" "tasty" "< 0.9"
492 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
493 -- Yay workarounds for unnecessarily old versions
494 let peg x y = addRange "Haskell Platform" x y
495 peg "aeson" "== 0.7.0.4"
496 peg "scientific" "== 0.2.0.2"
497 peg "criterion" "<= 0.8.1.0"
498 peg "tasty-quickcheck" "< 0.8.0.3"
499 peg "formatting" "< 5.0"
500 peg "parsers" "< 0.11"
501 peg "lens" "< 4.2"
502 peg "contravariant" "< 1"
503 peg "adjunctions" "< 4.2"
504 peg "kan-extensions" "< 4.1"
505 peg "semigroupoids" "< 4.1"
506 --peg "aws" "< 0.10"
507 peg "pandoc" "< 1.13"
508 peg "texmath" "<= 0.6.6.3"
510add :: String -> String -> Writer PackageMap ()
511add maintainer package = addRange maintainer package "-any"
513addRange :: String -> String -> String -> Writer PackageMap ()
514addRange maintainer package range =
515 case simpleParse range of
516 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
517 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
519-- | Hard coded Haskell Platform versions
520haskellPlatform78 :: Writer PackageMap ()
521haskellPlatform78 = do
522 addRange "Haskell Platform" "ghc" "== 7.8.3"
523 addRange "Haskell Platform" "haddock" "== 2.14.3"
524 addRange "Haskell Platform" "array" "== 0.5.0.0"
525 addRange "Haskell Platform" "base" "== 4.7.0.1"
526 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
527 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
528 addRange "Haskell Platform" "containers" "== 0.5.5.1"
529 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
530 addRange "Haskell Platform" "directory" "== 1.2.1.0"
531 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
532 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
533 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
534 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
535 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
536 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
537 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
538 addRange "Haskell Platform" "process" "== 1.2.0.0"
539 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
540 addRange "Haskell Platform" "time" "== 1.4.2"
541 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
542 addRange "Haskell Platform" "unix" "== 2.7.0.1"
543 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
544 addRange "Haskell Platform" "async" "== 2.0.1.5"
545 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
546 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
547 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
548 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
549 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
550 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
551 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
552 addRange "Haskell Platform" "html" "== 1.0.1.2"
553 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
554 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
555 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
556 addRange "Haskell Platform" "network" "== 2.4.2.3"
557 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
558 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
559 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
560 addRange "Haskell Platform" "parsec" "== 3.1.5"
561 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
562 addRange "Haskell Platform" "QuickCheck" "== 2.6"
563 addRange "Haskell Platform" "random" "== 1.0.1.1"
564 addRange "Haskell Platform" "regex-base" "== 0.93.2"
565 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
566 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
567 addRange "Haskell Platform" "split" "== 0.2.2"
568 addRange "Haskell Platform" "stm" "== 2.4.2"
569 addRange "Haskell Platform" "syb" "== 0.4.1"
570 addRange "Haskell Platform" "text" "== 1.1.0.0"
571 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
572 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
573 addRange "Haskell Platform" "vector" "== 0.10.9.1"
574 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
575 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
576 addRange "Haskell Platform" "alex" "== 3.1.3"
577 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
578 addRange "Haskell Platform" "happy" "== 1.19.4"
579 addRange "Haskell Platform" "hscolour" "== 1.20.3"
581-- | Replacement Github users. This is useful when a project is owned by an
582-- organization. It also lets you ping multiple users.
583--
584-- Note that cross organization team mentions aren't allowed by Github.
585convertGithubUser :: String -> [String]
586convertGithubUser x =
587 fromMaybe [x] $ Map.lookup (map toLower x) pairs
588 where
589 pairs = Map.fromList
590 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
591 , ("yesodweb", ["snoyberg"])
592 , ("fpco", ["snoyberg"])
593 , ("faylang", ["bergmark"])
594 , ("silkapp", ["bergmark", "hesselink"])
595 , ("snapframework",["mightybyte"])
596 , ("haskell-ro", ["mihaimaruseac"])
597 ]