From 8353b621b0ad24a1b5272ca9035581aa74ef7147 Mon Sep 17 00:00:00 2001 From: ross Date: Fri, 22 Jul 2005 08:15:06 +0000 Subject: [PATCH] [project @ 2005-07-22 08:15:06 by ross] unbreak for non-GHC --- System/Directory.hs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/System/Directory.hs b/System/Directory.hs index d5bbd84..a9d15f5 100644 --- a/System/Directory.hs +++ b/System/Directory.hs @@ -250,6 +250,13 @@ createDirectory path = do withCString path $ \s -> do throwErrnoIfMinus1Retry_ "createDirectory" $ mkdir s 0o777 + +#else /* !__GLASGOW_HASKELL__ */ + +copyPermissions :: FilePath -> FilePath -> IO () +copyPermissions fromFPath toFPath + = getPermissions fromFPath >>= setPermissions toFPath + #endif -- | @'createDirectoryIfMissing' parents dir@ creates a new directory -- 1.7.10.4