on c1c8857 help sign in
stackage/Stackage/Config.hs
220 lines 8.0 kB history raw
1{-# LANGUAGE CPP #-}
2module Stackage.Config where
4import Control.Monad.Trans.Writer (execWriter, tell)
5import qualified Data.Map as Map
6import Data.Set (fromList)
7import Distribution.Text (simpleParse)
8import Stackage.Types
10-- | Packages which are shipped with GHC but are not included in the
11-- Haskell Platform list of core packages.
12defaultExtraCore :: GhcMajorVersion -> Set PackageName
13defaultExtraCore _ = fromList $ map PackageName $ words
14 "binary Win32"
16-- | Test suites which are expected to fail for some reason. The test suite
17-- will still be run and logs kept, but a failure will not indicate an
18-- error in our package combination.
19defaultExpectedFailures :: GhcMajorVersion
20 -> Set PackageName
21defaultExpectedFailures _ = fromList $ map PackageName
22 [ -- Requires an old version of WAI and Warp for tests
23 "HTTP"
25 -- text and setenv have recursive dependencies in their tests, which
26 -- cabal can't (yet) handle
27 , "text"
28 , "setenv"
30 -- The version of GLUT included with the HP does not generate
31 -- documentation correctly.
32 , "GLUT"
34 -- https://github.com/bos/statistics/issues/42
35 , "statistics"
37 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
38 , "simple-sendfile"
40 -- http://hackage.haskell.org/trac/hackage/ticket/954
41 , "diagrams"
43 -- https://github.com/fpco/stackage/issues/24
44 , "unix-time"
46 -- With transformers 0.3, it doesn't provide any modules
47 , "transformers-compat"
49 -- Tests require shell script and are incompatible with sandboxed package
50 -- databases
51 , "HTF"
53 -- https://github.com/simonmar/monad-par/issues/28
54 , "monad-par"
56 -- Unfortunately network failures seem to happen haphazardly
57 , "network"
59 -- https://github.com/ekmett/hyphenation/issues/1
60 , "hyphenation"
62 -- Test suite takes too long to run on some systems
63 , "punycode"
65 -- http://hub.darcs.net/stepcut/happstack/issue/1
66 , "happstack-server"
68 -- Requires a Facebook app.
69 , "fb"
71 -- https://github.com/tibbe/hashable/issues/64
72 , "hashable"
74 -- https://github.com/vincenthz/language-java/issues/10
75 , "language-java"
77 , "threads"
78 , "crypto-conduit"
79 , "pandoc"
80 , "language-ecmascript"
81 , "hspec"
82 , "alex"
84 -- https://github.com/basvandijk/concurrent-extra/issues/
85 , "concurrent-extra"
87 -- https://github.com/rrnewton/haskell-lockfree-queue/issues/7
88 , "abstract-deque"
89 ]
91-- | List of packages for our stable Hackage. All dependencies will be
92-- included as well. Please indicate who will be maintaining the package
93-- via comments.
94defaultStablePackages :: GhcMajorVersion -> Map PackageName (VersionRange, Maintainer)
95defaultStablePackages _ = unPackageMap $ execWriter $ do
96 mapM_ (add "michael@snoyman.com") $ words =<<
97 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test yesod-bin"
98 , "markdown filesystem-conduit mime-mail-ses"
99 , "persistent persistent-template persistent-sqlite"
100 , "network-conduit-tls yackage" -- Removed until keter supports non-Linux systems: keter
101 , "shakespeare-text process-conduit stm-conduit"
102 , "classy-prelude-yesod yesod-fay"
103 , "random-shuffle"
104 ]
106 mapM_ (add "FP Complete <michael@fpcomplete.com>") $ words =<<
107 [ "web-fpco th-expand-syns configurator compdata smtLib unification-fd"
108 , "fixed-list indents language-c pretty-class"
109 , "aws yesod-auth-oauth csv-conduit cassava"
110 , "async"
111 ]
112 addRange "FP Complete <michael@fpcomplete.com>" "kure" "<= 2.4.10"
114 mapM_ (add "Neil Mitchell") $ words
115 "hlint hoogle shake"
117 mapM_ (add "Alan Zimmerman") $ words
118 "hjsmin language-javascript"
120 mapM_ (add "Jasper Van der Jeugt") $ words
121 "blaze-html blaze-markup stylish-haskell"
123 mapM_ (add "Antoine Latter") $ words
124 "uuid byteorder"
126 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
127 "HTF hscurses xmlgen stm-stats"
129 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
130 "parseargs"
132 mapM_ (add "Vincent Hanquez") $ words =<<
133 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
134 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
135 , "cryptohash hit language-java libgit pem siphash socks tls"
136 , "tls-debug tls-extra vhd xenstore"
137 ]
138 mapM_ (add "Alberto G. Corona <agocorona@gmail.com>") $ words
139 "RefSerialize TCache Workflow"
140 -- https://github.com/fpco/stackage/issues/86
141 -- MFlow
143#if !defined(mingw32_HOST_OS) && !defined(__MINGW32__)
144 -- Does not compile on Windows
145 add "Vincent Hanquez" "udbus"
146#endif
148 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
149 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
150 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
151 , "distributive either eq free groupoids heaps hyphenation"
152 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
153 , "mtl profunctors profunctor-extras reducers reflection"
154 , "representable-functors representable-tries"
155 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
156 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
157 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
158 , "streams syb-extras vector-instances"
159 ]
161 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
162 "hspec doctest base-compat"
164 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
165 [ "monoid-extras dual-tree vector-space-points active force-layout"
166 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
167 , "diagrams-postscript diagrams-builder diagrams-haddock haxr"
168 , "BlogLiterately BlogLiterately-diagrams"
169 ]
171 mapM_ (add "Patrick Brisbin") $ words "gravatar"
173 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
174 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
176 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
177 "base-unicode-symbols containers-unicode-symbols"
179 mapM_ (add "Ryan Newton <ryan.newton@alum.mit.edu>") $ words
180 "accelerate"
182 mapM_ (add "Dan Burton <danburton.email@gmail.com>") $ words =<<
183 [ "basic-prelude composition io-memoize numbers rev-state runmemo"
184 , "tardis"
185 ]
187 mapM_ (add "Daniel Díaz <dhelta.diaz@gmail.com>") $ words
188 "HaTeX"
190 -- https://github.com/fpco/stackage/issues/46
191 addRange "Michael Snoyman" "QuickCheck" "< 2.6"
193 -- https://github.com/fpco/stackage/issues/68
194 addRange "Michael Snoyman" "criterion" "< 0.8"
196 -- https://github.com/fpco/stackage/issues/70
197 addRange "Michael Snoyman" "monoid-extras" "< 0.3"
199 -- https://github.com/fpco/stackage/issues/72
200 addRange "Michael Snoyman" "HaXml" "< 1.24"
202 -- Due to binary package dep
203 addRange "Michael Snoyman" "statistics" "< 0.10.4"
205 -- https://github.com/fpco/stackage/issues/81
206 addRange "Michael Snoyman" "fingertree" "< 0.1"
208 addRange "Michael Snoyman" "hashable" "< 1.2"
210 -- Requires containers 0.5, not supported by GHC 7.4
211 addRange "Michael Snoyman" "bytes" "< 0.8"
213 -- unknown symbol `utf8_table4'
214 addRange "Michael Snoyman" "regex-pcre-builtin" "< 0.94.4.6.8.31"
215 where
216 add maintainer package = addRange maintainer package "-any"
217 addRange maintainer package range =
218 case simpleParse range of
219 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
220 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)