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
28-- | List of packages for our stable Hackage. All dependencies will be
29-- included as well. Please indicate who will be maintaining the package
31stablePackages :: Map PackageName VersionRange
32stablePackages = execWriter $ do
33 -- Michael Snoyman michael@snoyman.com
34 addRange "yesod" "< 1.4"
38 -- A few transient deps not otherwise picked up
40 when (buildOS == Linux) $ add "hinotify"
41 unless (buildOS == Windows) $ add "unix-time"
43 add = flip addRange "-any"
44 addRange package range =
45 case simpleParse range of
46 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
47 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