crispywalrus / Proptics

Profunctor optics and lenses library for Scala

Home Page:https://sagifogel.github.io/Proptics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proptics Logo

CI Maven Central Scala Steward badge

Overview

Proptics is a Profunctor Optics and Lenses library for Scala programming language.
It uses a Profunctor encoding for its internal representation of optics, you can learn about profunctors in the profunctor guide.
Proptics is available for Scala 2.12, Scala 2.13, Scala 3.0, and Scala.js, and is built on top of Cats, and Spire.

Getting Started

Add to your build.sbt

libraryDependencies ++= Seq(
  "io.github.sagifogel" %% "proptics-core" % "0.5.1",
  "io.github.sagifogel" %% "proptics-profunctor" % "0.5.1",
  "io.github.sagifogel" %% "proptics-macros" % "0.5.1"
)

Quick links:

Documentation

About

Profunctor optics and lenses library for Scala

https://sagifogel.github.io/Proptics

License:MIT License


Languages

Language:Scala 99.3%Language:JavaScript 0.4%Language:CSS 0.3%