Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Convienience module for users of Luthor.
We export less than Text.Parsec
, since many of the modules there
can interfere when using other Luthor modules. So, you pay one
extra import line in small cases to save compelx imports in
larger cases.
One note: Haddock is failing to mention that the lookAhead
exported
by this module is from Text.Luthor.Combinators
, not Text.Parsec.Prim
.
- module Text.Parsec.Prim
- module Text.Luthor.Combinator
- 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
Documentation
module Text.Parsec.Prim
module Text.Luthor.Combinator
data ParseError :: *
errorPos :: ParseError -> SourcePos
Extracts the source position from the parse error
data SourcePos :: *
type SourceName = String
sourceName :: SourcePos -> SourceName
Extracts the name of the source from a source position.
sourceLine :: SourcePos -> Line
Extracts the line number from a source position.
sourceColumn :: SourcePos -> Column
Extracts the column number from a source position.