[Haskell-cafe] Is it possible to get the information of instances of a type?

Nathan Howell nathan.d.howell at gmail.com
Wed Oct 26 18:15:41 CEST 2011

On Wed, Oct 26, 2011 at 6:53 AM, Magicloud Magiclouds <
magicloud.magiclouds at gmail.com> wrote:

>  But in Haskell, could I write a code to list the classes that a type
> instanced?
>  TemplateHaskell as well.

It's possible with TemplateHaskell. Look at classInstances and the ClassI
data constructor.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111026/8e5c07dc/attachment.htm>

More information about the Haskell-Cafe mailing list