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 -- FIXME the test suite fails fairly regularly in builds, though I haven't
125 -- discovered why yet
128 add = tell . singleton . PackageName
130-- | List of packages for our stable Hackage. All dependencies will be
131-- included as well. Please indicate who will be maintaining the package
133defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
134defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
135 mapM_ (add "michael@snoyman.com") $ words =<<
136 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
137 , "markdown filesystem-conduit mime-mail-ses"
138 , "persistent persistent-template persistent-sqlite"
139 , "network-conduit-tls yackage warp-tls keter"
140 , "shakespeare-text process-conduit stm-conduit"
141 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
142 , "random-shuffle safe-failure hackage-proxy hebrew-time"
144 when (ghcVer >= GhcMajorVersion 7 6) $ add "michael@snoyman.com" "mega-sdist"
146 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
147 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
148 , "fixed-list indents language-c pretty-class"
149 , "aws yesod-auth-oauth csv-conduit cassava"
150 , "async shelly thyme"
151 , "hxt hxt-relaxng dimensional"
152 , "cairo diagrams-cairo"
153 , "persistent-mongoDB"
154 , "threepenny-gui base16-bytestring convertible"
156 when (ghcVer < GhcMajorVersion 7 6) $ do
157 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
158 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
159 when (ghcVer >= GhcMajorVersion 7 6) $ do
160 add "FP Complete <michael@fpcomplete.com>" "repa-devil"
161 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
163 mapM_ (add "Neil Mitchell") $ words
164 "hlint hoogle shake derive"
166 mapM_ (add "Alan Zimmerman") $ words
167 "hjsmin language-javascript"
169 mapM_ (add "Jasper Van der Jeugt") $ words
170 "blaze-html blaze-markup stylish-haskell"
172 mapM_ (add "Antoine Latter") $ words
175 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
176 "HTF hscurses xmlgen stm-stats"
178 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
181 mapM_ (add "Vincent Hanquez") $ words =<<
182 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
183 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
184 , "cryptohash hit language-java libgit pem siphash socks tls"
185 , "tls-debug tls-extra vhd"
187 addRange "Vincent Hanquez" "language-java" "< 0.2.5"
189#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
190 -- Does not compile on Windows
191 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
194 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
195 "RefSerialize TCache Workflow MFlow"
197 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
198 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
199 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
200 , "distributive either eq free groupoids heaps hyphenation"
201 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
202 , "mtl profunctors profunctor-extras reducers reflection"
203 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
204 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
205 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
206 , "streams syb-extras vector-instances"
209 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
210 "hspec doctest base-compat"
212 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
213 "monad-parallel monad-coroutine"
214 -- https://github.com/blamario/monoid-subclasses/issues/3
215 when (ghcVer >= GhcMajorVersion 7 6) $ do
216 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
217 "incremental-parser monoid-subclasses"
219 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
220 [ "monoid-extras dual-tree vector-space-points active force-layout"
221 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
222 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
223 , "BlogLiterately BlogLiterately-diagrams"
227 mapM_ (add "Patrick Brisbin") $ words "gravatar"
229 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
230 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
232 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
233 "base-unicode-symbols containers-unicode-symbols"
235 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
237 when (ghcVer < GhcMajorVersion 7 6) $ do
238 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.14"
239 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "fclabels" "< 2.0"
241 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
242 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
246 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
249 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
250 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
252 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
253 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
255 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
258 mapM_ (add "Michal J. Gajda") $ words
259 "iterable Octree FenwickTree hPDB"
260 when (ghcVer >= GhcMajorVersion 7 6) $ do
261 mapM_ (add "Michal J. Gajda") $ words
264 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
265 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
266 , "traverse-with-class regex-applicative time-lens"
267 , "haskell-names haskell-packages hse-cpp"
270 -- https://github.com/fpco/stackage/issues/160
271 when (ghcVer >= GhcMajorVersion 7 6) $ do
272 mapM_ (add "Ketil Malde") $ words =<<
273 [ "biocore biofasta biofastq biosff"
274 , "blastxml bioace biophd"
276 , "seqloc bioalign BlastHTTP"
279 -- The following have out-of-date dependencies currently
280 -- biostockholm memexml RNAwolf
281 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
282 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
283 -- , "BiobaseTypes BiobaseFasta"
286 -- https://github.com/fpco/stackage/issues/163
287 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
289 -- https://github.com/fpco/stackage/issues/46
290 addRange "Michael Snoyman" "QuickCheck" "< 2.6"
292 -- https://github.com/fpco/stackage/issues/68
293 addRange "Michael Snoyman" "criterion" "< 0.8"
295 -- https://github.com/fpco/stackage/issues/72
296 addRange "Michael Snoyman" "HaXml" "< 1.24"
298 -- Due to binary package dep
299 addRange "Michael Snoyman" "statistics" "< 0.10.4"
301 -- Newest hxt requires network 2.4 or newest
302 addRange "Michael Snoyman" "hxt" "< 9.3.1"
303 addRange "Michael Snoyman" "network" "< 2.4"
305 -- https://github.com/fpco/stackage/issues/153
306 addRange "Michael Snoyman" "text" "< 1.0"
308 -- https://github.com/fpco/stackage/issues/156
309 addRange "Michael Snoyman" "hspec" "< 1.8"
310 addRange "Michael Snoyman" "hspec-expectations" "< 0.4"
312 -- https://github.com/fpco/stackage/issues/158
313 addRange "Michael Snoyman" "zip-archive" "< 0.2"
315 -- https://github.com/fpco/stackage/issues/159
316 addRange "Michael Snoyman" "pretty-show" "< 1.6.2"
318 -- https://github.com/fpco/stackage/issues/161
319 addRange "Michael Snoyman" "RSA" "< 1.3"
321 -- https://github.com/fpco/stackage/issues/166
322 addRange "Michael Snoyman" "temporary" "< 1.2"
324 -- https://github.com/fpco/stackage/issues/168
325 addRange "Michael Snoyman" "crypto-api" "< 0.13"
327 -- https://github.com/fpco/stackage/issues/170
328 addRange "Michael Snoyman" "aeson" "< 0.7"
330 -- https://github.com/fpco/stackage/issues/171
331 addRange "Michael Snoyman" "pandoc-citeproc" "< 0.3"
333 -- https://github.com/fpco/stackage/issues/172
334 addRange "Michael Snoyman" "attoparsec" "< 0.11"
335 addRange "Michael Snoyman" "fay" "< 0.19"
336 addRange "Michael Snoyman" "fay-base" "< 0.19"
337 addRange "Michael Snoyman" "fay-text" "< 0.3.0.1"
339 -- binary package dep issue, figure out more fine-grained workaround
340 addRange "Michael Snoyman" "SHA" "< 1.6.3"
341 addRange "Michael Snoyman" "pandoc" "< 1.12.3"
343 addRange "Michael Snoyman" "hashable" "< 1.2"
345 -- Requires binary 0.7
346 addRange "FP Complete <michael@fpcomplete.com>" "bson" "< 0.2.3"
348 -- Version 0.15.3 requires a newer template-haskell
349 addRange "FP Complete <michael@fpcomplete.com>" "language-ecmascript" "< 0.15.3"
351 -- unknown symbol `utf8_table4'
352 addRange "Michael Snoyman" "regex-pcre-builtin" "< 0.94.4.6.8.31"
354 add maintainer package = addRange maintainer package "-any"
355 addRange maintainer package range =
356 case simpleParse range of
357 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
358 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