wireform-derive: Annotation-driven Template Haskell deriver core for wireform
Shared Modifier annotation vocabulary and Template Haskell
reflection machinery used by per-format wireform-* deriver
packages (wireform-proto, wireform-cbor, wireform-msgpack,
wireform-thrift, wireform-avro, wireform-bson, …).
.
A single {-# ANN ... #-} pragma on a Haskell record drives
instance generation for every wire format the user opts into.
The vocabulary lives in Wireform.Derive.Modifier:
.
* rename, renameStyle, renameWith, renameIdiomatic --
wire-key text overrides.
* tag N -- explicit field number Thrift field ID Bond ID /
Iceberg field ID.
* skip, defaults, required, optional, coerced,
flatten, wireOverride -- standard knobs.
* forBackend forBackends disableFor -- per-backend
overrides that shadow globals without conflicting.
* mapKey, oneof -- format-specific shape hints.
* extension -- typed per-backend payloads via the
BackendModifier typeclass.
.
See the umbrella wireform package for the full multi-format
story. Inspired by riz0id's serde-th and Aeson's aeson-th.
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- wireform-derive-0.1.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.1.0.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=2.1 && <2.3), base (>=4.16 && <5), bytestring (>=0.11 && <0.13), containers (>=0.6 && <0.9), deepseq (>=1.4 && <1.6), hashable (>=1.3 && <1.6), mtl (>=2.2 && <2.4), template-haskell (>=2.18 && <2.24), text (>=2.0 && <2.2), th-abstraction (>=0.5 && <0.8), transformers (>=0.5 && <0.7) [details] |
| Tested with | ghc ==9.6.4, ghc ==9.8.4 |
| License | BSD-3-Clause |
| Copyright | 2026 Ian Duncan |
| Author | Ian Duncan |
| Maintainer | ian@iankduncan.com |
| Uploaded | by IanDuncan at 2026-05-16T07:16:27Z |
| Category | Data, Codec, Serialization |
| Home page | https://github.com/iand675/wireform- |
| Bug tracker | https://github.com/iand675/wireform-/issues |
| Source repo | head: git clone https://github.com/iand675/wireform- |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 3 total (3 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2026-05-16 [all 1 reports] |