about summary refs log tree commit diff
path: root/tests/lang/eval-okay-to-xml.nix
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-24T14·34+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-24T14·34+0000
commit215ec2ddc6088be2291722a544c6ab5a1b00a5a1 (patch)
tree55f65759701dba8513986bcf23e33086b472e2f5 /tests/lang/eval-okay-to-xml.nix
parentf793caf93674350f8c1e6fa740ab6cce649d0db8 (diff)
* New primop __toXML (or builtins.toXML) to convert an expression to
  an XML representation stored in a string.  This should be useful to
  pass structured information to builders.

Diffstat (limited to 'tests/lang/eval-okay-to-xml.nix')
-rw-r--r--tests/lang/eval-okay-to-xml.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-to-xml.nix b/tests/lang/eval-okay-to-xml.nix
new file mode 100644
index 000000000000..ff1791b30eb5
--- /dev/null
+++ b/tests/lang/eval-okay-to-xml.nix
@@ -0,0 +1 @@
+builtins.toXML [("a" + "b") 10 (rec {x = "x"; y = x;})]