Portability | portable |
---|---|
Stability | experimental |
Safe Haskell | Safe-Infered |
Network.Mom.Stompl.Parser
Description
Stomp Parser based on Attoparsec
- stompParser :: Parser Frame
- stompAtOnce :: ByteString -> Either String Frame
- startParsing :: ByteString -> Either String (Result Frame)
- continueParsing :: Result Frame -> ByteString -> Either String (Result Frame)
Documentation
stompParser :: Parser FrameSource
The Stomp Parser
stompAtOnce :: ByteString -> Either String FrameSource
Parses a ByteString at once with Attoparsec parseOnly
.
May fail or conclude.
startParsing :: ByteString -> Either String (Result Frame)Source
Starts parsing with Attoparsec parse
.
May fail, conclude or return a partial result.
continueParsing :: Result Frame -> ByteString -> Either String (Result Frame)Source
Continues parsing with Attoparsec feed
.
May fail, conclude or return a partial result.