-
Notifications
You must be signed in to change notification settings - Fork 21
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
Ambiguous implicits in some cases #11
Comments
Wow. This is crazy. And thanks for the report, btw. The I'll take a look at some unspecified date in the future, hopefully this month :) Meanwhile, workaround I can propose right now is to cherry-pick imports: import com.olegpy.meow.hierarchy.deriveApplicativeAsk
// or
import com.olegpy.meow.hierarchy.{deriveApplicativeLocal => _, _} |
Worth noting: in a similar case, I moved the hierarchy import up (to the file-global imports), and it worked. I'll use cherry-picked imports in other cases, then :) thanks! |
Just hit this again, and no matter where I'd put the imports (or whether i'd use the cherry-picked ones), it didn't work :( |
@kubukoz care to provide more details? |
There's not much to it... but I fear it might be a strange interaction with bm4. Let me check... |
Disabled bm4 so it's not that. What I have:
then I do The error is again |
Recently, I encountered this behavior:
The error I'd get if not for the
implicitly[
line:I don't have any cats-mtl imports (apart from the type names ApplicativeAsk/DefaultApplicativeAsk). It appears like the compile isn't able to use the correct derivation method unless there's a hint from the user (being the
implicitly[]
call.I'm using Scala 2.12.7 and meow-mtl 0.2.0. Do you think it's a compiler bug or something related to meow itself?
The text was updated successfully, but these errors were encountered: