on 17645d8 help sign in
stackage/Stackage/Config.hs
254 lines 9.4 kB history raw
1{-# LANGUAGE CPP #-}
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)
9import Stackage.Types
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
15 "binary Win32"
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
21 -> Set PackageName
22defaultExpectedFailures _ = fromList $ map PackageName
23 [ -- Requires an old version of WAI and Warp for tests
24 "HTTP"
26 -- text and setenv have recursive dependencies in their tests, which
27 -- cabal can't (yet) handle
28 , "text"
29 , "setenv"
31 -- The version of GLUT included with the HP does not generate
32 -- documentation correctly.
33 , "GLUT"
35 -- https://github.com/bos/statistics/issues/42
36 , "statistics"
38 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
39 , "simple-sendfile"
41 -- http://hackage.haskell.org/trac/hackage/ticket/954
42 , "diagrams"
44 -- https://github.com/fpco/stackage/issues/24
45 , "unix-time"
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
51 -- databases
52 , "HTF"
54 -- https://github.com/simonmar/monad-par/issues/28
55 , "monad-par"
57 -- Unfortunately network failures seem to happen haphazardly
58 , "network"
60 -- https://github.com/ekmett/hyphenation/issues/1
61 , "hyphenation"
63 -- Test suite takes too long to run on some systems
64 , "punycode"
66 -- http://hub.darcs.net/stepcut/happstack/issue/1
67 , "happstack-server"
69 -- Requires a Facebook app.
70 , "fb"
72 -- https://github.com/tibbe/hashable/issues/64
73 , "hashable"
75 -- https://github.com/vincenthz/language-java/issues/10
76 , "language-java"
78 , "threads"
79 , "crypto-conduit"
80 , "pandoc"
81 , "language-ecmascript"
82 , "hspec"
83 , "alex"
85 -- https://github.com/basvandijk/concurrent-extra/issues/
86 , "concurrent-extra"
88 -- https://github.com/rrnewton/haskell-lockfree-queue/issues/7
89 , "abstract-deque"
90 ]
92-- | List of packages for our stable Hackage. All dependencies will be
93-- included as well. Please indicate who will be maintaining the package
94-- via comments.
95defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
96defaultStablePackages ghcVer = unPackageMap $ execWriter $ do
97 mapM_ (add "michael@snoyman.com") $ words =<<
98 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
99 , "markdown filesystem-conduit mime-mail-ses"
100 , "persistent persistent-template persistent-sqlite"
101 , "network-conduit-tls yackage" -- Removed until keter supports non-Linux systems: keter
102 , "shakespeare-text process-conduit stm-conduit"
103 , "classy-prelude-yesod yesod-fay"
104 , "random-shuffle safe-failure"
105 ]
107 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
108 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
109 , "fixed-list indents language-c pretty-class"
110 , "aws yesod-auth-oauth csv-conduit cassava"
111 , "async shelly"
112 , "hxt dimensional"
113 , "cairo diagrams-cairo"
114 ]
115 when (ghcVer < GhcMajorVersion 7 6) $
116 addRange "FP Complete <michael@fpcomplete.com>" "hxt" "<= 9.3.0.1"
117 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
119 mapM_ (add "Neil Mitchell") $ words
120 "hlint hoogle shake derive"
122 mapM_ (add "Alan Zimmerman") $ words
123 "hjsmin language-javascript"
125 mapM_ (add "Jasper Van der Jeugt") $ words
126 "blaze-html blaze-markup stylish-haskell"
128 mapM_ (add "Antoine Latter") $ words
129 "uuid byteorder"
131 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
132 "HTF hscurses xmlgen stm-stats"
134 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
135 "parseargs"
137 mapM_ (add "Vincent Hanquez") $ words =<<
138 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
139 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
140 , "cryptohash hit language-java libgit pem siphash socks tls"
141 , "tls-debug tls-extra vhd"
142 ]
143 addRange "Vincent Hanquez" "language-java" "< 0.2.5"
145#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
146 -- Does not compile on Windows
147 mapM_ (add "Vincent Hanquez") $ words "udbus xenstore"
148#endif
150 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
151 "RefSerialize TCache Workflow MFlow"
153 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
154 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
155 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
156 , "distributive either eq free groupoids heaps hyphenation"
157 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
158 , "mtl profunctors profunctor-extras reducers reflection"
159 , "representable-functors representable-tries"
160 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
161 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
162 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
163 , "streams syb-extras vector-instances"
164 ]
166 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
167 "hspec doctest base-compat"
169 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
170 [ "monoid-extras dual-tree vector-space-points active force-layout"
171 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
172 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
173 , "BlogLiterately BlogLiterately-diagrams"
174 ]
176 mapM_ (add "Patrick Brisbin") $ words "gravatar"
178 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
179 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
181 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
182 "base-unicode-symbols containers-unicode-symbols"
184 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
185 "accelerate"
187 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
188 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
189 , "tardis"
190 ]
192 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
193 "HaTeX"
195 mapM_ (add "Adam Bergmark <adam@edea.se>") $ words
196 "fay fay-base"
198 -- https://github.com/fpco/stackage/issues/46
199 addRange "Michael Snoyman" "QuickCheck" "< 2.6"
201 -- https://github.com/fpco/stackage/issues/68
202 addRange "Michael Snoyman" "criterion" "< 0.8"
204 -- https://github.com/fpco/stackage/issues/72
205 addRange "Michael Snoyman" "HaXml" "< 1.24"
207 -- https://github.com/fpco/stackage/issues/96
208 addRange "Michael Snoyman" "generic-deriving" "< 1.6"
210 -- Due to binary package dep
211 addRange "Michael Snoyman" "statistics" "< 0.10.4"
213 -- https://github.com/fpco/stackage/issues/89
214 addRange "Michael Snoyman" "semigroupoids" "< 3.1"
216 -- https://github.com/fpco/stackage/issues/97
217 addRange "Michael Snoyman" "tagsoup" "< 0.13"
219 -- https://github.com/fpco/stackage/issues/98
220 addRange "Michael Snoyman" "cipher-aes" "< 0.2"
221 addRange "Michael Snoyman" "vhd" "< 0.2"
222 addRange "Michael Snoyman" "cprng-aes" "< 0.4"
224 -- https://github.com/fpco/stackage/issues/99
225 addRange "Michael Snoyman" "hspec" "< 1.7"
227 -- https://github.com/fpco/stackage/issues/100
228 addRange "Michael Snoyman" "tagged" "< 0.7"
230 -- https://github.com/fpco/stackage/issues/103
231 addRange "Michael Snoyman" "haskell-src-exts" "< 1.14"
232 addRange "Michael Snoyman" "derive" "< 2.5.12"
233 addRange "Michael Snoyman" "hlint" "< 1.8.51"
234 addRange "Michael Snoyman" "hoogle" "< 4.2.17"
235 addRange "Michael Snoyman" "stylish-haskell" "< 0.5.8.0"
236 addRange "Michael Snoyman" "fay" "< 0.16.0.2"
237 addRange "Michael Snoyman" "diagrams-haddock" "< 0.1.1.2"
239 addRange "Michael Snoyman" "hashable" "< 1.2"
241 -- Requires containers 0.5, not supported by GHC 7.4
242 addRange "Michael Snoyman" "bytes" "< 0.8"
244 -- unknown symbol `utf8_table4'
245 addRange "Michael Snoyman" "regex-pcre-builtin" "< 0.94.4.6.8.31"
247 -- Requires too new a base/containers
248 addRange "Michael Snoyman" "vault" "< 0.3"
249 where
250 add maintainer package = addRange maintainer package "-any"
251 addRange maintainer package range =
252 case simpleParse range of
253 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
254 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)