[GHC] #11179: Allow plugins to access "dead code"

GHC ghc-devs at haskell.org
Sat Feb 4 02:27:24 UTC 2017


#11179: Allow plugins to access "dead code"
-------------------------------------+-------------------------------------
        Reporter:  lerkok            |                Owner:
            Type:  feature request   |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #10823            |  Differential Rev(s):  Phab:D3073
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nomeata):

 ha, here is a hack to keep things alive:

 {{{
 module Test () where
 foo = foo
 {-# RULES "keeps foo alive" id foo = foo #-}
 }}}

 I will try revise Phab:D3073 with a nicer approach, but for people stuck
 with older versions of GHC, this is might help.

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


More information about the ghc-tickets mailing list