The attoparsec-enumerator package

[Tags: deprecated, library, mit]


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


Versions0.1,,,, 0.2,,,,,, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.3.4
Change logNone available
Dependenciesattoparsec (==0.10.*), base (>=4.0 && <5.0), bytestring (==0.9.*), enumerator (==0.4.*), text
AuthorJohn Millikin <>
MaintainerJohn Millikin <>
CategoryText, Parsing, Enumerator
Home page
Source repositoryhead: bzr branch
this: bzr branch -r attoparsec-enumerator_0.3
UploadedTue Nov 29 04:39:15 UTC 2011 by JohnMillikin
DistributionsDebian:0.3.4, Fedora:0.3.3, FreeBSD:0.3.3, LTSHaskell:0.3.4, NixOS:0.3.4, Stackage:0.3.4
Downloads28357 total (879 in last 30 days)
StatusDocs uploaded by user
Build status unknown [no reports yet]




Maintainers' corner

For package maintainers and hackage trustees