Skip to content

Precedence of negation and sigma/exists syntax #1635

@MatthewDaggitt

Description

@MatthewDaggitt

As pointed out by @jamesmckinna when trying to update PFLA to use v1.7 of the library (analysis below is his), currently you can't use ¬_ from Relation.Nullary and ∃[ A ] B syntax (i.e. ∃-syntax) from Data.Product without bracketing because the precedences are the wrong way around:

infix 2 ∃-syntax

So you can't write ¬ ∃[ A ] B. The reason that it broke from v1.3 to v1.7 is that the fixity of the ∃-syntax was first added by @Taneb in a0b06ba

So it looks like we need to switch the precedences somehow (Σ-syntax included). Anyone have any thoughts? We should probably have a look at what else has precedences in at the 2/3/4 level...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions