Portability | portable |
---|---|
Stability | provisional |
Maintainer | derek.a.elkins@gmail.com |
Safe Haskell | Safe-Infered |
- module Text.Parsec.Prim
- module Text.Parsec.Char
- module Text.Parsec.Combinator
- module Text.Parsec.String
- module Text.Parsec.ByteString
- module Text.Parsec.ByteString.Lazy
- data ParseError
- errorPos :: ParseError -> SourcePos
- data SourcePos
- type SourceName = String
- type Line = Int
- type Column = Int
- sourceName :: SourcePos -> SourceName
- sourceLine :: SourcePos -> Line
- sourceColumn :: SourcePos -> Column
- incSourceLine :: SourcePos -> Line -> SourcePos
- incSourceColumn :: SourcePos -> Column -> SourcePos
- setSourceLine :: SourcePos -> Line -> SourcePos
- setSourceColumn :: SourcePos -> Column -> SourcePos
- setSourceName :: SourcePos -> SourceName -> SourcePos
Documentation
module Text.Parsec.Prim
module Text.Parsec.Char
module Text.Parsec.Combinator
module Text.Parsec.String
module Text.Parsec.ByteString
module Text.Parsec.ByteString.Lazy
data ParseError Source
errorPos :: ParseError -> SourcePosSource
Extracts the source position from the parse error
type SourceName = StringSource
sourceName :: SourcePos -> SourceNameSource
Extracts the name of the source from a source position.
sourceLine :: SourcePos -> LineSource
Extracts the line number from a source position.
sourceColumn :: SourcePos -> ColumnSource
Extracts the column number from a source position.
incSourceLine :: SourcePos -> Line -> SourcePosSource
Increments the line number of a source position.
incSourceColumn :: SourcePos -> Column -> SourcePosSource
Increments the column number of a source position.
setSourceLine :: SourcePos -> Line -> SourcePosSource
Set the line number of a source position.
setSourceColumn :: SourcePos -> Column -> SourcePosSource
Set the column number of a source position.
setSourceName :: SourcePos -> SourceName -> SourcePosSource
Set the name of the source.