microlens-contra

True folds and getters for microlens

http://github.com/monadfix/microlens

Version on this page:0.1.0.2
LTS Haskell 21.13:0.1.0.3
Stackage Nightly 2023-09-25:0.1.0.3
Latest on Hackage:0.1.0.3

See all snapshots microlens-contra appears in

BSD-3-Clause licensed by Edward Kmett, Artyom Kazak
Maintained by Monadfix
This version can be pinned in stack with:microlens-contra-0.1.0.2@sha256:6c1574205dd3b41230214aea52c5751e483f5e0551959cd90c7950118ca6f23d,1811

Module documentation for 0.1.0.2

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, tho.

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.

Changes

0.1.0.2

  • Removed the contravariant dependency for GHC 8.6 and later.

0.1.0.1

  • Added forgotten copyright/authorship information.

0.1.0.0

Initial release.