1module Stackage.Config where
3import Control.Monad (unless, when)
4import Control.Monad.Trans.Writer (execWriter, tell)
5import qualified Data.Map as Map
6import Data.Set (fromList, singleton)
7import Distribution.System (OS (..), buildOS)
8import Distribution.Text (simpleParse)
11-- | Packages which are shipped with GHC but are not included in the
12-- Haskell Platform list of core packages.
13extraCore :: Set PackageName
14extraCore = singleton $ PackageName "binary"
16-- | Test suites which are expected to fail for some reason. The test suite
17-- will still be run and logs kept, but a failure will not indicate an
18-- error in our package combination.
19expectedFailures :: Set PackageName
20expectedFailures = fromList $ map PackageName
21 [ -- Requires an old version of WAI and Warp for tests
23 -- Requires a special hspec-meta which is not yet available from
27 -- Requires markdown-unlit, which we don't want to depend on.
28 , "hspec-expectations"
30 -- text and setenv have recursive dependencies in their tests, which
31 -- cabal can't (yet) handle
35 -- The version of GLUT included with the HP does not generate
36 -- documentation correctly.
40-- | List of packages for our stable Hackage. All dependencies will be
41-- included as well. Please indicate who will be maintaining the package
43stablePackages :: Map PackageName VersionRange
44stablePackages = execWriter $ do
45 -- Michael Snoyman michael@snoyman.com
46 addRange "yesod" "< 1.4"
50 -- A few transient deps not otherwise picked up
52 when (buildOS == Linux) $ add "hinotify"
53 unless (buildOS == Windows) $ add "unix-time"
55 add = flip addRange "-any"
56 addRange package range =
57 case simpleParse range of
58 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
59 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