errnoToIOError

errnoToIOError :: String -> Errno -> Maybe Handle -> Maybe String -> IOError
base Foreign.C.Error
Construct an IOError based on the given Errno value. The optional information can be used to improve the accuracy of error messages.