-
-
Save hgiasac/27c9a324b7743caa69057c7901311ff7 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
class Typeable a where | |
typeRep :: proxy a -> TypeRep | |
typeOf :: forall a. Typeable a => a -> TypeRep | |
typeOf _ = typeRep (Proxy :: Proxy a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment