stan-0.2.0.0: Haskell STatic ANalyser
Copyright(c) 2020 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Stan.Severity

Description

This module introduces Severity data type for expressing how severe the message is. Also, it contains useful functions to work with Severity.

Synopsis

Documentation

data Severity #

Severity level of the inspection.

SeverityExample
StyleMissing infix, or type signature in where
PerformanceUsage of sum, foldl
PotentialBugSome common user errors: [0 .. length xs]
WarningPartial functions, like head
ErrorUsage of undefined in code

Constructors

Style

Code style issues. Usually harmless.

Performance

Serious defects that could cause slowness and space leaking.

PotentialBug

Human errors in code.

Warning

Potential runtime errors on some inputs.

Error

Dangerous behaviour.

Instances

Instances details
Bounded Severity # 
Instance details

Defined in Stan.Severity

Enum Severity # 
Instance details

Defined in Stan.Severity

Read Severity # 
Instance details

Defined in Stan.Severity

Show Severity # 
Instance details

Defined in Stan.Severity

Eq Severity # 
Instance details

Defined in Stan.Severity

Ord Severity # 
Instance details

Defined in Stan.Severity

ToJSON Severity # 
Instance details

Defined in Stan.Severity

Methods

toJSON :: Severity -> Value #

Pretty printing

severityDescription :: Severity -> Text #

Description of each Severity level.

severityColour :: Severity -> Text #

Get the colour of the severity level.

prettyShowSeverity :: Severity -> Text #

Show Severity in a human-friendly format.