[project @ 2005-01-06 19:10:14 by krasimir]
authorkrasimir <unknown>
Thu, 6 Jan 2005 19:10:14 +0000 (19:10 +0000)
committerkrasimir <unknown>
Thu, 6 Jan 2005 19:10:14 +0000 (19:10 +0000)
Reduce dependencies for GHC. This allows System.FilePath to be used in
some low-level modules.

System/FilePath.hs

index cf0a66a..3fead9b 100644 (file)
@@ -1,3 +1,5 @@
+{-# OPTIONS -fno-implicit-prelude #-}
+
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  System.FilePath
@@ -43,9 +45,15 @@ module System.FilePath
         , dllExtension
          ) where
 
+#ifdef __GLASGOW_HASKELL__
+import GHC.Base
+import GHC.IOBase(FilePath)
+import GHC.Num
+#else
 import Prelude -- necessary to get dependencies right
-
-import Data.List(intersperse)
+#endif
+import Data.Maybe
+import Data.List
 
 --------------------------------------------------------------
 -- * FilePath