s-expression: simple general-purpose s-expressions
this package provides general-purpose functionality for manipulating s-expressions. like:
a
Functor
instance that transforms the atomsa
Monad
instance that "expands" atoms into s-expressionsa
Foldable
instance that enumerates the atoms (leaves)IsList
andIsString
instances for literal syntax
the core type is:
data Sexp f a = Atom a | List [Sexp f a] | Sexp f [Sexp f a]
which lets you provide your own custom function name that interprets its arguments.
e.g. TODO
for efficient parsing/printing, use:
Downloads
- s-expression-0.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.0.0 |
---|---|
Dependencies | base (>=4.8 && <5.0), derive-monoid (>=0.0.1), lens, s-expression, semigroups [details] |
Tested with | ghc ==7.10.1 |
License | MIT |
Copyright | Copyright (C) 2015 Spiros M. Boosalis |
Author | Spiros Boosalis |
Maintainer | samboosalis@gmail.com |
Category | Data |
Home page | https://github.com/sboosali/s-expression#readme |
Bug tracker | https://github.com/sboosali/s-expression/issues |
Source repo | head: git clone https://github.com/sboosali/s-expression |
Uploaded | by sboo at 2017-05-01T22:49:23Z |
Distributions | |
Executables | example-s-expressions |
Downloads | 998 total (0 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2017-05-01 [all 1 reports] |