Skip to content

When a cabal file can't be found, warn that extra-deps could be the problem too#3808

Merged
mgsloan merged 1 commit intocommercialhaskell:masterfrom
MaxGabriel:warnExtraDeps
Jan 25, 2018
Merged

When a cabal file can't be found, warn that extra-deps could be the problem too#3808
mgsloan merged 1 commit intocommercialhaskell:masterfrom
MaxGabriel:warnExtraDeps

Conversation

@MaxGabriel
Copy link
Contributor

  • Also: slight refactor to use only concat instead of ++ in the error message
  • Also: mention that a package.yaml file would also be accepted
    • The code that throws this is only searching for a .cabal file, but it runs hpack on the directory immediately before that to generate a cabal file, so it's effectively looking for a package.yaml file as well

Closes #3806

Note: Documentation fixes for https://docs.haskellstack.org/en/stable/ should target the "stable" branch, not master.

Please include the following checklist in your PR:

  • Any changes that could be relevant to users have been recorded in the ChangeLog.md
  • The documentation has been updated, if necessary. [Not necessary]

Please also shortly describe how you tested your change. Bonus points for added tests!

I used stack install to install my changes, then ran that executable:

image

…roblem too.

* Also: slight refactor to use only `concat` instead of ++ in the error message
* Also: mention that a package.yaml file would also be accepted
	* The code that throws this is only searching for a .cabal file, but it runs hpack on the directory immediately before that to generate a cabal file, so it's effectively looking for a package.yaml file as well

Closes commercialhaskell#3806
@mgsloan
Copy link
Contributor

mgsloan commented Jan 25, 2018

LGTM, thanks! 👍

@mgsloan mgsloan merged commit 5660e1b into commercialhaskell:master Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confusing error message when a cabal file for an extra-dep can't be found

2 participants