boomerang-1.4.1: Library for invertible parsing and printing

Safe HaskellNone

Text.Boomerang.Pos

Synopsis

Documentation

type family Pos err :: *Source

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

class InitialPosition e whereSource

the initial position for a position type

Methods

initialPos :: Maybe e -> Pos eSource

class ErrorPosition err whereSource

extract the position information from an error

Methods

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

Instances

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

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

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

increment minor position by i