-
Notifications
You must be signed in to change notification settings - Fork 338
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
Library (.agda-lib
) files below the project root
#5644
Comments
Yep, I agree that this is a bug. We should probably have a check that the root of the hierarchy of top-level modules corresponds to the location of the .agda-lib file. |
That would mean that you could not have the source files in a subdirectory (like |
.agda-lib
) files below the project root
I suggested a further change (#6465). |
I noticed that one part of the documentation should be updated: agda/doc/user-manual/tools/interface-files.rst Lines 31 to 34 in f926e3d
|
Please open a new issue for this. We should proceed with the release now. Documentation shortcomings don't count as release-blockers at this stage. |
I have already created a pull request. |
Consider the following situation:
top.agda-lib
, and no other files:A
contains the fileB.agda
:Would you expect Agda to complain if you run
agda A/B.agda
in the top-level directory? I would have hoped so, but that is not necessarily the case. See what happens if the directoryA
containsB.agda
and the empty filesneaky.agda-lib
(and no other files):In this case the module name of
A.B
suggests to me that any.agda-lib
files for this module should be in a parent directory ofA
. I consider the current behaviour to be a bug.The text was updated successfully, but these errors were encountered: