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)
10targetCompilerVersion :: Version
11targetCompilerVersion =
12 case simpleParse "7.4.2" of
13 Nothing -> error "Invalid targetCompilerVersion"
16-- | Packages which are shipped with GHC but are not included in the
17-- Haskell Platform list of core packages.
18extraCore :: Set PackageName
19extraCore = 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.
24expectedFailures :: Set PackageName
25expectedFailures = fromList $ map PackageName
26 [ -- Requires an old version of WAI and Warp for tests
28 -- Requires a special hspec-meta which is not yet available from
32 -- Requires markdown-unlit, which we don't want to depend on.
33 , "hspec-expectations"
35 -- text and setenv have recursive dependencies in their tests, which
36 -- cabal can't (yet) handle
40 -- The version of GLUT included with the HP does not generate
41 -- documentation correctly.
45-- | List of packages for our stable Hackage. All dependencies will be
46-- included as well. Please indicate who will be maintaining the package
48stablePackages :: Map PackageName VersionRange
49stablePackages = execWriter $ do
50 -- Michael Snoyman michael@snoyman.com
51 addRange "yesod" "< 1.4"
57 add "filesystem-conduit"
66 add "language-javascript"
68 -- Jasper Van der Jeugt
77 add = flip addRange "-any"
78 addRange package range =
79 case simpleParse range of
80 Nothing -> error $ "Invalid range " ++ show range ++ " for " ++ package
81 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