Skip to content
Newer
Older
100644 83 lines (66 sloc) 2.84 KB
1833de6 @snoyberg Basic dep tree display
snoyberg authored
1 {-# LANGUAGE CPP #-}
4f8f025 @snoyberg Stackage.Config
snoyberg authored
2 module Stackage.Config where
3
4e6e979 @snoyberg Stylish
snoyberg authored
4 import Control.Monad.Trans.Writer (execWriter, tell)
5 import qualified Data.Map as Map
6 import Data.Set (fromList, singleton)
7 import Distribution.Text (simpleParse)
8 import Stackage.Types
4f8f025 @snoyberg Stackage.Config
snoyberg authored
9
d8571ea @snoyberg Better condition checking
snoyberg authored
10 targetCompilerVersion :: Version
11 targetCompilerVersion =
12 case simpleParse "7.4.2" of
13 Nothing -> error "Invalid targetCompilerVersion"
14 Just v -> v
15
4f8f025 @snoyberg Stackage.Config
snoyberg authored
16 -- | Packages which are shipped with GHC but are not included in the
17 -- Haskell Platform list of core packages.
ac709e9 @snoyberg BuildSettings
snoyberg authored
18 defaultExtraCore :: Set PackageName
19 defaultExtraCore = singleton $ PackageName "binary"
4f8f025 @snoyberg Stackage.Config
snoyberg authored
20
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.
ac709e9 @snoyberg BuildSettings
snoyberg authored
24 defaultExpectedFailures :: Set PackageName
25 defaultExpectedFailures = fromList $ map PackageName
4f8f025 @snoyberg Stackage.Config
snoyberg authored
26 [ -- Requires an old version of WAI and Warp for tests
27 "HTTP"
28 -- Requires a special hspec-meta which is not yet available from
29 -- Hackage.
30 , "hspec"
d0b2816 @snoyberg Generate documentation
snoyberg authored
31
32 -- text and setenv have recursive dependencies in their tests, which
33 -- cabal can't (yet) handle
34 , "text"
35 , "setenv"
36
37 -- The version of GLUT included with the HP does not generate
38 -- documentation correctly.
39 , "GLUT"
6eb18c2 @snoyberg Some expected failures
snoyberg authored
40
41 -- https://github.com/bos/statistics/issues/42
42 , "statistics"
43
44 -- https://github.com/kazu-yamamoto/unix-time/issues/4
45 , "unix-time"
46
47 -- https://github.com/kazu-yamamoto/simple-sendfile/pull/10
48 , "simple-sendfile"
49
50 -- https://github.com/alanz/hjsmin/pull/11
51 , "hjsmin"
52
53 -- Michael emailed Dominic about bumping version numbers, but no new
54 -- release has yet been made.
55 , "largeword"
4f8f025 @snoyberg Stackage.Config
snoyberg authored
56 ]
57
58 -- | List of packages for our stable Hackage. All dependencies will be
59 -- included as well. Please indicate who will be maintaining the package
60 -- via comments.
ac709e9 @snoyberg BuildSettings
snoyberg authored
61 defaultStablePackages :: Map PackageName (VersionRange, Maintainer)
62 defaultStablePackages = execWriter $ do
d7ccf74 @snoyberg Print build plan with maintainers
snoyberg authored
63 mapM_ (add "michael@snoyman.com") $ words
64 "yesod yesod-newsfeed yesod-sitemap yesod-static yesod-test markdown filesystem-conduit mime-mail-ses"
65
66 mapM_ (add "Neil Mitchell") $ words
67 "hoogle hlint"
68
69 mapM_ (add "Alan Zimmerman") $ words
70 "hjsmin language-javascript"
71
72 mapM_ (add "Jasper Van der Jeugt") $ words
73 "blaze-html blaze-markup stylish-haskell"
74
75 mapM_ (add "Antoine Latter") $ words
76 "uuid byteorder"
4f8f025 @snoyberg Stackage.Config
snoyberg authored
77 where
d7ccf74 @snoyberg Print build plan with maintainers
snoyberg authored
78 add maintainer package = addRange maintainer package "-any"
79 addRange maintainer package range =
4f8f025 @snoyberg Stackage.Config
snoyberg authored
80 case simpleParse range of
81 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
d7ccf74 @snoyberg Print build plan with maintainers
snoyberg authored
82 Just range' -> tell $ Map.singleton (PackageName package) (range', Maintainer maintainer)
Something went wrong with that request. Please try again.