unbreak previous patch for nhc98
[haskell-directory.git] / System / Directory.hs
index d705c0d..d1cf495 100644 (file)
@@ -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)