[Haskell-cafe] Is it possible to get the information of instances of a type?
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> написал(а):
> 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
> TemplateHaskell as well.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe