Skip to content
  • Simon Peyton Jones's avatar
    A much nicer solution for typechecking ApplicativeDo · 254bc335
    Simon Peyton Jones authored
    This patch improves the code for TcMatches.tcApplicativeStmts;
    see the suggestion in Trac #13242 comment:9.
    
    I now use (mapM goArg args) rather than a CPS-style fold.  The
    result is less code, easier to understand, and automatically
    fixes the original problem in Trac #13242.
    
    See Note [ApplicativeDo and constraints].
    254bc335