-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accommodate user-defined mirrors #219
Conversation
modules/deriving/src/main/scala/shapeless3/deriving/kinds.scala
Outdated
Show resolved
Hide resolved
modules/deriving/src/main/scala/shapeless3/deriving/kinds.scala
Outdated
Show resolved
Hide resolved
modules/deriving/src/test/scala/shapeless3/deriving/deriving.scala
Outdated
Show resolved
Hide resolved
modules/deriving/src/main/scala/shapeless3/deriving/kinds.scala
Outdated
Show resolved
Hide resolved
f461a2d
to
be4bc43
Compare
@tschuchortdev I tried this out in Kittens and unfortunately it degrades compiler performance significantly ( |
Oh, that's too bad, but I guess it can't be avoided. Have you thought about putting an |
Yes, this would make sense. Although I'm still waiting for a backport of |
def assertImportSuggested(errors: List[testing.Error]): Unit = | ||
assertEquals(1, errors.size) | ||
val message = errors.head.message.trim | ||
assert(message.startsWith("No given instance of type")) | ||
assert(message.endsWith("Generic.fromMirror")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tschuchortdev the default message already suggests the import so I think it's adequate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright. In my experience those suggestions are rarely productive, so I tend to ignore them.
Looks good to me now. |
Fixes #218