Skip to content

Commit 7e6baad

Browse files
committed
Fix ifM' docstring
1 parent 5467591 commit 7e6baad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Control/Bind.purs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,9 @@ ifM :: forall a m. Bind m => m Boolean -> m a -> m a -> m a
151151
ifM cond t f = cond >>= \cond' -> if cond' then t else f
152152

153153
-- | Similar to `ifM` but for use in cases where one of the monadic actions may
154-
-- | be expensive to compute or be responsible for side effects. As PureScript
155-
-- | is not lazy, the standard `ifM` has to construct both monadic actions
156-
-- | before returning the result, whereas here only the corresponding monadic
157-
-- | action is constructed.
154+
-- | be expensive to compute. As PureScript is not lazy, the standard `ifM` has
155+
-- | to construct both monadic actions before returning the result, whereas here
156+
-- | only the corresponding monadic action is constructed.
158157
-- |
159158
-- | ```purescript
160159
-- | main :: Effect Unit

0 commit comments

Comments
 (0)