hlint

Safe HaskellNone

Idea

Synopsis

Documentation

data Idea

Constructors

Idea 

Fields

func :: FuncName
 
severity :: Severity
 
hint :: String
 
loc :: SrcLoc
 
from :: String
 
to :: String
 
note :: [Note]
 
ParseError 

Fields

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

Instances

Eq Idea 
Ord Idea 
Show Idea 

isParseError :: Idea -> Bool

showANSI :: IO (Idea -> String)

showEx :: (String -> String) -> Idea -> String

rawIdea :: Severity -> String -> SrcLoc -> String -> String -> [Note] -> Idea

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

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

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

data Note

Constructors

IncreasesLaziness 
DecreasesLaziness 
RemovesError String 
ValidInstance String String 
Note String 

Instances

Eq Note 
Ord Note 
Show Note 

showNotes :: [Note] -> String

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.

Instances

Bounded Severity 
Enum Severity 
Eq Severity 
Ord Severity 
Read Severity 
Show Severity