hnix v0.11.1 Release Notes

Release Date: 2020-12-09 // over 3 years ago
  • (diff) 0.11.1 (2020-12-09)

    • ➕ Additional:
      • (link) Nix/Builtins: isString fixed - It used to return True for values coercible to string like derivations and paths. It only accepts string values now.
      • (link) Nix/Builtins: substring fixed - Negative lengths used to capture an empty string. Now they capture the whole rmeainder of the string.
      • (link) Nix/Effects: pathExists fixed - Now also works with directories.
      • (link) Nix/Parser: -> is now properly right-associative (was non-associative).
      • (link) Nix/Parser: Nix assert parser (nixAssert function) now accepts top-level Nix format also (which means also accepts all kinds of statements), before that it accepted only regular Nix expressions.
      • (link) Nix/Render: renderLocation now also shows/handles location of errors in raw strings.

Previous changes from v0.11.0

  • (diff) 0.11.0 (2020-11-02)

    💥 Breaking:

    • (link) Deleted incorrect instance Generic1 NKeyName from module Nix.Expr.Types.

    - (link) Parentheses now are properly included in the location annotation for Nix expressions, change of nixParens in module Nix.Parser essentially results in the change of all module nix* function results, essentially making results of the whole module more proper.

    ➕ Additional:

    (diff) 0.10.1 (2020-09-13)

    • ➕ Additional:
      • (link) {Binding, NExpr, NExprF, NKeyName} gained Ord1 instances.
      • These instances were required by downstream projects to be able to use newer HNix.
      • (link) CLI gained --long-version option for gathering a detailed debug information.
      • Currently, reports Git commit and its date.
      • (link) Currently does not work in case of use of the nix-build, in which case simply returns UNKNOWN placeholder.