[project @ 2003-01-08 13:06:30 by simonmar]
authorsimonmar <unknown>
Wed, 8 Jan 2003 13:06:30 +0000 (13:06 +0000)
committersimonmar <unknown>
Wed, 8 Jan 2003 13:06:30 +0000 (13:06 +0000)
Alter the order of the argument to annotateIOError to match mkIOError
and the FFI spec.

System/IO/Error.hs

index cff0194..c42704b 100644 (file)
@@ -28,8 +28,8 @@ module System.IO.Error (
     mkIOError,                 -- :: IOErrorType -> String -> Maybe Handle
                                --    -> Maybe FilePath -> IOError
 
-    annotateIOError,           -- :: IOError -> String -> Maybe FilePath 
-                               --    -> Maybe Handle -> IOError 
+    annotateIOError,           -- :: IOError -> String -> Maybe Handle
+                               --    -> Maybe FilePath -> IOError
 #endif
 
     alreadyExistsErrorType,    -- :: IOErrorType
@@ -240,10 +240,10 @@ ioeGetFileName ioe = ioe_filename ioe
 
 annotateIOError :: IOError 
               -> String 
-              -> Maybe FilePath 
               -> Maybe Handle 
+              -> Maybe FilePath 
               -> IOError 
-annotateIOError (IOError hdl errTy _ str path) loc opath ohdl = 
+annotateIOError (IOError hdl errTy _ str path) loc ohdl opath = 
   IOError (hdl `mplus` ohdl) errTy loc str (path `mplus` opath)
   where
     Nothing `mplus` ys = ys