Skip to content

Documenting Scala 2/3 approaches #835

@adamnfish

Description

@adamnfish

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions