Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Text.Parser.Indentation.Implementation
Documentation
type Indentation = Int #
data IndentationRel #
Instances
mkIndentationState :: Indentation -> Indentation -> Bool -> IndentationRel -> IndentationState #
data IndentationState #
Constructors
IndentationState | |
Fields
|
Instances
updateIndentation :: IndentationState -> Indentation -> (IndentationState -> a) -> (String -> a) -> a #
updateIndentation' :: Indentation -> Indentation -> IndentationRel -> Indentation -> (Indentation -> Indentation -> a) -> (String -> a) -> a #
type LocalState a = (IndentationState -> IndentationState) -> (IndentationState -> IndentationState -> IndentationState) -> a -> a #
localTokenMode :: LocalState a -> (IndentationRel -> IndentationRel) -> a -> a #
absoluteIndentation :: LocalState a -> a -> a #
ignoreAbsoluteIndentation :: LocalState a -> a -> a #
localAbsoluteIndentation :: LocalState a -> a -> a #
localIndentation' :: LocalState a -> (Indentation -> Indentation) -> (Indentation -> Indentation) -> (Indentation -> Indentation -> Indentation) -> a -> a #
localIndentation :: LocalState a -> IndentationRel -> a -> a #