The attoparsec-enumerator package

[ Tags: deprecated, enumerator, library, mit, parsing, text ] [ Propose Tags ]

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


Versions 0.1,,,, 0.2,,,,,, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.3.4
Dependencies attoparsec (>=0.8 && <0.11), base (>=4.0 && <5.0), bytestring (>=0.9 && <0.11), enumerator (==0.4.*) [details]
License MIT
Author John Millikin <>
Maintainer John Millikin <>
Category Text, Parsing, Enumerator
Home page
Bug tracker
Source repository head: bzr branch
this: bzr branch -r attoparsec-enumerator_0.2.0.5
Uploaded Tue Nov 29 04:38:22 UTC 2011 by JohnMillikin
Updated Thu Nov 12 05:27:44 UTC 2015 by phadej to revision 1   [What is this?]
Distributions Debian:0.3.4, Fedora:0.3.4, FreeBSD:0.3.4, NixOS:0.3.4
Downloads 35619 total (1381 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees