microlens-th

Automatic generation of record lenses for microlens

http://github.com/stevenfontanella/microlens

Version on this page:0.4.3.15
LTS Haskell 23.1:0.4.3.16
Stackage Nightly 2024-12-27:0.4.3.16
Latest on Hackage:0.4.3.16

See all snapshots microlens-th appears in

BSD-3-Clause licensed by Eric Mertens, Edward Kmett, Artyom Kazak
Maintained by Steven Fontanella
This version can be pinned in stack with:microlens-th-0.4.3.15@sha256:1b98beac6ed1ac00b8c235b248169d5e383f4a76f63faa33494ec5e7cdac544e,2500

Module documentation for 0.4.3.15

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.

Changes

0.4.3.15

0.4.3.14

0.4.3.13

  • #167 Support th-abstraction 0.5.

0.4.3.12

  • #164, #165 Support template-haskell 2.19 (and GHC 9.6 by extension).

0.4.3.11

  • #161 Fix GHC 9.4 warning for using ~ without TypeOperators.

0.4.3.10

  • Port lens commit fae336e1, “Close over kind variables when computing fixed type variables”, fixing lens issue #972.

  • Allow building with template-haskell-2.18.

0.4.3.9

  • Port lens commit 66e199ee, fixing lens issue #945 — “Make the TH machinery handle PolyKinds more robustly”.

0.4.3.8

  • Fixup.

0.4.3.7

  • Changes needed for template-haskell-2.17.

0.4.3.6

  • Bumped th-abstraction.

0.4.3.5

  • Changes needed for template-haskell-2.16.

0.4.3.4

  • Backported changes needed for template-haskell-2.15.

0.4.3.3

  • Exported internal utilities from Lens.Micro.TH.Internal.

0.4.3.2

  • Bumped template-haskell version.

0.4.3.1

  • No more conditional Safe (see #122).

0.4.3

  • Bumped th-abstraction version.
  • Lens.Micro.TH is now properly marked as Safe or Trustworthy.
  • The -f-inlining flag is not supported anymore.

0.4.2.3

  • Bumped template-haskell version.

0.4.2.2

  • Bumped containers version.

0.4.2.1

  • Fixed lens bug #799 (makeFields instances violate coverage condition).

0.4.2

  • We now depend on th-abstraction (like lens itself).
  • Associated types are now supported.

0.4.1.3

  • Bumped the upper bound of template-haskell again.

0.4.1.2

Skipped (the tarball got corrupted).

0.4.1.1

  • Bumped the upper bound of template-haskell, as requested by @ocharles.

0.4.1.0

  • Added abbreviatedFields.

0.4.0.1

  • Ported a lens commit that (probably) makes lens generation deterministic. See issue #83.

0.4.0.0

  • Added makeClassy (and createClass).

0.3.0.2

  • Added forgotten copyright/authorship information.

0.3.0.1

  • The library is now compatible with GHC 8.

0.3.0.0

  • SimpleGetter and SimpleFold are no longer reexported.

0.2.2.0

  • Moved Getter and Fold from this package to microlens (they’re in Lens.Micro.Extras).

0.2.1.3

  • Bumped template-haskell (so that the package would compile with GHC HEAD).

0.2.1.2

  • Bumped microlens version to be able to use phantom.

0.2.1.1

  • Bumped microlens version again.

0.2.1.0

  • Bumped base version.
  • Bumped microlens version.

0.2.0.0

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

0.1.2.0

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

0.1.1.0

  • Added makeLensesFor (and lensRulesFor).

0.1.0.1

  • Wrote a bit of documentation.

0.1.0.0

Initial release.