indentation-0.2.1.1: Indentation sensitive parsing combinators for Parsec and Trifecta

Safe HaskellSafe-Inferred

Text.Parsec.Indentation

Documentation

data IndentStream s Source

Instances

Show s => Show (IndentStream s) 
Stream s m (t, Indentation) => Stream (IndentStream s) m (IndentationToken t) 

localState :: Monad m => LocalState (ParsecT (IndentStream s) u m a)Source

localTokenMode :: Monad m => (IndentationRel -> IndentationRel) -> ParsecT (IndentStream s) u m a -> ParsecT (IndentStream s) u m aSource

localIndentation :: Monad m => IndentationRel -> ParsecT (IndentStream s) u m a -> ParsecT (IndentStream s) u m aSource

absoluteIndentation :: Monad m => ParsecT (IndentStream s) u m a -> ParsecT (IndentStream s) u m aSource

ignoreAbsoluteIndentation :: Monad m => ParsecT (IndentStream s) u m a -> ParsecT (IndentStream s) u m aSource

localAbsoluteIndentation :: Monad m => ParsecT (IndentStream s) u m a -> ParsecT (IndentStream s) u m aSource

streamToList :: (Monad m, Stream s m t) => s -> m [t]Source

indentStreamParser :: Monad m => ParsecT s u m (t, Indentation) -> ParsecT (IndentStream s) u m (IndentationToken t)Source

consumed :: Monad m => (a -> m b) -> (a -> m b) -> Consumed (m a) -> m bSource