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)
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 _ = fromList $ map PackageName
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 , "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
69 -- Requires a Facebook app.
72 -- https://github.com/tibbe/hashable/issues/64
75 -- https://github.com/vincenthz/language-java/issues/10
81 , "language-ecmascript"
85 -- https://github.com/basvandijk/concurrent-extra/issues/
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
99-- | List of packages for our stable Hackage. All dependencies will be
100-- included as well. Please indicate who will be maintaining the package
102defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
103defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
104 mapM_ (add "michael@snoyman.com") $ words =<<
105 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
106 , "markdown filesystem-conduit mime-mail-ses"
107 , "persistent persistent-template persistent-sqlite"
108 , "network-conduit-tls yackage warp-tls keter"
109 , "shakespeare-text process-conduit stm-conduit"
110 , "classy-prelude-yesod yesod-fay"
111 , "random-shuffle safe-failure"
114 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
115 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
116 , "fixed-list indents language-c pretty-class"
117 , "aws yesod-auth-oauth csv-conduit cassava"
120 , "cairo diagrams-cairo"
121 , "persistent-mongoDB"
123 when (ghcVer < GhcMajorVersion 7 6) $ do
124 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
125 addRange "FP Complete <michael@fpcomplete.com>" "shelly" "<= 1.0"
126 when (ghcVer >= GhcMajorVersion 7 6) $ do
127 add "FP Complete <michael@fpcomplete.com>" "repa-devil"
128 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
130 mapM_ (add "Neil Mitchell") $ words
131 "hlint hoogle shake derive"
133 mapM_ (add "Alan Zimmerman") $ words
134 "hjsmin language-javascript"
136 mapM_ (add "Jasper Van der Jeugt") $ words
137 "blaze-html blaze-markup stylish-haskell"
139 mapM_ (add "Antoine Latter") $ words
142 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
143 "HTF hscurses xmlgen stm-stats"
145 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
148 mapM_ (add "Vincent Hanquez") $ words =<<
149 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
150 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
151 , "cryptohash hit language-java libgit pem siphash socks tls"
152 , "tls-debug tls-extra vhd"
154 addRange "Vincent Hanquez" "language-java" "< 0.2.5"
156#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
157 -- Does not compile on Windows
158 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
161 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
162 "RefSerialize TCache Workflow MFlow"
164 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
165 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
166 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
167 , "distributive either eq free groupoids heaps hyphenation"
168 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
169 , "mtl profunctors profunctor-extras reducers reflection"
170 , "representable-functors representable-tries"
171 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
172 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
173 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
174 , "streams syb-extras vector-instances"
177 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
178 "hspec doctest base-compat"
180 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
181 [ "monoid-extras dual-tree vector-space-points active force-layout"
182 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
183 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
184 , "BlogLiterately BlogLiterately-diagrams"
187 mapM_ (add "Patrick Brisbin") $ words "gravatar"
189 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
190 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
192 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
193 "base-unicode-symbols containers-unicode-symbols"
195 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
198 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
199 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
203 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
206 mapM_ (add "Adam Bergmark <adam@edea.se>") $ words
209 mapM_ (add "Boris Lykah <lykahb@gmail.com>") $ words
210 "groundhog groundhog-th groundhog-sqlite groundhog-postgresql groundhog-mysql"
212 -- https://github.com/fpco/stackage/issues/46
213 addRange "Michael Snoyman" "QuickCheck" "< 2.6"
215 -- https://github.com/fpco/stackage/issues/68
216 addRange "Michael Snoyman" "criterion" "< 0.8"
218 -- https://github.com/fpco/stackage/issues/72
219 addRange "Michael Snoyman" "HaXml" "< 1.24"
221 -- Due to binary package dep
222 addRange "Michael Snoyman" "statistics" "< 0.10.4"
224 -- https://github.com/fpco/stackage/issues/97
225 addRange "Michael Snoyman" "tagsoup" "< 0.13"
227 -- https://github.com/fpco/stackage/issues/107
228 addRange "Michael Snoyman" "split" "< 0.2.2"
230 addRange "Michael Snoyman" "hashable" "< 1.2"
232 -- unknown symbol `utf8_table4'
233 addRange "Michael Snoyman" "regex-pcre-builtin" "< 0.94.4.6.8.31"
235 add maintainer package = addRange maintainer package "-any"
236 addRange maintainer package range =
237 case simpleParse range of
238 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
239 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