system-error-1.0.0: Error reporting functions

Safe HaskellSafe
LanguageHaskell2010

System.Error

Description

A family of functions to report errors on the standard error output.

Synopsis

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.

warn :: String -> IO () Source #

Write program name and given error message to stderr.