-
Notifications
You must be signed in to change notification settings - Fork 691
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
Improve error message about stanzas #4361
Comments
@chrissound It's hard to tell because you haven't posted the whole Cabal file, but I'm guessing you did something like:
Which, apparently, the parser doesn't know how to handle. |
I just got this error, and I'm still confused about what I did wrong. |
It is trying to say that plain fields aren't allowed after stanzas? |
@chris-martin exactly that, yes And btw, the new parsec parser would emit a warning like
|
I close this, as error message is improved |
I've just added the following lines in my .cabal file:
And get an error message of:
"Stanza" is mentioned only briefly within the cabal user guide (https://www.haskell.org/cabal/users-guide/installing-packages.html). Could we add documentation for this or improve the error message?
It works correctly if I move those lines to the end of the .cabal file.
The text was updated successfully, but these errors were encountered: