Skip to content

Deriving strategies #68

@adamgundry

Description

@adamgundry

At the moment, api-tools uses derived instances for its generated types, but does not specify the deriving strategy. This can lead to problems, in particular for newtypes when both DeriveAnyClass and GeneralizedNewtypeDeriving are enabled, because the choice of strategy is ambiguous. Ideally we would explicitly request newtypeStrategy to avoid this; although that might require the DerivingStrategies extension to be enabled in user code.

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