mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
Warning when there is no HP file
This commit is contained in:
parent
574ba0ba04
commit
c5733d1fca
@ -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…
Reference in New Issue
Block a user