1 -- | Convenience functions for reporting (display and/or logging)
4 module Network.Services.TSN.Report (
11 import Network.Services.TSN.Logging (
16 import Network.Services.TSN.Terminal (
23 -- | Display and log debug information. WARNING! This does not
24 -- automatically append a newline. The output is displayed/logged
25 -- as-is, for, you know, debug purposes.
26 report_debug :: String -> IO ()
32 -- | Display and log an error condition. This will prefix the error
33 -- with "ERROR: " when displaying (but not logging) it so that it
36 report_error :: String -> IO ()
38 display_error $ "ERROR: " ++ s
42 -- | Display and log an informational (status) message.
44 report_info :: String -> IO ()
50 -- | Display and log a warning. This will prefix the warning with
51 -- "WARNING: " when displaying (but not logging) it so that it
54 report_warning :: String -> IO ()
56 display_warning $ "WARNING: " ++ s