[GHC] #14685: Pragma to reset language extensions in module header

GHC ghc-devs at haskell.org
Fri Jan 19 09:30:02 UTC 2018


#14685: Pragma to reset language extensions in module header
-------------------------------------+-------------------------------------
        Reporter:  mgsloan           |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by hvr):

 *Sigh* We don't need the overkill of a new pragma; we'd just need
 something like `{-# OPTIONS_GHC -X #-}` which resets any `-X...` flags set
 before the compiler encounters the `-X` flag via `OPTIONS_GHC` ; just like
 `-i` resets all include paths.

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


More information about the ghc-tickets mailing list