X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fmain%2FDriverUtil.hs;h=b8796c1244d11479e1c90c924dcece7cacfec684;hb=423d477bfecd490de1449c59325c8776f91d7aac;hp=69c276d3fa42094438d5ec5cae5e2c69b3c92072;hpb=f1f24b1290313eb2105b162170cf84e92e939492;p=ghc-hetmet.git diff --git a/ghc/compiler/main/DriverUtil.hs b/ghc/compiler/main/DriverUtil.hs index 69c276d..b8796c1 100644 --- a/ghc/compiler/main/DriverUtil.hs +++ b/ghc/compiler/main/DriverUtil.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: DriverUtil.hs,v 1.41 2003/11/17 14:41:03 simonmar Exp $ +-- $Id: DriverUtil.hs,v 1.43 2004/08/13 13:07:02 simonmar Exp $ -- -- Utils for the driver -- @@ -19,7 +19,7 @@ module DriverUtil ( remove_spaces, escapeSpaces, ) where -#include "../includes/config.h" +#include "../includes/ghcconfig.h" #include "HsVersions.h" import Util @@ -176,7 +176,7 @@ splitFilename3 str remove_suffix :: Char -> String -> Suffix remove_suffix c s - | null pre = reverse suf + | null pre = s | otherwise = reverse pre where (suf,pre) = break (==c) (reverse s)