userError
Construct an IOError value with a string describing the error. The fail method of the IO instance of the Monad class raises a userError, thus:
> instance Monad IO
> ...
> fail s = ioError (userError s)
I/O error that is programmer-defined.
A programmer-defined error value constructed using userError.
I/O error that is programmer-defined.