polytropos-core: Row-polymorphic / open ADTs: rows, generic representation, evidence
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Core engine and consumer surface of polytropos: row-polymorphic extensible records and variants for Haskell.
The package collapses the four quadrants of the design space (nominal products,
structural products, nominal sums, and structural sums) into one uniform generic
representation (Polytropos.Core.Rep): a runtime integer tag plus a contiguous, flat
Data.Primitive.SmallArray.SmallArray of payload slots.
For application development and daily usage, start at the front door module Polytropos, which exposes ergonomic constructors, pattern synonyms, and worked examples. For compiler plugins and low-level substrate primitives, see Polytropos.Core.
For design decisions, memory physics, and background on the OCaml polymorphic variant heritage, see POLYTROPOS_DESIGN.md.
[Skip to Readme]
Properties
| Versions | 0.1.0.0, 0.1.0.2, 0.1.0.3 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.18 && <4.23), primitive (>=0.9 && <0.10) [details] |
| License | (EUPL-1.2 OR Apache-2.0) |
| Author | Nadia Yvette Chambers |
| Maintainer | nadia.yvette.chambers@ik.me |
| Category | Data |
| Home page | https://github.com/NadiaYvette/polytropos |
| Bug tracker | https://github.com/NadiaYvette/polytropos/issues |
| Source repo | head: git clone https://github.com/NadiaYvette/polytropos(packages/polytropos-core) |
| Uploaded | by nyc at 2026-10-17T18:54:54Z |
Modules
[Index] [Quick Jump]
Downloads
- polytropos-core-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees