Pugs.Rule.Pos

|  | Contents | Index
Pugs.Rule.Pos |
Portability | portable
Stability | provisional
Maintainer | daan@cs.uu.nl
Description
Textual source positions.
Synopsis
type SourceName = String
type Line = Int
type Column = Int
data SourcePos = SourcePos {
sourceName :: SourceName
sourceLine :: !Line
sourceColumn :: !Column
}
incSourceLine :: SourcePos -> Line -> SourcePos
incSourceColumn :: SourcePos -> Column -> SourcePos
setSourceLine :: SourcePos -> Line -> SourcePos
setSourceColumn :: SourcePos -> Column -> SourcePos
setSourceName :: SourcePos -> SourceName -> SourcePos
newPos :: SourceName -> Line -> Column -> SourcePos
initialPos :: SourceName -> SourcePos
updatePosChar :: SourcePos -> Char -> SourcePos
updatePosString :: SourcePos -> String -> SourcePos
Produced by Haddock version ADDOCK_VERSION