projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7fd635
)
[project @ 2005-01-22 08:20:31 by krasimir]
author
krasimir
<unknown>
Sat, 22 Jan 2005 08:20:31 +0000
(08:20 +0000)
committer
krasimir
<unknown>
Sat, 22 Jan 2005 08:20:31 +0000
(08:20 +0000)
import Foreign.Ptr and Foreign.C under Windows
ghc/lib/compat/Compat/Directory.hs
patch
|
blob
|
history
diff --git
a/ghc/lib/compat/Compat/Directory.hs
b/ghc/lib/compat/Compat/Directory.hs
index
7f6306c
..
6a9f4dc
100644
(file)
--- a/
ghc/lib/compat/Compat/Directory.hs
+++ b/
ghc/lib/compat/Compat/Directory.hs
@@
-37,6
+37,10
@@
import GHC.IOBase ( IOException(..) )
#else
import System.IO ( try )
#endif
+#if __GLASGOW_HASKELL__ && defined(mingw32_TARGET_OS)
+import Foreign.Ptr
+import Foreign.C
+#endif
import System.Directory(doesFileExist, doesDirectoryExist, getPermissions, setPermissions, createDirectory)
getAppUserDataDirectory :: String -> IO FilePath