[GHC] #13918: No "warning: [-Wunrecognised-pragmas] Unrecognised pragma" when there is no name of pragmas

GHC ghc-devs at haskell.org
Mon Jul 3 20:36:17 UTC 2017


#13918: No "warning: [-Wunrecognised-pragmas] Unrecognised pragma" when there is no
name of pragmas
-------------------------------------+-------------------------------------
        Reporter:  vanto             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  error/warning at compile-time      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by j.waldmann):

 What do think is the error here?

  An individual language pragma begins with the keyword LANGUAGE and is
 followed by a comma-separated list of named language features

 https://www.haskell.org/onlinereport/haskell2010/haskellch12.html#x19-19100012.3

 This list can be empty (it does not say otherwise), so `{-# LANGUAGE #-}`
 is fine.

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


More information about the ghc-tickets mailing list