Skip to content

Support for GHC version (range) specific flags. #564

Open
@merijn

Description

@merijn

When using -Werror on CI, the fact that warning flags change over time can lead to issues where code cannot be warning free across all supported versions. A solution is to toggle of certain warnings for specific GHC versions, but currently there is no way to specify --local-ghc-options for only some GHC versions.

The missing-methods warning is currently special-cased via cfgErrorMissingMethods, it would be nice if we could generalise this to specify "GHC flags per version range".

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