Open chris-martin opened 8 years ago
Here's my to-do list for Nix (things I didn't include because I didn't know about them when I first wrote the tutorial):
nixpkgs.pkgs.haskell.packages.${compiler}.callPackage
inherit a b;
inherit (foo) a b;
inherit
let
@
f = args @ {x, y, z}: ...;
or
x.y or "defaultY"
@chris-martin Feel free to send a PR for the same!
Here's my to-do list for Nix (things I didn't include because I didn't know about them when I first wrote the tutorial):
nixpkgs.pkgs.haskell.packages.${compiler}.callPackage
inherit a b;
andinherit (foo) a b;
inherit
inlet
binding context as well as in sets@
-patterns similar to Haskell pattern matching. For example, in a function definition:f = args @ {x, y, z}: ...;
or
can be used to provide a default value when pulling a value out of a set, e.g.x.y or "defaultY"