Skip to content

0.3.0

Compare
Choose a tag to compare
@kamadorueda kamadorueda released this 18 Feb 23:48
· 213 commits to main since this release

Changed

  • Let-in expressions are now indented in the top-level of a file.

  • Patterns avoid a new line after @:

    -        args @
    -        {
    +        args @ {
    -  }
    -  @ inp:
    +  } @ inp:
  • Attribute sets no longer have spaces
    before the first element or after the last:

    - { b = 1; }
    + {b = 1;}
  • Pattern matching lambdas no longer have spaces
    before the first or after the last element:

    - ({ ... }: _)
    + ({...}: _)
  • Ellipsis is no longer count as an element when spreading pattern matching lambdas:

    -  {
    -    pkgs,
    -    ...
    -  }:
    +  {pkgs, ...}:
  • Pattern matching lambdas now follow the equal sign:

    -  fnLocationRelative =
    -    {
    -      name,
    -      value,
    -    }:
    +  fnLocationRelative = {
    +    name,
    +    value,
    +  }:
  • with expressions now indent the new scope and follow the equal sign:

    -    binPath =
    -      with pkgs;
    +    binPath = with pkgs;
  • Nested lambdas are now not indented:

      # comment
      a:
    -   # comment
    -   b:
    -     _
    + # comment
    + b:
    +   _
  • Brace-like elements after a pattern entry now follow the exclamation mark:

    -  rootPoolProperties ?
    -    {
    -      autoexpand = "on";
    -    },
    +  rootPoolProperties ? {
    +    autoexpand = "on";
    +  },

Pull Requests

Full Changelog: 0.2.0...0.3.0