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
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