diff --git a/ghc/compiler/simplCore/Simplify.lhs b/ghc/compiler/simplCore/Simplify.lhs index b08bd2a7f1a02d09d553246eccff814ebcb42c3b..758d7a32608d373f976c7fcc1a310d5124f76fd0 100644 --- a/ghc/compiler/simplCore/Simplify.lhs +++ b/ghc/compiler/simplCore/Simplify.lhs @@ -930,7 +930,7 @@ simplNonRec env binder@(id,occ_info) rhs body_c body_ty simpl_bind env rhs | try_let_to_case && will_be_demanded && (rhs_is_bot || - not rhs_is_whnf && + not rhs_is_whnf && -- Don't do it if RHS is a constr applicn singleConstructorType rhs_ty -- Only do let-to-case for single constructor types. -- For other types we defer doing it until the tidy-up phase at