HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.

Synopsis
  • 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).