Repository navigation
Split into modules - #96
Closed
curiousleo wants to merge 3 commits into
Closed
curiousleo wants to merge 3 commits into
curiousleo wants to merge 3 commits into
Conversation
curiousleo
marked this pull request as ready for review
April 16, 2020 11:32
curiousleo
marked this pull request as draft
April 17, 2020 07:26
- System.Random.Internal contains all code - System.Random exports just the subset of the library that was present in v1.1, for backwards-compatibility - System.Random.Monad exports everything present in System.Random, plus MonadRandom, the new monadic adapters and all MonadRandom-related functions Haddocks are structured as follows: - System.Random.Internal is hidden - System.Random contains a notice that it exists for backwards compatibility, and a link to System.Random.Monad for the full documentation - System.Random.Monad contains the full, structured Haddocks
Collaborator
Author
|
Closing in favour of #101. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses these follow-up items:
Internalmodule: Remove references to PrimGen, MutGen #83 (comment)StdGenconstructor from Internalinstance RandomGen SM.SMGen(from #83 (comment))
Goals
System.Randomexports everything it used to export in v1.1MonadRandomnot to be exported fromSystem.Randombecause that leads to name clashesSystem.Random.InternalChanges
System.RandomtoSystem.Random.InternalSystem.Random.Internalexports everything it contains. To keep the Haddocks clean, we use the "hide" option.System.Randomexports only what it used to export in v1.1.System.Random.Monadexports everything thatSystem.Randombefore this PR exported, that is, everything thatSystem.Randomwill export plusMonadRandom, monadic adapters, and functions with aMonadRandomconstraint.As a result, code that imports
System.Randomwill continue to work; new code can importSystem.Random.Monadand everything works (no need to also importSystem.Random).Haddocks
The source links in the preview don't work, I don't know why. They do work locally, so I think this is an issue with the GitHub HTML preview.
System.Random.Internalis not shown