Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-12-17 | Rename Value::normalType() -> Value::type() | Silvan Mosberger | |
2020-12-12 | Use Value::normalType on all forced values instead of Value::type | Silvan Mosberger | |
2020-04-21 | remove 'format' from Error constructor calls | Ben Burdette | |
2019-10-27 | builtins.toJSON: fix __toString usage | Robin Gloster | |
2016-08-29 | nix path-info: Add --json flag | Eelco Dolstra | |
Also, factor out JSON generation from value-to-json.{cc,hh}, and support producing indented JSON. | |||
2016-01-05 | First hit at providing support for floats in the language. | Christian Theune | |
2015-07-23 | Optimize small lists | Eelco Dolstra | |
The value pointers of lists with 1 or 2 elements are now stored in the list value itself. In particular, this makes the "concatMap (x: if cond then [(f x)] else [])" idiom cheaper. | |||
2015-07-17 | OCD: foreach -> C++11 ranged for | Eelco Dolstra | |
2014-12-02 | Make all ExternalValueBase functions const | Shea Levy | |
2014-12-02 | Allow external code using libnixexpr to add types | Shea Levy | |
Code that links to libnixexpr (e.g. plugins loaded with importNative, or nix-exec) may want to provide custom value types and operations on values of those types. For example, nix-exec is currently using sets where a custom IO value type would be more appropriate. This commit provides a generic hook for such types in the form of tExternal and the ExternalBase virtual class, which contains all functions necessary for libnixexpr's type-polymorphic functions (e.g. `showType`) to be implemented. | |||
2014-09-30 | Support control characters in JSON output | Eelco Dolstra | |
2013-11-19 | Refactor JSON output | Eelco Dolstra | |
2013-11-19 | Add a toJSON primop | Eelco Dolstra | |