Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- insertIndents :: forall m a. (MonadError Error m, Show a) => a -> a -> (a -> Bool) -> [WithLoc a] -> m [WithLoc a]
Documentation
insertIndents :: forall m a. (MonadError Error m, Show a) => a -> a -> (a -> Bool) -> [WithLoc a] -> m [WithLoc a] Source #
insertIndents
inserts INDENT
and DEDENT
tokens with Python's way (https://docs.python.org/3/reference/lexical_analysis.html#indentation). The column
of Loc
must be 1-based. This doen't use physical line
of Loc
because logical lines are used for indentation.