Skip to content

cabal new-repl target1 target2 shouldn't bring up GHCi prompt twice #3659

Closed
@ezyang

Description

@ezyang

When I run cabal new-repl with two targets, what it does is first bring up GHCi for the first target, and then the second target, UNLESS they are both targets from the same package, in which case only one target is brought up.

There are some relevant TODOs in the code in elaboratePackageTargets:

        --TODO: instead of listToMaybe we should be reporting an error here
        replTargets   = listToMaybe
                      . nubComponentTargets
                      . map compatSubComponentTargets
                      . concatMap elaborateReplTarget
                      $ targets

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions