conduit-tokenize-attoparsec: Conduits for tokenizing streams.

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

Please see README.md


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
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
Maintainer newhoggy@gmail.com
Category Data, Conduit
Home page http://github.com/haskell-works/conduit-tokenize-attoparsec#readme
Source repo head: git clone https://github.com/haskell-works/conduit-tokenize-attoparsec
Uploaded by newhoggy at 2016-01-31T03:18:59Z
Distributions
Executables conduit-tokenize-attoparsec-example
Downloads 974 total (8 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-0.1.0.0

[back to package description]

conduit-tokenize-attoparsec

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

Building

Prerequisites: haskell-stack is installed.

Run the following in the shell:

git clone git@github.com:haskell-works/conduit-tokenize-attoparsec.git
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