summaryrefslogtreecommitdiff
path: root/guix/monads.scm
AgeCommit message (Collapse)Author
2014-02-03monads: Add 'text-file*'.Ludovic Courtès
* guix/monads.scm (text-file*): New procedure. * tests/monads.scm ("text-file*"): New test. * doc/guix.texi (The Store Monad): Change example since the previous one would erroneously fail to retain a reference to Coreutils. Document 'text-file*'.
2014-01-29monads: Add 'imported-modules' and 'compiled-modules'.Ludovic Courtès
* guix/monads.scm (package-file): Fix typo. (imported-modules, compiled-modules): New procedures.
2013-12-10gnu: Add (gnu system).Ludovic Courtès
* gnu/system/vm.scm (lower-inputs): Move to monads.scm. (qemu-image): Don't add GRUB-CONFIGURATION to the INPUTS-TO-COPY. (union, file-union, etc-directory): Move to gnu/system.scm. (%demo-operating-system): New variable. (system-qemu-image): Add 'os' parameter. Rewrite in terms of 'operating-system-derivation'. * guix/monads.scm (lower-inputs): New procedure. * gnu/system/grub.scm (grub-configuration-file): Change 'entries' to be a plain list instead of a list of monadic values. * gnu/system.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
2013-12-10monads: Fix 'anym'.Ludovic Courtès
* guix/monads.scm (anym): Fix successful case. * tests/monads.scm ("anym"): New test.
2013-12-05monads: Remove erroneous comment.Ludovic Courtès
* guix/monads.scm (sequence): Remove erroneous comment.
2013-10-03monads: Allow resolution of a monad's bind/return at expansion time.Ludovic Courtès
* guix/monads.scm (<monad>): Turn in a raw SRFI-9 record type. (define-monad): New macro. (with-monad): Add a case for when MONAD is a macro. (identity-return, identity-bind, store-return, store-bind): Inline. (%identity-monad, %store-monad): Use 'define-monad'. * tests/monads.scm ("monad?"): New test.
2013-10-03Add (guix monads).Ludovic Courtès
* guix/monads.scm: New file. * tests/monads.scm: New file. * Makefile.am (MODULES): Add guix/monads.scm. (SCM_TESTS): Add tests/monads.scm. * doc/guix.texi (The Store Monad): New node. (The Store): Reference it.