Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data Diagnostic Source #
Diagnostic | |
|
Instances
Enum used to indicate the severity of a diagnostic. The Report Handlers will use this to adapt the formatting of the diagnostic.
Instances
Bounded Severity Source # | |
Enum Severity Source # | |
Eq Severity Source # | |
Show Severity Source # | |
Display Severity Source # | |
Defined in Chapelure.Types displayBuilder :: Severity -> Builder # displayList :: [Severity] -> Builder # displayPrec :: Int -> Severity -> Builder # |
Wrapper to mark an offset from the beginning of a Highlight
.
Wrapper that represents a line in a Diagnostic report
Instances
Enum Line Source # | |
Eq Line Source # | |
Ord Line Source # | |
Show Line Source # | |
Generic Line Source # | |
Pretty Line Source # | |
Defined in Chapelure.Types | |
Display Line Source # | |
Defined in Chapelure.Types displayBuilder :: Line -> Builder # displayList :: [Line] -> Builder # displayPrec :: Int -> Line -> Builder # | |
type Rep Line Source # | |
Defined in Chapelure.Types |
incrementLine :: Line -> Line Source #
Wrapper that represents a column in a Diagnostic report
Instances
Enum Column Source # | |
Defined in Chapelure.Types | |
Eq Column Source # | |
Ord Column Source # | |
Show Column Source # | |
Generic Column Source # | |
Pretty Column Source # | |
Defined in Chapelure.Types | |
Display Column Source # | |
Defined in Chapelure.Types displayBuilder :: Column -> Builder # displayList :: [Column] -> Builder # displayPrec :: Int -> Column -> Builder # | |
type Rep Column Source # | |
Defined in Chapelure.Types |
incrementColumn :: Column -> Column Source #
A datatype holding a message, some source data and a span to highlight.
Instances
Show Snippet Source # | |
Generic Snippet Source # | |
type Rep Snippet Source # | |
Defined in Chapelure.Types type Rep Snippet = D1 ('MetaData "Snippet" "Chapelure.Types" "chapelure-0.0.1.0-inplace" 'False) (C1 ('MetaCons "Snippet" 'PrefixI 'True) (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text, Line, Column)) :*: (S1 ('MetaSel ('Just "highlights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmptyVector Highlight))) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector DocText))))) |
A piece of source data that is shown when reporting an error. Pointers on a source are always on a single line.
Instances
Show Highlight Source # | |
Generic Highlight Source # | |
type Rep Highlight Source # | |
Defined in Chapelure.Types type Rep Highlight = D1 ('MetaData "Highlight" "Chapelure.Types" "chapelure-0.0.1.0-inplace" 'False) (C1 ('MetaCons "Highlight" 'PrefixI 'True) (S1 ('MetaSel ('Just "label") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DocText)) :*: S1 ('MetaSel ('Just "spans") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmptyVector (Line, Column, Column))))) |