Skip to content

[Scala 3] derived instances are not stack-safe #476

Description

@TimWSpence

The following derivations are not stack-safe:

  • Functor
  • Contravariant

This is because the shapeless 3 ErasedXXXInstances#map has mutual recursion between the Product and Coproduct instances when dealing with recursive sum types like List

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