Skip to content

Provide way to print an Interval[T] without requiring an Order[T] instance #545

@rklaehn

Description

@rklaehn

In my data structures in intervalset, I do not store intervals, but only boundary positions. I also do not store the typeclasses in the data structure, but require them on each operation.

I would like to provide a (best-effort) toString method, but currently, there is no way to create an Interval[T] for printing without having an Order[T] (which I don't have.

In the long term I think it might be better to not store the Order instance with an interval, but that's another issue.

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