Skip to content

Commit

Permalink
Add haddock for mapM_
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenii Akentev committed May 25, 2021
1 parent 669ddee commit 338c855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plutus-tx/src/PlutusTx/Foldable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ find p = getFirst . foldMap (\ x -> First (if p x then Just x else Nothing))
(#.) _f = coerce
{-# INLINE (#.) #-}

-- | Plutus Tx version of 'Data.Foldable.mapM_'.
{-# INLINABLE mapM_ #-}
mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()
mapM_ f = foldr c (return ())
-- See Note [List fusion and continuations in 'c']
where c x k = f x >> k
{-# INLINE c #-}

0 comments on commit 338c855

Please sign in to comment.