[project @ 2003-01-08 14:08:29 by simonmar]
authorsimonmar <unknown>
Wed, 8 Jan 2003 14:08:29 +0000 (14:08 +0000)
committersimonmar <unknown>
Wed, 8 Jan 2003 14:08:29 +0000 (14:08 +0000)
Fix annotateIOError (bug noticed by Ross Paterson).

System/IO/Error.hs

index c42704b..a5296cc 100644 (file)
@@ -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