Skip to content

Commit ca04d73

Browse files
authored
Merge pull request #132 from ursi/patch-1
Fix documentation for callCC
2 parents 9a04f8a + 685f679 commit ca04d73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Control/Monad/Cont/Class.purs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ import Prelude (class Monad)
1515
-- | For example:
1616
-- |
1717
-- | ```purescript
18+
-- | -- setTimeout :: Number -> Effect Unit -> Effect Unit
19+
-- |
1820
-- | delay :: Number -> ContT Unit Effect Unit
1921
-- | delay n = callCC \cont ->
20-
-- | lift $ setTimeout n (runContT (cont unit) (\_ -> return unit))
22+
-- | lift $ setTimeout n (runContT (cont unit) (\_ -> pure unit))
2123
-- | ```
2224
-- | An implementation is provided for `ContT`, and for other monad transformers
2325
-- | defined in this library.

0 commit comments

Comments
 (0)