CanModifyFP

dev.constructive.eo.CanModifyFP
See theCanModifyFP companion object
trait CanModifyFP[S, T, A, B]

Capability: the focused A inside an S can be rewritten effectfully under any Functor[G] — the carrier-free surface of any optic whose carrier admits forgetful.ForgetfulTraverse[F, Functor] (today: Lens).

Prefer this trait in consuming signatures; the monomorphic CanModifyF alias covers the common case. See CanGet for the doctrine and the coherence rule.

Attributes

Companion
object
Source
CanModifyF.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def modifyF[G[_]](f: A => G[B])(using Functor[G]): S => G[T]

Attributes

Source
CanModifyF.scala