diff --git a/ghc/driver/Main.hs b/ghc/driver/Main.hs
index 4cf93d06c5c31cbe26b36dc2e63f9d7843163e3d..856d7d0f7b37cd937654d714db2426569ad01a22 100644
--- a/ghc/driver/Main.hs
+++ b/ghc/driver/Main.hs
@@ -604,7 +604,7 @@ checkConfigAccess = do
   conf_file <- readIORef package_config
   access <- getPermissions conf_file
   unless (writable access)
-	throwDyn (OtherError "you don't have permission to modify the package configuration file")
+	(throwDyn (OtherError "you don't have permission to modify the package configuration file"))
 
 maybeRestoreOldConfig :: String -> IO () -> IO ()
 maybeRestoreOldConfig conf_file io