hlint

Safe HaskellSafe-Infered

Idea

Synopsis

Documentation

data Idea

Constructors

Idea 
ParseError 

Fields

severity :: Severity
 
hint :: String
 
loc :: SrcLoc
 
msg :: String
 
from :: String
 

Instances

idea :: (Pretty a, Pretty (ast si), Annotated ast, SrcInfo si) => Severity -> String -> ast si -> a -> Idea

warn :: (Pretty (ast si), Pretty a, Annotated ast, SrcInfo si) => String -> ast si -> a -> Idea

err :: (Pretty (ast si), Pretty a, Annotated ast, SrcInfo si) => String -> ast si -> a -> Idea

data Severity

How severe an error is.

Constructors

Ignore

Ignored errors are only returned when --show is passed.

Warning

Warnings are things that some people may consider improvements, but some may not.

Error

Errors are suggestions that should nearly always be a good idea to apply.