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/3748bd858271c41079f9a57e4e986a6f to your computer and use it in GitHub Desktop.
Save hgiasac/3748bd858271c41079f9a57e4e986a6f to your computer and use it in GitHub Desktop.
class Typeable (t :: *) where
typeOf :: t -> TypeRep
class Typeable1 (t :: * -> *) where
typeOf1 :: t a -> TypeRep
...
-- The maximum number of parameters was 7
class Typeable7 (t :: * -> * -> * -> * -> * -> * -> * -> *) where
typeOf7 :: t a b c d e f g -> TypeRep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment