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

Docs: Specialised re-exports with better docs & other improvements #51

Merged
merged 10 commits into from
Nov 15, 2024

Conversation

david-davies
Copy link
Collaborator

Closes #41.

The re-exports of combinators from Control.Applicative etc means we were stuck with their old documentation, which was not very descriptive.

The goal of this PR is to improve the documentation for these combinators.
This is achieved by defining a cpp macro __HADDOCK__ that is only defined during the documentation generation, not during the build.
This lets us provide re-definitions of the re-exports, having better documentation and specialised types only in the documentation; the actual library still uses the original re-exports.

The major changes are altering the workflow yaml and slightly changing some of the imports throughout the library to make sure they don't accidentally point to the specialised versions during the documentation type check.

@david-davies
Copy link
Collaborator Author

all devops and no play makes david a dull boy

@david-davies david-davies marked this pull request as ready for review November 15, 2024 20:16
@david-davies david-davies added the documentation Improvements or additions to documentation label Nov 15, 2024
@david-davies david-davies self-assigned this Nov 15, 2024
@j-mie6
Copy link
Owner

j-mie6 commented Nov 15, 2024

Lol

@j-mie6 j-mie6 merged commit 919ec1a into main Nov 15, 2024
16 checks passed
@j-mie6 j-mie6 deleted the improve-docs branch November 15, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Override default docs for some and many
2 participants