On Fri, Jan 9, 2009 at 00:02, Michael Raskin <[email protected]> wrote:
> Modified: nixpkgs/trunk/pkgs/lib/default.nix
> ===================================================================
> --- nixpkgs/trunk/pkgs/lib/default.nix  2009-01-08 22:21:32 UTC (rev 13725)
> +++ nixpkgs/trunk/pkgs/lib/default.nix  2009-01-08 23:02:44 UTC (rev 13726)
> @@ -484,6 +484,7 @@
>     else if all __isList list then concatLists list
>     else if all __isAttrs list then mergeAttrs list
>     else if all (x: true == x || false == x) list then fold logicalOR false 
> list
> +    else if all (x: x == toString x) list then concatStrings x
>     else abort "${name}: Cannot merge values.";

Nice trick, but it would be better to have a builtins.isString for that.

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron
- If you are doing something twice then you should try to do it once.
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to