Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data IndentationRel #
Instances
Eq IndentationRel | |
Defined in Text.Parser.Indentation.Implementation (==) :: IndentationRel -> IndentationRel -> Bool # (/=) :: IndentationRel -> IndentationRel -> Bool # | |
Show IndentationRel | |
Defined in Text.Parser.Indentation.Implementation showsPrec :: Int -> IndentationRel -> ShowS # show :: IndentationRel -> String # showList :: [IndentationRel] -> ShowS # |
type Indentation = Int #
mkIndentationState :: Indentation -> Indentation -> Bool -> IndentationRel -> IndentationState #
data IndentationState #
Instances
Show IndentationState | |
Defined in Text.Parser.Indentation.Implementation showsPrec :: Int -> IndentationState -> ShowS # show :: IndentationState -> String # showList :: [IndentationState] -> ShowS # |
class IndentationParsing m where Source #
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
Instances
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 #