-----------------------------------------------------------------------------
--- $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
--
remove_spaces, escapeSpaces,
) where
-#include "../includes/config.h"
+#include "../includes/ghcconfig.h"
#include "HsVersions.h"
import Util
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)