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

MigMit miguelimo38 at yandex.ru
Wed Oct 26 19:10:23 CEST 2011


Can't be done. Even if this particular module doesn't contain "instance Class Type", it's quite possible that the said instance would be defined in another module, about which this one knows nothing about.

On the other hand, what would you do with that information?

Отправлено с iPad

26.10.2011, в 17:53, Magicloud Magiclouds <magicloud.magiclouds at gmail.com> написал(а):

> Hi,
>  If this was in ruby or other languages that support reflection, it
> won't be a question.
>  But in Haskell, could I write a code to list the classes that a type
> instanced?
>  TemplateHaskell as well.
> -- 
> 竹密岂妨流水过
> 山高哪阻野云飞
> 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list