Skip to content

Inconsistent --ghc-options effect #3485

Open
@cblp

Description

@cblp

--ghc-options overrides ghc-options in component configuration but doesn't override OPTIONS_GHC in the module.

When I want to test my package, I run stack test --pedantic.
When I want to disable some warnings for a single module, I put OPTIONS_GHC in it.
When I want to disable some warnings for a single component, I can't do this! Component configuration can't override command-line options!

$ stack --version
Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e (4861 commits) x86_64 hpack-0.17.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions