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
@since
annotations on exports
#1629
Comments
The need for "odd syntax" gives me a lot of pause, and I think we should take more than just a few days' time thought before moving ahead with it. But I do think we annotating re-exports should somehow be possible. Does this have to happen before the ghc-internals split happens? |
We need to do something, otherwise we will regress the documentation of |
The proposed syntax looks perfectly fine to me. I can immediately understand what it means in this example, and it's also the first thing I would've tried myself if I wanted to annotate an exported entity. Indeed there's a bit of friction with the semantics of |
FWIW I'm also fine with the proposed syntax. |
I guess the original oddity is that |
Currently |
It should be possible to annotate re-exported declarations with
@since
annotations. For instance, imagine we have a moduleFoo
. In version0.2
of the package providingFoo
we might decide we want to re-exportBar.bat
fromFoo
. In order to communicate this change to the user we would want to write something like:Ideally
Foo
's documentation would then reproduce the documentation ofFoo
but with the@since
annotation saying something likeSince: 0.2 (exported from 'Bar')
.The syntax here is somewhat odd:
@since
comments in export lists must be expressed as-- ^
docstrings as the usual-- |
syntax in an export list is already used to express a docstring comment detached from any declaration.The text was updated successfully, but these errors were encountered: