| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Text.Parsec.Indentation
Documentation
type IndentationToken t = t Source #
data IndentStream s Source #
Constructors
| IndentStream | |
Fields
| |
Instances
| Show s => Show (IndentStream s) Source # | |
Defined in Text.Parsec.Indentation Methods 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 Methods 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 Methods (==) :: IndentationRel -> IndentationRel -> Bool # (/=) :: IndentationRel -> IndentationRel -> Bool # | |
| Show IndentationRel | |
Defined in Text.Parser.Indentation.Implementation Methods showsPrec :: Int -> IndentationRel -> ShowS # show :: IndentationRel -> String # showList :: [IndentationRel] -> ShowS # | |
type Indentation = Int #