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

Update scala versions #226

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update scala versions #226

wants to merge 2 commits into from

Conversation

sh0hei
Copy link
Member

@sh0hei sh0hei commented Nov 9, 2021

No description provided.

@sh0hei sh0hei self-assigned this Nov 9, 2021
@tsuyoshizawa
Copy link

In our project, we also encountered the following compilation error in Scala 2.13.7.
https://github.com/typelevel/simulacrum/runs/4148642944?check_suite_focus=true#step:7:322

[error] /home/runner/work/simulacrum/simulacrum/examples/src/test/scala/simulacrum/examples/examples.scala:124:6: Cannot find a wildcard type in supposed n-arity type constructor
[error]     @typeclass trait Bifunctor[F[_, _]] {

@ashkann
Copy link

ashkann commented Dec 4, 2021

I'm having the same problem:

@typeclass
trait Auth[F[_]] {
  def auth(req: Request[F]): OptionT[F, User]
}

object Auth {
  def fromCookie[F[_] :Monad :Sessions :Users]: Auth[F] =
    req => Sessions[F].read(req).fold(OptionT.none[F, User])(Users[F].findLoggedIn)
}
[error] /Users/ashkan/Hobby/Shahname/jvm/src/main/scala/ir/ashkan/shahnameh/Auth.scala:9:2: Cannot find a wildcard type in supposed n-arity type constructor
[error] @typeclass

@alexarchambault
Copy link

I'm having the same problem in coursier here (coursier/coursier#2327).

@AmerPandzo
Copy link

AmerPandzo commented Mar 28, 2022

Same issue with Scala 2.13.8

\src\main\scala\autocopy\helpers.scala:17:4: Cannot find a wildcard type in supposed n-arity type constructor
[error]   @typeclass trait Empty[F[_]] {

@danslapman
Copy link

For those who encoutered this error - I created a fork (& published) in which simulacrum is updated to work with recent 2.12 & 2.13 compiler versions: https://github.com/leviysoft/simulacrum

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

Successfully merging this pull request may close these issues.

6 participants