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 add = tell . singleton . PackageName
122-- | List of packages for our stable Hackage. All dependencies will be
123-- included as well. Please indicate who will be maintaining the package
125defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
126defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
127 mapM_ (add "michael@snoyman.com") $ words =<<
128 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
129 , "markdown filesystem-conduit mime-mail-ses"
130 , "persistent persistent-template persistent-sqlite"
131 , "network-conduit-tls yackage warp-tls keter"
132 , "shakespeare-text process-conduit stm-conduit"
133 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
134 , "random-shuffle safe-failure hackage-proxy"
137 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
138 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
139 , "fixed-list indents language-c pretty-class"
140 , "aws yesod-auth-oauth csv-conduit cassava"
141 , "async shelly thyme"
142 , "hxt hxt-relaxng dimensional"
143 , "cairo diagrams-cairo"
144 , "persistent-mongoDB"
146 when (ghcVer < GhcMajorVersion 7 6) $ do
147 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
148 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
149 when (ghcVer >= GhcMajorVersion 7 6) $ do
150 add "FP Complete <michael@fpcomplete.com>" "repa-devil"
151 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
153 mapM_ (add "Neil Mitchell") $ words
154 "hlint hoogle shake derive"
156 mapM_ (add "Alan Zimmerman") $ words
157 "hjsmin language-javascript"
159 mapM_ (add "Jasper Van der Jeugt") $ words
160 "blaze-html blaze-markup stylish-haskell"
162 mapM_ (add "Antoine Latter") $ words
165 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
166 "HTF hscurses xmlgen stm-stats"
168 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
171 mapM_ (add "Vincent Hanquez") $ words =<<
172 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
173 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
174 , "cryptohash hit language-java libgit pem siphash socks tls"
175 , "tls-debug tls-extra vhd"
177 addRange "Vincent Hanquez" "language-java" "< 0.2.5"
179#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
180 -- Does not compile on Windows
181 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
184 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
185 "RefSerialize TCache Workflow MFlow"
187 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
188 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
189 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
190 , "distributive either eq free groupoids heaps hyphenation"
191 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
192 , "mtl profunctors profunctor-extras reducers reflection"
193 , "representable-functors representable-tries"
194 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
195 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
196 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
197 , "streams syb-extras vector-instances"
200 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
201 "hspec doctest base-compat"
203 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
204 "monad-parallel monad-coroutine"
205 -- https://github.com/blamario/monoid-subclasses/issues/3
206 when (ghcVer >= GhcMajorVersion 7 6) $ do
207 mapM_ (add "Mario Blazevic <blamario@yahoo.com>") $ words
208 "incremental-parser monoid-subclasses"
210 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
211 [ "monoid-extras dual-tree vector-space-points active force-layout"
212 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
213 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
214 , "BlogLiterately BlogLiterately-diagrams"
218 mapM_ (add "Patrick Brisbin") $ words "gravatar"
220 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
221 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
223 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
224 "base-unicode-symbols containers-unicode-symbols"
226 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
228 when (ghcVer < GhcMajorVersion 7 6) $ do
229 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "accelerate" "< 0.14"
230 addRange "Ryan Newton <ryan.newton@alum.mit.edu>" "fclabels" "< 2.0"
232 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
233 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
237 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
240 mapM_ (add "Adam Bergmark <adam@bergmark.nl>") $ words
241 "fay fay-base fay-dom fay-jquery fay-text fay-uri snaplet-fay"
243 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
244 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
246 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
249 mapM_ (add "Michal J. Gajda") $ words
250 "iterable Octree FenwickTree hPDB"
251 when (ghcVer >= GhcMajorVersion 7 6) $ do
252 mapM_ (add "Michal J. Gajda") $ words
255 mapM_ (add "Roman Cheplyaka <roma@ro-che.info>") $ words =<<
256 [ "smallcheck tasty tasty-smallcheck tasty-quickcheck tasty-hunit tasty-golden"
257 , "traverse-with-class regex-applicative time-lens"
258 , "haskell-names haskell-packages hse-cpp"
261 -- https://github.com/fpco/stackage/issues/46
262 addRange "Michael Snoyman" "QuickCheck" "< 2.6"
264 -- https://github.com/fpco/stackage/issues/68
265 addRange "Michael Snoyman" "criterion" "< 0.8"
267 -- https://github.com/fpco/stackage/issues/72
268 addRange "Michael Snoyman" "HaXml" "< 1.24"
270 -- Due to binary package dep
271 addRange "Michael Snoyman" "statistics" "< 0.10.4"
273 -- https://github.com/fpco/stackage/issues/97
274 addRange "Michael Snoyman" "tagsoup" "< 0.13"
276 -- Newest hxt requires network 2.4 or newest
277 addRange "Michael Snoyman" "hxt" "< 9.3.1"
278 addRange "Michael Snoyman" "network" "< 2.4"
280 -- https://github.com/fpco/stackage/issues/129
281 addRange "Michael Snoyman" "comonad" "< 4"
282 addRange "Michael Snoyman" "comonad-extras" "< 4"
283 addRange "Michael Snoyman" "comonads-fd" "< 4"
284 addRange "Michael Snoyman" "comonad-transformers" "< 4"
285 addRange "Michael Snoyman" "free" "< 4"
286 addRange "Michael Snoyman" "semigroups" "< 0.12"
287 addRange "Michael Snoyman" "semigroupoids" "< 4"
288 addRange "Michael Snoyman" "semigroupoid-extras" "< 4"
289 addRange "Michael Snoyman" "eq" "< 4"
290 addRange "Michael Snoyman" "pointed" "< 4"
291 addRange "Michael Snoyman" "profunctors" "< 4"
292 addRange "Michael Snoyman" "profunctor-extras" "< 4"
293 addRange "Michael Snoyman" "groupoids" "< 4"
294 addRange "Michael Snoyman" "bifunctors" "< 4"
295 addRange "Michael Snoyman" "hashable-extras" "< 0.2"
296 addRange "Michael Snoyman" "lens" "< 3.10"
297 addRange "Michael Snoyman" "keys" "< 3.10"
298 addRange "Michael Snoyman" "reducers" "< 3.10"
299 addRange "Michael Snoyman" "compressed" "< 3.10"
300 addRange "Michael Snoyman" "either" "< 4"
301 addRange "Michael Snoyman" "monad-products" "< 4"
302 addRange "Michael Snoyman" "recursion-schemes" "< 4"
303 addRange "Michael Snoyman" "data-lens" "< 2.10.4"
304 addRange "Michael Snoyman" "syb-extras" "< 0.3"
306 -- https://github.com/fpco/stackage/issues/153
307 addRange "Michael Snoyman" "text" "< 1.0"
309 addRange "Michael Snoyman" "hashable" "< 1.2"
311 -- Requires binary 0.7
312 addRange "FP Complete <michael@fpcomplete.com>" "bson" "< 0.2.3"
314 -- Version 0.15.3 requires a newer template-haskell
315 addRange "FP Complete <michael@fpcomplete.com>" "language-ecmascript" "< 0.15.3"
317 -- io-streams depends on too new a network and too old a test-framework.
318 -- Therefore, don't use the new websockets which depends on it.
319 addRange "Michael Snoyman" "websockets" "< 0.8"
320 addRange "Michael Snoyman" "wai-websockets" "< 1.3.2"
322 -- unknown symbol `utf8_table4'
323 addRange "Michael Snoyman" "regex-pcre-builtin" "< 0.94.4.6.8.31"
325 add maintainer package = addRange maintainer package "-any"
326 addRange maintainer package range =
327 case simpleParse range of
328 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
329 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