mirror of
https://github.com/ilyakooo0/streamly.git
synced 2024-10-26 09:59:48 +03:00
Add some design notes to chunked parser
This commit is contained in:
parent
1ad9034585
commit
fedc42007b
@ -7,6 +7,18 @@
|
||||
-- Maintainer : streamly@composewell.com
|
||||
-- Stability : pre-release
|
||||
-- Portability : GHC
|
||||
--
|
||||
-- Differences from an item parser:
|
||||
--
|
||||
-- * Driver drives from a chunk stream
|
||||
-- * Backtrack buffer is a chunk stream instead of a list
|
||||
-- * Monad and Alternative can handle chunks
|
||||
-- * Parser takes stream position and returns new stream position
|
||||
--
|
||||
-- We can possibly use the same type for item and chunk parsers, but with
|
||||
-- different implementations for instances. So it could just be a newtype
|
||||
-- wrapper rather than a different type. And then we can even have the parser
|
||||
-- type and chunkedParseBreak in the Parser module itself.
|
||||
|
||||
module Streamly.Internal.Data.Parser.Chunked
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user