on f6bcf23 help sign in
stackage/Stackage/Config.hs
341 lines 13 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/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 -- No code included any more, therefore Haddock fails
126 mapM_ add $ words =<<
127 [ "comonad-transformers comonads-fd groupoids"
128 , "profunctor-extras semigroupoid-extras"
129 ]
130 where
131 add = tell . singleton . PackageName
133-- | List of packages for our stable Hackage. All dependencies will be
134-- included as well. Please indicate who will be maintaining the package
135-- via comments.
136defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
137defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
138 mapM_ (add "michael@snoyman.com") $ words =<<
139 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
140 , "markdown filesystem-conduit mime-mail-ses"
141 , "persistent persistent-template persistent-sqlite"
142 , "network-conduit-tls yackage warp-tls keter"
143 , "shakespeare-text process-conduit stm-conduit"
144 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
145 , "random-shuffle safe-failure hackage-proxy hebrew-time"
146 , "bzlib-conduit case-insensitive"
147 ]
148 when (ghcVer >= GhcMajorVersion 7 6) $ add "michael@snoyman.com" "mega-sdist"
149#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
150 -- Does not compile on Windows
151 mapM_ (add "michael@snoyman.com") $ words "judy"
152#endif
154 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
155 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
156 , "fixed-list indents language-c pretty-class"
157 , "aws yesod-auth-oauth csv-conduit cassava"
158 , "async shelly thyme"
159 , "hxt hxt-relaxng dimensional"
160 , "cairo diagrams-cairo"
161 , "persistent-mongoDB fpco-api"
162 , "threepenny-gui base16-bytestring convertible"
163 ]
164 when (ghcVer < GhcMajorVersion 7 6) $ do
165 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
166 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
167 when (ghcVer >= GhcMajorVersion 7 6) $ do
168 add "FP Complete <michael@fpcomplete.com>" "repa-devil"
169 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
171 mapM_ (add "Neil Mitchell") $ words
172 "hlint hoogle shake derive"
174 mapM_ (add "Alan Zimmerman") $ words
175 "hjsmin language-javascript"
177 mapM_ (add "Jasper Van der Jeugt") $ words
178 "blaze-html blaze-markup stylish-haskell"
180 mapM_ (add "Antoine Latter") $ words
181 "uuid byteorder"
183 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
184 "HTF hscurses xmlgen stm-stats"
186 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
187 "parseargs"
189 mapM_ (add "Vincent Hanquez") $ words =<<
190 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
191 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
192 , "cryptohash hit language-java libgit pem siphash socks tls"
193 , "tls-debug vhd language-java"
194 ]
196#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
197 -- Does not compile on Windows
198 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
199#endif
201 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
202 "RefSerialize TCache Workflow MFlow"
204 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
205 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
206 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
207 , "distributive either eq free groupoids heaps hyphenation"
208 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
209 , "mtl profunctors profunctor-extras reducers reflection"
210 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
211 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
212 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
213 , "streams syb-extras vector-instances"
214 ]
216 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
217 "hspec doctest base-compat"
219 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
220 "monad-parallel monad-coroutine"
221 -- https://github.com/blamario/monoid-subclasses/issues/3
222 when (ghcVer >= GhcMajorVersion 7 6) $ do
223 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
224 "incremental-parser monoid-subclasses"
226 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
227 [ "monoid-extras dual-tree vector-space-points active force-layout"
228 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
229 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
230 , "BlogLiterately BlogLiterately-diagrams"
231 , "MonadRandom"
232 ]
234 mapM_ (add "Patrick Brisbin") $ words "gravatar"
236 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
237 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
239 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
240 "base-unicode-symbols containers-unicode-symbols"
242 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
243 "accelerate"
244 when (ghcVer < GhcMajorVersion 7 6) $ do
245 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.14"
246 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "fclabels" "< 2.0"
248 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
249 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
250 , "tardis"
251 ]
253 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
254 "HaTeX"
256 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
257 ["pipes", "pipes-parse", "pipes-concurrency"]
259 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
260 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
262 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
263 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
265 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
266 "sqlite-simple"
268 mapM_ (add "Michal J. Gajda") $ words
269 "iterable Octree FenwickTree hPDB"
270 when (ghcVer >= GhcMajorVersion 7 6) $ do
271 mapM_ (add "Michal J. Gajda") $ words
272 "hPDB-examples"
274 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
275 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
276 , "traverse-with-class regex-applicative time-lens"
277 , "haskell-names haskell-packages hse-cpp"
278 ]
280#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
281 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
282 "hdaemonize hsyslog hweblib"
283#else
284 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
285 "hweblib"
286#endif
288 mapM_ (add "John Wiegley <johnw@fpcomplete.com>") $ words =<<
289 [ "bindings-DSL github monad-extras numbers these hlibgit2"
290 , "gitlib gitlib-cmdline gitlib-test"
291 , "gitlib-libgit2 gitlib-s3"
292 ]
294 mapM_ (add "Ben Ford <ben@dlstartup.com") $ words
295 "HandsomeSoup"
297 -- https://github.com/fpco/stackage/issues/160
298 when (ghcVer >= GhcMajorVersion 7 6) $ do
299 mapM_ (add "Ketil Malde") $ words =<<
300 [ "biocore biofasta biofastq biosff"
301 , "blastxml bioace biophd"
302 , "biopsl samtools"
303 , "seqloc bioalign BlastHTTP"
304 , "RNAFold"
305 , "parsestar hTalos"
306 -- The following have out-of-date dependencies currently
307 -- biostockholm memexml RNAwolf
308 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
309 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
310 -- , "BiobaseTypes BiobaseFasta"
311 -- MC-Fold-DP
312 ]
313 -- https://github.com/fpco/stackage/issues/163
314 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
316 -- Newest hxt requires network 2.4 or newest
317 addRange "Michael Snoyman" "hxt" "< 9.3.1"
318 addRange "Michael Snoyman" "network" "< 2.4"
320 -- https://github.com/fpco/stackage/issues/153
321 addRange "Michael Snoyman" "text" "< 1.0"
323 -- https://github.com/fpco/stackage/issues/178
324 addRange "Michael Snoyman" "MonadCatchIO-transformers" "< 0.3.1"
325 addRange "Michael Snoyman" "MonadCatchIO-mtl" "< 0.3.1"
327 -- https://github.com/fpco/stackage/issues/179
328 addRange "Michael Snoyman" "lens" "< 4.0"
329 addRange "Michael Snoyman" "linear" "< 1.6"
331 -- Depends on a newer version of happy
332 addRange "Roman Cheplyaka <roma@ro-che.info>" "pretty-show" "<= 1.6.1"
334 -- Version 0.15.3 requires a newer template-haskell
335 addRange "FP Complete <michael@fpcomplete.com>" "language-ecmascript" "< 0.15.3"
336 where
337 add maintainer package = addRange maintainer package "-any"
338 addRange maintainer package range =
339 case simpleParse range of
340 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
341 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)