@hackage / shared-fields

a tiny library for using shared lens fields

Latest0.2.0.0

About

Metadata

  • Last updated , by Intolerable
  • License BSD-3-Clause
  • Maintained by: fraser.m.murray@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

A simple single-module library for creating lens field typeclasses in a way that allows them to be shared between modules. By default, lens' makeFields creates a new class if it can't find a matching one in scope. This means that if you try to makeFields records in different modules without importing one module into the other, you'll get conflicting class definitions rather than a single lens which functions with both records.