The latest version of attoparsec-enumerator is 0.3.4-0.
attoparsec-enumerator
Version 0.2.0.5 revision 1 uploaded by phadej.
Package meta
- Synopsis
- Pass input from an enumerator to an Attoparsec parser.
- Description
This library allows an Attoparsec parser to receive input incrementally from an enumerator. This could be used for parsing large files, or implementing binary network protocols.
(-# LANGUAGE OverloadedStrings #-) import Control.Applicative import Data.Attoparsec import Data.Attoparsec.Enumerator import Data.Enumerator import Data.Enumerator.Binary (enumHandle) import Data.Enumerator.List import System.IO parser = string "foo" <|> string "bar" main = do xy <- run_ (enumHandle 1 stdin $$ do x <- iterParser parser y <- iterParser parser return (x, y)) print xy
- Author
- John Millikin <jmillikin@gmail.com>
- Bug reports
- mailto:jmillikin@gmail.com
- Category
- Text, Parsing, Enumerator
- Copyright
- n/a
- Homepage
- https://john-millikin.com/software/attoparsec-enumerator/
- Maintainer
- John Millikin <jmillikin@gmail.com>
- Package URL
- n/a
- Stability
- experimental