[project @ 2000-07-18 14:50:07 by simonmar]
authorsimonmar <unknown>
Tue, 18 Jul 2000 14:50:07 +0000 (14:50 +0000)
committersimonmar <unknown>
Tue, 18 Jul 2000 14:50:07 +0000 (14:50 +0000)
fix finding of the usage message (again).

ghc/driver/Main.hs

index 856d7d0..7120b93 100644 (file)
@@ -73,9 +73,9 @@ short_usage = do
   exitWith ExitSuccess
    
 long_usage = do
-  let usage_filename = "ghc-usage.txt"
-      usage_dir = findFile usage_filename cGHC_DRIVER_DIR
-  usage <- readFile (usage_dir ++ "/" ++ usage_filename)
+  let usage_file = "ghc-usage.txt"
+      usage_path = findFile usage_file (cGHC_DRIVER_DIR ++ '/':usage_file)
+  usage <- readFile usage_path
   dump usage
   exitWith ExitSuccess
   where