Skip to content
This repository was archived by the owner on Apr 25, 2020. It is now read-only.
This repository was archived by the owner on Apr 25, 2020. It is now read-only.

When using stack with lts-10.x, -Werror causes ghc-mod browse to not look for dependencies #924

@davidspies

Description

@davidspies

I created a stack project with two modules Lib and Dep; Lib imports Dep. I added ghc-options: -Werror to the cabal file.

Lib is in exposed-modules
Dep is in other-modules

Trying to use ghc-mod browse I get

$ ghc-mod browse Lib
EXCEPTION: browse:
           These modules are needed for compilation but not listed in your .cabal file's other-modules: Dep
           
           Failing due to -Werror.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions