on ebc41d1 help sign in
stackage/Stackage/Config.hs
382 lines 14 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"
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/rrnewton/haskell-lockfree-queue/issues/7
89 add "abstract-deque"
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 when (ghcVer < GhcMajorVersion 7 6) $ do
108 -- https://github.com/haskell-suite/haskell-names/issues/39
109 add "haskell-names"
111 add "shake"
113 -- https://github.com/jgm/pandoc-citeproc/issues/5
114 add "pandoc-citeproc"
116 -- Problems with doctest and sandboxing
117 add "warp"
118 add "wai-logger"
120 -- https://github.com/fpco/stackage/issues/163
121 add "hTalos"
122 add "seqloc"
124 -- FIXME the test suite fails fairly regularly in builds, though I haven't
125 -- discovered why yet
126 add "crypto-numbers"
128 -- No code included any more, therefore Haddock fails
129 mapM_ add $ words =<<
130 [ "comonad-transformers comonads-fd groupoids"
131 , "profunctor-extras semigroupoid-extras"
132 ]
133 where
134 add = tell . singleton . PackageName
136-- | List of packages for our stable Hackage. All dependencies will be
137-- included as well. Please indicate who will be maintaining the package
138-- via comments.
139defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
140defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
141 mapM_ (add "michael@snoyman.com") $ words =<<
142 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
143 , "markdown filesystem-conduit mime-mail-ses"
144 , "persistent persistent-template persistent-sqlite"
145 , "network-conduit-tls yackage warp-tls keter"
146 , "shakespeare-text process-conduit stm-conduit"
147 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
148 , "random-shuffle safe-failure hackage-proxy hebrew-time"
149 , "bzlib-conduit"
150 ]
151 when (ghcVer >= GhcMajorVersion 7 6) $ add "michael@snoyman.com" "mega-sdist"
152#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
153 -- Does not compile on Windows
154 mapM_ (add "michael@snoyman.com") $ words "judy"
155#endif
157 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
158 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
159 , "fixed-list indents language-c pretty-class"
160 , "aws yesod-auth-oauth csv-conduit cassava"
161 , "async shelly thyme"
162 , "hxt hxt-relaxng dimensional"
163 , "cairo diagrams-cairo"
164 , "persistent-mongoDB fpco-api"
165 , "threepenny-gui base16-bytestring convertible"
166 ]
167 when (ghcVer < GhcMajorVersion 7 6) $ do
168 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
169 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
170 when (ghcVer >= GhcMajorVersion 7 6) $ do
171 add "FP Complete <michael@fpcomplete.com>" "repa-devil"
172 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
174 mapM_ (add "Neil Mitchell") $ words
175 "hlint hoogle shake derive"
177 mapM_ (add "Alan Zimmerman") $ words
178 "hjsmin language-javascript"
180 mapM_ (add "Jasper Van der Jeugt") $ words
181 "blaze-html blaze-markup stylish-haskell"
183 mapM_ (add "Antoine Latter") $ words
184 "uuid byteorder"
186 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
187 "HTF hscurses xmlgen stm-stats"
189 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
190 "parseargs"
192 mapM_ (add "Vincent Hanquez") $ words =<<
193 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
194 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
195 , "cryptohash hit language-java libgit pem siphash socks tls"
196 , "tls-debug vhd"
197 ]
198 addRange "Vincent Hanquez" "language-java" "< 0.2.5"
200#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
201 -- Does not compile on Windows
202 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
203#endif
205 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
206 "RefSerialize TCache Workflow MFlow"
208 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
209 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
210 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
211 , "distributive either eq free groupoids heaps hyphenation"
212 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
213 , "mtl profunctors profunctor-extras reducers reflection"
214 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
215 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
216 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
217 , "streams syb-extras vector-instances"
218 ]
220 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
221 "hspec doctest base-compat"
223 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
224 "monad-parallel monad-coroutine"
225 -- https://github.com/blamario/monoid-subclasses/issues/3
226 when (ghcVer >= GhcMajorVersion 7 6) $ do
227 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
228 "incremental-parser monoid-subclasses"
230 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
231 [ "monoid-extras dual-tree vector-space-points active force-layout"
232 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
233 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
234 , "BlogLiterately BlogLiterately-diagrams"
235 , "MonadRandom"
236 ]
238 mapM_ (add "Patrick Brisbin") $ words "gravatar"
240 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
241 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
243 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
244 "base-unicode-symbols containers-unicode-symbols"
246 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
247 "accelerate"
248 when (ghcVer < GhcMajorVersion 7 6) $ do
249 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.14"
250 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "fclabels" "< 2.0"
252 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
253 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
254 , "tardis"
255 ]
257 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
258 "HaTeX"
260 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
261 ["pipes", "pipes-parse", "pipes-concurrency"]
263 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
264 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
266 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
267 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
269 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
270 "sqlite-simple"
272 mapM_ (add "Michal J. Gajda") $ words
273 "iterable Octree FenwickTree hPDB"
274 when (ghcVer >= GhcMajorVersion 7 6) $ do
275 mapM_ (add "Michal J. Gajda") $ words
276 "hPDB-examples"
278 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
279 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
280 , "traverse-with-class regex-applicative time-lens"
281 , "haskell-names haskell-packages hse-cpp"
282 ]
284#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
285 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
286 "hdaemonize hsyslog hweblib"
287#else
288 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
289 "hweblib"
290#endif
292 -- https://github.com/fpco/stackage/issues/160
293 when (ghcVer >= GhcMajorVersion 7 6) $ do
294 mapM_ (add "Ketil Malde") $ words =<<
295 [ "biocore biofasta biofastq biosff"
296 , "blastxml bioace biophd"
297 , "biopsl samtools"
298 , "seqloc bioalign BlastHTTP"
299 -- PrimitiveArray compilation failure, "RNAFold"
300 , "parsestar hTalos"
301 -- The following have out-of-date dependencies currently
302 -- biostockholm memexml RNAwolf
303 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
304 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
305 -- , "BiobaseTypes BiobaseFasta"
306 -- MC-Fold-DP
307 ]
308 -- https://github.com/fpco/stackage/issues/163
309 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
311 -- https://github.com/fpco/stackage/issues/46
312 addRange "Michael Snoyman" "QuickCheck" "< 2.6"
314 -- https://github.com/fpco/stackage/issues/68
315 addRange "Michael Snoyman" "criterion" "< 0.8"
317 -- https://github.com/fpco/stackage/issues/72
318 addRange "Michael Snoyman" "HaXml" "< 1.24"
320 -- Due to binary package dep
321 addRange "Michael Snoyman" "statistics" "< 0.10.4"
323 -- Newest hxt requires network 2.4 or newest
324 addRange "Michael Snoyman" "hxt" "< 9.3.1"
325 addRange "Michael Snoyman" "network" "< 2.4"
327 -- https://github.com/fpco/stackage/issues/153
328 addRange "Michael Snoyman" "text" "< 1.0"
330 -- https://github.com/fpco/stackage/issues/156
331 addRange "Michael Snoyman" "hspec" "< 1.8"
332 addRange "Michael Snoyman" "hspec-expectations" "< 0.4"
334 -- https://github.com/fpco/stackage/issues/159
335 addRange "Michael Snoyman" "pretty-show" "< 1.6.2"
337 -- https://github.com/fpco/stackage/issues/161
338 addRange "Michael Snoyman" "RSA" "< 1.3"
340 -- https://github.com/fpco/stackage/issues/168
341 addRange "Michael Snoyman" "crypto-api" "< 0.13"
343 -- https://github.com/fpco/stackage/issues/170
344 addRange "Michael Snoyman" "aeson" "< 0.7"
346 -- https://github.com/fpco/stackage/issues/171
347 addRange "Michael Snoyman" "pandoc-citeproc" "< 0.3"
349 -- https://github.com/fpco/stackage/issues/172
350 addRange "Michael Snoyman" "attoparsec" "< 0.11"
351 addRange "Michael Snoyman" "fay" "< 0.19"
352 addRange "Michael Snoyman" "fay-base" "< 0.19"
353 addRange "Michael Snoyman" "fay-text" "< 0.3.0.1"
355 -- https://github.com/fpco/stackage/issues/175
356 addRange "Michael Snoyman" "blaze-html" "< 0.7"
357 addRange "Michael Snoyman" "blaze-markup" "< 0.6"
359 -- https://github.com/fpco/stackage/issues/178
360 addRange "Michael Snoyman" "MonadCatchIO-transformers" "< 0.3.1"
361 addRange "Michael Snoyman" "MonadCatchIO-mtl" "< 0.3.1"
363 -- https://github.com/fpco/stackage/issues/179
364 addRange "Michael Snoyman" "lens" "< 4.0"
365 addRange "Michael Snoyman" "linear" "< 1.6"
367 addRange "Michael Snoyman" "hashable" "< 1.2"
369 -- Requires binary 0.7
370 addRange "FP Complete <michael@fpcomplete.com>" "bson" "< 0.2.3"
372 -- Version 0.15.3 requires a newer template-haskell
373 addRange "FP Complete <michael@fpcomplete.com>" "language-ecmascript" "< 0.15.3"
375 -- unknown symbol `utf8_table4'
376 addRange "Michael Snoyman" "regex-pcre-builtin" "< 0.94.4.6.8.31"
377 where
378 add maintainer package = addRange maintainer package "-any"
379 addRange maintainer package range =
380 case simpleParse range of
381 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
382 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)