A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/agda/agda/issues/7546 below:

Why do we allow empty POLARITY pragmas? · Issue #7546 · agda/agda · GitHub

What is the point of giving a POLARITY pragma without any polarities?

E.g. Agda accepts the following without warning:

postulate A : Set
{-# POLARITY A #-}

I think this should be a UselessPragma with deadcode highlighting, and those pragmas should be filtered out by the nicifier.

Consequently, the following would not trigger MultiplePolarityPragmas any more.

postulate A : Set {-# POLARITY A #-} {-# POLARITY A #-}

Internally, we could represent the collection of those pragmas as a map from names to non-empty lists of polarities.

CC: @nad


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4