Open gergoerdi opened 1 month ago
To me, it makes sense that you need the non-positivity check also in the modules that import and use the non-positive data. But I am not opposed to, by default, deactivate it, if you think it is unreasonable.
To me, it makes sense that you need the non-positivity check also in the modules that import and use the non-positive data. But I am not opposed to, by default, deactivate it, if you think it is unreasonable.
Hmm OK, so it is intentional. But then this leads to the question of is it possible to turn off positivity checking for a single datatype definition? Otherwise, the flag becomes very "infectious" on other modules.
With the classic non-positive type definition:
I was surprised that the following module then ALSO fails the positivity checker:
This fails with (note the missing source location):
Is this intentional?
(As a side note, I love "to deactivate or understand" in a warning message 😆)