Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make IdrisDoc namespace tracing strict #1099

Open
PhilipBorgesen opened this issue Apr 22, 2014 · 0 comments
Open

Make IdrisDoc namespace tracing strict #1099

PhilipBorgesen opened this issue Apr 22, 2014 · 0 comments

Comments

@PhilipBorgesen
Copy link
Contributor

IdrisDoc is not strict enough when it comes to tracing which namespaces should be included in the generated documentation.
An example is the idrisdoc004 test (pull request #1103) where [builtins] and in turn several other Prelude package namespaces are included, although no visible reference is made to them.

I believe it is caused by the 'extractPTermNames' function found in Idris.IdrisDoc, which is too greedy in its tracing of referred namespaces. It returns the namespaces of all names recursively encountered in a PTerm. Because of a lack of understanding of what each PTerm is used for, I am not able to filter out the unnecessary cases myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants