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