Skip to content

Commit

Permalink
Minor haddock fixes (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinprakash96 authored Aug 4, 2022
1 parent 284ed14 commit 0d86086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Relude/Monad/Maybe.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ whenNothing_ Nothing m = m
whenNothing_ _ _ = pass
{-# INLINE whenNothing_ #-}

{- | Monadic version of 'whenNothingM'.
{- | Monadic version of 'whenNothing'.
>>> whenNothingM (pure $ Just True) $ True <$ putTextLn "Is Just!"
True
Expand All @@ -110,7 +110,7 @@ whenNothingM :: Monad m => m (Maybe a) -> m a -> m a
whenNothingM mm action = mm >>= \m -> whenNothing m action
{-# INLINE whenNothingM #-}

{- | Monadic version of 'whenNothingM_'.
{- | Monadic version of 'whenNothing_'.
>>> whenNothingM_ (pure $ Just True) $ putTextLn "Is Just!"
>>> whenNothingM_ (pure Nothing) $ putTextLn "Is Nothing!"
Expand Down

0 comments on commit 0d86086

Please sign in to comment.