#1628: warning(s) for using stolen syntax that's not currently enabled
-----------------------------+----------------------------------------------
 Reporter:  Isaac Dupree     |          Owner:         
     Type:  feature request  |         Status:  new    
 Priority:  low              |      Milestone:  _|_    
Component:  Compiler         |        Version:  6.6.1  
 Severity:  normal           |     Resolution:         
 Keywords:                   |     Difficulty:  Unknown
 Testcase:                   |   Architecture:  Unknown
       Os:  Unknown          |  
-----------------------------+----------------------------------------------
Comment (by Isaac Dupree):

 I meant, when your code doesn't have `-XExtension` enabled, warn when the
 enabling of `-XExtension` would change/break the meaning of your code (at
 least on the lexical level).  You're probably right that it's difficult to
 implement --> milestone `_|_`.  I suppose could involve running the lexer
 twice with different flags and seeing if the results are the same.  Maybe
 something more reasonable for a GHC API client to do?..

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1628#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to