Skip to content

Access to "default component" #1777

Open
@shlevy

Description

@shlevy

If I do cabal repl or cabal build in the root of a project, cabal will select a default component. It would be nice if this component were available from Nix on the project value.

I believe the heuristic is to choose the cabal package in the same dir as cabal.project (if any), then choose its lib component or its first exe if none. But I haven't verified this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpreservedKeep stale bot away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions