[commit: ghc] master: Tidy up the segmentation of mdo expressions (59d6942)

Simon Peyton Jones simonpj at microsoft.com
Mon Jun 24 19:03:17 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/59d6942f6399de9cdb444e84f721078881c1deee

>---------------------------------------------------------------

commit 59d6942f6399de9cdb444e84f721078881c1deee
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Jun 21 17:38:09 2013 +0100

    Tidy up the segmentation of mdo expressions
    
    When we changed 'rec' to *not* do segmentation of any kind,
    I did it by meddling with the inner loop of grab in glomSegments.
    But that is really hard to understand!
    
    This patch lifts the test out to the top where is is clear.

 compiler/deSugar/DsExpr.lhs |   3 +-
 compiler/rename/RnExpr.lhs  | 165 +++++++++++++++++++++++++-------------------
 2 files changed, 94 insertions(+), 74 deletions(-)


Diff suppressed because of size. To see it, use:

    git show 59d6942f6399de9cdb444e84f721078881c1deee



More information about the ghc-commits mailing list