base-compat
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Typeable.Compat

Synopsis

Documentation

heqT :: forall {k1} {k2} (a :: k1) (b :: k2). (Typeable a, Typeable b) => Maybe (a :~~: b) #

Extract a witness of heterogeneous equality of two types

Since: base-4.18.0.0

decT :: forall {k} (a :: k) (b :: k). (Typeable a, Typeable b) => Either ((a :~: b) -> Void) (a :~: b) #

Decide an equality of two types

Since: base-4.19.0.0

hdecT :: forall {k1} {k2} (a :: k1) (b :: k2). (Typeable a, Typeable b) => Either ((a :~~: b) -> Void) (a :~~: b) #

Decide heterogeneous equality of two types.

Since: base-4.19.0.0