Skip to content

How to enable warnings? #95

Closed
Closed
@neongreen

Description

I want warnings to be enabled on Travis but I don't to impose -Werror upon all my users – only Travis. How should I modify the generated travis.yml? I tried modifying the last invocation of cabal new-build, but it enabled warnings for all dependencies too, not just for my library (build log):

  # build & run tests, build benchmarks
- - cabal new-build -w ${HC} ${TEST} ${BENCH} all
+ - cabal new-build --ghc-options=-Werror -w ${HC} ${TEST} ${BENCH} all

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