Skip to content

Update scala versions#226

Open
sh0hei wants to merge 2 commits intotypelevel:masterfrom
sh0hei:update/scala
Open

Update scala versions#226
sh0hei wants to merge 2 commits intotypelevel:masterfrom
sh0hei:update/scala

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