[GHC] #10970: Built in MIN_VERSION macro support

GHC ghc-devs at haskell.org
Tue Oct 27 17:51:43 UTC 2015


#10970: Built in MIN_VERSION macro support
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.11
      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:D1349
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by ezyang):

 The big problem is that, if you do this, you effectively force GHC to dump
 the ENTIRE package database into a giant header file, which defines each
 of the macros. The bigger the database, the bigger the file. I'm not
 fundamentally opposed, but this was the reason this draft didn't do it
 that way.

 I think Duncan also has some ulterior motives for not enabling it by
 default, mostly to get people to use proper setup dependencies on their
 Cabal files.

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


More information about the ghc-tickets mailing list