on 08bb109 help sign in
stackage/Stackage/Config.hs
76 lines 2.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, singleton)
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 = singleton $ PackageName "binary"
21-- | Test suites which are expected to fail for some reason. The test suite
22-- will still be run and logs kept, but a failure will not indicate an
23-- error in our package combination.
24defaultExpectedFailures :: Set PackageName
25defaultExpectedFailures = fromList $ map PackageName
26 [ -- Requires an old version of WAI and Warp for tests
27 "HTTP"
29 -- text and setenv have recursive dependencies in their tests, which
30 -- cabal can't (yet) handle
31 , "text"
32 , "setenv"
34 -- The version of GLUT included with the HP does not generate
35 -- documentation correctly.
36 , "GLUT"
38 -- https://github.com/bos/statistics/issues/42
39 , "statistics"
41 -- https://github.com/kazu-yamamoto/unix-time/issues/4
42 , "unix-time"
44 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
45 , "simple-sendfile"
47 -- Michael emailed Dominic about bumping version numbers, but no new
48 -- release has yet been made.
49 , "largeword"
50 ]
52-- | List of packages for our stable Hackage. All dependencies will be
53-- included as well. Please indicate who will be maintaining the package
54-- via comments.
55defaultStablePackages :: Map PackageName (VersionRange, Maintainer)
56defaultStablePackages = execWriter $ do
57 mapM_ (add "michael@snoyman.com") $ words
58 "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test markdown filesystem-conduit mime-mail-ses"
60 mapM_ (add "Neil Mitchell") $ words
61 "hoogle hlint"
63 mapM_ (add "Alan Zimmerman") $ words
64 "hjsmin language-javascript"
66 mapM_ (add "Jasper Van der Jeugt") $ words
67 "blaze-html blaze-markup stylish-haskell"
69 mapM_ (add "Antoine Latter") $ words
70 "uuid byteorder"
71 where
72 add maintainer package = addRange maintainer package "-any"
73 addRange maintainer package range =
74 case simpleParse range of
75 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
76 Just range' -> tell $ Map.singleton (PackageName package) (range', Maintainer maintainer)