Skip to content

Should warn about overlapping "hs-source-dirs" #3575

@mgsloan

Description

@mgsloan

The logic should be that if a package component declares a dependency on a library or sub-library in the package, then hs-source-dirs should not overlap. This is because imports that occur within the executable / test-suite / benchmark / sub-library etc will instead recompile the code, which is a waste.

It also potentially has other negative effects - #3109 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions