Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

hackage.haskell.org : pa-field-parser

[Index] [Quick Jump] Package maintainers For package maintainers and hackage trustees Candidates A small library for “vertical parsing” of values. Traditional parsers are “horizontal” parsers, they take a flat list of tokens and produce structure: A FieldParser is a “vertical” parser. Once you have some low-level type in hand, usually you want to do some more checks, to “upgrade” it so to say: As a FieldParser, this would look like: >>> is from Control.Category, but Profunctor is also available to map over the left and right arguments. When run, this produces either a value or a helpful error message. They can be freely combined with other libraries, and act as a nice adapter between them. For example, the JSON-related functions integrate with aeson-better-errors and any FieldParser Value a can be converted to a FromJSON instance for aeson. attoparsec is also available to easily turn bytes or text parsers into FieldParsers. You can use this library as-is, but the design is easily adaptable to your codebase, the idea is very simple. Feel free to copy and paste what you need.

Registry - Source - JSON
purl: pkg:hackage/pa-field-parser
Keywords: bsd3, data, library, possehl-analytics
License: BSD-3-Clause
Latest release: 7 months ago
First release: 12 months ago
Dependent packages: 1
Downloads: 140 total
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 11 days ago

    Loading...
    Readme
    Loading...