Skip to content

Feature request: absolute paths in ghc errors #6670

Open
@symbiont-sam-halliday

Description

ghc will report errors and warnings in files relative to the hs-source-dirs that is declared in the .cabal file. This typically results in minimal output relative to the location of the .cabal file.

However, there are many workflows where this can result in problems, especially if the user invokes cabal build from a different directory which is common in multi-project builds.

It would be good if there was a cabal.project{.local} option made available that caused cabal to construct the absolute path of hs-source-dirs prior to invoking ghc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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