-
Notifications
You must be signed in to change notification settings - Fork 18
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
Indented root layout not supported? #56
Comments
I'm pretty sure that's just invalid syntax. Top-level declarations cannot be indented. |
It compiles fine though? |
This syntax was definitely supported originally because we allowed multiple modules per file, so you'd have like module X where
def1 :: ...
module Y where
def2 :: ... so it may have been preserved since then in the main compiler. |
I wouldn't recommend writing code this way as it's completely unnecessary (I personally think some kind of syntax error is appropriate), but if the main compiler supports it, we probably should as well. |
purs-tidy check src/M.purs
replies withThe text was updated successfully, but these errors were encountered: