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

haddocks for Test.QuickCheck.Random #346

Open
cdornan opened this issue Aug 1, 2022 · 5 comments
Open

haddocks for Test.QuickCheck.Random #346

cdornan opened this issue Aug 1, 2022 · 5 comments
Milestone

Comments

@cdornan
Copy link

cdornan commented Aug 1, 2022

I need to produce a variant of generate which requires access to Test.QuickCheck.Random but it doesn't have any Haddocks — can we get the Haddocks for this and the other missing API modules be uploaded to Hackage?

I would be happy to help with this if assistance would be welcome.

@MaximilianAlgehed
Copy link
Collaborator

If you're willing to sit down and write the haddocks I promise I'll look at them and merge them when they're done!

@UlfNorell
Copy link
Collaborator

Test.QuickCheck.Random and a few other modules were explicitly hidden from haddock in 80bdfaa. @nick8325 do you want to weigh in on the motivation for this?

@phadej
Copy link
Contributor

phadej commented Mar 26, 2024

For the record, I consider hiding modules from haddock a bad practice. Either you should hide the module (i.e. put it in other-modules), but if there's a reason to have it exposed than non-providing haddocks is just hostile towards users.

There is OPTIONS_HADDOCK non-home if you don't want haddock links to point to these modules.

@MaximilianAlgehed
Copy link
Collaborator

I'm with @phadej on this one - just expose the damn haddocks as these modules really shouldn't be internal (you do sometimes really need them for legitimate use cases).

@nick8325
Copy link
Owner

nick8325 commented Apr 25, 2024

I think I did this to hide stuff which I thought should never be relevant for users (such as State). But this is clearly silly in retrospect - I'd prefer bringing the haddocks back but moving internal modules to Test.QuickCheck.Internal.Whatever.

Test.QuickCheck.Random should clearly be exposed (and not Internal), as QCGen appears in the public API. But also it should have an explicit export list added, so it doesn't export whatever random helper functions are used by the generator.

@MaximilianAlgehed MaximilianAlgehed added this to the 2.16 milestone Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants