Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
System.Error
Description
A family of functions to report errors on the standard error output.
Documentation
type ExitStatus = Int Source #
Exit status reported to the OS. Usually it should be between 1 and 255 on Windows and POSIX-compliant systems.
die :: String -> IO a Source #
Write program name and given error message to stderr
and
terminate with exitFailure
.
dieWith :: ExitStatus -> String -> IO a Source #
Write program name and given error message to stderr
and
terminate with ExitFailure
constructed of ExitStatus
.