diff options
author | Simon Marlow <marlowsd@gmail.com> | 2008-08-18 11:35:55 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2008-08-18 11:35:55 +0000 |
commit | 7251944b3932ebcef656efdf201edfd8121aea76 (patch) | |
tree | 655fe2fbbc95ed7f7deaaaa85c6768aaedb25b4d /compiler/utils | |
parent | e4f46f5de1749a06a927d98f0195e208f5eff374 (diff) | |
download | haskell-7251944b3932ebcef656efdf201edfd8121aea76.tar.gz |
use System.FilePath's isSearchPathSeparator instead of our own
Diffstat (limited to 'compiler/utils')
-rw-r--r-- | compiler/utils/Util.lhs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/compiler/utils/Util.lhs b/compiler/utils/Util.lhs index 83d7cc8241..4058a97f36 100644 --- a/compiler/utils/Util.lhs +++ b/compiler/utils/Util.lhs @@ -93,7 +93,7 @@ import Control.Monad ( unless ) import System.IO.Error as IO ( catch, isDoesNotExistError ) import System.Directory ( doesDirectoryExist, createDirectory, getModificationTime ) -import System.FilePath hiding ( searchPathSeparator ) +import System.FilePath import Data.Char ( isUpper, isAlphaNum, isSpace, ord, isDigit ) import Data.Ratio ( (%) ) import System.Time ( ClockTime ) @@ -874,17 +874,7 @@ parseSearchPath path = split path #endif _ -> chunk' - (chunk', rest') = break (==searchPathSeparator) s - --- | A platform-specific character used to separate search path strings in --- environment variables. The separator is a colon (\":\") on Unix and --- Macintosh, and a semicolon (\";\") on the Windows operating system. -searchPathSeparator :: Char -#if mingw32_HOST_OS || mingw32_TARGET_OS -searchPathSeparator = ';' -#else -searchPathSeparator = ':' -#endif + (chunk', rest') = break isSearchPathSeparator s data Direction = Forwards | Backwards |