conduit-tokenize-attoparsec: Conduits for tokenizing streams.

[ bsd3, conduit, data, deprecated, library, program ] [ Propose Tags ]

Please see

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS]
Dependencies attoparsec (>=0.10), base (>=4.7 && <5), bytestring, conduit (>=1.1 && <1.3), conduit-tokenize-attoparsec, resourcet (>=1.1), text [details]
License BSD-3-Clause
Copyright 2016 John Ky
Author John Ky
Category Data, Conduit
Home page
Source repo head: git clone
Uploaded by newhoggy at 2016-01-31T03:18:59Z
Executables conduit-tokenize-attoparsec-example
Downloads 985 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-02-12 [all 1 reports]

Readme for conduit-tokenize-attoparsec-

[back to package description]


Conduits for tokenizing streams.

conduit-tokenize-attoparsec is an extension to the conduit library based on Data.Conduit.Attoparsec that allows the tokenization of a stream whilst also tracking arbitrary state. The library includes in-built support for tracking such as line-column and stream offset, but can be extended with type-classes to support alternative state tracking.

For an example, see app/Main.hs


Prerequisites: haskell-stack is installed.

Run the following in the shell:

git clone
cd conduit-tokenize-attoparsec
stack setup
stack build
stack test
stack ghci --ghc-options -XOverloadedStrings \
  --main-is conduit-tokenize-attoparsec:exe:conduit-tokenize-attoparsec-example