projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e4f25e
)
[project @ 2005-07-22 08:15:06 by ross]
author
ross
<unknown>
Fri, 22 Jul 2005 08:15:06 +0000
(08:15 +0000)
committer
ross
<unknown>
Fri, 22 Jul 2005 08:15:06 +0000
(08:15 +0000)
unbreak for non-GHC
System/Directory.hs
patch
|
blob
|
history
diff --git
a/System/Directory.hs
b/System/Directory.hs
index
d5bbd84
..
a9d15f5
100644
(file)
--- 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