Hi Sylvain, Using the output of the renamer looks good. However it doesn't seem like it contains the typeclass instances: when calling a typeclass method for a given type, the AST contains the name of the method and the type, but not the instance. Is it complicated to lookup the relevant instance from the renamer output?
Thanks, -Tristan On Wed, Aug 09, 2023 at 21:36 Sylvain Henry wrote: > Hi Tristan, > > I wouldn't do this with Core (cf inlining issue and issue associating what > you find with source syntax). > > I think you should use the output of the renamer instead. Either with a GHC > plugin using `renamedResultAction` or just by dumping the renamed AST (fully > qualified) with -ddump-rn-ast -ddump-to-file and grepping for the names you > want. > > Cheers, > Sylvain > >
signature.asc
Description: PGP signature
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs