Closed anuyts closed 2 years ago
Everything is not supposed to be in src
. stdlib's README also won't load. but indeed there should be a better solution.
Interestingly, stdlib does not check in its Everything.agda
even though it exists. Maybe we should follow that? Indeed, their README doesn't typecheck, so I've opened https://github.com/agda/agda-stdlib/issues/1743 on the main repo to have a wider discussion.
What is the reason for the statement "Everything is not supposed to be in src
"?
because it is not useful as it just imports all files in the library. it's there just for typechecking the whole library by ci.
Indeed, stdlib does not check in Everything.agda
, it is auto-generated by GenerateEverything.hs
(which caught me out when I recently did the bulk renaming from Category.*
to Effect.*
(issue agda/agda-stdlib#1636). The status of README.agda
is indeed also anomalous, but perhaps worth considering some sort of auto-generation for your Everything.agda
... even though such an indirection then potentially disguises that dependency when global changes are made.
worth considering some sort of auto-generation for your
Everything.agda
.
It already is. it is generated by a bash oneliner.
oops... my ignorance :facepalm:
So it seems that we shouldn't check it in. I'll do that.
Closed by 8643687
Then again, type-checking Everything.agda is an easy way to check if the library works with your current Agda installation.
Otherwise it does not seem to typecheck. I get the following error message:
but I think it means that Agda has detected that the file Everything.agda is almost but not quite part of a library. It does typecheck if I move it into
src
but also if I move it to a completely different location.