Hi all. I’m trying to make a custom Template Haskell deriver based on both a type and a function definition. I’d like to write something like:
deriveMyClass ''MyType 'myDef
and then have deriveMyClass
call reify
on both MyType
to get type information and myDef
to get information about that particular function definition.
My understanding is that reify
currently doesn’t provide function definitions because of lack of interest (not because of some fundamental limitation). Is that true? How hard would it be to add that? I’m fine if this only works for locally defined functions.
Thanks!