Commit 191f0732 authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

old-time is implicit setup-depends on GHC <7.10 only

parent 90ac0c11
...@@ -3129,14 +3129,18 @@ legacyCustomSetupPkgs :: Compiler -> Platform -> [PackageName] ...@@ -3129,14 +3129,18 @@ legacyCustomSetupPkgs :: Compiler -> Platform -> [PackageName]
legacyCustomSetupPkgs compiler (Platform _ os) = legacyCustomSetupPkgs compiler (Platform _ os) =
map mkPackageName $ map mkPackageName $
[ "array", "base", "binary", "bytestring", "containers" [ "array", "base", "binary", "bytestring", "containers"
, "deepseq", "directory", "filepath", "old-time", "pretty" , "deepseq", "directory", "filepath", "pretty"
, "process", "time", "transformers" ] , "process", "time", "transformers" ]
++ [ "Win32" | os == Windows ] ++ [ "Win32" | os == Windows ]
++ [ "unix" | os /= Windows ] ++ [ "unix" | os /= Windows ]
++ [ "ghc-prim" | isGHC ] ++ [ "ghc-prim" | isGHC ]
++ [ "template-haskell" | isGHC ] ++ [ "template-haskell" | isGHC ]
++ [ "old-time" | notGHC710 ]
where where
isGHC = compilerCompatFlavor GHC compiler isGHC = compilerCompatFlavor GHC compiler
notGHC710 = case compilerCompatVersion GHC compiler of
Nothing -> False
Just v -> v <= mkVersion [7,9]
-- The other aspects of our Setup.hs policy lives here where we decide on -- The other aspects of our Setup.hs policy lives here where we decide on
-- the 'SetupScriptOptions'. -- the 'SetupScriptOptions'.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment