hash-addressed-cli-2.1.0.1: Hash-addressed file storage app
Safe HaskellSafe-Inferred
LanguageGHC2021

HashAddressed.App.Verbosity

Synopsis

Type

data Verbosity Source #

On non-zero exit code, stderr messages are printed regardless of verbosity

Constructors

Verbosity 

Fields

  • quiet :: Bool

    Controls whether normal stdout output is printed

  • verbose :: Bool

    Controls whether chatty stderr output is printed

Printing

putNormalLn :: MonadIO m => Verbosity -> String -> m () Source #

For output that one might want to use programmatically

Goes to stdout.

Can be suppressed with the --quiet flag.

putVerboseLn :: MonadIO m => Verbosity -> String -> m () Source #

For extra chatty messages

Goes to stderr so that the output that one might want to use programmatically can be captured separately.

Does not print unless the --verbose flag is used.

Options