Moduleparsec1-1.0.0.8Haskell98
Text.ParserCombinators.Parsec.Pos
Textual source positions
Synopsis
- type Column
- type Line
- type SourceName
- data SourcePos
- value incSourceColumn
- value incSourceLine
- value initialPos
- value newPos
- value setSourceColumn
- value setSourceLine
- value setSourceName
- value sourceColumn
- value sourceLine
- value sourceName
- value updatePosChar
- value updatePosString
- Packageparsec1-1.0.0.8
- Exports16
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourcePos.hs
Increments the column number of a source position.
Increments the line number of a source position.
Create a new SourcePos with the given source name, and line number and column number set to 1, the upper left.
Create a new SourcePos with the given source name, line number and column number.
Set the column number of a source position.
Set the line number of a source position.
Set the name of the source.
the column number from a source position
the line number from a source position
the name of the source from a position
The expression updatePosString pos s updates the source position
pos by calling updatePosChar on every character in s, ie.
foldl updatePosChar pos string.