| Copyright | (c) 2020 Kowainik | 
|---|---|
| License | MPL-2.0 | 
| Maintainer | Kowainik <xrom.xkov@gmail.com> | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Stan.Severity
Contents
Description
Synopsis
- data Severity
- = Style
 - | Performance
 - | PotentialBug
 - | Warning
 - | Error
 
 - severityDescription :: Severity -> Text
 - severityColour :: Severity -> Text
 - prettyShowSeverity :: Severity -> Text
 
Documentation
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
| Bounded Severity Source # | |
| Enum Severity Source # | |
| Eq Severity Source # | |
| Ord Severity Source # | |
Defined in Stan.Severity  | |
| Read Severity Source # | |
| Show Severity Source # | |
Pretty printing
severityColour :: Severity -> Text Source #
Get the colour of the severity level.