HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecmdargs-0.10.22Haskell2010

System.Console.CmdArgs.Verbosity

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.

  • 1 type
  • 6 values
  • Packagecmdargs-0.10.22
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceVerbosity.hs
datadata Verbosity
#

The verbosity data type

Constructors

  • Quiet

    Only output essential messages (typically errors)

  • Normal

    Output normal messages (typically errors and warnings)

  • Loud

    Output lots of messages (typically errors, warnings and status updates)

Instances7Bounded, Enum, Eq, Data, Ord, Read, …
  • Bounded VerbosityDefined in cmdargs-0.10.22 · System.Console.CmdArgs.Verbosity
  • Enum VerbosityDefined in cmdargs-0.10.22 · System.Console.CmdArgs.Verbosity
  • Eq VerbosityDefined in cmdargs-0.10.22 · System.Console.CmdArgs.Verbosity
  • Data VerbosityDefined in cmdargs-0.10.22 · System.Console.CmdArgs.Verbosity
  • Ord VerbosityDefined in cmdargs-0.10.22 · System.Console.CmdArgs.Verbosity
  • Read VerbosityDefined in cmdargs-0.10.22 · System.Console.CmdArgs.Verbosity
  • Show VerbosityDefined in cmdargs-0.10.22 · System.Console.CmdArgs.Verbosity
valueisNormal :: IO Bool
#

Used to test if warnings should be output to the user. True if the verbosity is set to Normal or Loud (when --quiet is not specified).

valueisLoud :: IO Bool
#

Used to test if status updates should be output to the user. True if the verbosity is set to Loud (when --verbose is specified).

valuewhenNormal :: IO () -> IO ()
#

An action to perform if the verbosity is normal or higher, based on isNormal.

valuewhenLoud :: IO () -> IO ()
#

An action to perform if the verbosity is loud, based on isLoud.