[Nix-dev] builtins.toPath returns ... a string?

Ben Doyle benjamin.peter.doyle at gmail.com
Thu May 22 17:33:31 CEST 2014


I've been writing some nix functions that used `builtins.toPath`, and
getting some strange error messages. That led to the following repl session:

nix-repl> :t "/home"
a string

nix-repl> :t /home
a path

nix-repl> :t builtins.toPath "/home"
a string

That has to be a bug, no? Or am I totally misunderstanding the purpose of
`builtins.tPath`?

Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140522/0b256e62/attachment.html 


More information about the nix-dev mailing list