gexp: Export 'gexp-input' constructor.
authorLudovic Courtès <ludo@gnu.org>
Sun, 15 Mar 2015 20:45:37 +0000 (21:45 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 17 Mar 2015 21:25:54 +0000 (22:25 +0100)
commit0dbea56bbf28cd2671289791a10e419478de714c
treeeef5d926f1ba195d22b9ebcd3173f3d91cf90136
parente39d1461078837a13d50f48eb2b8dff2bdbd9856
gexp: Export 'gexp-input' constructor.

* guix/gexp.scm (<gexp-input>)[gexp-input]: Rename to...
  [%gexp-input]: ... this.  Adjust callers accordingly.
  (gexp-input): New procedure.
  (gexp-inputs)[add-reference-inputs]: When the input is a list, check
  whether each item is already 'gexp-input?' and to not rewrap those.
  (gexp-outputs)[add-reference-output]: Likewise.
  (gexp->sexp): Likewise.
* tests/gexp.scm ("input list splicing + gexp-input +
  ungexp-native-splicing"): New test.
guix/gexp.scm
tests/gexp.scm