[Haskell-cafe] GHC API: type class instance check
j.stutterheim at me.com
Fri Nov 11 07:57:56 UTC 2016
I'm writing a core-to-core GHC plugin and have two questions:
- Given some t :: Type, how can I check whether there exists an instance of some type class C for t?
- How can I check whether some type class C exists, and if so, how can I get a value c (presumably :: Class) of this class?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3117 bytes
Desc: not available
More information about the Haskell-Cafe