on master help sign in
Warning when there is no HP file
c5733d1Michael Snoyman
Stackage/HaskellPlatform.hs+3−1
@@ -18,7 +18,9 @@ loadHaskellPlatform ss = do
18 e <- doesFileExist fp
18 e <- doesFileExist fp
19 if e
19 if e
20 then fmap (Just . parseHP) $ readFile fp
20 then fmap (Just . parseHP) $ readFile fp
21+ else do
22+ putStrLn "Warning: No Haskell Platform found for current GHC version"
21− else return Nothing
23+ return Nothing
22 where
24 where
23 GhcMajorVersion x y = selectGhcVersion ss
25 GhcMajorVersion x y = selectGhcVersion ss
24
26