Skip to content
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

Monad[Free[Id, ?]] cannot be found #2281

Closed
johnynek opened this issue Jun 5, 2018 · 3 comments
Closed

Monad[Free[Id, ?]] cannot be found #2281

johnynek opened this issue Jun 5, 2018 · 3 comments

Comments

@johnynek
Copy link
Contributor

johnynek commented Jun 5, 2018

[error] /Users/oscar/oss/cats/free/src/test/scala/cats/free/FreeSuite.scala:18:13: could not find implicit value for parameter e: cats.Monad[[β$1$]cats.free.Free[[A]A,β$1$]]
[error]   implicitly[Monad[Free[Id, ?]]]                                     
[error]             ^                                                                                 
[error] one error found                                                                                 
[error] (freeJVM / Test / compileIncremental) Compilation failed 

Note that there is no problem with implicitly[Monad[Free[Option, ?]]]. I wonder if this could be related to the possible compiler bug found in #2276

@johnynek
Copy link
Contributor Author

johnynek commented Jun 5, 2018

note I discovered this in #2279 where I found that I also could not resolve Defer[Free[Id, ?]]

@ceedubs
Copy link
Contributor

ceedubs commented Jun 11, 2018

Scalac generally has issues with inference with Id. I think that this is a bit different than #2276. I think that this just requires specialized instances for Id like we've done here for Kleisli.

@kailuowang
Copy link
Contributor

fixed by @barambani in #2383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants