Skip to content

Commit

Permalink
Clarify replicateM Haddock (haskell#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjaguarpaw committed Jul 26, 2023
1 parent f61b0c9 commit e74ac0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion containers/src/Data/Sequence/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,8 @@ replicateA n x
| otherwise = error "replicateA takes a nonnegative integer argument"
{-# SPECIALIZE replicateA :: Int -> State a b -> State a (Seq b) #-}

-- | 'replicateM' is a sequence counterpart of 'Control.Monad.replicateM'.
-- | 'replicateM' is the @Seq@ counterpart of
-- @Control.Monad.'Control.Monad.replicateM'@.
--
-- > replicateM n x = sequence (replicate n x)
--
Expand Down

0 comments on commit e74ac0b

Please sign in to comment.