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

Support for Scala 3? #81

Open
stefanholzmueller opened this issue Nov 20, 2021 · 0 comments
Open

Support for Scala 3? #81

stefanholzmueller opened this issue Nov 20, 2021 · 0 comments

Comments

@stefanholzmueller
Copy link

I am wondering if it is possible to publish a Scala 3 version of this library. I gave it a look today and found two obstacles:

  1. Slick still does not support Scala 3 and I would not bet money that it ever will. I could work around that with .cross(CrossVersion.for3Use2_13) but I am not sure if it is a good idea for a Scala 3 library to depend on a Scala 2.13 library.
  2. I guess the Scala 3 type checker is stricter, because I got a Type Mismatch Error in DatabaseProvider.scala:
[error] 21 |            val db: UIO[JdbcBackend#Database] = ZIO.effectTotal(d)
[error]    |                                                                ^
[error]    |                               Found:    (d : p.backend.DatabaseDef)
[error]    |                               Required: slick.jdbc.JdbcBackend#Database

Is there hope, or am I flogging a dead horse?

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

1 participant