Pre-Proposal: Introspective Template Haskell

Richard Eisenberg eir at
Wed Nov 11 20:03:45 UTC 2015

On Nov 11, 2015, at 2:25 PM, Edward Kmett <ekmett at> wrote:
> As a data point, in a couple of packages I wind up forced into using mkNameG_v and mkNameG_tc in order to avoid incurring a dependency on a stage2 compiler today. Removing them would force me to drop support for stage1-only platforms offered by some linux distributions. 
> If you're going to drop support for it, please consider offering me some horrible back door to get at the functionality that I can't currently replace by other means.

I've had to use these functions, too, mostly because TH didn't export the functionality I needed. But this wouldn't be problematic in the new scenario: just depend on the ghc package instead of template-haskell. Then you can do whatever you like. :)

> -Edward

More information about the ghc-devs mailing list