Registry / utility / monocle-core-2-12

monocle-core-2-12

JSON →
library2.1.0javamavenunverified

Core optics library for Scala, providing lenses, prisms, and traversals.

<dependency> <groupId>com.github.julien-truffaut</groupId> <artifactId>monocle-core_2.12</artifactId> <version>2.1.0</version> </dependency>
INSTALL
IMPORT
SIG · MONOCLE-CORE-2-12
M
monocle-core-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.

Lens
monocle.Lens

Define a lens to focus on the age field of a Person case class.

import monocle.Lens; case class Person(name: String, age: Int) val ageLens = Lens[Person, Int](_.age)(age => person => person.copy(age = age))
Debug
Known issues
breakingMonocle 2.x uses Scala 2.12/2.13; not compatible with Scala 3 without additional modules.
fix
Use Monocle 3.x for Scala 3 support.
affects: 2.x
Upgrade
Version history
2.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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