Runnig a compiler plugin over ALL code

2022-02-09 Thread Tillmann Vogt via ghc-devs
Hi, I am running a compiler plugin over hundreds of libraries to extract statistical data. I use the plugin like it is done here: https://github.com/coot/ghc-tags-plugin So I just have to add a cabal.project.local to a library with: ignore-project: False package test     ghc-options:

Re: Determine instance method from class method callsite

2017-10-19 Thread Tillmann Vogt via ghc-devs
I have the same problem with a compiler plugin that I am writing. In GHC Core I need to get from a dict-fun identifier (e.g. $fMyClassDouble to the type class instance bindr (starting with $c). lookupInstEnv from the InstEnv module seemed to do it, but it seems to look up the matching key