boomerang-1.4.5: Library for invertible parsing and printing

Safe HaskellNone
LanguageHaskell98

Text.Boomerang.Pos

Synopsis

Documentation

type family Pos err :: * Source

type synonym family that maps an error type to its position type

Instances

type Pos (ParserError p) = p 

class InitialPosition e where Source

the initial position for a position type

Methods

initialPos :: Maybe e -> Pos e Source

class ErrorPosition err where Source

extract the position information from an error

Methods

getPosition :: err -> Maybe (Pos err) Source

Instances

incMajor :: Integral i => i -> MajorMinorPos -> MajorMinorPos Source

increment major position by i, reset minor position to 0.. if you wanted something else.. too bad.

incMinor :: Integral i => i -> MajorMinorPos -> MajorMinorPos Source

increment minor position by i