-
Notifications
You must be signed in to change notification settings - Fork 141
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
Use the strict/lazy type synonyms for better generated documentation #628
Conversation
This indeed looks clearer! I envy the beginner who will learn Haskell with this change. :) |
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.
I wonder whether StrictByteString
should remain just ByteString
, but either way is fine for me.
@Bodigrim The issue with doing that is that |
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.
Fantastic! I've wanted to do this for some time but never got around to it. I have a couple of very minor formatting questions/suggestions.
Thanks for doing this!
Replace confusing occurrences of strict/lazy ByteString in generated documentation with the corresponding type synonyms.
45e4a55
to
fd28083
Compare
@clyring Thanks for the catches, I think I've fixed them all. |
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.
Thanks!
Replace confusing occurrences of strict/lazy ByteString in generated documentation with the corresponding type synonyms. (cherry picked from commit 7e11412)
While using qualified names such as
S.ByteString
orL.ByteString
allows for GHC to disambiguate between the strict and lazy variants, the
generated haddocks end up being quite confusing, prime examples being
fromStrict
andtoStrict
.This patch replaces such uses with the type synonyms
StrictByteString
andLazyByteString
to (hopefully) make the docs a bit clearer.