mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-05 19:10:26 +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
|
e <- doesFileExist fp
|
||||||
if e
|
if e
|
||||||
then fmap (Just . parseHP) $ readFile fp
|
then fmap (Just . parseHP) $ readFile fp
|
||||||
else return Nothing
|
else do
|
||||||
|
putStrLn "Warning: No Haskell Platform found for current GHC version"
|
||||||
|
return Nothing
|
||||||
where
|
where
|
||||||
GhcMajorVersion x y = selectGhcVersion ss
|
GhcMajorVersion x y = selectGhcVersion ss
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user