From f8fb6d3dc38cafae4c058432c198bf5c7eb3c52f Mon Sep 17 00:00:00 2001 From: Harold Lee Date: Sun, 22 Feb 2015 13:29:07 -0800 Subject: [PATCH] Improve error message when "yesod devel" complains about the GHC version. I hit this problem and the fix was to reinstall yesod-bin (because I'd upgraded my version of ghc): cabal install --reinstall yesod-bin See issue #476. --- yesod-bin/Devel.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yesod-bin/Devel.hs b/yesod-bin/Devel.hs index c4311c3e..8912dbaa 100644 --- a/yesod-bin/Devel.hs +++ b/yesod-bin/Devel.hs @@ -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