diff --git a/random.cabal b/random.cabal index 118cd385d..d933bd455 100644 --- a/random.cabal +++ b/random.cabal @@ -42,7 +42,7 @@ description: >>> runStateGen_ pureGen (replicateM 10 . rollM) :: [Word] [1,1,3,2,4,5,3,4,6,2] . - The monadic adapter 'System.Random.Stateful.runGenState_' is used here to lift + The monadic adapter 'System.Random.Stateful.runStateGen_' is used here to lift the pure pseudo-random number generator @pureGen@ into the 'System.Random.Stateful.StatefulGen' context. . diff --git a/src/System/Random.hs b/src/System/Random.hs index fd98f505f..0a4d8215e 100644 --- a/src/System/Random.hs +++ b/src/System/Random.hs @@ -98,7 +98,7 @@ import qualified System.Random.SplitMix as SM -- [4,2,6,1,6,6,5,1,1,5] -- -- To run use a /monadic/ pseudo-random computation in pure code with a pure --- pseudo-random number generator, use 'runGenState' and its variants. +-- pseudo-random number generator, use 'runStateGen' and its variants. -- -- >>> :{ -- let rollsM :: StatefulGen g m => Int -> g -> m [Word] diff --git a/test/Spec.hs b/test/Spec.hs index 97380798c..dafeab642 100644 --- a/test/Spec.hs +++ b/test/Spec.hs @@ -139,7 +139,7 @@ floatingSpec px = ] runSpec :: TestTree -runSpec = testGroup "runGenState_ and runPrimGenIO_" +runSpec = testGroup "runStateGen_ and runPrimGenIO_" [ SC.testProperty "equal outputs" $ seeded $ \g -> monadic $ Run.runsEqual g ] -- | Create a StdGen instance from an Int and pass it to the given function.