[project @ 2005-01-26 15:04:08 by simonmar]
authorsimonmar <unknown>
Wed, 26 Jan 2005 15:04:09 +0000 (15:04 +0000)
committersimonmar <unknown>
Wed, 26 Jan 2005 15:04:09 +0000 (15:04 +0000)
Remove System.FilePath, use System.Directory.Internals for now.

ghc/compiler/Makefile
ghc/lib/compat/Compat/Directory.hs
ghc/lib/compat/Makefile
ghc/lib/compat/System/Directory/Internals.hs [new file with mode: 0644]
ghc/lib/compat/System/FilePath.hs [deleted file]
ghc/utils/ghc-pkg/Makefile

index 9c865f4..0a2805a 100644 (file)
@@ -527,7 +527,7 @@ SRC_MKDEPENDHS_OPTS += \
        -optdep--exclude-module=Distribution.ParseUtils \
        -optdep--exclude-module=Distribution.Setup \
        -optdep--exclude-module=Distribution.Version \
-       -optdep--exclude-module=System.FilePath
+       -optdep--exclude-module=System.Directory.Internals
 endif
 
 SRC_LD_OPTS += -no-link-chk
index 6a9f4dc..a1e540a 100644 (file)
@@ -26,7 +26,7 @@ module Compat.Directory (
 #endif
 
 import System.Environment (getEnv)
-import System.FilePath
+import System.Directory.Internals
 #if __GLASGOW_HASKELL__ > 600
 import Control.Exception       ( bracket )
 import Control.Monad           ( when )
index 39112be..6365954 100644 (file)
@@ -21,7 +21,7 @@ ghc_603_plus = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else
 ifeq "$(ghc_603_plus)" "YES"
 # These modules are all provided in GHC 6.3+
 EXCLUDED_SRCS += \
-       System/FilePath.hs \
+       System/Directory/Internals.hs \
        Distribution/Compat/ReadP.hs \
        Distribution/Extension.hs \
        Distribution/GetOpt.hs \
@@ -34,7 +34,7 @@ EXCLUDED_SRCS += \
 endif
 
 # Some explicit dependencies
-System/FilePath.$(way_)o : $(FPTOOLS_TOP)/libraries/base/System/FilePath.hs
+System/Directory/Internals.$(way_)o : $(FPTOOLS_TOP)/libraries/base/System/Directory/Internals.hs
 Distribution/Compat/ReadP.$(way_) : $(FPTOOLS_TOP)/libraries/Cabal/Distribution/Compat/ReadP.hs
 Distribution/Extension.$(way_)o    : $(FPTOOLS_TOP)/libraries/Cabal/Distribution/Extension.hs
 Distribution/GetOpt.$(way_)o    : $(FPTOOLS_TOP)/libraries/Cabal/Distribution/GetOpt.hs
diff --git a/ghc/lib/compat/System/Directory/Internals.hs b/ghc/lib/compat/System/Directory/Internals.hs
new file mode 100644 (file)
index 0000000..4597203
--- /dev/null
@@ -0,0 +1,3 @@
+{-# OPTIONS -cpp #-}
+#include "base/System/Directory/Internals.hs"
+-- dummy comment
diff --git a/ghc/lib/compat/System/FilePath.hs b/ghc/lib/compat/System/FilePath.hs
deleted file mode 100644 (file)
index 951a3d1..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-{-# OPTIONS -cpp #-}
-#include "base/System/FilePath.hs"
-
--- dummy comment
index c7ee909..c80ec17 100644 (file)
@@ -56,7 +56,7 @@ SRC_MKDEPENDHS_OPTS += \
        -optdep--exclude-module=Distribution.ParseUtils \
        -optdep--exclude-module=Distribution.Setup \
        -optdep--exclude-module=Distribution.Version \
-       -optdep--exclude-module=System.FilePath
+       -optdep--exclude-module=System.Directory.Internals
 
 # -----------------------------------------------------------------------------=
 # Create the Version.hs file