The default haskell-mode rules would result in an extra } appended to the closing pair (#5448). Fix: #5448 Close: #5450