can't abstract over interpolated encoders
Open
Nobody has claimed this yet.
Scala 3
- Dominant language
- Scala
- Stars
- 1.7k
- Forks
- 175
- Avg merge
- 5d 14h
- Merged PRs (30d)
- 9
Description
sql"$e" becomes Fragment[Nothing] in Scala 3 if e: Encoder[A] for some type variable A rather than a concrete type. This is due to https://github.com/lampepfl/dotty/issues/12343#issuecomment-836631142
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the sql interpolator entry point and the Encoder[A] interpolation path; reproduce the Scala 3 case described in the issue and read the linked compiler discussion. Done means the generic interpolation no longer produces Fragment[Nothing], with regression coverage for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgres, scala
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100