2module Stackage.Config where
4import Control.Monad (unless, when)
5import Control.Monad.Trans.Writer (execWriter, tell)
6import qualified Data.Map as Map
7import Data.Set (fromList, singleton)
8import Distribution.System (OS (..), buildOS)
9import Distribution.Text (simpleParse)
12targetCompilerVersion :: Version
13targetCompilerVersion =
14 case simpleParse "7.4.2" of
15 Nothing -> error "Invalid targetCompilerVersion"
18-- | Packages which are shipped with GHC but are not included in the
19-- Haskell Platform list of core packages.
20extraCore :: Set PackageName
21extraCore = singleton $ PackageName "binary"
23-- | Test suites which are expected to fail for some reason. The test suite
24-- will still be run and logs kept, but a failure will not indicate an
25-- error in our package combination.
26expectedFailures :: Set PackageName
27expectedFailures = fromList $ map PackageName
28 [ -- Requires an old version of WAI and Warp for tests
30 -- Requires a special hspec-meta which is not yet available from
34 -- Requires markdown-unlit, which we don't want to depend on.
35 , "hspec-expectations"
37 -- text and setenv have recursive dependencies in their tests, which
38 -- cabal can't (yet) handle
42 -- The version of GLUT included with the HP does not generate
43 -- documentation correctly.
47-- | List of packages for our stable Hackage. All dependencies will be
48-- included as well. Please indicate who will be maintaining the package
50stablePackages :: Map PackageName VersionRange
51stablePackages = execWriter $ do
52 -- Michael Snoyman michael@snoyman.com
53 addRange "yesod" "< 1.4"
59 add "filesystem-conduit"
66 add = flip addRange "-any"
67 addRange package range =
68 case simpleParse range of
69 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
70 Just range' -> tell $ Map.singleton (PackageName package) range'
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list