vinyl

Extensible Records

Latest on Hackage:0.13.0

See all snapshots vinyl appears in

MIT licensed by Jonathan Sterling
Maintained by [email protected]

Module documentation for 0.5.3

This version can be pinned in stack with:[email protected]:fd4e49544d621e5f35fb64ca68fd364f0d8efe9da9488e70abbb3e0de2f9bb72,2142

Extensible records for Haskell with lenses using modern GHC features.

Changes

0.5.3

Added a concise Show instance for Const.

0.5.2

Ported the tutorial to haddocks (andrewthad)

0.5.1

Added utilities for working with the FieldRec type.

0.5

Vinyl 0.5 combines the generality of Vinyl 0.4 with the ease-of-use of previous versions by eschewing the defunctionalized type families and just using plain type constructors; Vinyl 0.4-style records can be recovered in most cases in a modular manner without baking it into the fabric of Vinyl itself.

Also new in 0.5 is a unified lens-based approach to subtyping, coercion and projection.

0.4

Vinyl 0.4 is a big departure from previous versions, in that it introduces a universe encoding as a means to generalize the space of keys from strings to any arbitrary space. This means that you can have closed universes for your records.

For details on how to use the new Vinyl, please see tests/Intro.lhs or view Jon’s talk at BayHac 2014, Programming in Vinyl.

Depends on 2 packages(full list with versions):
Used by 3 packages in lts-7.24(full list with versions):