projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
29fd272
)
unbreak previous patch for nhc98
2008-05-28
author
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Wed, 20 Feb 2008 10:24:53 +0000
(10:24 +0000)
committer
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Wed, 20 Feb 2008 10:24:53 +0000
(10:24 +0000)
System/Directory.hs
patch
|
blob
|
history
diff --git
a/System/Directory.hs
b/System/Directory.hs
index
d705c0d
..
d1cf495
100644
(file)
--- a/
System/Directory.hs
+++ b/
System/Directory.hs
@@
-1028,9
+1028,13
@@
getTemporaryDirectory = do
peekCString pPath
#else
getEnv "TMPDIR"
+#if !__NHC__
`catch` \ex -> case ex of
IOException e | isDoesNotExistError e -> return "/tmp"
_ -> throw ex
+#else
+ `catch` (\ex -> return "/tmp")
+#endif
#endif
#if defined(mingw32_HOST_OS)