Skip to content
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

Unhandled parse error when module is followed by anything but a list #7246

Open
phagenlocher opened this issue Nov 26, 2024 · 0 comments
Open
Labels
good first issue Good for newcomers

Comments

@phagenlocher
Copy link

── UNHANDLED PARSE ERROR in Test.roc ───────────────────────────────────────────

I got stuck while parsing this:

1│  module foo []
           ^

Here's the internal parse problem:

    ListStart(@7)

Unfortunately, I'm not able to provide a more insightful error message
for this syntax problem yet. This is considered a bug in the compiler.

Note: If you'd like to contribute to Roc, this would be a good first issue!

Contents of Test.roc:

module foo []

It would be nice if the parser specified that the module keyword must be followed by a list of exports.

@Anton-4 Anton-4 added the good first issue Good for newcomers label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants