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 add = tell . singleton . PackageName
115-- | List of packages for our stable Hackage. All dependencies will be
116-- included as well. Please indicate who will be maintaining the package
118defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
119defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
120 mapM_ (add "michael@snoyman.com") $ words =<<
121 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
122 , "markdown filesystem-conduit mime-mail-ses"
123 , "persistent persistent-template persistent-sqlite"
124 , "network-conduit-tls yackage warp-tls keter"
125 , "shakespeare-text process-conduit stm-conduit"
126 , "classy-prelude-yesod yesod-fay yesod-eventsource wai-websockets"
127 , "random-shuffle safe-failure hackage-proxy"
130 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
131 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
132 , "fixed-list indents language-c pretty-class"
133 , "aws yesod-auth-oauth csv-conduit cassava"
134 , "async shelly thyme"
135 , "hxt hxt-relaxng dimensional"
136 , "cairo diagrams-cairo"
137 , "persistent-mongoDB"
139 when (ghcVer < GhcMajorVersion 7 6) $ do
140 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
141 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
142 when (ghcVer >= GhcMajorVersion 7 6) $ do
143 add "FP Complete <michael@fpcomplete.com>" "repa-devil"
144 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
146 mapM_ (add "Neil Mitchell") $ words
147 "hlint hoogle shake derive"
149 mapM_ (add "Alan Zimmerman") $ words
150 "hjsmin language-javascript"
152 mapM_ (add "Jasper Van der Jeugt") $ words
153 "blaze-html blaze-markup stylish-haskell"
155 mapM_ (add "Antoine Latter") $ words
158 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
159 "HTF hscurses xmlgen stm-stats"
161 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
164 mapM_ (add "Vincent Hanquez") $ words =<<
165 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
166 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
167 , "cryptohash hit language-java libgit pem siphash socks tls"
168 , "tls-debug tls-extra vhd"
170 addRange "Vincent Hanquez" "language-java" "< 0.2.5"
172#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
173 -- Does not compile on Windows
174 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
177 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
178 "RefSerialize TCache Workflow MFlow"
180 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
181 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
182 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
183 , "distributive either eq free groupoids heaps hyphenation"
184 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
185 , "mtl profunctors profunctor-extras reducers reflection"
186 , "representable-functors representable-tries"
187 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
188 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
189 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
190 , "streams syb-extras vector-instances"
193 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
194 "hspec doctest base-compat"
196 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
197 [ "monoid-extras dual-tree vector-space-points active force-layout"
198 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
199 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
200 , "BlogLiterately BlogLiterately-diagrams"
203 mapM_ (add "Patrick Brisbin") $ words "gravatar"
205 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
206 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
208 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
209 "base-unicode-symbols containers-unicode-symbols"
211 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
214 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
215 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
219 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
222 mapM_ (add "Adam Bergmark <adam@edea.se>") $ words
225 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
226 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
228 mapM_ (add "Janne Hellsten <jjhellst@gmail.com>") $ words
231 -- https://github.com/fpco/stackage/issues/46
232 addRange "Michael Snoyman" "QuickCheck" "< 2.6"
234 -- https://github.com/fpco/stackage/issues/68
235 addRange "Michael Snoyman" "criterion" "< 0.8"
237 -- https://github.com/fpco/stackage/issues/72
238 addRange "Michael Snoyman" "HaXml" "< 1.24"
240 -- Due to binary package dep
241 addRange "Michael Snoyman" "statistics" "< 0.10.4"
243 -- https://github.com/fpco/stackage/issues/97
244 addRange "Michael Snoyman" "tagsoup" "< 0.13"
246 -- https://github.com/fpco/stackage/issues/107
247 addRange "Michael Snoyman" "split" "< 0.2.2"
249 -- https://github.com/fpco/stackage/issues/118
250 addRange "Michael Snoyman" "pem" "< 0.2"
252 -- https://github.com/fpco/stackage/issues/123
253 addRange "Michael Snoyman" "cryptohash" "< 0.11"
255 -- https://github.com/fpco/stackage/issues/124
256 addRange "Michael Snoyman" "fclabels" "< 2.0"
258 -- Newest hxt requires network 2.4 or newest
259 addRange "Michael Snoyman" "hxt" "< 9.3.1"
260 addRange "Michael Snoyman" "network" "< 2.4"
262 -- https://github.com/fpco/stackage/issues/129
263 addRange "Michael Snoyman" "comonad" "< 4"
264 addRange "Michael Snoyman" "comonads-fd" "< 4"
265 addRange "Michael Snoyman" "comonad-transformers" "< 4"
266 addRange "Michael Snoyman" "free" "< 4"
267 addRange "Michael Snoyman" "semigroupoids" "< 4"
268 addRange "Michael Snoyman" "semigroupoid-extras" "< 4"
269 addRange "Michael Snoyman" "eq" "< 4"
270 addRange "Michael Snoyman" "pointed" "< 4"
271 addRange "Michael Snoyman" "profunctors" "< 4"
272 addRange "Michael Snoyman" "profunctor-extras" "< 4"
273 addRange "Michael Snoyman" "groupoids" "< 4"
274 addRange "Michael Snoyman" "bifunctors" "< 4"
275 addRange "Michael Snoyman" "hashable-extras" "< 0.2"
276 addRange "Michael Snoyman" "lens" "< 3.10"
277 addRange "Michael Snoyman" "keys" "< 3.10"
278 addRange "Michael Snoyman" "reducers" "< 3.10"
279 addRange "Michael Snoyman" "compressed" "< 3.10"
280 addRange "Michael Snoyman" "either" "< 4"
281 addRange "Michael Snoyman" "monad-products" "< 4"
282 addRange "Michael Snoyman" "recursion-schemes" "< 4"
283 addRange "Michael Snoyman" "data-lens" "< 2.10.4"
285 addRange "Michael Snoyman" "hashable" "< 1.2"
287 -- Requires binary 0.7
288 addRange "FP Complete <michael@fpcomplete.com>" "bson" "< 0.2.3"
290 -- io-streams depends on too new a network and too old a test-framework.
291 -- Therefore, don't use the new websockets which depends on it.
292 addRange "Michael Snoyman" "websockets" "< 0.8"
294 -- unknown symbol `utf8_table4'
295 addRange "Michael Snoyman" "regex-pcre-builtin" "< 0.94.4.6.8.31"
297 add maintainer package = addRange maintainer package "-any"
298 addRange maintainer package range =
299 case simpleParse range of
300 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
301 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