[GHC] #10708: Rejection of constant functions defined using conditional pattern matching