Skip to content

Please give some way to disable specific cabal warnings... #7286

Closed
@ekmett

Description

@ekmett

... or at least suppress the : in package name and phantom internal version bound ones.

Describe the bug
cabal 3.4 makes it possible (nay, necessary) to use : in some package names.

However, as of 3.4.0.0: this results in a veritable flood of

Warning: unlifted.cabal:55:27: colon specifier is experimental feature (issue
#5660)

notifications.

Similarly, there appears to be phantom internally made up constraints on any internal library you build:

Warning: The package has an extraneous version range for a dependency on an
internal library: unlifted:{core, def, reps} ((>=0 && ==0) && ==0) && ==0,
unlifted:core ((>=0 && ==0) && ==0) && ==0. This version range includes the
current package but isn't needed as the current package's library will always
be used.

There's no way to suppress these either. In my current project I get something like 100k worth of build spam output... from just these two warnings alone.

To Reproduce
Steps to reproduce the behavior:

git clone https://github.com/ekmett/unlifted.git
cd unlifted
git checkout 09b4b1d037fff2
cabal build

with ghc 9.0.1 and cabal 3.4.0.0-rc4 (or rc7)

Expected behavior
I'd like to see the actual build messages and real errors.

System information

  • OSX
  • cabal 3.4.0.0-rc4, cabal 3.4.0.0-rc7, cabal 3.4.0.0
  • ghc 9.0.1

Additional information
I expect to increase the amount of backpack usage in the project 10-fold, which will result in about a megabyte of logs spewed to my screen in the current configuration.

[updated with cabal 3.4.0.0 final release, which didn't change the situation.]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions