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/skogsbaer/xmlgen/issues/2
91 -- Something very strange going on with the test suite, I can't figure
95 -- Requires a locally running PostgreSQL server with appropriate users
96 add "postgresql-simple"
101 -- Some kind of Cabal bug when trying to run tests
104 when (ghcVer < GhcMajorVersion 7 6) $ do
105 -- https://github.com/haskell-suite/haskell-names/issues/39
110 -- https://github.com/jgm/pandoc-citeproc/issues/5
111 add "pandoc-citeproc"
113 -- Problems with doctest and sandboxing
117 -- https://github.com/fpco/stackage/issues/163
121 -- FIXME the test suite fails fairly regularly in builds, though I haven't
122 -- discovered why yet
125 -- Test suite is currently failing regularly, needs to be worked out still.
128 -- Requires too old a version of test-framework
131 -- No code included any more, therefore Haddock fails
132 mapM_ add $ words =<<
133 [ "comonad-transformers comonads-fd groupoids"
134 , "profunctor-extras semigroupoid-extras"
137 add = tell . singleton . PackageName
139-- | List of packages for our stable Hackage. All dependencies will be
140-- included as well. Please indicate who will be maintaining the package
142defaultStablePackages :: GhcMajorVersion
143 -> Bool -- ^ using haskell platform?
144 -> Map PackageName (VersionRange, Maintainer)
145defaultStablePackages ghcVer requireHP = unPackageMap $ execWriter $ do
146 mapM_ (add "michael@snoyman.com") $ words =<<
147 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
148 , "markdown filesystem-conduit mime-mail-ses"
149 , "persistent persistent-template persistent-sqlite"
150 , "network-conduit-tls yackage warp-tls keter"
151 , "shakespeare-text process-conduit stm-conduit"
152 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
153 , "random-shuffle safe-failure hackage-proxy hebrew-time"
154 , "bzlib-conduit case-insensitive"
155 , "conduit-combinators yesod-websockets"
157 when (ghcVer >= GhcMajorVersion 7 6) $ add "michael@snoyman.com" "mega-sdist"
158#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
159 -- Does not compile on Windows
160 mapM_ (add "michael@snoyman.com") $ words "judy"
163 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
164 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
165 , "fixed-list indents language-c pretty-class"
166 , "aws yesod-auth-oauth csv-conduit cassava"
167 , "async shelly thyme"
168 , "hxt hxt-relaxng dimensional"
169 , "cairo diagrams-cairo"
170 , "persistent-mongoDB fpco-api"
171 , "threepenny-gui base16-bytestring convertible"
173 when (ghcVer == GhcMajorVersion 7 4) $
174 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
175 [ "distributed-process distributed-process-simplelocalnet"
177 -- Deprecated version
178 addRange "FP Complete <michael@fpcomplete.com>" "persistent-mongoDB" "< 1.3.1 || > 1.3.1"
179 when (ghcVer < GhcMajorVersion 7 6) $ do
180 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
181 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
182 when (ghcVer >= GhcMajorVersion 7 6) $ do
183 add "FP Complete <michael@fpcomplete.com>" "repa-devil"
184 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
186 mapM_ (add "Neil Mitchell") $ words
187 "hlint hoogle shake derive"
189 mapM_ (add "Alan Zimmerman") $ words
190 "hjsmin language-javascript"
192 mapM_ (add "Jasper Van der Jeugt") $ words
193 "blaze-html blaze-markup stylish-haskell"
195 mapM_ (add "Antoine Latter") $ words
198 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
199 "HTF hscurses xmlgen stm-stats"
201 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
204 mapM_ (add "Vincent Hanquez") $ words =<<
205 [ "bytedump certificate cipher-aes cipher-rc4 connection"
206 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
207 , "cryptohash hit language-java libgit pem siphash socks tls"
208 , "tls-debug vhd language-java"
211#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
212 -- Does not compile on Windows
213 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
216 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
217 "RefSerialize TCache Workflow MFlow"
219 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
220 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
221 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
222 , "distributive either eq free groupoids heaps hyphenation"
223 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
224 , "mtl profunctors profunctor-extras reducers reflection"
225 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
226 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
227 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
228 , "streams syb-extras vector-instances"
231 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
232 "hspec doctest base-compat"
234 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
235 "monad-parallel monad-coroutine"
236 -- https://github.com/blamario/monoid-subclasses/issues/3
237 when (ghcVer >= GhcMajorVersion 7 6) $ do
238 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
239 "incremental-parser monoid-subclasses"
241 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
242 [ "monoid-extras dual-tree vector-space-points active force-layout"
243 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
244 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
245 , "BlogLiterately BlogLiterately-diagrams"
249 mapM_ (add "Patrick Brisbin") $ words "gravatar"
251 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
252 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
254 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
255 "base-unicode-symbols containers-unicode-symbols"
257 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
259 when (ghcVer < GhcMajorVersion 7 6) $ do
260 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.14"
261 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "fclabels" "< 2.0"
263 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
264 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
268 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
271 mapM_ (add "Gabriel Gonzalez <Gabriel439@gmail.com>")
272 ["pipes", "pipes-parse", "pipes-concurrency"]
274 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
275 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
277 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
278 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
280 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
283 mapM_ (add "Michal J. Gajda") $ words
284 "iterable Octree FenwickTree hPDB"
285 when (ghcVer >= GhcMajorVersion 7 6) $ do
286 mapM_ (add "Michal J. Gajda") $ words
289 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
290 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
291 , "traverse-with-class regex-applicative time-lens"
292 , "haskell-names haskell-packages hse-cpp"
295#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
296 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
297 "hdaemonize hsyslog hweblib"
299 mapM_ (add "Aycan iRiCAN <iricanaycan@gmail.com>") $ words
303 mapM_ (add "John Wiegley <johnw@fpcomplete.com>") $ words =<<
304 [ "bindings-DSL github monad-extras numbers these hlibgit2"
305 , "gitlib gitlib-cmdline gitlib-test"
306 , "gitlib-libgit2 gitlib-s3"
309 mapM_ (add "Ben Ford <ben@dlstartup.com") $ words
312 -- https://github.com/fpco/stackage/issues/160
313 when (ghcVer >= GhcMajorVersion 7 6) $ do
314 mapM_ (add "Ketil Malde") $ words =<<
315 [ "biocore biofasta biofastq biosff"
316 , "blastxml bioace biophd"
317 , "biopsl" -- https://github.com/ingolia/SamTools/issues/3 samtools
318 , "seqloc bioalign BlastHTTP"
321 -- The following have out-of-date dependencies currently
322 -- biostockholm memexml RNAwolf
323 -- , "Biobase BiobaseDotP BiobaseFR3D BiobaseInfernal BiobaseMAF"
324 -- , "BiobaseTrainingData BiobaseTurner BiobaseXNA BiobaseVienna"
325 -- , "BiobaseTypes BiobaseFasta"
328 -- https://github.com/fpco/stackage/issues/163
329 addRange "Michael Snoyman" "biophd" "< 0.0.6 || > 0.0.6"
331 -- Newest hxt requires network 2.4 or newest
332 addRange "Michael Snoyman" "hxt" "< 9.3.1"
333 addRange "Michael Snoyman" "network" "< 2.4"
335 -- https://github.com/fpco/stackage/issues/178
336 addRange "Michael Snoyman" "MonadCatchIO-transformers" "< 0.3.1"
337 addRange "Michael Snoyman" "MonadCatchIO-mtl" "< 0.3.1"
339 -- https://github.com/fpco/stackage/issues/189
340 addRange "Michael Snoyman" "statistics" "< 0.11"
342 -- https://github.com/fpco/stackage/issues/197
343 when (ghcVer == GhcMajorVersion 7 6 && requireHP) $
344 addRange "Michael Snoyman" "parsers" "< 0.11"
346 -- https://github.com/fpco/stackage/issues/199
347 addRange "Michael Snoyman" "QuickCheck" "< 2.7"
348 addRange "Michael Snoyman" "hspec-meta" "< 1.9"
349 addRange "Michael Snoyman" "tasty-quickcheck" "< 0.8.0.3"
351 -- https://github.com/fpco/stackage/issues/200
352 addRange "Michael Snoyman" "hspec" "< 1.9"
354 -- https://github.com/fpco/stackage/issues/201
355 addRange "Michael Snoyman" "yesod-auth" "< 1.3"
357 -- https://github.com/fpco/stackage/issues/202
358 addRange "Michael Snoyman" "case-insensitive" "< 1.2"
359 addRange "Michael Snoyman" "xml-conduit" "< 1.2"
361 -- https://github.com/fpco/stackage/issues/203
362 addRange "Michael Snoyman" "exceptions" "< 0.4"
364 -- Requires too new a version of text
365 when (ghcVer == GhcMajorVersion 7 4 && requireHP) $ do
366 addRange "Michael snoyman" "attoparsec" "< 0.11.2.1"
367 addRange "Michael Snoyman" "parsers" "< 0.11"
370 addRange "Michael Snoyman" "bson" "== 0.2.4"
372 -- Depends on a newer version of happy
373 addRange "Roman Cheplyaka <roma@ro-che.info>" "pretty-show" "<= 1.6.1"
375 -- Version 0.15.3 requires a newer template-haskell
376 addRange "FP Complete <michael@fpcomplete.com>" "language-ecmascript" "< 0.15.3"
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)
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