Skip to content

Testing heterogeneous equality #2

@Icelandjack

Description

@Icelandjack

testEquality compares two keys for equality that possibly have a different type, but it doesn't allow comparing Key s Int and Key s Maybe by producing a proof HRefl

-- this definition to go into Data.Type.Equality
data (a :: k1) :~~: (b :: k2) where
   HRefl :: a :~~: a

testHEquality :: Key s a -> Key s b -> Maybe (a :~~: b) 

Consider adding it when it when they get added to base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions