Skip to content

Number is not a fully law abiding instance of Ord #276

Closed
@JamieBallingall

Description

@JamieBallingall

Number is not a fully law abiding instance of the class Ord because NaN inhabits Number but NaN <= NaN evaluates to false (i.e., is not reflexive).

This issue is similar to Number not being a fully law abiding instance of Eq, which is handled with a comment in the class definition. I propose a similar approach here.

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