[project @ 2000-06-29 20:20:18 by panne]
authorpanne <unknown>
Thu, 29 Jun 2000 20:20:18 +0000 (20:20 +0000)
committerpanne <unknown>
Thu, 29 Jun 2000 20:20:18 +0000 (20:20 +0000)
Fixed buglet in search for ghc-usage.txt

ghc/driver/Main.hs

index 13ca445..415f0a6 100644 (file)
@@ -61,8 +61,9 @@ short_usage = do
   exitWith ExitSuccess
    
 long_usage = do
-  let usage_dir = findFile "ghc-usage.txt" (cGHC_DRIVER_DIR++"/ghc-usage.txt")
-  usage <- readFile (usage_dir++"/ghc-usage.txt")
+  let usage_filename = "ghc-usage.txt"
+      usage_dir = findFile usage_filename cGHC_DRIVER_DIR
+  usage <- readFile (usage_dir ++ "/" ++ usage_filename)
   dump usage
   exitWith ExitSuccess
   where