aboutsummaryrefslogtreecommitdiff
path: root/guix/monads.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-01-17 23:19:13 +0100
committerLudovic Courtès <ludo@gnu.org>2015-01-17 23:45:48 +0100
commit4e190c2803be09ea7d500087cb1a2e3efeb27ab5 (patch)
tree80ceecb89e1585ce138946bb48086be5f7201574 /guix/monads.scm
parent81a97734e04fa40412b2d44ccfae1b4796257648 (diff)
downloadgnu-guix-4e190c2803be09ea7d500087cb1a2e3efeb27ab5.tar
gnu-guix-4e190c2803be09ea7d500087cb1a2e3efeb27ab5.tar.gz
store: Make '%store-monad' an alias for '%state-monad'.
* guix/store.scm (define-alias): New macro. (%store-monad, store-return, store-bind): Define as aliases of the corresponding %STATE-MONAD part. (store-lift, text-file, interned-file): Return STORE as a second value. (run-with-store): Use 'run-with-state'. * guix/packages.scm (set-guile-for-build, package-file): Return STORE as a second value. * guix/monads.scm: Remove part of the module commentary.
Diffstat (limited to 'guix/monads.scm')
-rw-r--r--guix/monads.scm4
1 files changed, 0 insertions, 4 deletions
diff --git a/guix/monads.scm b/guix/monads.scm
index f97f4add5d..62397dae7c 100644
--- a/guix/monads.scm
+++ b/guix/monads.scm
@@ -67,10 +67,6 @@
;;; "Monadic Programming in Scheme" (see
;;; <http://okmij.org/ftp/Scheme/monad-in-Scheme.html>).
;;;
-;;; The store monad allows us to (1) build sequences of operations in the
-;;; store, and (2) make the store an implicit part of the execution context,
-;;; rather than a parameter of every single function.
-;;;
;;; Code:
;; Record type for monads manipulated at run time.