Monocle is a pure functional, optics library for Scala providing immutable data access and transformation tools — including Lens, Prism, Iso, Optional, and Traversal. It enables composable, declarative modifications of deeply nested immutable structures in a concise and type-safe fashion.

Features

  • Core optics: Lens, Prism, Iso, Optional, Traversal
  • Safe, immutable access/modification without boilerplate
  • Composable optics chains using composeLens, composeTraversal
  • Integration with Cats, Cats Effect, and typeclass-based workflows
  • Support for Scala 2 and 3, and multiple data structures (case classes, ADTs)
  • Compatible with Scala.js and Scala Native

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Monocle

Monocle Web Site

Other Useful Business Software
Globalscape Enhanced File Transfer (EFT) is a best-in-class managed file transfer (MFT) solution Icon
Globalscape Enhanced File Transfer (EFT) is a best-in-class managed file transfer (MFT) solution

For Windows-Centric Organizations Looking for Secure File Transfer solutions

Globalscape’s Enhanced File Transfer (EFT) platform is a comprehensive, user-friendly managed file transfer (MFT) software. Thousands of Windows-Centric Organizations trust Globalscape EFT for their mission-critical file transfers.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Monocle!

Additional Project Details

Programming Language

Scala

Related Categories

Scala Libraries

Registered

2025-08-04