Unclaimed project
Are you a maintainer of Monocle? Claim this project to take control of your public changelog and roadmap.
Changelog
Optics library for Scala
Last updated 4 days ago
refocus to all optics as an alias for .andThen(Focus(...)) (#1184) @kenbotcase class User(name: String, address: Address)
case class Address(streetNumber: Int, street: Option[Street])
val elise = User("Elise", Address(12, Some(Street("high street"))))
val addressLens: Lens[User, Address] = Focus[User](_.address)
val newLens : Lens[User, Int] = addressLens.refocus(_.streetNumber)
newLens.replace(50)(elise)
// or using the applied syntax
import monocle.syntax.all._
elise.focus(_.address).refocus(_.streetNumber)
GenIso to Scala 3 (#1185) @japgollyIso.fields (#1197) @kenbotindex is now a direct method for all optics for better Cats compat (#1192) @kenbotAsPrismImpl (#1186) @nicolasstucki♞ lichess.org: the forever free, adless and open source chess server ♞
💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
Scala 2 compiler and standard library. Scala 2 bugs at https://github.com/scala/bug; Scala 3 at https://github.com/scala/scala3
A platform to build and run apps that are elastic, agile, and resilient. SDK, libraries, and hosted environments.