Skip to content
  • Facundo Domínguez's avatar
    Implement TH addCorePlugin. · 17558690
    Facundo Domínguez authored and Ben Gamari's avatar Ben Gamari committed
    This allows template-haskell code to add plugins to the compilation
    pipeline. Otherwise, the user would have to pass -fplugin=... to ghc.
    
    For now, plugin modules in the current package can't be used. This is
    because when TH runs, it is too late to let GHC know that the plugin
    modules needed to be compiled first.
    
    Test Plan: ./validate
    
    Reviewers: simonpj, bgamari, austin, goldfire
    
    Reviewed By: bgamari
    
    Subscribers: angerman, rwbarton, mboes, thomie
    
    GHC Trac Issues: #13608
    
    Differential Revision: https://phabricator.haskell.org/D3821
    17558690