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.

ghc-mod fails in a multi-package stack project #787

@simonmichael

Description

@simonmichael

ghc-mod check FILE in the root of a multi-package stack project doesn't detect the stack package db.

$ ghc-mod check hledger-lib/Hledger/Read/JournalReader.hs
hledger-lib/Hledger/Read/JournalReader.hs:101:8:Could not find module ‘Hledger.Data’�Use -v to see a list of the files searched for.
hledger-lib/Hledger/Read/JournalReader.hs:102:8:Could not find module ‘Hledger.Utils’�Use -v to see a list of the files searched for.
$ ghc-mod debug
Root directory:       /Users/simon/src/hledger
Current directory:    /Users/simon/src/hledger
GHC Package flags:
    -i/Users/simon/src/hledger -i/Users/simon/src/hledger
    -global-package-db -user-package-db -Wall
GHC System libraries: /usr/local/Cellar/ghc/7.10.3b/lib/ghc-7.10.3
GHC user options:
$ ghc-mod --version
ghc-mod version 5.5.0.0 compiled by GHC 7.10.3

It works if I cd into any of the package directories.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions