Skip to content

Commit

Permalink
Merge 5eb6181 into bdb9b43
Browse files Browse the repository at this point in the history
  • Loading branch information
unam3 committed Nov 30, 2020
2 parents bdb9b43 + 5eb6181 commit a8f890f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion random.cabal
Expand Up @@ -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.
.
Expand Down
2 changes: 1 addition & 1 deletion src/System/Random.hs
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion test/Spec.hs
Expand Up @@ -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.
Expand Down

0 comments on commit a8f890f

Please sign in to comment.