on b49a2de help sign in
stackage/Stackage/Config.hs
102 lines 4.1 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"
44 ]
46-- | List of packages for our stable Hackage. All dependencies will be
47-- included as well. Please indicate who will be maintaining the package
48-- via comments.
49defaultStablePackages :: Map PackageName (VersionRange, Maintainer)
50defaultStablePackages = execWriter $ do
51 mapM_ (add "michael@snoyman.com") $ words =<<
52 [ "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test"
53 , "markdown filesystem-conduit mime-mail-ses"
54 , "persistent persistent-template persistent-sqlite"
55 ]
57 mapM_ (add "Neil Mitchell") $ words
58 "hoogle hlint"
60 mapM_ (add "Alan Zimmerman") $ words
61 "hjsmin language-javascript"
63 mapM_ (add "Jasper Van der Jeugt") $ words
64 "blaze-html blaze-markup stylish-haskell"
66 mapM_ (add "Antoine Latter") $ words
67 "uuid byteorder"
69 mapM_ (add "Stefan Wehr <wehr@factisresearch.com>") $ words
70 "HTF hscurses xmlgen stm-stats"
72 mapM_ (add "Bart Massey <bart.massey+stackage@gmail.com>") $ words
73 "parseargs"
75 mapM_ (add "Vincent Hanquez") $ words =<<
76 [ "asn1-data bytedump certificate cipher-aes cipher-rc4 connection"
77 , "cprng-aes cpu crypto-pubkey-types crypto-random-api cryptocipher"
78 , "cryptohash hit language-java libgit pem siphash socks tls"
79 , "tls-debug tls-extra udbus vhd xenstore"
80 ]
82 mapM_ (add "Edward Kmett <ekmett@gmail.com>") $ words =<<
83 [ "ad adjunctions bifunctors bound categories charset comonad comonad-transformers"
84 , "comonads-fd comonad-extras compressed concurrent-supply constraints contravariant"
85 , "distributive either eq free groupoids heaps hyphenation"
86 , "integration intervals kan-extensions lca lens linear monadic-arrays machines"
87 , "mtl profunctors profunctor-extras reducers reflection"
88 , "representable-functors representable-profunctors representable-tries"
89 , "semigroups semigroupoids semigroupoid-extras speculation tagged void"
90 , "wl-pprint-extras wl-pprint-terminfo graphs monad-products monad-st"
91 , "numeric-extras parsers pointed prelude-extras recursion-schemes reducers"
92 , "streams syb-extras vector-instances"
93 ]
95 mapM_ (add "Simon Hengel <sol@typeful.net>") $ words
96 "hspec doctest base-compat"
97 where
98 add maintainer package = addRange maintainer package "-any"
99 addRange maintainer package range =
100 case simpleParse range of
101 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
102 Just range' -> tell $ Map.singleton (PackageName package) (range', Maintainer maintainer)