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

Bump dependencies #48

Closed
wants to merge 3 commits into from
Closed

Bump dependencies #48

wants to merge 3 commits into from

Conversation

notxcain
Copy link
Owner

No description provided.

@notxcain notxcain self-assigned this Aug 20, 2018
@SemanticBeeng
Copy link

hi Denis,

Please advise on https://scalameta.org/paradise/ since it is not maintained anymore.

Any plans to move away from it?

@SemanticBeeng
Copy link

SemanticBeeng commented Sep 30, 2018

Trying to upgrade to scalameta 4.0.0 and getting some errors related to paradise.

SemanticBeeng/liberator@2a7c99b

https://stackoverflow.com/a/45786488/4032515

Please advise if this attempt to upgrade conflicts with anything and what it would take.

UPDATE: scalafmt latest uses scalameta 4.0.0 and no paradise
https://github.com/scalameta/scalafmt/blob/175ee66e048e690aeb8a22f56ab4fd355c219ca8/project/Dependencies.scala#L9

This older fork uses scalameta 1.7.0 and paradise
https://github.com/olafurpg/scalafmt/blob/12ed28a683cd4b45335e48d9d31d789ae9ed2235/project/Dependencies.scala#L8

Point being: so should be a way to migrate from paradise.
Interest to discuss?

@notxcain
Copy link
Owner Author

notxcain commented Oct 2, 2018

@SemanticBeeng unfortunately scalameta/paradise is EOL. Any suggestions regarding another implementations are highly appreciated.

@SemanticBeeng
Copy link

SemanticBeeng commented Oct 2, 2018

Yes, we need a way around/way from paradise.

See typelevel/cats-tagless#6 (comment) and another one below for some research and thinking. Do not miss scalameta/scalagen#22 about cats.

Thoughts?

Trying to use the same approach scalafmt has used to move away from it seems in reach from this high level but you would know better.

If you think is worth pursuing then let us do a code review for how you used it, please.

UPDATE: freestyle uses a similar approach to annotations and boiler plate code generation so they are stuck too with paradise.
https://github.com/frees-io/freestyle/blob/978b714581fd5dd618c2971f528a24efc560f55e/build.sbt#L382-L383
http://frees.io/docs/core/modules/

@SemanticBeeng
Copy link

SemanticBeeng commented Oct 3, 2018

Also, I'd like to use such generated code to compile with scalajs to call from Ajax client applications.

http://frees.io/docs/core/algebras/
"For each smart constructor def foo(x: X, y: Y, ...): FS[Z], the @free generates a case class Foo, whose fields are the parameters of the constructor. For those with a background in object-oriented design, this is similar to the Command Pattern."

Do you see any reason why such generated code would not be compiling with scalajs?

UPDATE: Related
higherkindness/mu-scala#21
frees-io/freestyle-opscenter-webclient#17

@notxcain
Copy link
Owner Author

Superseded by #50

@notxcain notxcain closed this Oct 31, 2018
@notxcain notxcain deleted the bump-deps branch October 31, 2018 14:21
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.

2 participants