GenIso

object GenIso
class Object
trait Matchable
class Any

Value members

Deprecated methods

@deprecated("Use monocle.Focus[S](_.singleField) to create a single field Iso", since = "3.1.0")
inline def apply[S <: Product, A](using m: ProductOf[S]): Iso[S, A]

Generate an Iso between a case class S and its unique field of type A.

Generate an Iso between a case class S and its unique field of type A.

Deprecated
[Since version 3.1.0]
Source
GenIso.scala
@deprecated("use monocle.Iso.fields", since = "3.1.0")
inline def fields[S <: Product](using m: ProductOf[S]): Iso[S, Any]

Generate an Iso between a case class S and its fields.

Generate an Iso between a case class S and its fields.

Case classes with 0 fields will correspond with Unit, 1 with the field type, 2 or more with a tuple of all field types in the same order as the fields themselves.

Deprecated
[Since version 3.1.0]
Source
GenIso.scala
@deprecated("no replacement", since = "3.1.0")
inline def unit[S <: Product](using m: ProductOf[S]): Iso[S, Unit]

Generate an Iso between an object S and Unit.

Generate an Iso between an object S and Unit.

Deprecated
[Since version 3.1.0]
Source
GenIso.scala