RE: Adding rules in a plugin?

2016-02-11 Thread Simon Peyton Jones
Correct. I’ve added more comments. From: ghc-devs [mailto:ghc-devs-boun...@haskell.org] On Behalf Of Conal Elliott Sent: 10 February 2016 18:17 To: ghc-devs@haskell.org Subject: Re: Adding rules in a plugin? More study of GHC source code answered my question: when I generate a rule, set ru_auto

Re: Adding rules in a plugin?

2016-02-10 Thread Conal Elliott
More study of GHC source code answered my question: when I generate a rule, set ru_auto to False rather than True, so that findExternalRules won't delete the rule. On Tue, Feb 9, 2016 at 6:47 PM, Conal Elliott wrote: > I'm writing a GHC plugin that generates new rules. The top-level > identifier