Safe Haskell | None |
---|---|
Language | Haskell98 |
A module to deal with verbosity, how 'chatty' a program should be.
This module defines the Verbosity
data type, along with functions
for manipulating a global verbosity value.
Documentation
The verbosity data type
setVerbosity :: Verbosity -> IO () Source
Set the global verbosity.
getVerbosity :: IO Verbosity Source
Get the global verbosity. Initially Normal
before any calls to setVerbosity
.
Used to test if status updates should be output to the user.
True
if the verbosity is set to Loud
(when --verbose
is specified).
whenNormal :: IO () -> IO () Source
An action to perform if the verbosity is normal or higher, based on isNormal
.