Skip to content

Commit

Permalink
ghc 8 complains about $$$ in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
idontgetoutmuch committed May 4, 2024
1 parent af5a62d commit fe3a169
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions System/Random/MWC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
-- 'createSystemSeed' or 'withSystemRandomST' (All examples assume
-- that @System.Random.Stateful@ is imported)
--
-- $$$ g <- createSystemRandom
-- $$$ uniformM g :: IO Int
-- AAA g <- createSystemRandom
-- AAA uniformM g :: IO Int
-- ...
--
-- $$$ withSystemRandomST $ \g -> uniformM g :: IO Int
-- AAA withSystemRandomST $ \g -> uniformM g :: IO Int
-- ...
--
-- Deterministically create generator from given seed using
Expand Down Expand Up @@ -545,10 +545,10 @@ withSystemRandomST act = do
-- This function is unsafe and for example allows STRefs or any
-- other mutable data structure to escape scope:
--
-- $$$ ref <- withSystemRandom $ \_ -> newSTRef 1
-- $$$ withSystemRandom $ \_ -> modifySTRef ref succ >> readSTRef ref
-- AAA ref <- withSystemRandom $ \_ -> newSTRef 1
-- AAA withSystemRandom $ \_ -> modifySTRef ref succ >> readSTRef ref
-- 2
-- $$$ withSystemRandom $ \_ -> modifySTRef ref succ >> readSTRef ref
-- AAA withSystemRandom $ \_ -> modifySTRef ref succ >> readSTRef ref
-- 3
withSystemRandom :: PrimBase m
=> (Gen (PrimState m) -> m a) -> IO a
Expand Down

0 comments on commit fe3a169

Please sign in to comment.