Skip to content

Hackage incorrect about -Wall -Werror check. #1088

@turion

Description

@turion

I just tried to upload this package: https://github.com/turion/rhine/blob/4a90c5f2abd72de6122652dfd821f0c295cd4ef6/rhine/rhine.cabal

It is configured with:

  ghc-options:         -W
                       -Wno-unticked-promoted-constructors
                       -Werror

In particular, it does not have -Wall. Still, I get the following error:

Error: Invalid package

'ghc-options: -Wall -Werror' makes the package very easy to break with future
GHC versions because new GHC versions often add new warnings. Use just
'ghc-options: -Wall' instead. Alternatively, if you want to use this, make it
conditional based on a Cabal configuration flag (with 'manual: True' and
'default: False') and enable that flag during development.

This seems to be a bug in hackage. At the very least, the error message should point only at -Werror. Or, the configuration -W -Werror should be allowed (since it does not break so quickly as -Wall -Werror).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions