IOError
The Haskell 98 type for exceptions in the IO monad. Any I/O operation may raise an IOError instead of returning a result. For a more general type of exception, including also those that arise in pure code, see Control.Exception.Exception.
In Haskell 98, this is an opaque type.
An abstract type that contains a value for each variant of IOError.
Adds a location description and maybe a file path and file handle to an IOError. If any of the file handle or file path is not given the corresponding value in the IOError remains unaltered.
Construct an IOError based on the given Errno value. The optional information can be used to improve the accuracy of error messages.
Construct an IOError of the given type argument describes the error location and the third and fourth argument contain the file handle and file path of the file involved in the error if applicable.
Catch any IOError that occurs in the computation and throw a modified version.