Skip to content

Instantly share code, notes, and snippets.

@hgiasac
Created January 4, 2019 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgiasac/c1c505865f9304bbf777dfc504e438d0 to your computer and use it in GitHub Desktop.
Save hgiasac/c1c505865f9304bbf777dfc504e438d0 to your computer and use it in GitHub Desktop.
data TypeRep (a :: k) where
TrTyCon :: !Fingerprint -> TyCon -> TypeRep k -> TypeRep a
TrApp :: !Fingerprint -> TypeRep a -> TypeRep b -> TypeRep (a b)
data TyCon = TyCon { tc_module :: Module, tc_name :: String }
data Module = Module { mod_pkg :: String, mod_name :: String }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment