Skip to content

Merge produces infix* statemtents where operators lack parens #10

@sgraf812

Description

@sgraf812

The same repro as in #9 (https://github.com/dnlkrgr/hsreduce/files/5688386/repro.zip) leads to this syntax error:

infixl 4
!<**<*+<*%<*$>>>>, !<%+>, ?<$+<@@>>, <<@<<~~>>, <<&#<&@>>, <<@>>, <<$>>, <<#<>, <<^&<$!>>

(!<**<*+<*%<*$>>>>) :: ...

Note the lack of parentheses around operators. Edit: Urg, I apparently don't know Haskell syntax. There shouldn't be any parens around the ops in a fixity declaration. Nevertheless, the fixity declaration there doesn't parse! It's because of the line break between infixl 4 and the list of ops.

Also those operators are entirely imaginary! I think the original operators are in Data.Massiv.Array.Ops.Slice and those are nowhere near as convoluted as the above. But maybe that's intentional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions