Skip to content
Snippets Groups Projects
Commit c6e52e73 authored by Ross Paterson's avatar Ross Paterson
Browse files

fix Hugs implementation of openTempFile

parent 0a8a6432
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ module System.IO (
hGetBufNonBlocking, -- :: Handle -> Ptr a -> Int -> IO Int
#endif
-- * Temporary files (not portable: GHC only)
-- * Temporary files
openTempFile,
openBinaryTempFile,
......@@ -464,6 +464,9 @@ openTempFile' loc tmp_dir template binary = do
where
filename = prefix ++ show x ++ suffix
filepath = tmp_dir ++ [pathSeparator] ++ filename
#if __HUGS__
fdToHandle fd = openFd (fromIntegral fd) False ReadWriteMode binary
#endif
-- XXX Should use filepath library
pathSeparator :: Char
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment