Skip to content
  • Simon Peyton Jones's avatar
    Improve exprIsCheap · 25ce05f7
    Simon Peyton Jones authored
    exprIsCheap is meant to return True iff it's ok to push the expression
    inside a lambda.  But the previous version would return True of a nested
    construtor application like (1:2:3:[]), which isn't right.
    
    This patch re-factors the code somewhat, and fixes the bug.
    25ce05f7