Registry / utility / monocle-macro-2-12

monocle-macro-2-12

JSON →
library2.1.0javamavenunverified

Provides Scala macros for generating optics (lenses, prisms, etc.) for case classes in the Monocle library.

<dependency> <groupId>com.github.julien-truffaut</groupId> <artifactId>monocle-macro_2.12</artifactId> <version>2.1.0</version> </dependency>
INSTALL
IMPORT
SIG · MONOCLE-MACRO-2-12
M
monocle-macro-2-12
utilityjavav2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GenLens
✓ monocle.macros.GenLens

Shows how to generate a lens for a case class field using GenLens macro.

import monocle.macros.GenLens case class Person(name: String, age: Int) val nameLens = GenLens[Person](_.name)
Debug
Known issues
breakingScala 2.12 only; not compatible with Scala 2.13 or 3.x.
fix
Use monocle-macro_2.13 or monocle-macro3 for newer Scala versions.
affects: 2.1.0
Upgrade
Version history
2.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
monocle-macro-2-12 — mvn dependency:get monocle-macro-2-12 · libregistry