Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
initialPos :: Maybe Text -> SourcePos Source
class HasSourcePos a where Source
data WithSourcePos a Source
Eq a => Eq (WithSourcePos a) | |
Ord a => Ord (WithSourcePos a) | |
Show a => Show (WithSourcePos a) | |
HasSourcePos (WithSourcePos a) |
wspValue :: forall a a. Lens (WithSourcePos a) (WithSourcePos a) a a Source
wspSourcePos :: forall a. Lens' (WithSourcePos a) SourcePos Source
data ParseState tt td Source
(Show tt, Show td) => Show (ParseState tt td) |
psConsumed :: forall tt td. Lens' (ParseState tt td) Bool Source
psTokens :: forall tt td tt td. Lens (ParseState tt td) (ParseState tt td) [(tt, td)] [(tt, td)] Source
emptyParseState :: HasSourcePos td => [(tt, td)] -> ParseState tt td Source