@hackage / microlens-contra

True folds and getters for microlens

Latest0.1.0.4

About

Metadata

  • Last updated , by stevenfontanella
  • License BSD-3-Clause
  • Categories Lenses
  • Maintained by: Steven Fontanella <steven.fontanella@gmail.com>

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.12.1
  2. 9.10.1
  3. 9.8.4
  4. 9.6.6
  5. 9.4.8
  6. 9.2.8
  7. 9.0.2
  8. 8.10.7
  9. 8.8.4
  10. 8.6.5
  11. 8.4.4
  12. 8.2.2
  13. 8.0.2

Readme

This package provides Fold and Getter that are fully compatible with lens; the downside is that this package depends on contravariant, which in its turn depends on a lot of other packages (but still less than lens).

The difference between Fold and SimpleFold is that you can use e.g. takingWhile/droppingWhile and backwards on the former but not on the latter. Most functions from lens that work with Fold would work with SimpleFold as well, though.

Starting from GHC 8.6, this package doesn't depend on contravariant anymore.

This package is a part of the microlens family; see the readme on Github.