on ff6801e help sign in
stackage/Stackage/Config.hs
410 lines 16 kB history raw
1{-# LANGUAGE CPP #-}
2module Stackage.Config where
4import Control.Monad (when)
5import Control.Monad.Trans.Writer (execWriter, tell)
6import qualified Data.Map as Map
7import Data.Set (fromList, singleton)
8import Distribution.Text (simpleParse)
9import Stackage.Types
11-- | Packages which are shipped with GHC but are not included in the
12-- Haskell Platform list of core packages.
13defaultExtraCore :: GhcMajorVersion -> Set PackageName
14defaultExtraCore _ = fromList $ map PackageName $ words
15 "binary Win32 ghc-prim integer-gmp"
17-- | Test suites which are expected to fail for some reason. The test suite
18-- will still be run and logs kept, but a failure will not indicate an
19-- error in our package combination.
20defaultExpectedFailures :: GhcMajorVersion
21 -> Set PackageName
22defaultExpectedFailures ghcVer = execWriter $ do
23 -- Requires an old version of WAI and Warp for tests
24 add "HTTP"
26 -- text and setenv have recursive dependencies in their tests, which
27 -- cabal can't (yet) handle
28 add "text"
29 add "setenv"
31 -- The version of GLUT included with the HP does not generate
32 -- documentation correctly.
33 add "GLUT"
35 -- https://github.com/bos/statistics/issues/42
36 add "statistics"
38 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
39 add "simple-sendfile"
41 -- http://hackage.haskell.org/trac/hackage/ticket/954
42 add "diagrams"
44 -- https://github.com/fpco/stackage/issues/24
45 add "unix-time"
47 -- With transformers 0.3, it doesn't provide any modules
48 add "transformers-compat"
50 -- Tests require shell script and are incompatible with sandboxed package
51 -- databases
52 add "HTF"
54 -- https://github.com/simonmar/monad-par/issues/28
55 add "monad-par"
57 -- Unfortunately network failures seem to happen haphazardly
58 add "network"
60 -- https://github.com/ekmett/hyphenation/issues/1
61 add "hyphenation"
63 -- Test suite takes too long to run on some systems
64 add "punycode"
66 -- http://hub.darcs.net/stepcut/happstack/issue/1
67 add "happstack-server"
69 -- Requires a Facebook app.
70 add "fb"
72 -- https://github.com/tibbe/hashable/issues/64
73 add "hashable"
75 -- https://github.com/vincenthz/language-java/issues/10
76 add "language-java"
78 add "threads"
79 add "crypto-conduit"
80 add "pandoc"
81 add "language-ecmascript"
82 add "hspec"
83 add "alex"
85 -- https://github.com/basvandijk/concurrent-extra/issues/
86 add "concurrent-extra"
88 -- https://github.com/skogsbaer/xmlgen/issues/2
89 add "xmlgen"
91 -- Something very strange going on with the test suite, I can't figure
92 -- out how to fix it
93 add "bson"
95 -- Requires a locally running PostgreSQL server with appropriate users
96 add "postgresql-simple"
98 -- Missing files
99 add "websockets"
101 -- Some kind of Cabal bug when trying to run tests
102 add "thyme"
104 when (ghcVer < GhcMajorVersion 7 6) $ do
105 -- https://github.com/haskell-suite/haskell-names/issues/39
106 add "haskell-names"
108 add "shake"
110 -- https://github.com/jgm/pandoc-citeproc/issues/5
111 add "pandoc-citeproc"
113 -- Problems with doctest and sandboxing
114 add "warp"
115 add "wai-logger"
117 -- https://github.com/fpco/stackage/issues/163
118 add "hTalos"
119 add "seqloc"
121 -- FIXME the test suite fails fairly regularly in builds, though I haven't
122 -- discovered why yet
123 add "crypto-numbers"
125 -- Test suite is currently failing regularly, needs to be worked out still.
126 add "lens"
128 -- Requires too old a version of test-framework
129 add "time"
131 -- No code included any more, therefore Haddock fails
132 mapM_ add $ words =<<
133 [ "comonad-transformers comonads-fd groupoids"
134 , "profunctor-extras semigroupoid-extras"
135 , "hamlet shakespeare-css shakespeare-i18n"
136 , "shakespeare-js shakespeare-text"
137 , "attoparsec-conduit blaze-builder-conduit http-client-conduit"
138 , "network-conduit zlib-conduit http-client-multipart"
139 ]
141 -- Cloud Haskell tests seem to be unreliable
142 mapM_ add $ words =<<
143 [ "distributed-process lockfree-queue network-transport-tcp"
144 ]
146 -- Pulls in monad-peel which does not compile
147 when (ghcVer >= GhcMajorVersion 7 8) $ add "monad-control"
149 -- issues with pthread
150 mapM_ add $ words "hlibgit2 gitlib-s3 gitlib-libgit2"
151 where
152 add = tell . singleton . PackageName
154-- | List of packages for our stable Hackage. All dependencies will be
155-- included as well. Please indicate who will be maintaining the package
156-- via comments.
157defaultStablePackages :: GhcMajorVersion
158 -> Bool -- ^ using haskell platform?
159 -> Map PackageName (VersionRange, Maintainer)
160defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
161 mapM_ (add "michael@snoyman.com") $ words =<<
162 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
163 , "markdown mime-mail-ses"
164 , "persistent persistent-template persistent-sqlite"
165 , "network-conduit-tls yackage warp-tls keter"
166 , "process-conduit stm-conduit"
167 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
168 , "random-shuffle hebrew-time"
169 , "bzlib-conduit case-insensitive"
170 , "conduit-extra conduit-combinators yesod-websockets"
171 ]
172 when (ghcVer >= GhcMajorVersion 7 6) $ add "michael@snoyman.com" "cabal-src"
173#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
174 -- Does not compile on Windows
175 mapM_ (add "michael@snoyman.com") $ words "judy"
176#endif
178 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
179 [ "web-fpco th-expand-syns configurator smtLib"
180 , "fixed-list indents language-c pretty-class"
181 , "aws csv-conduit cassava"
182 , "async shelly thyme"
183 , "hxt hxt-relaxng dimensional"
184 , "cairo diagrams-cairo"
185 , "persistent-mongoDB fpco-api"
186 , "base16-bytestring convertible"
187 ]
188 when (ghcVer < GhcMajorVersion 7 8) $ do -- No GHC 7.8 support
189 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
190 [ "" -- too unreliable for the moment "distributed-process distributed-process-simplelocalnet"
191 , "threepenny-gui unification-fd"
192 , "compdata"
193 ]
194 -- Deprecated version
195 addRange "FP Complete <michael@fpcomplete.com>" "persistent-mongoDB" "< 1.3.1 || > 1.3.1"
196 when (ghcVer < GhcMajorVersion 7 6) $ do
197 when requireHP $ do
198 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
199 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
200 addRange "FP Complete <michael@fpcomplete.com>" "lockfree-queue" "== 0.2"
201 when (ghcVer == GhcMajorVersion 7 6) $ do -- No GHC 7.8 support
202 add "FP Complete <michael@fpcomplete.com>" "repa-devil"
203 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
205 mapM_ (add "Neil Mitchell") $ words
206 "hlint hoogle shake derive"
208 mapM_ (add "Alan Zimmerman") $ words
209 "hjsmin language-javascript"
210 -- Requires newer alex than provided with HP
211 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $
212 addRange "Alan Zimmerman" "language-javascript" "== 0.5.9"
214 mapM_ (add "Jasper Van der Jeugt") $ words
215 "blaze-html blaze-markup stylish-haskell"
217 mapM_ (add "Antoine Latter") $ words
218 "uuid byteorder"
220 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
221 "HTF xmlgen stm-stats"
222 when (ghcVer < GhcMajorVersion 7 8) $ add "Stefan Wehr <wehr@factisresearch.com>" "hscurses"
224 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
225 "parseargs"
227 mapM_ (add "Vincent Hanquez") $ words =<<
228 [ "bytedump certificate cipher-aes cipher-rc4 connection"
229 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
230 , "cryptohash hit language-java libgit pem siphash socks tls"
231 , "tls-debug vhd language-java"
232 ]
234#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
235 -- Does not compile on Windows
236 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
237#endif
239 when (ghcVer < GhcMajorVersion 7 8) $
240 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
241 "RefSerialize TCache Workflow MFlow"
243 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
244 [ "ad adjunctions bifunctors bound charset comonad comonad-transformers"
245 , "comonads-fd compressed concurrent-supply constraints contravariant"
246 , "distributive either eq free groupoids heaps hyphenation"
247 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
248 , "mtl profunctors profunctor-extras reducers reflection"
249 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
250 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
251 , "numeric-extras parsers pointed prelude-extras reducers"
252 , "streams vector-instances"
253 ]
254 when (ghcVer < GhcMajorVersion 7 8) $
255 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
256 [ "categories comonad-extras recursion-schemes syb-extras"
257 ]
259 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
260 "hspec doctest base-compat"
262 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
263 "monad-parallel monad-coroutine"
264 -- https://github.com/blamario/monoid-subclasses/issues/3
265 when (ghcVer >= GhcMajorVersion 7 6) $ do
266 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
267 "incremental-parser monoid-subclasses"
269 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
270 [ "monoid-extras dual-tree vector-space-points active force-layout"
271 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
272 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
273 , "BlogLiterately BlogLiterately-diagrams"
274 , "MonadRandom"
275 ]
277 mapM_ (add "Patrick Brisbin") $ words "gravatar"
279 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
280 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
282 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
283 "base-unicode-symbols containers-unicode-symbols"
285 -- NOTE: accelerate not yet supported on GHC 7.8
286 when (ghcVer == GhcMajorVersion 7 6) $ do
287 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
288 "accelerate"
289 when (ghcVer < GhcMajorVersion 7 6) $ do
290 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.14"
291 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "fclabels" "< 2.0"
293 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
294 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
295 , "tardis"
296 ]
298 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
299 "HaTeX"
301 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
302 ["pipes", "pipes-parse", "pipes-concurrency"]
304 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
305 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
307 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
308 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
310 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
311 "sqlite-simple"
313 mapM_ (add "Michal J. Gajda") $ words
314 "iterable Octree FenwickTree hPDB"
315 when (ghcVer == GhcMajorVersion 7 6) $ do -- No GHC 7.8 support
316 mapM_ (add "Michal J. Gajda") $ words
317 "hPDB-examples"
319 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
320 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
321 , "traverse-with-class regex-applicative time-lens"
322 , "haskell-names haskell-packages hse-cpp"
323 ]
325#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
326 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
327 "hdaemonize hsyslog hweblib"
328#else
329 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
330 "hweblib"
331#endif
333 when (ghcVer < GhcMajorVersion 7 8) $
334 mapM_ (add "John Wiegley") $ words =<<
335 [ "bindings-DSL github monad-extras numbers these hlibgit2"
336 , "gitlib gitlib-cmdline gitlib-test"
337 , "gitlib-libgit2 gitlib-s3"
338 ]
340 mapM_ (add "Ben Ford <ben@dlstartup.com") $ words
341 "HandsomeSoup"
343 -- https://github.com/fpco/stackage/issues/160
344 when (ghcVer >= GhcMajorVersion 7 6) $ do
345 mapM_ (add "Ketil Malde") $ words =<<
346 [ "biocore biofasta biofastq biosff"
347 , "blastxml bioace biophd"
348 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
349 , "seqloc bioalign BlastHTTP"
350 -- The following have out-of-date dependencies currently
351 -- biostockholm memexml RNAwolf
352 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
353 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
354 -- , "BiobaseTypes BiobaseFasta"
355 -- MC-Fold-DP
356 ]
357 -- https://github.com/fpco/stackage/issues/163
358 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
359 when (ghcVer == GhcMajorVersion 7 6) $ do
360 mapM_ (add "Ketil Malde") $ words =<<
361 [ "RNAFold hTalos parsestar"
362 ]
364 -- Newest hxt requires network 2.4 or newest
365 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $ do
366 addRange "Michael Snoyman" "hxt" "< 9.3.1"
367 addRange "Michael Snoyman" "network" "< 2.4"
369 -- https://github.com/fpco/stackage/issues/189
370 addRange "Michael Snoyman" "statistics" "< 0.11"
372 -- https://github.com/fpco/stackage/issues/197
373 when (ghcVer == GhcMajorVersion 7 6 && requireHP) $
374 addRange "Michael Snoyman" "parsers" "< 0.11"
376 -- https://github.com/fpco/stackage/issues/199
377 addRange "Michael Snoyman" "QuickCheck" "< 2.7"
378 addRange "Michael Snoyman" "hspec-meta" "< 1.9"
379 addRange "Michael Snoyman" "tasty-quickcheck" "< 0.8.0.3"
381 -- https://github.com/fpco/stackage/issues/207
382 addRange "Michael Snoyman" "semigroups" "< 0.13"
384 -- https://github.com/fpco/stackage/issues/210
385 addRange "Michael Snoyman" "network" "< 2.5"
387 -- Requires too new a version of text
388 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $ do
389 addRange "Michael Snoyman" "attoparsec" "< 0.11.2.1"
390 addRange "Michael Snoyman" "parsers" "< 0.11"
392 -- local patch
393 addRange "Michael Snoyman" "bson" "== 0.2.4"
395 -- Depends on a newer version of happy
396 when (ghcVer < GhcMajorVersion 7 8) $
397 addRange "Roman Cheplyaka <roma@ro-che.info>" "pretty-show" "<= 1.6.1"
399 -- 0.16.2 fixes dependency issues with different version of GHC
400 -- and Haskell Platform. Now builds on GHC 7.4-7.8. Version 1.0 is
401 -- guaranteed to break the API. See
402 -- https://travis-ci.org/jswebtools/language-ecmascript for
403 -- current build status.
404 addRange "Andrey Chudnov <oss@chudnov.com>" "language-ecmascript" ">= 0.16.2 && < 1.0"
405 where
406 add maintainer package = addRange maintainer package "-any"
407 addRange maintainer package range =
408 case simpleParse range of
409 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
410 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)