chatty-0.6.1.0: Some monad transformers and typeclasses for abstraction of global dependencies.

Safe HaskellSafe-Inferred

Text.Chatty.Scanner.Buffered

Description

Provides a typeclass for buffered scanners as well as a buffering monad transformer.

Synopsis

Documentation

class ChBufferedScanner m => ChStackBufferedScanner m whereSource

Typeclass for all BufferedScanners with support for pushing and popping.

Methods

mpush :: m ()Source

Push the current input state to the stack.

mpop :: m ()Source

Pop the previous input state from the stack.