Skip to content

Derivation of Equiv instances #76

@sergei-shabanau

Description

@sergei-shabanau

Given the idea described in #75, will it be possible to use Magnolia to derive instances like

final case class Person(name: String, age: Int, address: String)

implicit val personEquiv: Equiv[((String, Int), String), Person] = 
  Equiv.caseClass(Person.apply(_, _, _), Person.unapply)

via a concise syntax

implicit val personEquiv: Equiv[((String, Int), String), Person] = equiv[Person]

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions