#2798: Enable "rec" keyword when RecursiveDo is enabled?
---------------------------------+------------------------------------------
    Reporter:  nominolo          |        Owner:                  
        Type:  task              |       Status:  new             
    Priority:  high              |    Milestone:  6.12.1          
   Component:  Compiler          |      Version:  6.11            
    Severity:  minor             |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by simonmar):

 We (Simon & Simon) think the ideal state of affairs would be:

   * Allow `rec` in `do` (as Ross intended)
   * Deprecate `mdo`

 as far as flags go, there are two options:

   * have the existing `RecursiveDo` flag enable the new `rec` syntax, and
 deprecate the use of `mdo`.  Eventually `mdo` would be removed as a
 keyword.

   * Define a new extension, e.g. `DoRec` for the new `rec` keyword, and
 deprecate the old `RecursiveDo` extension.

 The second approach has the benefit that we can identify obsolete code on
 Hackage without trying to compile it, but it means having two similarly-
 named extensions which could lead to confusion.

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

Reply via email to