| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.Trifecta.Indentation
Documentation
data IndentationRel Source
Instances
type Indentation = Int Source
mkIndentationState :: Indentation -> Indentation -> Bool -> IndentationRel -> IndentationState Source
data IndentationState Source
Instances
class IndentationParsing m where Source
Minimal complete definition
localTokenMode, localIndentation, absoluteIndentation, ignoreAbsoluteIndentation
Methods
localTokenMode :: (IndentationRel -> IndentationRel) -> m a -> m a Source
localIndentation :: IndentationRel -> m a -> m a Source
absoluteIndentation :: m a -> m a Source
ignoreAbsoluteIndentation :: m a -> m a Source
localAbsoluteIndentation :: m a -> m a Source
Instances
| IndentationParsing i => IndentationParsing (StateT s i) Source | |
| IndentationParsing i => IndentationParsing (StateT s i) Source | |
| Monad m => IndentationParsing (IndentationParserT t m) Source |
Instances
| MarkParsing Delta m => MarkParsing Delta (IndentationParserT Token m) Source | |
| DeltaParsing m => TokenParsing (IndentationParserT Token m) Source | |
| DeltaParsing m => CharParsing (IndentationParserT Token m) Source | |
| DeltaParsing m => DeltaParsing (IndentationParserT Token m) Source |
data IndentationParserT t m a Source
Instances
runIndentationParserT :: IndentationParserT t m a -> IndentationState -> m (a, IndentationState) Source
evalIndentationParserT :: Monad m => IndentationParserT t m a -> IndentationState -> m a Source
execIndentationParserT :: Monad m => IndentationParserT t m a -> IndentationState -> m IndentationState Source