Module

Text.Parsing.Parser.Pos

#Position

newtype Position

Position represents the position of the parser in the input.

  • line is the current line in the input
  • column is the column of the next character in the current line that will be parsed

Constructors

Instances

#initialPos

initialPos :: Position

The Position before any input has been parsed.

#updatePosString

updatePosString :: Position -> String -> Position

Updates a Position by adding the columns and lines in String.

Modules