Automatic generation of record lenses for microlens http://github.com/aelve/microlens

Version on this page:
LTS Haskell 15.15:
Stackage Nightly 2020-06-04:
Latest on Hackage:

See all snapshots microlens-th appears in

BSD-3-Clause licensed by Artyom
Maintained by Artyom

Module documentation for

This version can be pinned in stack with:[email protected]:ea960db79e4404f3ffa30a3a909336db4801c465197372123230129946447ecb,1747

This package lets you automatically generate lenses for data types; code was extracted from the lens package, and therefore generated lenses are fully compatible with ones generated by lens (and can be used both from lens and microlens).

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


  • Bumped microlens version again.

  • Bumped base version.
  • Bumped microlens version.

  • createClass was removed because it doesn’t seem to be useful without lensClass.
  • defaultFieldRules isn’t exported anymore – use camelCaseFields.

  • Package now compiles with -O2 and other optimisations by default.

  • Added makeLensesFor (and lensRulesFor).

  • Wrote a bit of documentation.

Initial release.