[Haskell-cafe] Re: Reflective capabilities of Haskell (cont'd)

oleg at okmij.org oleg at okmij.org
Thu Mar 13 02:17:09 EDT 2008

Martin Hofmann wrote:
> Thanks a lot, this helps a bit, but access to function bodies is exactly
> what I need. 

Then perhaps you might like the method of reconstructing bodies (of
possibly compiled) functions
in the form of AST -- the template Haskell AST. The reconstructed
bodies of functions can be arbitrarily manipulated (e.g.,
_symbolically_ differentiated or algebraically simplified) and then
converted `back' to the compiled code.

More information about the Haskell-Cafe mailing list