[GHC] #11172: Turning on optimisations produces Impossible case alternative