data ExitCode { } #
ExitSuccess

Exit code 0, indicating success

ExitFailure Int

Non-zero exit code, indicating failure

data ExitException { } #
ExitException ExitCode
Exception type for program exit.
exitWith :: ExitCode -> IO a { } #
Terminate the program with the given exit code.
instance Exception ExitException { }