Port precedence fix from Haskell compiler