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

Deprecate RandomGenM in favor of a more powerful FrozenGen #149

Merged
merged 4 commits into from
Nov 24, 2023

Commits on Nov 24, 2023

  1. Deprecate RandomGenM in favor of a more powerful FrozenGen

    * Addition of `modifyGen` totally removes the need for `RandomGenM`, because
    every frozen generator that is a wrapper around `RandomGen` also derives
    an instance for `RandomGen`
    
    * Add `splitMutableM` and `splitFrozenM`
    
    * Avoid redundant freeze in `withMutableGen_`
    lehins committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    a3ec128 View commit details
    Browse the repository at this point in the history
  2. Add overwriteGen to FrozenGen

    lehins committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    28920e0 View commit details
    Browse the repository at this point in the history
  3. Move thawGen fromFrozenGen into new ThawedGen type class:

    * Also add some laws for `FrozenGen` and `ThawedGen`
    
    This split of `FrozenGen` type class into two is needed because some
    mutable generators can't be cloned, becase the mutable state is
    stored in the monad they are running in, rather than in the mutable
    generator itself.
    lehins committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    4c1dbd6 View commit details
    Browse the repository at this point in the history
  4. Fix Haddock link for StateT

    lehins committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    bc58313 View commit details
    Browse the repository at this point in the history