-
-
Save hgiasac/818ce07e96b24ae07e3d5a6daeefae8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data (a :: k1) :~~: (a :: k2) where | |
HRefl :: forall (a :: k). a :~~: a | |
eqT :: forall k1 k2 (a :: k1) (b :: k2) | |
. TypeRep a -> TypeRep b -> Maybe (a :~~: b) | |
eqT a b | |
| typeRepFingerprint a == typeRepFingerprint b = Just (unsafeCoerce Refl) | |
| otherwise = Nothing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment