diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-06-28 21:57:16 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-03-30 22:48:43 +0200 |
commit | 9e5812ac59b01ff011ec0c5b0f437dfe85d6fcc7 (patch) | |
tree | 890de746df1cb8896304b15bfeb4bfbc5373d687 /tests | |
parent | 37c32caf2cd21c8b7ca764c262efc7be49f26c86 (diff) |
packages: Core procedures are written in monadic style.
This plays better with the functional object cache, which is no longer
lost across calls to procedures created by 'store-lift'.
* guix/packages.scm (input-graft, input-cross-graft): Remove 'store'
parameter. Return a monadic procedure.
(bag-grafts): Remove 'store' parameter and turn into a monadic
procedure.
(graft-derivation*): New procedure.
(cached): Remove clause to match syntax without (=> CACHE).
(package-grafts): Define using 'store-lower'.
(package-grafts*): New procedure, from former 'package-grafts'. Remove
'store' parameter and turn into a monadic procedure.
(package->derivation): Rewrite using 'mcached' and a monadic variant of
the former 'package-derivation' procedure.
(package->cross-derivation): Likewise.
(package-derivation, package-cross-derivation): Rewrite in terms of
'store-lower'.
(%graft-cache): Remove.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions