parsix-0.1.0.4: Parser combinators with slicing, error recovery, and syntax highlighting

Safe HaskellNone
LanguageHaskell2010

Text.Parsix.Position

Documentation

data Position Source #

Constructors

Position 

Fields

Instances
Eq Position Source # 
Instance details

Defined in Text.Parsix.Position

Ord Position Source # 
Instance details

Defined in Text.Parsix.Position

Show Position Source # 
Instance details

Defined in Text.Parsix.Position

Generic Position Source # 
Instance details

Defined in Text.Parsix.Position

Associated Types

type Rep Position :: Type -> Type #

Methods

from :: Position -> Rep Position x #

to :: Rep Position x -> Position #

type Rep Position Source # 
Instance details

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))))

data Span Source #

Constructors

Span 
Instances
Eq Span Source # 
Instance details

Defined in Text.Parsix.Position

Methods

(==) :: Span -> Span -> Bool #

(/=) :: Span -> Span -> Bool #

Ord Span Source # 
Instance details

Defined in Text.Parsix.Position

Methods

compare :: Span -> Span -> Ordering #

(<) :: Span -> Span -> Bool #

(<=) :: Span -> Span -> Bool #

(>) :: Span -> Span -> Bool #

(>=) :: Span -> Span -> Bool #

max :: Span -> Span -> Span #

min :: Span -> Span -> Span #

Show Span Source # 
Instance details

Defined in Text.Parsix.Position

Methods

showsPrec :: Int -> Span -> ShowS #

show :: Span -> String #

showList :: [Span] -> ShowS #

Generic Span Source # 
Instance details

Defined in Text.Parsix.Position

Associated Types

type Rep Span :: Type -> Type #

Methods

from :: Span -> Rep Span x #

to :: Rep Span x -> Span #

type Rep Span Source # 
Instance details

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)))