[GHC] #15826: Allow registering (Source)Plugins through the GHC API

GHC ghc-devs at haskell.org
Fri Nov 2 18:04:26 UTC 2018


#15826: Allow registering (Source)Plugins through the GHC API
-------------------------------------+-------------------------------------
        Reporter:  DanielG           |                Owner:  DanielG
            Type:  feature request   |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  GHC API           |              Version:  8.7
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D5278
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * status:  new => patch
 * differential:  D5278 => Phab:D5278


Comment:

 Sigh, yes. `s/LoadedPlugin/StaticPlugin/` indeed.

 > If someone decides to use a plugin that changes the build output I don't
 see how the situation is any different for `StaticPlugin` compared to
 `LoadedPlugin`. If the plugin changes the build output it must suitably
 declare `pluginRecompile`.

 The difference I was thinking of is that a compiler session using a
 `LoadedPlugin` will recompile if a different version of the plugin in used
 (see #15492). This is accounted for in `DsUsage.mkPluginUsage`. Looking
 more closely at this, I actually suspect this logic will ensure that the
 right thing happens. However, we would need a test to know for certain.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15826#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list