From 798f758b7034ad004a43c9012ba33b98bed2e309 Mon Sep 17 00:00:00 2001 From: panne Date: Thu, 29 Jun 2000 20:20:18 +0000 Subject: [PATCH] [project @ 2000-06-29 20:20:18 by panne] Fixed buglet in search for ghc-usage.txt --- ghc/driver/Main.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ghc/driver/Main.hs b/ghc/driver/Main.hs index 13ca445..415f0a6 100644 --- a/ghc/driver/Main.hs +++ b/ghc/driver/Main.hs @@ -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 -- 1.7.10.4