[GHC] #10246: Literal Pattern match loses order