Skip to content

GHCI error message is unclear when passing option-like settings to GHCI #3342

Closed
@mgsloan

Description

@mgsloan

From https://stackoverflow.com/questions/45640896/how-to-pass-stack-ghci-rts-options

$ stack ghci -- Main.hs +RTS -M20M
Cannot use 'stack ghci' with both file targets and build targets

Issue is that it is doing the check for having both file and package targets without parsing the build targets. Instead, would be good to fail with a target parse error + a suggestion to use --ghci-options

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions