| Haskell Hierarchical Libraries (parsec package) | Source code | Contents | Index
Text.ParserCombinators.Parsec.Pos |
Portability | portable
Stability | provisional
Maintainer | daan@cs.uu.nl
Description
Textual source positions.
Documentation
type SourceName = String
type Line = Int
type Column = Int
data SourcePos
Instances
Eq SourcePos
Ord SourcePos
Show SourcePos
sourceLine :: SourcePos -> Line
sourceColumn :: SourcePos -> Column
sourceName :: SourcePos -> SourceName
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 0.8