Merge pull request #940 from haroldl/master

Improve error message when "yesod devel" complains about the GHC version...
This commit is contained in:
Christopher Reichert 2015-02-22 22:19:18 -06:00
commit 11fa46d8ba

View File

@ -321,7 +321,7 @@ removeFileIfExists file = removeFile file `Ex.catch` handler
mkRebuild :: String -> FilePath -> DevelOpts -> (FilePath, FilePath) -> IO (IO Bool)
mkRebuild ghcVer cabalFile opts (ldPath, arPath)
| GHC.cProjectVersion /= ghcVer =
failWith "Yesod has been compiled with a different GHC version, please reinstall"
failWith "Yesod has been compiled with a different GHC version, please reinstall yesod-bin"
| forceCabal opts = return (rebuildCabal opts)
| otherwise =
return $ do