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

Improve module Haddocks #1115

Merged
merged 1 commit into from
Feb 25, 2025
Merged

Improve module Haddocks #1115

merged 1 commit into from
Feb 25, 2025

Conversation

meooow25
Copy link
Contributor

@meooow25 meooow25 commented Feb 24, 2025

  • Make module Haddocks largely consistent across Set, Map, IntSet, IntMap, Seq.
  • Make public modules for each structure (e.g. Data.Map, Data.Map.Lazy, Data.Map.Strict) have similar structure and content. This means some duplication of text, but there is no way to avoid it.
  • Trim down internal module Haddocks (e.g. Data.Map.Internal) to a structure description and references. There is no need to repeat everything in the public module.
  • Add a few lines about the complexity of common operations on each set and map structure. Notably, union and intersection are mentioned with a clear description of 'm' and 'n', to reduce the chances that a reader assumes them to be tied to positions and not sizes.

(The last bit is motivated by #1110 (comment))

@meooow25 meooow25 requested a review from Lysxia February 24, 2025 14:45
Copy link
Contributor

@Lysxia Lysxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks nice!

@meooow25
Copy link
Contributor Author

Thanks!

* Make module Haddocks largely consistent across Set, Map, IntSet,
  IntMap, Seq.
* Make public module docs for each structure (e.g. Data.Map,
  Data.Map.Lazy, Data.Map.Strict) have similar structure and content.
  This means some duplication of text, but there is no way to avoid it.
* Trim down internal module Haddocks (e.g. Data.Map.Internal) to a
  structure description and references. There is no need to repeat
  everything that's in the public module.
* Add a few lines about the complexity of common operations on each set
  and map structure. In particular, union and intersection are mentioned
  with a clear description of 'm' and 'n', to reduce the chances that a
  reader assumes them to be tied to positions and not sizes.
@meooow25 meooow25 merged commit 3591635 into haskell:master Feb 25, 2025
13 checks passed
@meooow25 meooow25 deleted the module-docs branch February 25, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants