haskell-src-exts v1.6.1 Release Notes

    • Operators defined on the form

      (a op b) c = ...

    could not be handled by the (annotated) AST, nor the parser. I had to change the definition of the AST node for InfixMatch to allow a list of right-hand subpatterns, i.e.

     InfixMatch l (Pat l) (Name l) (Pat l) ...
    

    has become

     InfixMatch l (Pat l) (Name l) [Pat l] ...
    

    I also had an epiphany and fixed the issue that would arise with exact printing of prefix definitions including parentheses, so that now works too!

    ** 1.6.x