Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Eq Position Source # | |
Ord Position Source # | |
Defined in Text.Parsix.Position | |
Show Position Source # | |
Generic Position Source # | |
type Rep Position Source # | |
Defined in Text.Parsix.Position type Rep Position = D1 (MetaData "Position" "Text.Parsix.Position" "parsix-0.1.0.4-KBQjXU7Aq3oLYgclUCKW7z" False) (C1 (MetaCons "Position" PrefixI True) (S1 (MetaSel (Just "codeUnits") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "visualRow") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "visualColumn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))) |
positionRow :: Position -> Text -> Highlights -> Doc Highlight Source #
prettyPosition :: (Highlight -> AnsiStyle) -> Position -> Text -> Highlights -> Doc AnsiStyle Source #
Instances
Eq Span Source # | |
Ord Span Source # | |
Show Span Source # | |
Generic Span Source # | |
type Rep Span Source # | |
Defined in Text.Parsix.Position type Rep Span = D1 (MetaData "Span" "Text.Parsix.Position" "parsix-0.1.0.4-KBQjXU7Aq3oLYgclUCKW7z" False) (C1 (MetaCons "Span" PrefixI True) (S1 (MetaSel (Just "spanStart") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Position) :*: S1 (MetaSel (Just "spanEnd") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Position))) |
prettySpan :: (Highlight -> AnsiStyle) -> Span -> Text -> Highlights -> Doc AnsiStyle Source #