[project @ 2005-07-22 08:15:06 by ross]
authorross <unknown>
Fri, 22 Jul 2005 08:15:06 +0000 (08:15 +0000)
committerross <unknown>
Fri, 22 Jul 2005 08:15:06 +0000 (08:15 +0000)
unbreak for non-GHC

System/Directory.hs

index d5bbd84..a9d15f5 100644 (file)
@@ -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