Recursive module imports cause confusing error messages
Consider the following module M
:
module M where
import M
Compiling this module with PAKCS 3.2.0 (or 3.4.1-b6) causes the following error message, which does not point towards the actual error:
Error:
Could not inspect modification time of file
".curry/pakcs-3.2.0/M.icurry"
ERROR occurred during parsing!
Interestingly, there seems to be an error message especially for this case in errCyclicImport
in the Interfaces
module, but for some reason, the error errModificationTime
from the CurryBuilder
module is reported instead.