about summary refs log tree commit diff
path: root/doc/manual
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24T00·56+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-24T00·56+0200
commita5684e09d34deb5c380c736ce520c030eb14bfc6 (patch)
treea2e6d59ecf646272fe738edcb6a4aea56f3035f8 /doc/manual
parent411a3461dca6b26f1a1a6b0c7f1f322f1d8df506 (diff)
Document typeOf
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/builtins.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/manual/builtins.xml b/doc/manual/builtins.xml
index 465c062b6445..ce21e8525006 100644
--- a/doc/manual/builtins.xml
+++ b/doc/manual/builtins.xml
@@ -901,6 +901,19 @@ stdenv.mkDerivation (rec {
   </varlistentry>
 
 
+  <varlistentry><term><function>builtins.typeOf</function>
+  <replaceable>e</replaceable></term>
+
+    <listitem><para>Return a string representing the type of the value
+    <replaceable>e</replaceable>, namely <literal>"int"</literal>,
+    <literal>"bool"</literal>, <literal>"string"</literal>,
+    <literal>"path"</literal>, <literal>"null"</literal>,
+    <literal>"attrs"</literal>, <literal>"list"</literal> or
+    <literal>"lambda"</literal>.</para></listitem>
+
+  </varlistentry>
+
+
 </variablelist>