Browse Source

Warning when there is no HP file

fpco
Michael Snoyman 9 years ago
parent
commit
c5733d1fca
  1. 4
      Stackage/HaskellPlatform.hs

4
Stackage/HaskellPlatform.hs

@ -18,7 +18,9 @@ loadHaskellPlatform ss = do
e <- doesFileExist fp
if e
then fmap (Just . parseHP) $ readFile fp
else return Nothing
else do
putStrLn "Warning: No Haskell Platform found for current GHC version"
return Nothing
where
GhcMajorVersion x y = selectGhcVersion ss

Loading…
Cancel
Save