| 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 # | |
| Enum Severity # | |
| Read Severity # | |
| Show Severity # | |
| Eq Severity # | |
| Ord Severity # | |
Defined in Stan.Severity | |
| ToJSON Severity # | |
Defined in Stan.Severity | |
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.