Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
type IndentationToken t = t Source #
data IndentStream s Source #
Instances
Show s => Show (IndentStream s) Source # | |
Defined in Text.Parsec.Indentation showsPrec :: Int -> IndentStream s -> ShowS # show :: IndentStream s -> String # showList :: [IndentStream s] -> ShowS # | |
(Monad m, Stream s m (t, Indentation)) => Stream (IndentStream s) m (IndentationToken t) Source # | |
Defined in Text.Parsec.Indentation uncons :: IndentStream s -> m (Maybe (IndentationToken t, IndentStream s)) # |
mkIndentStream :: Indentation -> Indentation -> Bool -> IndentationRel -> s -> IndentStream s Source #
localState :: Monad m => LocalState (ParsecT (IndentStream s) u m a) Source #
localStateUnlessAbsMode :: 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 a Source #
localIndentation :: Monad m => IndentationRel -> ParsecT (IndentStream s) u m a -> ParsecT (IndentStream s) u m a Source #
absoluteIndentation :: Monad m => ParsecT (IndentStream s) u m a -> ParsecT (IndentStream s) u m a Source #
ignoreAbsoluteIndentation :: Monad m => ParsecT (IndentStream s) u m a -> ParsecT (IndentStream s) u m a Source #
localAbsoluteIndentation :: Monad m => ParsecT (IndentStream s) u m a -> ParsecT (IndentStream s) u m a Source #
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 #
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 #