haskell98-2.0.0.2: Compatibility with Haskell 98

Safe HaskellSafe

MarshalError

Synopsis

Documentation

data IOErrorType Source

An abstract type that contains a value for each variant of IOError.

mkIOError :: IOErrorType -> String -> Maybe Handle -> Maybe FilePath -> IOErrorSource

Construct an IOError of the given type where the second 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.

alreadyExistsErrorType :: IOErrorTypeSource

I/O error where the operation failed because one of its arguments already exists.

doesNotExistErrorType :: IOErrorTypeSource

I/O error where the operation failed because one of its arguments does not exist.

alreadyInUseErrorType :: IOErrorTypeSource

I/O error where the operation failed because one of its arguments is a single-use resource, which is already being used.

fullErrorType :: IOErrorTypeSource

I/O error where the operation failed because the device is full.

eofErrorType :: IOErrorTypeSource

I/O error where the operation failed because the end of file has been reached.

illegalOperationErrorType :: IOErrorTypeSource

I/O error where the operation is not possible.

permissionErrorType :: IOErrorTypeSource

I/O error where the operation failed because the user does not have sufficient operating system privilege to perform that operation.

userErrorType :: IOErrorTypeSource

I/O error that is programmer-defined.

annotateIOError :: IOError -> String -> Maybe Handle -> Maybe FilePath -> IOErrorSource

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.