Warning when there is no HP file
commitc5733d1fcac12f71b70443d815820056447b2ce6
authorMichael Snoyman <michael@snoyman.com>
dateSun 30 Jun 2013, 13:40 (13 years ago)
parent574ba0b
Stackage/HaskellPlatform.hs+3−1
@@ -18,7 +18,9 @@ loadHaskellPlatform ss = do
1818 e <- doesFileExist fp
1919 if e
2020 then fmap (Just . parseHP) $ readFile fp
21− else return Nothing
21+ else do
22+ putStrLn "Warning: No Haskell Platform found for current GHC version"
23+ return Nothing
2224 where
2325 GhcMajorVersion x y = selectGhcVersion ss
2426