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
Auto-implicits don't show up in :doc #3264
Comments
@arianvp Thanks for the issue report. IdrisDoc was a contributed feature of Idris, as part of a Student Project. It is my understanding that the scope of the project was purposefully constrained. An understandable notion, so it is possible that auto implicit were not added. I think that all labelled documentation should be present. I shall have a quick look today to see if I can fix it, otherwise: PRs welcome! |
So, from a cursory glance something interesting is happening with Idris and implicits. I have filed an Issue in #3266. This may or may not be the cause of auto implicit documentation not being displayed. I am still investigating the problem. I hope this hasn't caused too much issue in your workflow. However, for those interested in this issue, here is a small MFE: module IdrisDocIssue
import Data.List
%default total
||| A foobar with an auto implicit
data Foobar : Type where
||| New Foo
|||
||| @xs Some `xs`
||| @ys Some `ys`
||| @prf1 A prf
NewFoo : (xs : List String)
-> (ys : List Nat)
-> {auto prf : NonEmpty ys}
-> Foobar |
There seems to be a case missing in the showing of arguments. Will try and fix if possible. |
There is a PR #3267 that fixes IdrisDoc to print documentation for auto implicits. This issue should auto close once the PR has been merged. |
Fixes #3264 Show auto implicit documentaton in Idris Doc.
Thanks a bunch! |
Idris Version: 0.12
Given the following datatype:
Expected behaviour of
:doc
:Actual behaviour:
The text was updated successfully, but these errors were encountered: