on 578d9ca help sign in
stackage/Stackage/Config.hs
183 lines 7.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
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"
81 ]
83-- | List of packages for our stable Hackage. All dependencies will be
84-- included as well. Please indicate who will be maintaining the package
85-- via comments.
86defaultStablePackages :: Map PackageName (VersionRange, Maintainer)
87defaultStablePackages = unPackageMap $ execWriter $ do
88 mapM_ (add "michael@snoyman.com") $ words =<<
89 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test"
90 , "markdown filesystem-conduit mime-mail-ses"
91 , "persistent persistent-template persistent-sqlite"
92 , "network-conduit-tls yackage" -- Removed until keter supports non-Linux systems: keter
93 , "web-fpco"
94 ]
96 mapM_ (add "Neil Mitchell") $ words
97 "hlint hoogle shake"
99 mapM_ (add "Alan Zimmerman") $ words
100 "hjsmin language-javascript"
102 mapM_ (add "Jasper Van der Jeugt") $ words
103 "blaze-html blaze-markup stylish-haskell"
105 mapM_ (add "Antoine Latter") $ words
106 "uuid byteorder"
108 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
109 "HTF hscurses xmlgen stm-stats"
111 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
112 "parseargs"
114 mapM_ (add "Vincent Hanquez") $ words =<<
115 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
116 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
117 , "cryptohash hit language-java libgit pem siphash socks tls"
118 , "tls-debug tls-extra udbus vhd xenstore"
119 ]
121 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
122 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
123 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
124 , "distributive either eq free groupoids heaps hyphenation"
125 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
126 , "mtl profunctors profunctor-extras reducers reflection"
127 , "representable-functors representable-tries"
128 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
129 , "graphs monad-products monad-st wl-pprint-extras wl-pprint-terminfo"
130 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
131 , "streams syb-extras vector-instances"
132 ]
134 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
135 "hspec doctest base-compat"
137 mapM_ (add "Brent Yorgey <byorgey@gmail.com>") $ words =<<
138 [ "monoid-extras dual-tree vector-space-points active force-layout"
139 , "diagrams diagrams-contrib diagrams-core diagrams-lib diagrams-svg"
140 , "diagrams-postscript diagrams-builder haxr"
141 , "BlogLiterately BlogLiterately-diagrams"
142 ]
144 mapM_ (add "Patrick Brisbin") $ words "gravatar"
146 mapM_ (add "Felipe Lessa <felipe.lessa@gmail.com>") $ words
147 "esqueleto fb fb-persistent yesod-fb yesod-auth-fb"
149 mapM_ (add "Alexander Altman <alexanderaltman@me.com>") $ words
150 "base-unicode-symbols containers-unicode-symbols"
152 -- https://github.com/fpco/stackage/issues/46
153 addRange "Michael Snoyman" "QuickCheck" "< 2.6"
154 addRange "Michael Snoyman" "syb" "< 0.4"
156 -- https://github.com/fpco/stackage/issues/63
157 addRange "Michael Snoyman" "NumInstances" "< 1.3"
159 -- https://github.com/fpco/stackage/issues/66
160 addRange "Michael Snoyman" "esqueleto" "< 1.2"
161 addRange "Michael Snoyman" "fb-persistent" "< 0.3"
162 addRange "Michael Snoyman" "persistent" "< 1.2"
163 addRange "Michael Snoyman" "persistent-sqlite" "< 1.2"
164 addRange "Michael Snoyman" "persistent-template" "< 1.2"
165 addRange "Michael Snoyman" "yesod-core" "< 1.2"
166 addRange "Michael Snoyman" "yesod-auth" "< 1.2"
167 addRange "Michael Snoyman" "yesod-form" "< 1.3"
168 addRange "Michael Snoyman" "yesod-test" "< 1.2"
169 addRange "Michael Snoyman" "yesod-static" "< 1.2"
170 addRange "Michael Snoyman" "yesod-sitemap" "< 1.2"
171 addRange "Michael Snoyman" "yesod-persistent" "< 1.2"
172 addRange "Michael Snoyman" "yesod-newsfeed" "< 1.2"
173 addRange "Michael Snoyman" "yesod-routes" "< 1.2"
174 addRange "Michael Snoyman" "yesod" "< 1.2"
176 -- https://github.com/fpco/stackage/issues/68
177 addRange "Michael Snoyman" "criterion" "< 0.8"
178 where
179 add maintainer package = addRange maintainer package "-any"
180 addRange maintainer package range =
181 case simpleParse range of
182 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
183 Just range' -> tell $ PackageMap $ Map.singleton (PackageName package) (range', Maintainer maintainer)