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)
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
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
22defaultExpectedFailures ghcVer = execWriter $ do
23 -- Requires an old version of WAI and Warp for tests
26 -- text and setenv have recursive dependencies in their tests, which
27 -- cabal can't (yet) handle
31 -- The version of GLUT included with the HP does not generate
32 -- documentation correctly.
35 -- https://github.com/bos/statistics/issues/42
38 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
41 -- http://hackage.haskell.org/trac/hackage/ticket/954
44 -- https://github.com/fpco/stackage/issues/24
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
54 -- https://github.com/simonmar/monad-par/issues/28
57 -- Unfortunately network failures seem to happen haphazardly
60 -- https://github.com/ekmett/hyphenation/issues/1
63 -- Test suite takes too long to run on some systems
66 -- http://hub.darcs.net/stepcut/happstack/issue/1
67 add "happstack-server"
69 -- Requires a Facebook app.
72 -- https://github.com/tibbe/hashable/issues/64
75 -- https://github.com/vincenthz/language-java/issues/10
81 add "language-ecmascript"
85 -- https://github.com/basvandijk/concurrent-extra/issues/
86 add "concurrent-extra"
88 -- https://github.com/rrnewton/haskell-lockfree-queue/issues/7
91 -- https://github.com/skogsbaer/xmlgen/issues/2
94 -- Something very strange going on with the test suite, I can't figure
98 -- Requires a locally running PostgreSQL server with appropriate users
99 add "postgresql-simple"
104 -- Some kind of Cabal bug when trying to run tests
107 when (ghcVer < GhcMajorVersion 7 6) $ do
108 -- https://github.com/haskell-suite/haskell-names/issues/39
113 -- https://github.com/jgm/pandoc-citeproc/issues/5
114 add "pandoc-citeproc"
116 -- Problems with doctest and sandboxing
120 -- https://github.com/fpco/stackage/issues/163
124 add = tell . singleton . PackageName
126-- | List of packages for our stable Hackage. All dependencies will be
127-- included as well. Please indicate who will be maintaining the package
129defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
130defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
131 mapM_ (add "michael@snoyman.com") $ words =<<
132 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
133 , "markdown filesystem-conduit mime-mail-ses"
134 , "persistent persistent-template persistent-sqlite"
135 , "network-conduit-tls yackage warp-tls keter"
136 , "shakespeare-text process-conduit stm-conduit"
137 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
138 , "random-shuffle safe-failure hackage-proxy"
140 when (ghcVer >= GhcMajorVersion 7 6) $ add "michael@snoyman.com" "mega-sdist"
142 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
143 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
144 , "fixed-list indents language-c pretty-class"
145 , "aws yesod-auth-oauth csv-conduit cassava"
146 , "async shelly thyme"
147 , "hxt hxt-relaxng dimensional"
148 , "cairo diagrams-cairo"
149 , "persistent-mongoDB"
151 when (ghcVer < GhcMajorVersion 7 6) $ do
152 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
153 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
154 when (ghcVer >= GhcMajorVersion 7 6) $ do
155 add "FP Complete <michael@fpcomplete.com>" "repa-devil"
156 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
158 mapM_ (add "Neil Mitchell") $ words
159 "hlint hoogle shake derive"
161 mapM_ (add "Alan Zimmerman") $ words
162 "hjsmin language-javascript"
164 mapM_ (add "Jasper Van der Jeugt") $ words
165 "blaze-html blaze-markup stylish-haskell"
167 mapM_ (add "Antoine Latter") $ words
170 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
171 "HTF hscurses xmlgen stm-stats"
173 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
176 mapM_ (add "Vincent Hanquez") $ words =<<
177 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
178 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
179 , "cryptohash hit language-java libgit pem siphash socks tls"
180 , "tls-debug tls-extra vhd"
182 addRange "Vincent Hanquez" "language-java" "< 0.2.5"
184#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
185 -- Does not compile on Windows
186 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
189 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
190 "RefSerialize TCache Workflow MFlow"
192 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
193 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
194 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
195 , "distributive either eq free groupoids heaps hyphenation"
196 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
197 , "mtl profunctors profunctor-extras reducers reflection"
198 , "representable-functors representable-tries"
199 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
200 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
201 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
202 , "streams syb-extras vector-instances"
205 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
206 "hspec doctest base-compat"
208 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
209 "monad-parallel monad-coroutine"
210 -- https://github.com/blamario/monoid-subclasses/issues/3
211 when (ghcVer >= GhcMajorVersion 7 6) $ do
212 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
213 "incremental-parser monoid-subclasses"
215 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
216 [ "monoid-extras dual-tree vector-space-points active force-layout"
217 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
218 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
219 , "BlogLiterately BlogLiterately-diagrams"
223 mapM_ (add "Patrick Brisbin") $ words "gravatar"
225 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
226 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
228 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
229 "base-unicode-symbols containers-unicode-symbols"
231 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
233 when (ghcVer < GhcMajorVersion 7 6) $ do
234 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.14"
235 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "fclabels" "< 2.0"
237 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
238 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
242 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
245 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
246 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
248 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
249 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
251 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
254 mapM_ (add "Michal J. Gajda") $ words
255 "iterable Octree FenwickTree hPDB"
256 when (ghcVer >= GhcMajorVersion 7 6) $ do
257 mapM_ (add "Michal J. Gajda") $ words
260 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
261 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
262 , "traverse-with-class regex-applicative time-lens"
263 , "haskell-names haskell-packages hse-cpp"
266 -- https://github.com/fpco/stackage/issues/160
267 when (ghcVer >= GhcMajorVersion 7 6) $ do
268 mapM_ (add "Ketil Malde") $ words =<<
269 [ "biocore biofasta biofastq biosff"
270 , "blastxml bioace biophd"
272 , "seqloc bioalign BlastHTTP"
275 -- The following have out-of-date dependencies currently
276 -- biostockholm memexml RNAwolf
277 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
278 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
279 -- , "BiobaseTypes BiobaseFasta"
282 -- https://github.com/fpco/stackage/issues/163
283 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
285 -- https://github.com/fpco/stackage/issues/46
286 addRange "Michael Snoyman" "QuickCheck" "< 2.6"
288 -- https://github.com/fpco/stackage/issues/68
289 addRange "Michael Snoyman" "criterion" "< 0.8"
291 -- https://github.com/fpco/stackage/issues/72
292 addRange "Michael Snoyman" "HaXml" "< 1.24"
294 -- Due to binary package dep
295 addRange "Michael Snoyman" "statistics" "< 0.10.4"
297 -- Newest hxt requires network 2.4 or newest
298 addRange "Michael Snoyman" "hxt" "< 9.3.1"
299 addRange "Michael Snoyman" "network" "< 2.4"
301 -- https://github.com/fpco/stackage/issues/129
302 addRange "Michael Snoyman" "comonad" "< 4"
303 addRange "Michael Snoyman" "comonad-extras" "< 4"
304 addRange "Michael Snoyman" "comonads-fd" "< 4"
305 addRange "Michael Snoyman" "comonad-transformers" "< 4"
306 addRange "Michael Snoyman" "free" "< 4"
307 addRange "Michael Snoyman" "semigroups" "< 0.12"
308 addRange "Michael Snoyman" "semigroupoids" "< 4"
309 addRange "Michael Snoyman" "semigroupoid-extras" "< 4"
310 addRange "Michael Snoyman" "eq" "< 4"
311 addRange "Michael Snoyman" "pointed" "< 4"
312 addRange "Michael Snoyman" "profunctors" "< 4"
313 addRange "Michael Snoyman" "profunctor-extras" "< 4"
314 addRange "Michael Snoyman" "groupoids" "< 4"
315 addRange "Michael Snoyman" "bifunctors" "< 4"
316 addRange "Michael Snoyman" "hashable-extras" "< 0.2"
317 addRange "Michael Snoyman" "lens" "< 3.10"
318 addRange "Michael Snoyman" "keys" "< 3.10"
319 addRange "Michael Snoyman" "reducers" "< 3.10"
320 addRange "Michael Snoyman" "compressed" "< 3.10"
321 addRange "Michael Snoyman" "either" "< 4"
322 addRange "Michael Snoyman" "monad-products" "< 4"
323 addRange "Michael Snoyman" "recursion-schemes" "< 4"
324 addRange "Michael Snoyman" "data-lens" "< 2.10.4"
325 addRange "Michael Snoyman" "syb-extras" "< 0.3"
326 addRange "Michael Snoyman" "tasty" "< 0.6"
328 -- https://github.com/fpco/stackage/issues/153
329 addRange "Michael Snoyman" "text" "< 1.0"
331 -- https://github.com/fpco/stackage/issues/156
332 addRange "Michael Snoyman" "hspec" "< 1.8"
333 addRange "Michael Snoyman" "hspec-expectations" "< 0.4"
335 -- https://github.com/fpco/stackage/issues/158
336 addRange "Michael Snoyman" "zip-archive" "< 0.2"
338 -- https://github.com/fpco/stackage/issues/159
339 addRange "Michael Snoyman" "pretty-show" "< 1.6.2"
341 -- https://github.com/fpco/stackage/issues/161
342 addRange "Michael Snoyman" "RSA" "< 1.3"
344 -- https://github.com/fpco/stackage/issues/162
345 addRange "Michael Snoyman" "postgresql-simple" "< 0.4"
347 addRange "Michael Snoyman" "hashable" "< 1.2"
349 -- Requires binary 0.7
350 addRange "FP Complete <michael@fpcomplete.com>" "bson" "< 0.2.3"
352 -- Version 0.15.3 requires a newer template-haskell
353 addRange "FP Complete <michael@fpcomplete.com>" "language-ecmascript" "< 0.15.3"
355 -- io-streams depends on too new a network and too old a test-framework.
356 -- Therefore, don't use the new websockets which depends on it.
357 addRange "Michael Snoyman" "websockets" "< 0.8"
358 addRange "Michael Snoyman" "wai-websockets" "< 1.3.2"
360 -- unknown symbol `utf8_table4'
361 addRange "Michael Snoyman" "regex-pcre-builtin" "< 0.94.4.6.8.31"
363 add maintainer package = addRange maintainer package "-any"
364 addRange maintainer package range =
365 case simpleParse range of
366 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
367 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list