Distribution.Verbosity

Cabal-1.24.2.0: A framework for packaging Haskell software

Copyright | Ian Lynagh 2007
License | BSD3
Maintainer | cabal-devel@haskell.org
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Distribution.Verbosity

Contents

- Verbosity

Description

A simple `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.

Synopsis

- data Verbosity
- silent :: Verbosity
- normal :: Verbosity
- verbose :: Verbosity
- deafening :: Verbosity
- moreVerbose :: Verbosity -> Verbosity
- lessVerbose :: Verbosity -> Verbosity
- intToVerbosity :: Int -> Maybe Verbosity
- flagToVerbosity :: ReadE Verbosity
- showForCabal :: Verbosity -> String
- showForGHC :: Verbosity -> String

# Verbosity

data Verbosity Source #

Instances

Bounded Verbosity # |
Methods minBound :: Verbosity Source # maxBound :: Verbosity Source #
Enum Verbosity # |
Methods succ :: Verbosity -> Verbosity Source # pred :: Verbosity -> Verbosity Source # toEnum :: Int -> Verbosity Source # fromEnum :: Verbosity -> Int Source # enumFrom :: Verbosity -> [Verbosity] Source # enumFromThen :: Verbosity -> Verbosity -> [Verbosity] Source # enumFromTo :: Verbosity -> Verbosity -> [Verbosity] Source # enumFromThenTo :: Verbosity -> Verbosity -> Verbosity -> [Verbosity] Source #
Eq Verbosity # |
Methods (==) :: Verbosity -> Verbosity -> Bool # (/=) :: Verbosity -> Verbosity -> Bool #
Ord Verbosity # |
Methods compare :: Verbosity -> Verbosity -> Ordering # (<) :: Verbosity -> Verbosity -> Bool # (<=) :: Verbosity -> Verbosity -> Bool # (>) :: Verbosity -> Verbosity -> Bool # (>=) :: Verbosity -> Verbosity -> Bool # max :: Verbosity -> Verbosity -> Verbosity # min :: Verbosity -> Verbosity -> Verbosity #
Read Verbosity # |
Methods readsPrec :: Int -> ReadS Verbosity Source # readList :: ReadS [Verbosity] Source # readPrec :: ReadPrec Verbosity Source # readListPrec :: ReadPrec [Verbosity] Source #
Show Verbosity # |
Methods showsPrec :: Int -> Verbosity -> ShowS Source # show :: Verbosity -> String Source # showList :: [Verbosity] -> ShowS Source #
Generic Verbosity # |
Associated Types type Rep Verbosity :: * -> * Source # Methods from :: Verbosity -> Rep Verbosity x Source # to :: Rep Verbosity x -> Verbosity Source #
Binary Verbosity # |
Methods put :: Verbosity -> Put Source # get :: Get Verbosity Source # putList :: [Verbosity] -> Put Source #
type Rep Verbosity # |
type Rep Verbosity = D1 (MetaData "Verbosity" "Distribution.Verbosity" "Cabal-1.24.2.0" False) ((:+:) ((:+:) (C1 (MetaCons "Silent" PrefixI False) U1) (C1 (MetaCons "Normal" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Verbose" PrefixI False) U1) (C1 (MetaCons "Deafening" PrefixI False) U1)))

silent :: Verbosity Source #

normal :: Verbosity Source #

verbose :: Verbosity Source #

deafening :: Verbosity Source #

moreVerbose :: Verbosity -> Verbosity Source #

lessVerbose :: Verbosity -> Verbosity Source #

intToVerbosity :: Int -> Maybe Verbosity Source #

flagToVerbosity :: ReadE Verbosity Source #

showForCabal :: Verbosity -> String Source #

showForGHC :: Verbosity -> String Source #