on 5a66ea4 help sign in
stackage/Stackage/Config.hs
669 lines 26 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 -- https://github.com/fpco/stackage/issues/285
187 add "diagrams-haddock"
188 add "scientific"
189 add "json-schema"
191 -- https://github.com/BioHaskell/octree/issues/4
192 add "Octree"
194 -- No code until we upgrade to network 2.6
195 add "network-uri"
197 -- https://github.com/goldfirere/th-desugar/issues/12
198 add "th-desugar"
200 -- https://github.com/haskell/c2hs/issues/108
201 add "c2hs"
203 -- https://github.com/jmillikin/haskell-filesystem/issues/3
204 add "system-filepath"
206 -- For some unknown reason, doctest has trouble on GHC 7.6. This only
207 -- happens during a Stackage test.
208 --
209 -- See: http://www.reddit.com/r/haskell/comments/2go92u/beginner_error_messages_in_c_vs_haskell/cklaspk
210 when (ghcVer == GhcMajorVersion 7 6) $ add "http-types"
212 -- Requires a running webdriver server
213 add "webdriver"
214 add "webdriver-snoy"
216 -- Weird conflicts with sandboxing
217 add "ghc-mod"
219 -- Requires locally running server
220 add "bloodhound"
221 where
222 add = tell . singleton . PackageName
224-- | List of packages for our stable Hackage. All dependencies will be
225-- included as well. Please indicate who will be maintaining the package
226-- via comments.
227defaultStablePackages :: GhcMajorVersion
228 -> Bool -- ^ using haskell platform?
229 -> Map PackageName (VersionRange, Maintainer)
230defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
231 when (ghcVer == GhcMajorVersion 7 8 && requireHP) haskellPlatform78
232 mapM_ (add "michael@snoyman.com") $ words =<<
233 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
234 , "markdown mime-mail-ses"
235 , "persistent persistent-template persistent-sqlite persistent-postgresql persistent-mysql"
236 , "network-conduit-tls yackage warp-tls keter"
237 , "process-conduit stm-conduit"
238 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
239 , "random-shuffle hebrew-time"
240 , "bzlib-conduit case-insensitive"
241 , "conduit-extra conduit-combinators yesod-websockets"
242 , "cabal-src"
243 , "yesod-auth-deskcom monadcryptorandom"
244 ]
246 -- https://github.com/fpco/stackage/issues/261
247 addRange "Michael Snoyman" "cabal-install" $
248 case () of
249 ()
250 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
251 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
252 | otherwise -> "-any"
254 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
255 [ "web-fpco th-expand-syns configurator smtLib"
256 , "fixed-list indents language-c pretty-class"
257 , "csv-conduit cassava"
258 , "async shelly thyme"
259 , "hxt hxt-relaxng dimensional"
260 , "cairo diagrams-cairo gtk2hs-buildtools"
261 , "base16-bytestring convertible"
262 , "compdata hybrid-vectors"
263 , "executable-path formatting quandl-api"
264 , "fgl hmatrix hmatrix-gsl"
265 , "alex happy c2hs"
266 , "fpco-api aws persistent-mongoDB"
267 , "random-fu lhs2tex"
268 , "Chart Chart-diagrams histogram-fill random-source"
269 , "webdriver-snoy" -- Replace with webdriver after: https://github.com/kallisti-dev/hs-webdriver/issues/53
270 -- https://github.com/Soostone/retry/pull/15
271 -- , "retry"
272 ]
273 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
274 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
275 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
276 -- https://github.com/fpco/stackage/issues/295
277 --, "threepenny-gui unification-fd"
278 ]
279 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
280 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
281 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
282 [ "criterion"
283 , "th-lift singletons th-desugar quickcheck-assertions"
284 ]
286 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
288 mapM_ (add "Neil Mitchell") $ words
289 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis js-jquery extra bake ghcid"
291 mapM_ (add "Alan Zimmerman") $ words
292 "hjsmin language-javascript"
294 mapM_ (add "Jasper Van der Jeugt") $ words
295 "blaze-html blaze-markup stylish-haskell"
297 mapM_ (add "Antoine Latter") $ words
298 "uuid byteorder"
300 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
301 "HTF xmlgen stm-stats"
302 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
304 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
305 "parseargs"
307 mapM_ (add "Vincent Hanquez") $ words =<<
308 [ "bytedump certificate cipher-aes cipher-rc4 connection"
309 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
310 , "cryptohash hit language-java libgit pem siphash socks tls"
311 , "tls-debug vhd language-java"
312 ]
314 mapM_ (add "Chris Done") $ words
315 "statistics-linreg"
316 -- https://github.com/isomorphism/these/issues/11
317 -- when (ghcVer >= GhcMajorVersion 7 8) $ add "Chris Done" "shell-conduit"
319#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
320 -- Does not compile on Windows
321 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
322#endif
324 when (ghcVer < GhcMajorVersion 7 8) $
325 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
326 "RefSerialize TCache Workflow MFlow"
328 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
329 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
330 , "comonads-fd compressed concurrent-supply constraints contravariant"
331 , "distributive either eq free groupoids heaps hyphenation"
332 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
333 , "mtl profunctors profunctor-extras reducers reflection"
334 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
335 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
336 , "numeric-extras parsers pointed prelude-extras reducers"
337 , "streams vector-instances"
338 ]
339 when (ghcVer < GhcMajorVersion 7 8) $
340 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
341 [ "categories comonad-extras recursion-schemes syb-extras"
342 ]
344 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
345 "scotty wai-middleware-static"
347 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
348 "hspec doctest base-compat"
350 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
351 "monad-parallel monad-coroutine incremental-parser monoid-subclasses"
353 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
354 [ "monoid-extras dual-tree vector-space-points active force-layout"
355 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
356 , "diagrams-postscript haxr"
357 , "BlogLiterately"
358 , "MonadRandom"
359 -- #289: diagrams-builder diagrams-haddock BlogLiterately-diagrams
360 ]
361 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
362 "JuicyPixels"
364 mapM_ (add "Patrick Brisbin") $ words "gravatar"
366 -- https://github.com/fpco/stackage/issues/299
367 -- mapM_ (add "Paul Harper <benekastah@gmail.com>") $ words "yesod-auth-oauth2"
369 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
370 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
372 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
373 "base-unicode-symbols containers-unicode-symbols"
375 if ghcVer >= GhcMajorVersion 7 8
376 then add "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate"
377 else addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.15"
379 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
380 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
381 , "tardis lens-family-th"
382 ]
384 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
385 "HaTeX matrix"
386 when (ghcVer >= GhcMajorVersion 7 8) $
387 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
388 "binary-list"
390 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
391 ["pipes", "pipes-parse", "pipes-concurrency"]
393 mapM_ (add "Chris Allen <cma@bitemyapp.com>")
394 ["bloodhound"]
396 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
397 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
399 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
400 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
402 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
403 "sqlite-simple"
405 mapM_ (add "Michal J. Gajda") $ words
406 "iterable Octree FenwickTree"
407 -- https://github.com/BioHaskell/hPDB/issues/2
408 when (ghcVer >= GhcMajorVersion 7 8) $ do
409 mapM_ (add "Michal J. Gajda") $ words
410 "hPDB hPDB-examples"
412 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
413 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
414 , "traverse-with-class regex-applicative time-lens"
415 , "haskell-names haskell-packages hse-cpp"
416 ]
418 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
419 "HCodecs YampaSynth"
421 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
422 "courier"
424#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
425 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
426 "hdaemonize hsyslog hweblib"
427#else
428 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
429 "hweblib"
430#endif
432 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
433 "circle-packing arbtt"
434 when (ghcVer >= GhcMajorVersion 7 8) $
435 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
436 "ghc-heap-view"
438 when (ghcVer < GhcMajorVersion 7 8) $
439 mapM_ (add "John Wiegley") $ words =<<
440 -- Removed these: bad semigroups upper bound
441 [ "bindings-DSL github monad-extras numbers hlibgit2"
442 , "gitlib gitlib-cmdline gitlib-test"
443 , "gitlib-libgit2"
444 -- https://github.com/jwiegley/gitlib/issues/31
445 -- "gitlib-s3"
446 ]
448 mapM_ (add "Ben Ford <ben@dlstartup.com") $ words
449 "HandsomeSoup"
451 mapM_ (add "Clint Adams <clint@debian.org>") $ words
452 "hOpenPGP openpgp-asciiarmor MusicBrainz DAV hopenpgp-tools"
454 -- https://github.com/fpco/stackage/issues/160
455 mapM_ (add "Ketil Malde") $ words =<<
456 [ "biocore biofasta biofastq biosff"
457 , "blastxml bioace biophd"
458 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
459 , "seqloc bioalign BlastHTTP"
460 -- The following have out-of-date dependencies currently
461 -- biostockholm memexml RNAwolf
462 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
463 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
464 -- , "BiobaseTypes BiobaseFasta"
465 -- MC-Fold-DP
466 ]
467 -- https://github.com/fpco/stackage/issues/163
468 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
470 mapM_ (add "Silk <code@silk.co>") $ words =<<
471 [ "arrow-list attoparsec-expr bumper code-builder fay-builder"
472 , "hxt-pickle-utils multipart regular-xmlpickler"
473 , "tostring uri-encode imagesize-conduit"
474 ]
475 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $ do
476 mapM_ (add "Silk <code@silk.co>") $ words =<<
477 [ "aeson-utils generic-aeson json-schema"
478 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
479 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
480 ]
482 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
483 "hledger"
485 mapM_ (add "Mihai Maruseac <mihai.maruseac@gmail.com>") $ words
486 "io-manager"
488 mapM_ (add "Dimitri Sabadie <dimitri.sabadie@gmail.com") $ words
489 "monad-journal"
491 mapM_ (add "Thomas Schilling <nominolo@googlemail.com>") $ words
492 "ghc-syb-utils"
494 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
495 "djinn-lib djinn-ghc ghc-mod io-choice"
497 when (ghcVer >= GhcMajorVersion 7 8) $
498 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
499 "holy-project"
500 when requireHP $ addRange "Yann Esposito <yann.esposito@gmail.com>" "holy-project" "< 0.1.1.1"
502 mapM_ (add "Paul Rouse <pgr@doynton.org>") $ words
503 "yesod-auth-hashdb"
505 add "Toralf Wittner <tw@dtex.org>" "zeromq4-haskell"
507 -- https://github.com/fpco/stackage/issues/216
508 -- QuickCheck constraint
509 -- when (ghcVer == GhcMajorVersion 7 6) $
510 -- addRange "Michael Snoyman" "repa" "< 3.2.5.1"
512 -- https://github.com/fpco/stackage/issues/217
513 addRange "Michael Snoyman" "transformers" "< 0.4"
514 addRange "Michael Snoyman" "mtl" "< 2.2"
515 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
517 -- https://github.com/fpco/stackage/issues/224
518 when (ghcVer <= GhcMajorVersion 7 6) $ do
519 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
520 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
521 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
522 addRange "Michael Snoyman" "attoparsec" "== 0.11.3.1"
523 addRange "Michael Snoyman" "parsers" "< 0.11"
524 addRange "Michael Snoyman" "scientific" "< 0.3"
525 addRange "Michael Snoyman" "aeson" "< 0.7.0.5"
526 addRange "Michael Snoyman" "aeson-utils" "< 0.2.2"
527 addRange "Michael Snoyman" "formatting" "< 5"
528 addRange "Michael Snoyman" "aws" "< 0.10"
530 -- 0.16.2 fixes dependency issues with different version of GHC
531 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
532 -- guaranteed to break the API. See
533 -- https://travis-ci.org/jswebtools/language-ecmascript for
534 -- current build status.
535 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
537 -- https://github.com/fpco/stackage/issues/271
538 when (ghcVer < GhcMajorVersion 7 8) $
539 addRange "Michael Snoyman" "aeson" "< 0.8"
541 -- https://github.com/fpco/stackage/issues/274
542 addRange "Michael Snoyman" "pandoc-citeproc" "< 0.4"
544 -- https://github.com/fpco/stackage/issues/276
545 addRange "Michael Snoyman" "network" "< 2.6"
546 addRange "Michael Snoyman" "network-uri" "< 2.6"
548 -- https://github.com/fpco/stackage/issues/279
549 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
551 -- https://github.com/fpco/stackage/issues/288
552 addRange "Michael Snoyman" "text" "< 1.2"
554 -- Pandoc upper bound https://github.com/jgm/pandoc/issues/1681
555 addRange "Michael Snoyman" "http-client" "< 0.4"
557 -- Force a specific version that's compatible with transformers 0.3
558 addRange "Michael Snoyman" "transformers-compat" "== 0.3.3.3"
560 -- https://github.com/fpco/stackage/issues/291
561 addRange "Michael Snoyman" "random" "< 1.0.1.3"
563 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
564 -- Yay workarounds for unnecessarily old versions
565 let peg x y = addRange "Haskell Platform" x y
566 peg "aeson" "== 0.7.0.4"
567 peg "scientific" "== 0.2.0.2"
568 peg "criterion" "<= 0.8.1.0"
569 peg "tasty-quickcheck" "< 0.8.0.3"
570 peg "formatting" "< 5.0"
571 peg "parsers" "< 0.11"
572 peg "lens" "< 4.2"
573 peg "contravariant" "< 1"
574 peg "adjunctions" "< 4.2"
575 peg "kan-extensions" "< 4.1"
576 peg "semigroupoids" "< 4.1"
577 peg "aws" "< 0.10"
578 peg "pandoc" "< 1.13"
579 peg "texmath" "<= 0.6.6.3"
580 peg "checkers" "== 0.3.2"
582add :: String -> String -> Writer PackageMap ()
583add maintainer package = addRange maintainer package "-any"
585addRange :: String -> String -> String -> Writer PackageMap ()
586addRange maintainer package range =
587 case simpleParse range of
588 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
589 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
591-- | Hard coded Haskell Platform versions
592haskellPlatform78 :: Writer PackageMap ()
593haskellPlatform78 = do
594 addRange "Haskell Platform" "ghc" "== 7.8.3"
595 addRange "Haskell Platform" "haddock" "== 2.14.3"
596 addRange "Haskell Platform" "array" "== 0.5.0.0"
597 addRange "Haskell Platform" "base" "== 4.7.0.1"
598 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
599 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
600 addRange "Haskell Platform" "containers" "== 0.5.5.1"
601 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
602 addRange "Haskell Platform" "directory" "== 1.2.1.0"
603 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
604 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
605 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
606 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
607 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
608 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
609 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
610 addRange "Haskell Platform" "process" "== 1.2.0.0"
611 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
612 addRange "Haskell Platform" "time" "== 1.4.2"
613 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
614 addRange "Haskell Platform" "unix" "== 2.7.0.1"
615 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
616 addRange "Haskell Platform" "async" "== 2.0.1.5"
617 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
618 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
619 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
620 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
621 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
622 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
623 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
624 addRange "Haskell Platform" "html" "== 1.0.1.2"
625 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
626 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
627 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
628 addRange "Haskell Platform" "network" "== 2.4.2.3"
629 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
630 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
631 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
632 addRange "Haskell Platform" "parsec" "== 3.1.5"
633 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
634 addRange "Haskell Platform" "QuickCheck" "== 2.6"
635 addRange "Haskell Platform" "random" "== 1.0.1.1"
636 addRange "Haskell Platform" "regex-base" "== 0.93.2"
637 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
638 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
639 addRange "Haskell Platform" "split" "== 0.2.2"
640 addRange "Haskell Platform" "stm" "== 2.4.2"
641 addRange "Haskell Platform" "syb" "== 0.4.1"
642 addRange "Haskell Platform" "text" "== 1.1.0.0"
643 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
644 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
645 addRange "Haskell Platform" "vector" "== 0.10.9.1"
646 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
647 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
648 addRange "Haskell Platform" "alex" "== 3.1.3"
649 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
650 addRange "Haskell Platform" "happy" "== 1.19.4"
651 addRange "Haskell Platform" "hscolour" "== 1.20.3"
653-- | Replacement Github users. This is useful when a project is owned by an
654-- organization. It also lets you ping multiple users.
655--
656-- Note that cross organization team mentions aren't allowed by Github.
657convertGithubUser :: String -> [String]
658convertGithubUser x =
659 fromMaybe [x] $ Map.lookup (map toLower x) pairs
660 where
661 pairs = Map.fromList
662 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
663 , ("yesodweb", ["snoyberg"])
664 , ("fpco", ["snoyberg"])
665 , ("faylang", ["bergmark"])
666 , ("silkapp", ["bergmark", "hesselink"])
667 , ("snapframework",["mightybyte"])
668 , ("haskell-ro", ["mihaimaruseac"])
669 ]