Anonymous top module confuses Agda #1388
Labels
modules
Issues relating to the module system
parser
Problems with the parser's implementation (rather than with decisions about syntax)
regression on master
Unreleased regression in development version (Change to "regression in ..." should it be released!)
type: bug
Issues and pull requests about actual bugs
Milestone
As expected, true is not in scope when trying to bind it to 'test':
However, if I delete the top-level anonymous module header, it is:
I would expect a parse error, as first stuff is indented, and then not.
However, it seems to be legal Agda:
This parses: you can indent in the top module, then unindent. But if you
indent again, you get a parse error!?
Note that this is not allowed in inner modules!
My opinion: Also in the top level module, if you start indented, you need to
continue indented. There should not be a special treatment of the top module
other than you can omit the indentation altogether.
Original issue reported on code.google.com by
andreas....@gmail.com
on 8 Dec 2014 at 2:34The text was updated successfully, but these errors were encountered: