Added null recognition to whatis

svn path=/nixpkgs/trunk/; revision=12663
This commit is contained in:
Michael Raskin 2008-08-20 04:34:28 +00:00
parent 9d181d621f
commit 69e4f17372

View File

@ -465,6 +465,7 @@ rec {
else if (x == []) then "x is an empty list"
else if (__isList x) then "x is a list, first item is : ${whatis (__head x)}"
else if (x == true || x == false) then builtins.toString x
else if (x == null) then "x is null"
else "x is probably a string starting, starting characters: ${__substring 0 50 x}..";