-
Notifications
You must be signed in to change notification settings - Fork 337
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
Allow files without top module #953
Comments
Allows either omitting the top-level module or defining it as Original comment by
|
After the patches, the following module doesn't type-check:
Original comment by
|
Original comment by
|
That's by design. Put a space before the where. The top-level is now in a layout context, which makes the syntax more consistent than before (you couldn't write a local module like that before). Original comment by
|
I admit that dropping the module header altogether did not pass the test of time. It makes recognizing the top-level module too context-dependent. Omitting the name and writing |
For throw-away Agda files, I would like to be able to omit the
top-level module declaration.
Use cases:
If no module name is encounterd before the first non-import statement, just the (unqualified) file name is taken as module name.
Original issue reported on code.google.com by
andreas....@gmail.com
on 12 Nov 2013 at 1:59The text was updated successfully, but these errors were encountered: