about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2017-04-18T14·54+0200
committerGitHub <noreply@github.com>2017-04-18T14·54+0200
commit62a07992bd480d1b4490d40404147bf24b9ea952 (patch)
tree3823aedd995c0f611cfedc77985cbe0c0898d13b
parent67fe3e07b2069c27484d6817d05d9190e70c518c (diff)
parent9622d00afa6e94ef3ca026f9e15a7d122566e7d0 (diff)
Merge pull request #1337 from lheckemann/doc-tryEval
Manual: document tryEval
-rw-r--r--doc/manual/expressions/builtins.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml
index e9baff65961a..8a18b71008cb 100644
--- a/doc/manual/expressions/builtins.xml
+++ b/doc/manual/expressions/builtins.xml
@@ -1163,6 +1163,19 @@ stdenv.mkDerivation (rec {
 
   </varlistentry>
 
+  <varlistentry><term><function>builtins.tryEval</function>
+  <replaceable>e</replaceable></term>
+
+    <listitem><para>Try to evaluate <replaceable>e</replaceable>.
+    Return a set containing the attributes <literal>success</literal>
+    (<literal>true</literal> if <replaceable>e</replaceable> evaluated
+    successfully, <literal>false</literal> if an error was thrown) and
+    <literal>value</literal>, equalling <replaceable>e</replaceable>
+    if successful and <literal>false</literal> otherwise.
+    </para></listitem>
+
+  </varlistentry>
+
 
   <varlistentry><term><function>builtins.typeOf</function>
   <replaceable>e</replaceable></term>