You only have to enable `TemplateHaskellQuotes` to use this. What's your reason for not wanting to use Template Haskell?
Your general question is, how do I get a representation of this Haskell identifier which I have in scope which I want to persist into the future stage. The answer to this question of representation is to use Template Haskell in general as that is precisely the role of quotation. Cheers, Matt On Mon, Feb 18, 2019 at 8:17 AM Spiwack, Arnaud <[email protected]> wrote: > > >> I described another way to do it in the second paragraph of the email. >> Does that not work? > > > It probably does. But it doesn't seem better since I don't have template > haskell to begin with. So I'd intuitively go for the other findImportedModule > method. Do you think I should rather use the Template Haskell method? If so > why? > > I'm approaching this very naively: it's my first plugin, and I'm discovering > all these things as I go. So I'm very curious as to what your opinion, and, > more generally, the community's opinion is. > > /Arnaud _______________________________________________ ghc-devs mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
