doc: Add quote about running a monadic value.

* doc/guix.texi (The Store Monad): Add funny quote about "running" a monadic
  value.
This commit is contained in:
Ludovic Courtès 2015-06-29 10:15:59 +02:00
parent cc6ed47737
commit 7ce216110c
1 changed files with 7 additions and 2 deletions

View File

@ -2762,8 +2762,13 @@ omitted since it will take place implicitly, as we will see later
#$output)))
@end example
Calling the monadic @code{sh-symlink} has no effect. To get the desired
effect, one must use @code{run-with-store}:
@c See
@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
(run-with-store (open-connection) (sh-symlink))