Skip to content

Derivation of Equiv instances #76

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]

?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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