[commit: packages/filepath] master: Refactor so less is conditional on CPP (f3b0b08)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 11:33:19 UTC 2015


Repository : ssh://git@git.haskell.org/filepath

On branch  : master
Link       : http://git.haskell.org/packages/filepath.git/commitdiff/f3b0b08481f5929ed166033fb52d149dbe8fc8b6

>---------------------------------------------------------------

commit f3b0b08481f5929ed166033fb52d149dbe8fc8b6
Author: Neil Mitchell <ndmitchell at gmail.com>
Date:   Sun Oct 19 13:38:22 2014 +0100

    Refactor so less is conditional on CPP


>---------------------------------------------------------------

f3b0b08481f5929ed166033fb52d149dbe8fc8b6
 System/FilePath.hs | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/System/FilePath.hs b/System/FilePath.hs
index ab0edcb..73947db 100644
--- a/System/FilePath.hs
+++ b/System/FilePath.hs
@@ -19,11 +19,10 @@ same interface. See either for examples and a list of the available
 functions.
 -}
 
+module System.FilePath(module X) where
+
 #if defined(mingw32_HOST_OS) || defined(__MINGW32__)
-module System.FilePath(module System.FilePath.Windows) where
-import System.FilePath.Windows
+import System.FilePath.Windows as X
 #else
-module System.FilePath(module System.FilePath.Posix) where
-import System.FilePath.Posix
+import System.FilePath.Posix as X
 #endif
-



More information about the ghc-commits mailing list