Copyright | Ian Lynagh 2007 |
---|---|
License | BSD3 |
Maintainer | cabal-devel@haskell.org |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
A Verbosity
type with associated utilities.
There are 4 standard verbosity levels from silent
, normal
,
verbose
up to deafening
. This is used for deciding what logging
messages to print.
Verbosity also is equipped with some internal settings which can be
used to control at a fine granularity the verbosity of specific
settings (e.g., so that you can trace only particular things you
are interested in.) It's important to note that the instances
for Verbosity
assume that this does not exist.
Synopsis
- data Verbosity
- silent :: Verbosity
- normal :: Verbosity
- verbose :: Verbosity
- deafening :: Verbosity
- moreVerbose :: Verbosity -> Verbosity
- lessVerbose :: Verbosity -> Verbosity
- isVerboseQuiet :: Verbosity -> Bool
- intToVerbosity :: Int -> Maybe Verbosity
- flagToVerbosity :: ReadE Verbosity
- showForCabal :: Verbosity -> String
- showForGHC :: Verbosity -> String
- verboseNoFlags :: Verbosity -> Verbosity
- verboseHasFlags :: Verbosity -> Bool
- verboseCallSite :: Verbosity -> Verbosity
- verboseCallStack :: Verbosity -> Verbosity
- isVerboseCallSite :: Verbosity -> Bool
- isVerboseCallStack :: Verbosity -> Bool
- verboseMarkOutput :: Verbosity -> Verbosity
- isVerboseMarkOutput :: Verbosity -> Bool
- verboseUnmarkOutput :: Verbosity -> Verbosity
- verboseNoWrap :: Verbosity -> Verbosity
- isVerboseNoWrap :: Verbosity -> Bool
Verbosity
Instances
Bounded Verbosity Source # | |
Enum Verbosity Source # | |
succ :: Verbosity -> Verbosity # pred :: Verbosity -> Verbosity # fromEnum :: Verbosity -> Int # enumFrom :: Verbosity -> [Verbosity] # enumFromThen :: Verbosity -> Verbosity -> [Verbosity] # enumFromTo :: Verbosity -> Verbosity -> [Verbosity] # enumFromThenTo :: Verbosity -> Verbosity -> Verbosity -> [Verbosity] # | |
Eq Verbosity Source # | |
Ord Verbosity Source # | |
Read Verbosity Source # | |
Show Verbosity Source # | |
Generic Verbosity Source # | |
Binary Verbosity Source # | |
type Rep Verbosity Source # | |
moreVerbose :: Verbosity -> Verbosity Source #
lessVerbose :: Verbosity -> Verbosity Source #
isVerboseQuiet :: Verbosity -> Bool Source #
Test if we had called lessVerbose
on the verbosity
showForCabal :: Verbosity -> String Source #
showForGHC :: Verbosity -> String Source #
verboseNoFlags :: Verbosity -> Verbosity Source #
verboseHasFlags :: Verbosity -> Bool Source #
Call stacks
verboseCallSite :: Verbosity -> Verbosity Source #
Turn on verbose call-site printing when we log.
verboseCallStack :: Verbosity -> Verbosity Source #
Turn on verbose call-stack printing when we log.
isVerboseCallSite :: Verbosity -> Bool Source #
Test if we should output call sites when we log.
isVerboseCallStack :: Verbosity -> Bool Source #
Test if we should output call stacks when we log.
Output markets
verboseMarkOutput :: Verbosity -> Verbosity Source #
Turn on -----BEGIN CABAL OUTPUT-----
markers for output
from Cabal (as opposed to GHC, or system dependent).
isVerboseMarkOutput :: Verbosity -> Bool Source #
Test if we should output markets.
verboseUnmarkOutput :: Verbosity -> Verbosity Source #
Turn off marking; useful for suppressing nondeterministic output.
line-wrapping
verboseNoWrap :: Verbosity -> Verbosity Source #
Disable line-wrapping for log messages.
isVerboseNoWrap :: Verbosity -> Bool Source #
Test if line-wrapping is disabled for log messages.