projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba0995e
)
[project @ 2003-01-08 14:08:29 by simonmar]
author
simonmar
<unknown>
Wed, 8 Jan 2003 14:08:29 +0000
(14:08 +0000)
committer
simonmar
<unknown>
Wed, 8 Jan 2003 14:08:29 +0000
(14:08 +0000)
Fix annotateIOError (bug noticed by Ross Paterson).
System/IO/Error.hs
patch
|
blob
|
history
diff --git
a/System/IO/Error.hs
b/System/IO/Error.hs
index
c42704b
..
a5296cc
100644
(file)
--- a/
System/IO/Error.hs
+++ b/
System/IO/Error.hs
@@
-243,7
+243,7
@@
annotateIOError :: IOError
-> Maybe Handle
-> Maybe FilePath
-> IOError
-annotateIOError (IOError hdl errTy _ str path) loc ohdl opath =
+annotateIOError (IOError ohdl errTy _ str opath) loc hdl path =
IOError (hdl `mplus` ohdl) errTy loc str (path `mplus` opath)
where
Nothing `mplus` ys = ys