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 #631

Closed
2 tasks
ghostdogpr opened this issue Nov 14, 2020 · 9 comments · Fixed by #847
Closed
2 tasks

Support for Scala 3 #631

ghostdogpr opened this issue Nov 14, 2020 · 9 comments · Fixed by #847
Labels
server Issue related to caliban server

Comments

@ghostdogpr
Copy link
Owner

ghostdogpr commented Nov 14, 2020

There are currently 2 blockers caused by usage of macros in dependencies:

Possible action items:

@ghostdogpr ghostdogpr added core server Issue related to caliban server labels Nov 14, 2020
@ghostdogpr
Copy link
Owner Author

I added 2 action items. The first one can be done in Scala 2 while the second one requires exploring new territories.

@lvitaly
Copy link

lvitaly commented Nov 21, 2020

@ghostdogpr, I would like to start with the first one. I will migrate the Parser from fastparse to cats-parse.

@ghostdogpr
Copy link
Owner Author

@lvitaly awesome! Let me know if you have any question!

@ghostdogpr
Copy link
Owner Author

Super helpful article on typeclass derivation with Scala 3: https://blog.philipp-martini.de/blog/magic-mirror-scala3/

@javimartinez
Copy link
Contributor

javimartinez commented Nov 24, 2020

I was experimenting with type class derivation in Scala 3 last week, and I think there is no support for annotations. We need that for deriving the schema, don't we? Maybe it's necessary to use Macros to achieve the same behavior

@ghostdogpr
Copy link
Owner Author

Yeah I guess that part requires a macro. It would be nice if https://github.com/propensive/adversaria supported Scala 3.

By the way by this small change to the link I posted, we can achieve auto derivation without the derives keyword, the way it works currently. Very promising!

@ghostdogpr ghostdogpr mentioned this issue Apr 14, 2021
13 tasks
@ghostdogpr
Copy link
Owner Author

Opened a PR with preliminary work: #847

If someone want to contribute, porting the small gqldoc string literal macro to Scala 3 would be awesome!

@javimartinez
Copy link
Contributor

@ghostdogpr I could try to port the gqldoc macro to Scala 3 this weekend

@ghostdogpr
Copy link
Owner Author

Planning to do a first release this week!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Issue related to caliban server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants