Safe Haskell | None |
---|---|
Language | Haskell2010 |
- setParseStream :: (Typeable str, IsString str) => IO str -> TransIO ()
- setParseString :: (Typeable str, IsString str) => str -> TransIO ()
- data ParseContext str = IsString str => ParseContext (IO str) str
- string :: ByteString -> TransIO ByteString
- manyTill :: (Monad f, Alternative f) => f a1 -> f a2 -> f [a1]
- dropSpaces :: TransIO ()
- dropChar :: TransIO ()
- endline :: Char -> Bool
- parseString :: TransIO ByteString
- tTakeWhile :: (Char -> Bool) -> TransIO ByteString
- tTakeWhile' :: (Char -> Bool) -> TransIO ByteString
- tTake :: Int64 -> TransIO ByteString
- tChar :: TransIO Char
- parse :: (ByteString -> (b, ByteString)) -> TransIO b
- withData :: (ByteString -> TransIO (a, ByteString)) -> TransIO a
- giveData :: TransIO ByteString
Documentation
setParseStream :: (Typeable str, IsString str) => IO str -> TransIO () Source #
set a stream of strings to be parsed
setParseString :: (Typeable str, IsString str) => str -> TransIO () Source #
set a string to be parsed
data ParseContext str Source #
The parse context contains either the string to be parsed or a computation that gives an stream of strings or both. First, the string is parsed. If it is empty, the stream is pulled for more.
IsString str => ParseContext (IO str) str |
string :: ByteString -> TransIO ByteString Source #
manyTill :: (Monad f, Alternative f) => f a1 -> f a2 -> f [a1] Source #
dropSpaces :: TransIO () Source #
tTakeWhile :: (Char -> Bool) -> TransIO ByteString Source #
tTakeWhile' :: (Char -> Bool) -> TransIO ByteString Source #
parse :: (ByteString -> (b, ByteString)) -> TransIO b Source #
withData :: (ByteString -> TransIO (a, ByteString)) -> TransIO a Source #
bring the data of a parse context as a lazy byteString to a parser and actualize the parse context with the result
giveData :: TransIO ByteString Source #
bring the data of the parse context as a lazy byteString