-
-
Save hgiasac/a38efab80c66a1d6a83807ade3d17bf2 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 TypeRep (a :: k) where | |
TrType :: TypeRep Type | |
TrTyCon :: { trTyConFingerprint :: {-# UNPACK #-} !Fingerprint | |
, trTyCon :: !TyCon | |
, trKindVars :: [SomeTypeRep] | |
, trTyConKind :: !(TypeRep k) | |
} | |
-> TypeRep (a :: k) | |
TrApp :: forall k1 k2 (a :: k1 -> k2) (b :: k1). | |
{ | |
trAppFingerprint :: {-# UNPACK #-} !Fingerprint | |
, trAppFun :: !(TypeRep (a :: k1 -> k2)) | |
, trAppArg :: !(TypeRep (b :: k1)) | |
, trAppKind :: !(TypeRep k2) } | |
-> TypeRep (a b) | |
TrFun :: forall (r1 :: RuntimeRep) (r2 :: RuntimeRep) | |
(a :: TYPE r1) (b :: TYPE r2). | |
{ | |
trFunFingerprint :: {-# UNPACK #-} !Fingerprint | |
, trFunArg :: !(TypeRep a) | |
, trFunRes :: !(TypeRep b) } | |
-> TypeRep (a -> b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment