-
Notifications
You must be signed in to change notification settings - Fork 181
Use consistent notation for complexity annotation #729
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
Conversation
One of these modules somewhere uses MathJax. Let's make them all do that. |
Look how all the math is formatted in |
Oh yeah. That does look nicer! I'd argue that this is a different issue than what this PR was about though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two more tweaks, otherwise LGTM.
If that's the convention going forward, I might as well make these particular annotations conform to it now |
I wouldn't mind. I don't currently volunteer to update the remaining annotations though. |
Could you share another screenshot, @alexfmpe? I think you're somehow using fewer backslashes than the annotations in Here are the docs BTW: https://haskell-haddock.readthedocs.io/en/latest/markup.html#mathematics-latex |
Good catch, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gorgeous! Many thanks! :)
I've made #731 where we can track the remaining annotations to convert. |
Why did the complexity info move? |
That was my idea. It's much longer now, so it would have distracted from the function description if we had kept it in the old spot. |
We need a good and consistent approach to that. As I recall, @m-renaud wants it always at the bottom. I'm skeptical about that, because the complexity of an operation seems like one of the most important things to know about it. But it's also true that a long complexity statement before the basic info about what an operation does is problematic. So I dunno. |
Putting it consistently at the bottom (above the A closed PR doesn't seem like a good place to discuss this further though. Consider opening an issue? |
I was actually thinking about this the other day, we have the |
Fix #722