Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Provides a typeclass for buffered scanners as well as a buffering monad transformer.
Synopsis
- class ChScanner m => ChBufferedScanner m where
- class ChBufferedScanner m => ChStackBufferedScanner m where
- newtype ScannerBufferT m a = ScannerBuffer {
- runScannerBufferT :: [String] -> m (a, [String])
Documentation
class ChScanner m => ChBufferedScanner m where Source #
Typeclass for all buffered ChScanner
s.
Scan the next character without removing it.
mprepend :: String -> m () Source #
Prepend the given character to the scannable input.
Instances
class ChBufferedScanner m => ChStackBufferedScanner m where Source #
Typeclass for all BufferedScanner
s with support for pushing and popping.
Push the current input state to the stack.
Pop the previous input state from the stack.
Instances
ChScanner m => ChStackBufferedScanner (ScannerBufferT m) Source # | |
Defined in Text.Chatty.Scanner.Buffered mpush :: ScannerBufferT m () Source # mpop :: ScannerBufferT m () Source # |
newtype ScannerBufferT m a Source #
ScannerBuffer | |
|