IOError -package:numhask

The Haskell 2010 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 Exception. In Haskell 2010, this is an opaque type.
The Haskell 2010 type for exceptions in the IO monad. Any I/O operation may raise an IOException instead of returning a result. For a more general type of exception, including also those that arise in pure code, see Exception. In Haskell 2010, this is an opaque type.
IOError is only used by the deprecated functions iOChannelRead, iOChannelWrite, and iOChannelSeek.
I/O error
Raise an IOError in the IO monad.
Raise an IOError in the IO monad.
Generalized version of ioError.
Raise an IOException in the IO monad.
Raise an IOException in the IO monad.
Generalized version of ioError.
An abstract type that contains a value for each variant of IOError.
an EAGAIN error occurred
an EINVAL error occurred
no error
another error occurred
An abstract type that contains a value for each variant of IOException.
Error codes returned by GIO functions. Note that this domain may be extended in future GLib releases. In general, new error codes either only apply to new APIs, or else replace IOErrorEnumFailed in cases that were not explicitly distinguished before. You should therefore avoid writing code like

C code

if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_FAILED))
{
// Assume that this is EPRINTERONFIRE
...
}
but should instead treat all unrecognized error codes the same as IOErrorEnumFailed. See also PollableReturn for a cheaper way of returning IOErrorEnumWouldBlock to callers without allocating a GError.
The requested address is already in use. Since 2.22