GenIso

monocle.macros.GenIso$
object GenIso

Attributes

Source:
GenIso.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
GenIso.type

Members list

Concise view

Value members

Deprecated methods

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.

Attributes

Deprecated
[Since version 3.1.0]
Source:
GenIso.scala
transparent 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.

Attributes

Deprecated
[Since version 3.1.0]
Source:
GenIso.scala
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.

Attributes

Deprecated
[Since version 3.1.0]
Source:
GenIso.scala