Skip to content

cabal new-run silliness #5243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yav opened this issue Mar 30, 2018 · 2 comments
Closed

cabal new-run silliness #5243

yav opened this issue Mar 30, 2018 · 2 comments

Comments

@yav
Copy link

yav commented Mar 30, 2018

I have a cabal package that defines a library and executable. Not surprisingly, they have the same name. Here is what happens when I try to use cabal new-run with it:

$ cabal new-run cryptol
cabal: Ambiguous target 'cryptol'. It could be:
exe:cryptol (component)
lib:cryptol (component)

It doesn't really make sense to run a library (and Cabal knows that, as it reports an error if you try to do so), so new-run should only consider the executable targets and filter out the rest.

@23Skidoo
Copy link
Member

/cc @fgaz

@fgaz
Copy link
Member

fgaz commented Mar 31, 2018

Duplicate of #4676

@fgaz fgaz closed this as completed Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants