on 54de800 help sign in
stackage/Stackage/Config.hs
815 lines 31 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"
225 add "hasql-postgres"
227 -- https://github.com/gtk2hs/gtk2hs/issues/79
228 add "gio"
229 add "gtk"
231 -- Requires SAT solver and old QuickCheck
232 add "ersatz"
234 -- https://github.com/ekmett/gl/issues/3
235 add "gl"
237 -- Failing doctests
238 add "bits"
240 -- No server running
241 add "amqp"
243 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
244 -- https://github.com/vincenthz/hs-asn1/issues/11
245 add "asn1-encoding"
247 -- https://github.com/vincenthz/hs-tls/issues/84
248 add "tls"
250 add "x509"
251 where
252 add = tell . singleton . PackageName
254-- | List of packages for our stable Hackage. All dependencies will be
255-- included as well. Please indicate who will be maintaining the package
256-- via comments.
257defaultStablePackages :: GhcMajorVersion
258 -> Bool -- ^ using haskell platform?
259 -> Map PackageName (VersionRange, Maintainer)
260defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
261 when (ghcVer == GhcMajorVersion 7 8 && requireHP) haskellPlatform78
262 mapM_ (add "michael@snoyman.com") $ words =<<
263 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
264 , "markdown mime-mail-ses"
265 , "persistent persistent-template persistent-sqlite persistent-postgresql persistent-mysql"
266 , "network-conduit-tls yackage warp-tls keter"
267 , "process-conduit stm-conduit"
268 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
269 , "random-shuffle hebrew-time"
270 , "bzlib-conduit case-insensitive"
271 , "conduit-extra conduit-combinators yesod-websockets"
272 , "cabal-src"
273 , "yesod-auth-deskcom monadcryptorandom sphinx"
274 , "yesod-gitrepo"
275 ]
277 -- https://github.com/fpco/stackage/issues/261
278 addRange "Michael Snoyman" "cabal-install" $
279 case () of
280 ()
281 | ghcVer <= GhcMajorVersion 7 6 -> "< 1.17"
282 | ghcVer <= GhcMajorVersion 7 8 -> "< 1.19"
283 | otherwise -> "-any"
285 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
286 [ "web-fpco th-expand-syns configurator smtLib"
287 , "fixed-list indents language-c pretty-class"
288 , "csv-conduit cassava"
289 , "async shelly thyme"
290 , "hxt hxt-relaxng dimensional"
291 , "cairo diagrams-cairo gtk2hs-buildtools"
292 , "base16-bytestring convertible"
293 , "compdata hybrid-vectors"
294 , "executable-path formatting quandl-api"
295 , "fgl hmatrix hmatrix-gsl"
296 , "alex happy c2hs"
297 , "fpco-api aws persistent-mongoDB"
298 , "random-fu lhs2tex"
299 , "Chart Chart-diagrams histogram-fill random-source"
300 , "webdriver"
301 , "foreign-store"
302 , "statistics-linreg"
303 -- https://github.com/Soostone/retry/issues/18
304 -- , "retry"
305 ]
306 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
307 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
308 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
309 -- https://github.com/fpco/stackage/issues/295
310 --, "threepenny-gui unification-fd"
311 ]
312 addRange "FP Complete <michael@fpcomplete.com>" "compdata" "< 0.8"
313 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
314 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
315 [ "criterion"
316 , "th-lift singletons th-desugar quickcheck-assertions"
317 ]
319 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
321 mapM_ (add "Omari Norman <omari@smileystation.com>") $ words
322 "barecheck rainbow rainbow-tests"
323 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
324 mapM_ (add "Omari Norman <omari@smileystation.com>") $ words
325 "quickpull"
327 mapM_ (add "Neil Mitchell") $ words
328 "hlint hoogle shake derive tagsoup cmdargs safe uniplate nsis js-jquery js-flot extra bake ghcid"
330 mapM_ (add "Alan Zimmerman") $ words
331 "hjsmin language-javascript"
333 {-
335 https://github.com/fpco/stackage/issues/320
337 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
338 mapM_ (add "Alfredo Di Napoli <alfredo.dinapoli@gmail.com>") $ words
339 "mandrill"
340 -}
342 mapM_ (add "Jasper Van der Jeugt") $ words
343 "blaze-html blaze-markup stylish-haskell"
345 mapM_ (add "Antoine Latter") $ words
346 "uuid byteorder"
348 mapM_ (add "Philipp Middendorf <pmidden@secure.mailbox.org>") $ words
349 "clock"
351 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
352 "HTF xmlgen stm-stats"
353 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
355 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
356 "parseargs"
358 mapM_ (add "Vincent Hanquez") $ words =<<
359 [ "bytedump certificate cipher-aes cipher-rc4 connection"
360 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
361 , "cryptohash hit language-java libgit pem siphash socks tls"
362 , "tls-debug vhd language-java"
363 ]
365 mapM_ (add "Chris Done") $ words =<<
366 [ "ace check-email freenect gd"
367 , "hostname-validate ini lucid osdkeys pdfinfo"
368 , "pure-io sourcemap frisby"
369 -- https://github.com/nominolo/atto-lisp/issues/15
370 -- , "present"
371 ]
373 -- Requires older haddock currently
374 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $
375 mapM_ (add "Chris Done") $ words =<<
376 [ "haskell-docs"
377 ]
379 -- https://github.com/jgoerzen/testpack/issues/10
380 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
381 mapM_ (add "Chris Done") $ words =<<
382 [ "scrobble"
383 ]
385 -- Requires too new a process for GHC 7.6
386 when (ghcVer >= GhcMajorVersion 7 8) $
387 mapM_ (add "Chris Done") $ words =<<
388 [ "shell-conduit"
389 ]
391 -- TODO: Add hindent and structured-haskell-mode once they've been ported to HSE 1.16.
393#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
394 -- Does not compile on Windows
395 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
396#endif
398 when (ghcVer < GhcMajorVersion 7 8) $
399 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
400 "RefSerialize TCache Workflow MFlow"
402 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
403 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
404 , "comonads-fd compressed concurrent-supply constraints contravariant"
405 , "distributive either eq free groupoids heaps hyphenation"
406 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
407 , "mtl profunctors profunctor-extras reducers reflection"
408 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
409 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
410 , "numeric-extras parsers pointed prelude-extras reducers"
411 , "streams vector-instances"
412 , "approximate bits bytes compensated exceptions"
413 , "linear-accelerate log-domain"
414 , "monad-products monad-st nats"
415 , "ersatz"
416 -- hyperloglog
417 ]
418 when (ghcVer < GhcMajorVersion 7 8) $ do
419 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
420 [ "categories comonad-extras recursion-schemes syb-extras"
421 ]
422 addRange "Edward Kmett <ekmett@gmail.com>" "bits" "< 0.4"
423 when (ghcVer >= GhcMajorVersion 7 8) $
424 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
425 -- https://github.com/ekmett/fixed/issues/1
426 [ "fixed"
427 -- https://github.com/ekmett/half/issues/1
428 , "half gl"
429 ]
430 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
431 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
432 [ "lens-aeson quickpull zlib-lens"
433 ]
434 -- Temporary upper bound for some of the above packages
435 addRange "Edward Kmett <ekmett@gmail.com>" "generic-deriving" "< 1.7"
437 mapM_ (add "Andrew Farmer <afarmer@ittc.ku.edu>") $ words
438 "scotty wai-middleware-static"
440 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
441 "hspec hspec-wai hspec-wai-json aeson-qq interpolate doctest base-compat"
443 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
444 "monad-parallel monad-coroutine incremental-parser monoid-subclasses"
446 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
447 [ "monoid-extras dual-tree vector-space-points active force-layout"
448 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
449 , "diagrams-postscript haxr"
450 , "BlogLiterately"
451 , "MonadRandom"
452 , "diagrams-builder diagrams-haddock BlogLiterately-diagrams"
453 ]
454 mapM_ (add "Vincent Berthoux <vincent.berthoux@gmail.com>") $ words
455 "JuicyPixels"
457 mapM_ (add "Patrick Brisbin") $ words "gravatar"
459 -- https://github.com/fpco/stackage/issues/299
460 -- mapM_ (add "Paul Harper <benekastah@gmail.com>") $ words "yesod-auth-oauth2"
462 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
463 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
465 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
466 "base-unicode-symbols containers-unicode-symbols"
468 if ghcVer >= GhcMajorVersion 7 8
469 then add "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate"
470 else do
471 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.15"
472 addRange "Michael Snoyman" "linear-accelerate" "< 0.2"
474 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
475 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
476 , "tardis lens-family-th"
477 ]
479 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
480 "HaTeX matrix"
481 when (ghcVer >= GhcMajorVersion 7 8) $
482 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
483 "binary-list"
485 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
486 ["pipes", "pipes-parse", "pipes-concurrency"]
488 when (ghcVer >= GhcMajorVersion 7 8) $
489 mapM_ (add "Chris Allen <cma@bitemyapp.com>")
490 ["bloodhound"]
492 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
493 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
495 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $
496 mapM_ (add "Rodrigo Setti <rodrigosetti@gmail.com>") $ words
497 "messagepack messagepack-rpc"
499 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
500 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
502 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
503 "sqlite-simple"
505 mapM_ (add "Michal J. Gajda") $ words
506 "iterable Octree FenwickTree"
507 -- https://github.com/BioHaskell/hPDB/issues/2
508 when (ghcVer >= GhcMajorVersion 7 8) $ do
509 mapM_ (add "Michal J. Gajda") $ words
510 "hPDB hPDB-examples"
512 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
513 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
514 , "traverse-with-class regex-applicative time-lens"
515 , "haskell-names haskell-packages hse-cpp"
516 , "action-permutations amqp curl generics-sop heredoc immortal timezone-olson timezone-series"
517 ]
519 mapM_ (add "George Giorgidze <giorgidze@gmail.com>") $ words
520 "HCodecs YampaSynth"
522 mapM_ (add "Phil Hargett <phil@haphazardhouse.net>") $ words
523 "courier"
525#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
526 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
527 "hdaemonize hsyslog hweblib"
528#else
529 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
530 "hweblib"
531#endif
533 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
534 "circle-packing arbtt"
535 when (ghcVer >= GhcMajorVersion 7 8) $
536 mapM_ (add "Joachim Breitner <mail@joachim-breitner.de>") $ words
537 "ghc-heap-view"
539 when (ghcVer < GhcMajorVersion 7 8) $
540 mapM_ (add "John Wiegley") $ words =<<
541 [ "bindings-DSL github monad-extras numbers"
542 ]
544 mapM_ (add "Aditya Bhargava <adit@adit.io") $ words
545 "HandsomeSoup"
547 mapM_ (add "Clint Adams <clint@debian.org>") $ words
548 "hOpenPGP openpgp-asciiarmor MusicBrainz DAV hopenpgp-tools"
550 -- https://github.com/fpco/stackage/issues/160
551 mapM_ (add "Ketil Malde") $ words =<<
552 [ "biocore biofasta biofastq biosff"
553 , "blastxml bioace biophd"
554 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
555 , "seqloc bioalign BlastHTTP"
556 -- The following have out-of-date dependencies currently
557 -- biostockholm memexml RNAwolf
558 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
559 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
560 -- , "BiobaseTypes BiobaseFasta"
561 -- MC-Fold-DP
562 ]
563 -- https://github.com/fpco/stackage/issues/163
564 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
566 mapM_ (add "Silk <code@silk.co>") $ words =<<
567 [ "arrow-list attoparsec-expr bumper code-builder fay-builder"
568 , "hxt-pickle-utils multipart regular-xmlpickler"
569 , "tostring uri-encode imagesize-conduit"
570 ]
571 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $ do
572 mapM_ (add "Silk <code@silk.co>") $ words =<<
573 [ "aeson-utils generic-aeson json-schema"
574 , "rest-client rest-core rest-gen rest-happstack rest-snap rest-stringmap"
575 , "rest-types rest-wai tostring uri-encode imagesize-conduit"
576 ]
578 mapM_ (add "Simon Michael <simon@joyful.com>") $ words
579 "hledger"
581 mapM_ (add "Mihai Maruseac <mihai.maruseac@gmail.com>") $ words
582 "io-manager"
584 mapM_ (add "Dimitri Sabadie <dimitri.sabadie@gmail.com") $ words
585 "monad-journal"
587 mapM_ (add "Thomas Schilling <nominolo@googlemail.com>") $ words
588 "ghc-syb-utils"
590 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
591 "ghc-mod io-choice"
592 when (ghcVer >= GhcMajorVersion 7 8) $
593 mapM_ (add "Boris Buliga <d12frosted@icloud.com>") $ words
594 "system-canonicalpath"
596 when (ghcVer >= GhcMajorVersion 7 8) $
597 mapM_ (add "Yann Esposito <yann.esposito@gmail.com>") $ words
598 "holy-project"
599 when requireHP $ addRange "Yann Esposito <yann.esposito@gmail.com>" "holy-project" "< 0.1.1.1"
601 mapM_ (add "Paul Rouse <pgr@doynton.org>") $ words
602 "yesod-auth-hashdb"
604 add "Toralf Wittner <tw@dtex.org>" "zeromq4-haskell"
606 mapM_ (add "trupill@gmail.com") $ words
607 "djinn-lib djinn-ghc"
609 mapM_ (add "Arash Rouhani <miffoljud@gmail.com>") $ words
610 "yesod-text-markdown"
612 mapM_ (add "Matvey Aksenov <matvey.aksenov@gmail.com") $ words
613 "terminal-size"
615 mapM_ (add "Luis G. Torres <lgtorres42@gmail.com") $ words
616 "kdt"
617 {- https://github.com/fpco/stackage/pull/331
618 mapM_ (add "Jyotirmoy Bhattacharya <jyotirmoy@jyotirmoy.net") $ words
619 "hakyll"
620 -}
622 mapM_ (add "Emanuel Borsobom <manny@fpcomplete.com>") $ words
623 "text-binary"
624 when (ghcVer >= GhcMajorVersion 7 8) $
625 mapM_ (add "Emanuel Borsobom <manny@fpcomplete.com>") $ words
626 "haddock-api"
628 mapM_ (add "Michael Sloan <mgsloan@gmail.com") $ words
629 "th-orphans th-reify-many"
631 when (ghcVer == GhcMajorVersion 7 8 && not requireHP) $
632 mapM_ (add "Michael Snoyman") $ words =<<
633 [ "repa repa-io repa-algorithms repa-devil JuicyPixels-repa"
634 ]
636 when (ghcVer >= GhcMajorVersion 7 8 && not requireHP) $ do
637 mapM_ (add "Nikita Volkov <nikita.y.volkov@mail.ru>") $
638 words "hasql hasql-postgres hasql-backend postgresql-binary" ++
639 words "stm-containers focus list-t slave-thread partial-handler" ++
640 words "neat-interpolation cases" ++
641 words "base-prelude mtl-prelude"
642 addRange "Nikita Volkov <nikita.y.volkov@mail.ru>" "mtl-prelude" "< 2"
644 mapM_ (add "Iustin Pop <iustin@k1024.org>") $ words
645 "prefix-units"
647 -- https://github.com/fpco/stackage/issues/217
648 addRange "Michael Snoyman" "transformers" "< 0.4"
649 addRange "Michael Snoyman" "mtl" "< 2.2"
650 addRange "Michael Snoyman" "lifted-base" "< 0.2.2.2"
652 -- https://github.com/fpco/stackage/issues/224
653 when (ghcVer <= GhcMajorVersion 7 6) $ do
654 addRange "Michael Snoyman" "zip-archive" "== 0.2.2.1"
655 addRange "Michael Snoyman" "pandoc" "== 1.12.4.2"
656 addRange "Michael Snoyman" "texmath" "<= 0.6.6.3"
657 addRange "Michael Snoyman" "attoparsec" "== 0.11.3.1"
658 addRange "Michael Snoyman" "parsers" "< 0.11"
659 addRange "Michael Snoyman" "scientific" "< 0.3"
660 addRange "Michael Snoyman" "aeson" "< 0.7.0.5"
661 addRange "Michael Snoyman" "aeson-utils" "< 0.2.2"
662 addRange "Michael Snoyman" "formatting" "< 5"
663 addRange "Michael Snoyman" "aws" "< 0.10"
664 addRange "Michael Snoyman" "network" "< 2.6"
665 addRange "Michael Snoyman" "network-uri" "< 2.6"
667 -- 0.16.2 fixes dependency issues with different version of GHC
668 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
669 -- guaranteed to break the API. See
670 -- https://travis-ci.org/jswebtools/language-ecmascript for
671 -- current build status.
672 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
674 -- https://github.com/fpco/stackage/issues/271
675 when (ghcVer < GhcMajorVersion 7 8) $
676 addRange "Michael Snoyman" "aeson" "< 0.8"
678 -- https://github.com/fpco/stackage/issues/279
679 addRange "Michael Snoyman" "MonadRandom" "< 0.2"
681 -- https://github.com/fpco/stackage/issues/288
682 addRange "Michael Snoyman" "text" "< 1.2"
684 -- Force a specific version that's compatible with transformers 0.3
685 addRange "Michael Snoyman" "transformers-compat" "== 0.3.3.3"
687 -- https://github.com/fpco/stackage/issues/291
688 addRange "Michael Snoyman" "random" "< 1.0.1.3"
690 -- https://github.com/fpco/stackage/issues/314
691 addRange "Michael Snoyman" "hxt" "< 9.3.1.9"
693 -- https://github.com/fpco/stackage/issues/318
694 addRange "Michael Snoyman" "HaXml" "< 1.25"
696 -- https://github.com/fpco/stackage/issues/319
697 addRange "Michael Snoyman" "polyparse" "< 1.10"
699 -- https://github.com/fpco/stackage/issues/341
700 addRange "Michael Snoyman" "haskell-names" "< 0.5"
702 -- https://github.com/fpco/stackage/issues/350
703 addRange "Michael Snoyman" "semigroups" "< 0.16"
704 addRange "Michael Snoyman" "nats" "< 1"
705 addRange "Michael Snoyman" "void" "< 0.7"
707 when (ghcVer == GhcMajorVersion 7 8 && requireHP) $ do
708 -- Yay workarounds for unnecessarily old versions
709 let peg x y = addRange "Haskell Platform" x y
710 peg "aeson" "== 0.7.0.4"
711 peg "scientific" "== 0.2.0.2"
712 peg "criterion" "<= 0.8.1.0"
713 peg "tasty-quickcheck" "< 0.8.0.3"
714 peg "formatting" "< 5.0"
715 peg "parsers" "< 0.11"
716 peg "lens" "< 4.2"
717 peg "contravariant" "< 1"
718 peg "adjunctions" "< 4.2"
719 peg "kan-extensions" "< 4.1"
720 peg "semigroupoids" "< 4.1"
721 peg "aws" "< 0.10"
722 peg "pandoc" "< 1.13"
723 peg "texmath" "<= 0.6.6.3"
724 peg "checkers" "== 0.3.2"
725 peg "HandsomeSoup" "< 0.3.3"
726 peg "network-uri" "< 2.6"
728add :: String -> String -> Writer PackageMap ()
729add maintainer package = addRange maintainer package "-any"
731addRange :: String -> String -> String -> Writer PackageMap ()
732addRange maintainer package range =
733 case simpleParse range of
734 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
735 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
737-- | Hard coded Haskell Platform versions
738haskellPlatform78 :: Writer PackageMap ()
739haskellPlatform78 = do
740 addRange "Haskell Platform" "ghc" "== 7.8.3"
741 addRange "Haskell Platform" "haddock" "== 2.14.3"
742 addRange "Haskell Platform" "array" "== 0.5.0.0"
743 addRange "Haskell Platform" "base" "== 4.7.0.1"
744 addRange "Haskell Platform" "bytestring" "== 0.10.4.0"
745 addRange "Haskell Platform" "Cabal" "== 1.18.1.3"
746 addRange "Haskell Platform" "containers" "== 0.5.5.1"
747 addRange "Haskell Platform" "deepseq" "== 1.3.0.2"
748 addRange "Haskell Platform" "directory" "== 1.2.1.0"
749 addRange "Haskell Platform" "filepath" "== 1.3.0.2"
750 addRange "Haskell Platform" "haskell2010" "== 1.1.2.0"
751 addRange "Haskell Platform" "haskell98" "== 2.0.0.3"
752 addRange "Haskell Platform" "hpc" "== 0.6.0.1"
753 addRange "Haskell Platform" "old-locale" "== 1.0.0.6"
754 addRange "Haskell Platform" "old-time" "== 1.1.0.2"
755 addRange "Haskell Platform" "pretty" "== 1.1.1.1"
756 addRange "Haskell Platform" "process" "== 1.2.0.0"
757 addRange "Haskell Platform" "template-haskell" "== 2.9.0.0"
758 addRange "Haskell Platform" "time" "== 1.4.2"
759 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
760 addRange "Haskell Platform" "unix" "== 2.7.0.1"
761 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
762 addRange "Haskell Platform" "async" "== 2.0.1.5"
763 addRange "Haskell Platform" "attoparsec" "== 0.10.4.0"
764 addRange "Haskell Platform" "case-insensitive" "== 1.1.0.3"
765 addRange "Haskell Platform" "fgl" "== 5.5.0.1"
766 addRange "Haskell Platform" "GLURaw" "== 1.4.0.1"
767 addRange "Haskell Platform" "GLUT" "== 2.5.1.1"
768 addRange "Haskell Platform" "hashable" "== 1.2.2.0"
769 addRange "Haskell Platform" "haskell-src" "== 1.0.1.6"
770 addRange "Haskell Platform" "html" "== 1.0.1.2"
771 addRange "Haskell Platform" "HTTP" "== 4000.2.10"
772 addRange "Haskell Platform" "HUnit" "== 1.2.5.2"
773 addRange "Haskell Platform" "mtl" "== 2.1.3.1"
774 addRange "Haskell Platform" "network" "== 2.4.2.3"
775 addRange "Haskell Platform" "OpenGL" "== 2.9.2.0"
776 addRange "Haskell Platform" "OpenGLRaw" "== 1.5.0.0"
777 addRange "Haskell Platform" "parallel" "== 3.2.0.4"
778 addRange "Haskell Platform" "parsec" "== 3.1.5"
779 addRange "Haskell Platform" "primitive" "== 0.5.2.1"
780 addRange "Haskell Platform" "QuickCheck" "== 2.6"
781 addRange "Haskell Platform" "random" "== 1.0.1.1"
782 addRange "Haskell Platform" "regex-base" "== 0.93.2"
783 addRange "Haskell Platform" "regex-compat" "== 0.95.1"
784 addRange "Haskell Platform" "regex-posix" "== 0.95.2"
785 addRange "Haskell Platform" "split" "== 0.2.2"
786 addRange "Haskell Platform" "stm" "== 2.4.2"
787 addRange "Haskell Platform" "syb" "== 0.4.1"
788 addRange "Haskell Platform" "text" "== 1.1.0.0"
789 addRange "Haskell Platform" "transformers" "== 0.3.0.0"
790 addRange "Haskell Platform" "unordered-containers" "== 0.2.4.0"
791 addRange "Haskell Platform" "vector" "== 0.10.9.1"
792 addRange "Haskell Platform" "xhtml" "== 3000.2.1"
793 addRange "Haskell Platform" "zlib" "== 0.5.4.1"
794 addRange "Haskell Platform" "alex" "== 3.1.3"
795 addRange "Haskell Platform" "cabal-install" "== 1.18.0.5"
796 addRange "Haskell Platform" "happy" "== 1.19.4"
797 addRange "Haskell Platform" "hscolour" "== 1.20.3"
799-- | Replacement Github users. This is useful when a project is owned by an
800-- organization. It also lets you ping multiple users.
801--
802-- Note that cross organization team mentions aren't allowed by Github.
803convertGithubUser :: String -> [String]
804convertGithubUser x =
805 fromMaybe [x] $ Map.lookup (map toLower x) pairs
806 where
807 pairs = Map.fromList
808 [ ("diagrams", ["byorgey", "fryguybob", "jeffreyrosenbluth", "bergey"])
809 , ("yesodweb", ["snoyberg"])
810 , ("fpco", ["snoyberg"])
811 , ("faylang", ["bergmark"])
812 , ("silkapp", ["bergmark", "hesselink"])
813 , ("snapframework",["mightybyte"])
814 , ("haskell-ro", ["mihaimaruseac"])
815 ]