[GHC] #8025: -fno-code and Template Haskell are incompatible

GHC ghc-devs at haskell.org
Wed Aug 23 12:48:03 UTC 2017


#8025: -fno-code and Template Haskell are incompatible
-------------------------------------+-------------------------------------
        Reporter:  mojojojo          |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Compiler (Type    |              Version:  7.6.3
  checker)                           |
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:  x86
 Type of failure:  Incorrect         |            Test Case:
  warning at compile-time            |
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D3441
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Saizan):

 This is great, but in some cases generating code for all the imported
 modules is too much.

 Would it make sense to have {-# OPTIONS_GHC -fobject-code #-} change the
 HscTarget for the module, so that authors can fine-tune for which modules
 code needs to be generated? (together the old behavior of -fno-code, I
 mean)

 Currently having that pragma seems to have no effect.

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


More information about the ghc-tickets mailing list