XPrompt: removed touchFile (which is not the equivalent of touch!)

This commit is contained in:
Andrea Rossato
2007-08-05 22:59:06 +00:00
parent d29003cfc1
commit 686328c517

View File

@@ -550,8 +550,7 @@ readHistory = do
[(hist,_)] -> return (hist,h)
[] -> return ([],h)
_ -> return ([],h)
else do touchFile path
h <- openFile path ReadMode
else do h <- openFile path WriteMode
return ([],h)
writeHistory :: Handle -> [History] -> IO ()