Skip to content
  • Simon Peyton Jones's avatar
    [project @ 2005-01-04 16:26:55 by simonpj] · a27f7c87
    Simon Peyton Jones authored
    ------------------
              Fix an mdo bug
      	------------------
    
    Embarassingly, this bug makes GHC either panic (for some programs) or
    go into a loop (on others) in a recursive mdo that involves a
    polymorphic function.  Urk!
    
    The fix is twofold:
      a) add a missing bindInstsOfLocalFuns to tcStmtAndThen (RecStmt case)
      b) bind the correct set of variables in dsRecStmt
    
    I added some explanatory comments about RecStmt in HsExpr too.
    
    The tests is mdo/should_compile/mdo006
    a27f7c87