We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a04f8a + 685f679 commit ca04d73Copy full SHA for ca04d73
src/Control/Monad/Cont/Class.purs
@@ -15,9 +15,11 @@ import Prelude (class Monad)
15
-- | For example:
16
-- |
17
-- | ```purescript
18
+-- | -- setTimeout :: Number -> Effect Unit -> Effect Unit
19
+-- |
20
-- | delay :: Number -> ContT Unit Effect Unit
21
-- | delay n = callCC \cont ->
--- | lift $ setTimeout n (runContT (cont unit) (\_ -> return unit))
22
+-- | lift $ setTimeout n (runContT (cont unit) (\_ -> pure unit))
23
-- | ```
24
-- | An implementation is provided for `ContT`, and for other monad transformers
25
-- | defined in this library.
0 commit comments