Skip to content

Deriving for types with a phantom type parameter #264

Description

@brokenpylons

Is there a way to derive: eq, ord, show, for types that have a phantom type parameter?
For example:

type 'a t = Thing

The equals function generated for this type would have a signature ('a -> 'a -> bool) -> 'a t -> 'a t -> bool, is there a way remove the first argument and generate just 'a t -> 'a t -> bool? The passed comparison function will never be used inside anyways.

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