#5744: List layouts
---------------------------------+------------------------------------------
    Reporter:  nsch              |       Owner:  nsch            
        Type:  feature request   |      Status:  new             
    Priority:  normal            |   Milestone:                  
   Component:  Compiler          |     Version:  7.2.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by ehird):

 Forgot to add:

 As far as desugaring goes, I would suggest that it reorder the expressions
 (including flattening nested `mdo`s) to be right-associative, and to avoid
 `mappend`ing things with `mempty`, e.g.

 {{{
 mdo { }                      ≡ mempty
 mdo { a }                    ≡ a
 mdo { mdo { as... }; bs... } ≡ mdo { as...; bs... }
 mdo { a; as... }             ≡ a `mappend` mdo { as... }
 }}}

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