stan-0.0.1.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 Source #

Severity level of the inspection.

Severity Example
Style Missing infix, or type signature in where
Performance Usage of sum, foldl
PotentialBug Some common user errors: [0 .. length xs]
Warning Partial functions, like head
Error Usage 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 Source # 
Instance details

Defined in Stan.Severity

Enum Severity Source # 
Instance details

Defined in Stan.Severity

Eq Severity Source # 
Instance details

Defined in Stan.Severity

Ord Severity Source # 
Instance details

Defined in Stan.Severity

Read Severity Source # 
Instance details

Defined in Stan.Severity

Show Severity Source # 
Instance details

Defined in Stan.Severity

ToJSON Severity Source # 
Instance details

Defined in Stan.Severity

Methods

toJSON :: Severity -> Value #

Pretty printing

severityDescription :: Severity -> Text Source #

Description of each Severity level.

severityColour :: Severity -> Text Source #

Get the colour of the severity level.

prettyShowSeverity :: Severity -> Text Source #

Show Severity in a human-friendly format.