htsn-common-0.0.2: Display/logging facilities used by both htsn and htsn-import.

Safe HaskellNone

Network.Services.TSN.Report

Description

Convenience functions for reporting (displaying and/or logging) status messages.

Synopsis

Documentation

report_debug :: String -> IO ()Source

Display and log debug information. WARNING! This does not automatically append a newline. The output is displayed/logged as-is, for, you know, debug purposes.

report_error :: String -> IO ()Source

Display and log an error condition. This will prefix the error with "ERROR: " when displaying (but not logging) it so that it stands out.

report_info :: String -> IO ()Source

Display and log an informational (status) message.

report_warning :: String -> IO ()Source

Display and log a warning. This will prefix the warning with "WARNING: " when displaying (but not logging) it so that it stands out.