Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ rec {
'';
postInstall = ''
cp -r latex/ Makefile typecheck.time $out
sh checkTypeChecked.sh
sh checkTypeChecked.sh -m
'';
extraExtensions = [ "hs" "cabal" "py" ];
};
Expand Down
6 changes: 4 additions & 2 deletions src/checkTypeChecked.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ echo "Checking that all Agda files have been typechecked..."
for agdaFn in $(find . -name '*.*agda'); do
agdaiFn="_build/2.7.0/agda/${agdaFn%.*agda}.agdai"
if [ "$(( $(stat -c "%Y" $agdaiFn) - $(stat -c "%Y" $agdaFn) ))" -lt "0" ]; then
echo " FAIL: $agdaiFn is not up-to-date"
if [ "$1" = "-m" ]; then
echo " FAIL: $agdaiFn does not exist. Please remove the corresponding agda file or import it somewhere, e.g. from the Everything module."
fi
exit 1
fi
done
echo " PASS: all Agda files have been typechecked"
echo " PASS: all Agda files have been typechecked."