mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
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:
parent
cc6ed47737
commit
7ce216110c
1 changed files with 7 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue