You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For libraries that use advanced Scala features (most commonly typeclass derivation) the approach is likely to differ for users on Scala 2.x / vs 3.x. Documenting both approaches is important while both Scala versions are supported, which is likely to be the case for some time.
Is this possible now? I haven't been able to find any settings that would allow code blocks to use different compilers, and indeed mdoc's "program semantics" approach implies this might be a non-goal.
If it isn't possible, perhaps others have examples or recommendations for how best to address this Scala 2/3 split?
Thank you!
The text was updated successfully, but these errors were encountered:
Thanks for raising this! I think that looks like a really needed feature, but currently this is not possible. However, while not easy by all means, It should probably be possible to add a custom tag that would manually invoke mdoc as a library with two different Scala versions. Like in https://scalameta.org/mdoc/docs/modifiers.html#stringmodifier
Though the API might be less than ideal for you here. It would probably be great to have that implemented internally in Mdoc, but unfortunately this is not in the plans currently.
For libraries that use advanced Scala features (most commonly typeclass derivation) the approach is likely to differ for users on Scala 2.x / vs 3.x. Documenting both approaches is important while both Scala versions are supported, which is likely to be the case for some time.
Is this possible now? I haven't been able to find any settings that would allow code blocks to use different compilers, and indeed mdoc's "program semantics" approach implies this might be a non-goal.
If it isn't possible, perhaps others have examples or recommendations for how best to address this Scala 2/3 split?
Thank you!
The text was updated successfully, but these errors were encountered: