Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
type Indentation = Int Source #
data IndentationRel Source #
Instances
Eq IndentationRel Source # | |
Defined in Text.Parser.Indentation.Implementation (==) :: IndentationRel -> IndentationRel -> Bool # (/=) :: IndentationRel -> IndentationRel -> Bool # | |
Show IndentationRel Source # | |
Defined in Text.Parser.Indentation.Implementation showsPrec :: Int -> IndentationRel -> ShowS # show :: IndentationRel -> String # showList :: [IndentationRel] -> ShowS # |
mkIndentationState :: Indentation -> Indentation -> Bool -> IndentationRel -> IndentationState Source #
data IndentationState Source #
IndentationState | |
|
Instances
Show IndentationState Source # | |
Defined in Text.Parser.Indentation.Implementation showsPrec :: Int -> IndentationState -> ShowS # show :: IndentationState -> String # showList :: [IndentationState] -> ShowS # |
updateIndentation :: IndentationState -> Indentation -> (IndentationState -> a) -> (String -> a) -> a Source #
updateIndentation' :: Indentation -> Indentation -> IndentationRel -> Indentation -> (Indentation -> Indentation -> a) -> (String -> a) -> a Source #
type LocalState a = (IndentationState -> IndentationState) -> (IndentationState -> IndentationState -> IndentationState) -> a -> a Source #
localTokenMode :: LocalState a -> (IndentationRel -> IndentationRel) -> a -> a Source #
absoluteIndentation :: LocalState a -> a -> a Source #
ignoreAbsoluteIndentation :: LocalState a -> a -> a Source #
localAbsoluteIndentation :: LocalState a -> a -> a Source #
localIndentation' :: LocalState a -> (Indentation -> Indentation) -> (Indentation -> Indentation) -> (Indentation -> Indentation -> Indentation) -> a -> a Source #
localIndentation :: LocalState a -> IndentationRel -> a -> a Source #