[GHC] #9378: Make unknown LANGUAGE pragmas a warning, not an error

GHC ghc-devs at haskell.org
Tue Jul 29 14:03:05 UTC 2014


#9378: Make unknown LANGUAGE pragmas a warning, not an error
-------------------------------------+-------------------------------------
              Reporter:  goldfire    |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Compiler    |          Version:  7.8.2
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by hvr):

 Well, then there's the other thing that turning such a pragma into warning
 is in conflict with the
 [https://www.haskell.org/onlinereport/haskell2010/haskellch12.html#x19-19100012.3
 Haskell 2010 Report] stating explicitly that:

 > If a Haskell implementation does not recognize or support a particular
 language feature that a source file requests (or cannot support the
 combination of language features requested), any attempt to compile or
 otherwise use that file with that Haskell implementation **must fail with
 an error**.

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


More information about the ghc-tickets mailing list