aboutsummaryrefslogtreecommitdiffstats
path: root/XPrompt.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-08-06 00:59:06 +0200
committerAndrea Rossato <andrea.rossato@unibz.it>2007-08-06 00:59:06 +0200
commit8dbe4a1e7b72fb5bfc91e24d355de7216d5d3ef3 (patch)
tree66cf311941bb7e636437660de337783b42af7745 /XPrompt.hs
parent284785d88d69df409de5823dd330d9d1f6e055a2 (diff)
downloadXMonadContrib-8dbe4a1e7b72fb5bfc91e24d355de7216d5d3ef3.tar.gz
XMonadContrib-8dbe4a1e7b72fb5bfc91e24d355de7216d5d3ef3.tar.xz
XMonadContrib-8dbe4a1e7b72fb5bfc91e24d355de7216d5d3ef3.zip
XPrompt: removed touchFile (which is not the equivalent of touch!)
darcs-hash:20070805225906-32816-0f38508090df958660a6399ee3281037d3c7b131.gz
Diffstat (limited to '')
-rw-r--r--XPrompt.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/XPrompt.hs b/XPrompt.hs
index 2c3b781..1b15f13 100644
--- a/XPrompt.hs
+++ b/XPrompt.hs
@@ -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 ()