Skip to content

Commit

Permalink
Fixup haddock for changes from #154
Browse files Browse the repository at this point in the history
  • Loading branch information
lehins committed Nov 26, 2023
1 parent 207fe49 commit d60ef3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/System/Random.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ import qualified System.Random.SplitMix as SM
--
-- >>> :{
-- let rolls :: RandomGen g => Int -> g -> [Word]
-- rolls n = take n . unfoldr (Just . uniformR (1, 6))
-- rolls n = fst . uniformListR n (1, 6)
-- pureGen = mkStdGen 137
-- in
-- rolls 10 pureGen :: [Word]
Expand All @@ -126,7 +126,7 @@ import qualified System.Random.SplitMix as SM
--
-- >>> :{
-- let rollsM :: StatefulGen g m => Int -> g -> m [Word]
-- rollsM n = replicateM n . uniformRM (1, 6)
-- rollsM n = uniformListRM n (1, 6)
-- pureGen = mkStdGen 137
-- in
-- runStateGen_ pureGen (rollsM 10) :: [Word]
Expand Down

0 comments on commit d60ef3d

Please sign in to comment.