[GHC] #10577: Use empty cases where appropriate when deriving instances for empty types