Agda-2.5.4: A dependently typed functional programming language and proof assistant

Safe HaskellSafe
LanguageHaskell2010

Agda.Interaction.Options.Warnings

Synopsis

Documentation

data WarningMode #

A WarningMode has two components: a set of warnings to be displayed and a flag stating whether warnings should be turned into fatal errors.

defaultWarningSet :: String #

The defaultWarningMode is a curated set of warnings covering non-fatal errors and disabling style-related ones

warningModeUpdate :: String -> Maybe (WarningMode -> WarningMode) #

warningModeUpdate str computes the action of str over the current WarningMode: it may reset the set of warnings, add or remove a specific flag or demand that any warning be turned into an error

warningSets :: [(String, (Set WarningName, String))] #

Common sets of warnings

data WarningName #

The WarningName data enumeration is meant to have a one-to-one correspondance to existing warnings in the codebase.

Instances
Bounded WarningName # 
Instance details

Defined in Agda.Interaction.Options.Warnings

Enum WarningName # 
Instance details

Defined in Agda.Interaction.Options.Warnings

Eq WarningName # 
Instance details

Defined in Agda.Interaction.Options.Warnings

Ord WarningName # 
Instance details

Defined in Agda.Interaction.Options.Warnings

Read WarningName # 
Instance details

Defined in Agda.Interaction.Options.Warnings

Show WarningName # 
Instance details

Defined in Agda.Interaction.Options.Warnings

string2WarningName :: String -> Maybe WarningName #

The flag corresponding to a warning is precisely the name of the constructor minus the trailing underscore.

usageWarning :: String #

warningUsage generated using warningNameDescription