-
Notifications
You must be signed in to change notification settings - Fork 22
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
Publish for 2.12/2.13? #159
Comments
Yeah, AFAICT //> using scala "2.13.8"
//> using lib "org.virtuslab:scala-yaml_3:0.0.4"
//> using option "-Ytasty-reader"
object Main {
val myYaml = """foo: - bar"""
def main(args: Array[String]): Unit =
org.virtuslab.yaml.asNode(myYaml)
}
|
Hey @armanbilge, feel free to do it. Scala 2 is still the largest piece of cake in ecosystem and enabling to work with YAML in ScalaJS and ScalaNative might be useful for some people. Piggybacking on circe encoders should cover almost all of use cases. This was more a fun & research project, but I don't see a reason why not shape it into more mature and stable one. |
Thrilled to discover this project yesterday! It scratches a real itch :)
I understand the codec derivation features rely on Scala 3, but I assume it should be straightforward to cross-compile the parser and
Node
AST for Scala 2.12/2.13? The parser andNode
AST is sufficient to enable a circe-yaml frontend for example.Happy to do the work to split into version-specific sources if 👍
Discussion on the importance of 2.12 (and 2.13) support is in:
I noticed that the advice in #102 (comment) is to use
CrossVersion.for2_13Use3
but the consensus seems to be to avoid this technique for libraries. See also:Thanks!
The text was updated successfully, but these errors were encountered: