lathe: Pure incremental byte parser.

[ bsd3, library, parsing ] [ Propose Tags ] [ Report a vulnerability ]

Pure incremental byte parser, polymorphic on the error type and supporting incremental output.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.14 && <5), bytestring (>=0.10.4 && <0.13), primitive (>=0.7 && <0.10), text (>=2 && <2.2) [details]
License BSD-3-Clause
Author Oleksii Divak
Maintainer Oleksii Divak <frozenwitness@gmail.com>
Category Parsing
Source repo head: git clone https://github.com/BurningWitness/lathe.git(lathe)
Uploaded by OleksiiDivak at 2024-10-25T17:52:48Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 22 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-10-25 [all 1 reports]

Readme for lathe-0.1.0.0

[back to package description]

lathe Hackage

Pure incremental byte parser.

Spiritually a successor to binary's Get monad, with several changes in favor of power:

  • Does not compress input internally during processing.

    Reading a LazyByteString always reuses input chunks, regardless of parser state.

  • Error type is polymorphic.

    Helper parsers get to fail with errors that can be pattern matched on, and higher-level libraries are no longer restricted to only Strings.

  • Properly supports incremental output.

    Higher-level libraries can properly support streaming data alongside their regular decoding functions.