[GHC] #13921: LANGUAGE pragma is accepted in module body

GHC ghc-devs at haskell.org
Tue Jul 4 17:15:18 UTC 2017


#13921: LANGUAGE pragma is accepted in module body
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
  (Parser)                           |
      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 bgamari):

 I suppose it's arguably okay to treat the `LANGUAGE` pragma in this
 context as unknown and therefore ignore it. From the Report,
 >  An implementation is not required to respect any pragma, although
 pragmas that are not recognised by the implementation should be ignored.

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


More information about the ghc-tickets mailing list