[Template-haskell] How to get list of instances of a given class?

Bulat Ziganshin bulatz at HotPOP.com
Tue Dec 13 11:44:47 EST 2005


Hello Dimitry,

Tuesday, December 13, 2005, 5:37:49 PM, you wrote:

DG> The documentation (neither for 6.2.2 nor for the latest) says nothing
DG> about what is in [Dec] for a class. Are instances of the class known
DG> at the moment of slplicing contained there?

yopu must read not documentation, but the sources of following modules

import Language.Haskell.TH.Syntax
import Language.Haskell.TH.Lib
import Language.Haskell.TH.Ppr

it is the only way now to create any TH program :)


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the template-haskell mailing list