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