[Haskell-cafe] Function code generation (Template Haskell).

Serguey Zefirov sergueyz at gmail.com
Sun Sep 18 21:50:27 CEST 2011

The task is that I have some function and I need to create another
function alongside with it. The second function is based on first one.

As a matter of fact, I already did this with Template Haskell. TH is
quite good at that task, because I can load my module in ghci and have
both functions available for experiments.

I just wondering, is it possible to use newly introduced ghc plugins
to do something like that? Could I create new functions while
inspecting defined ones? Will they be visible in ghci?

More information about the Haskell-Cafe mailing list