#2213: Confusing flags for rewrite rules
-----------------------------+----------------------------------------------
 Reporter:  dons             |          Owner:  dons       
     Type:  bug              |         Status:  assigned   
 Priority:  normal           |      Milestone:  6.10 branch
Component:  Compiler         |        Version:  6.8.2      
 Severity:  normal           |     Resolution:             
 Keywords:  rules, warnings  |     Difficulty:  Unknown    
 Testcase:                   |   Architecture:  Unknown    
       Os:  Unknown          |  
-----------------------------+----------------------------------------------
Changes (by claus):

  * keywords:  => rules, warnings
 * cc: rules, warnings (removed)
 * cc: claus (added)

Comment:

 i ran into `-frewrite-rules` here:

 http://www.haskell.org/pipermail/glasgow-haskell-
 users/2008-June/014912.html

 the (slightly incorrectly) observed behaviour is *very* confusing:

 * `-frewrite-rules` on its own is not sufficient to enable `RULES`,
 presumably because they are discarded before they could be enabled

 * `-fglasgow-exts` on its own is sufficient, presumably because `-O`
 implied `-frewrite-rules` anyway

 imho, wanting `RULES` to be applied implies wanting them to be parsed, not
 discarded, so `-frewrite-rules` should imply all relevant language flags.
 until that is the case, the odd dependency should be documented in the
 flag reference.

 btw, i changed the odd `cc`, moving `rules, warnings` to keywords. or do
 these exist as `cc`s?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2213#comment:4>
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