Merge pull request #1337 from lheckemann/doc-tryEval
Manual: document tryEval
This commit is contained in:
		
						commit
						62a07992bd
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
					@ -1163,6 +1163,19 @@ stdenv.mkDerivation (rec {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  </varlistentry>
 | 
					  </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>
 | 
					  <varlistentry><term><function>builtins.typeOf</function>
 | 
				
			||||||
  <replaceable>e</replaceable></term>
 | 
					  <replaceable>e</replaceable></term>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue