[GHC] #10176: Invalid core generated with GHC 7.10 RC3