[Agda] Changing import lists turns constructors into variables

Nils Anders Danielsson nad at Cs.Nott.AC.UK
Sat Feb 28 20:25:22 CET 2009


On 2009-02-26 10:54, Nils Anders Danielsson wrote:
> On 2009-02-26 00:15, Remi Turk wrote:
>>
>> Any idea how easy it would be to also make it warn about
>> pattern variables having the same name as a non-imported
>> constructor of the same type?
> 
> I think that this should be quite easy.

I have now implemented this check, and fixed two bugs in the standard
library which the check spotted for me. Thanks for the idea.

This check does not capture problems caused by removing, renaming or
misspelling a constructor, so I still think that we should check for
unreachable clauses.

-- 
/NAD


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.



More information about the Agda mailing list