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

Scala 3 #1319

Merged
merged 18 commits into from
Dec 6, 2020
Merged

Scala 3 #1319

merged 18 commits into from
Dec 6, 2020

Conversation

tpolecat
Copy link
Member

@tpolecat tpolecat commented Nov 29, 2020

Scala 3 support. This will be tagged as v0.10.0-M1 when merged (new deprecations will be since="0.10.0").

In retrospect I should have done the switch to MUnit as an orthogonal PR. Sorry about that, I was already part-way in before I realized I would need to do it so I just kept on going.

Notable changes:

  • doobie no longer relies on TypeTag, it uses TypeName instead.
  • Line number macros have been internalized; there is no longer a dependency on lihaoyi/sourcecode.
  • Tests have been migrated from specs2 to MUnit. This is the cause of most of the churn in this PR.
  • The enum package has been renamed enumerated. For Scala 2 users an enum object remains behind as a bridge.
  • Shapeless is not used in the Scala 3 version. Instances are derived via Tuple and Product rather than HList and Generic.
  • Get and Put instances cannot be derived for unary AnyVals in Scala 3. See Support Mirrors for value classes scala/scala3#7023
  • Deprecated JDBC and Postgres Driver methods have been removed from the Free APIs.

Progress

  • bench
  • core (compile)
  • core (tests)
  • docs ⚠️ Scala 2 only
  • example
  • free
  • h2
  • hikari
  • postgres-circe ⚠️ Scala 2 Only
  • postgres
  • quill ⚠️ Scala 2 Only
  • refined
  • scalatest ⚠️ Scala 2 Only
  • specs2 ⚠️ Scala 2 Only

@tpolecat tpolecat marked this pull request as ready for review December 2, 2020 17:30
@tpolecat tpolecat merged commit f9b2a20 into master Dec 6, 2020
@tpolecat tpolecat deleted the scala-3 branch December 6, 2020 00:49
@rkrzewski rkrzewski mentioned this pull request Dec 6, 2020
@tpolecat tpolecat changed the title WIP - Scala 3 Scala 3 Dec 6, 2020
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.

1 participant