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

GHC cvs-ghc at haskell.org
Thu Oct 25 18:28:47 CEST 2012


#3647: unify handling and error messages for -X vs. {-#LANGUAGE ...#-}
pragmas/extensions
--------------------------------+-------------------------------------------
  Reporter:  eflister           |          Owner:  igloo                                           
      Type:  feature request    |         Status:  new                                             
  Priority:  normal             |      Milestone:  7.6.2                                           
 Component:  Compiler (Parser)  |        Version:  6.10.4                                          
Resolution:                     |       Keywords:  language pragma extensions error message warning
        Os:  Unknown/Multiple   |   Architecture:  Unknown/Multiple                                
   Failure:  None/Unknown       |     Difficulty:  Unknown                                         
  Testcase:                     |      Blockedby:                                                  
  Blocking:                     |        Related:                                                  
--------------------------------+-------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown


Comment:

 The main problem I find with "-XFoo" is that you can't easily select it
 just by double clicking on it. That means that if you want to put it into
 a LANGUAGE pragma then you have to manually select everything apart from
 the X.

 What do people think about allowing "-X Foo" as a command-line flag, and
 then using that form in error messages?

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



More information about the Glasgow-haskell-bugs mailing list