Skip to content
Snippets Groups Projects
Commit 7ce21611 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

doc: Add quote about running a monadic value.

* doc/guix.texi (The Store Monad): Add funny quote about "running" a monadic
  value.
parent cc6ed477
No related branches found
No related tags found
No related merge requests found
...@@ -2762,8 +2762,13 @@ omitted since it will take place implicitly, as we will see later ...@@ -2762,8 +2762,13 @@ omitted since it will take place implicitly, as we will see later
#$output))) #$output)))
@end example @end example
Calling the monadic @code{sh-symlink} has no effect. To get the desired @c See
effect, one must use @code{run-with-store}: @c <https://syntaxexclamation.wordpress.com/2014/06/26/escaping-continuations/>
@c for the funny quote.
Calling the monadic @code{sh-symlink} has no effect. As someone once
said, ``you exit a monad like you exit a building on fire: by running''.
So, to exit the monad and get the desired effect, one must use
@code{run-with-store}:
@example @example
(run-with-store (open-connection) (sh-symlink)) (run-with-store (open-connection) (sh-symlink))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment