haskell / haskell/cabal

Uniq the list of unknown extensions to avoid "Warning: Unknown extensions: TypeAbstractions, TypeAbstractions"

Open
#9,395 1 comment 0 reactions 0 assignees View on GitHub
newcomer: 4-small-feature re: error-message type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

When building a package with `TypeAbstractions` default extension in .cabal and my cabal version is not aware of TypeAbstractions, I'm getting

```
Warning: Unknown extensions: TypeAbstractions, TypeAbstractions,
TypeAbstractions, TypeAbstractions, TypeAbstractions, TypeAbstractions,
TypeAbstractions, TypeAbstractions, TypeAbstractions, TypeAbstractions,
TypeAbstractions, TypeAbstractions
```

probably because the `TypeAbstractions` is in a common stanza, which is then used in a dozen components in that package. It would be great if cabal just said "Warning: Unknown extensions: TypeAbstractions". (To add insult to injury, this message is repeated for each of the dozen component, but that is fine and less confusing than reporting warnings for common stanzas separately from components).

I didn't mark this as a `newcomer-one-line-change`, because it needs a test, which would have several lines.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.