[GHC] #3647: unify handling and error messages for -X vs. {-#LANGUAGE ...#-} pragmas/extensions

GHC trac at galois.com
Mon Nov 9 07:04:34 EST 2009


#3647: unify handling and error messages for -X vs. {-#LANGUAGE ...#-}
pragmas/extensions
--------------------------------------------------------------+-------------
 Reporter:  eflister                                          |          Owner:                  
     Type:  feature request                                   |         Status:  new             
 Priority:  normal                                            |      Milestone:                  
Component:  Compiler (Parser)                                 |        Version:  6.10.4          
 Severity:  trivial                                           |     Resolution:                  
 Keywords:  language pragma extensions error message warning  |       Testcase:                  
       Os:  Unknown/Multiple                                  |   Architecture:  Unknown/Multiple
--------------------------------------------------------------+-------------
Comment (by duncan):

 By all means improve the error message but please do not extend the
 LANGUAGE pragma syntax. It means every other compiler and tool that has to
 know about the pragma must also be extended (and in a rather quirky way).
 Standards are a good thing! :-)

 Perhaps we can get ghc's error messages to suggest LANGUAGE pragmas rather
 than the ghc -XBlah style.

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


More information about the Glasgow-haskell-bugs mailing list