diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-08-14T10·04+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-08-14T10·04+0000 |
commit | efe4b690ae4de5f0adea99abb1176a64a099d433 (patch) | |
tree | 3ee26b49848b04b5f6dad8edc06509fe4d4ee067 /tests/lang/eval-okay-xml.nix | |
parent | c03b729319997b4e38c3f586d7c76352228b22e7 (diff) |
* Refactoring: combine functions that take an attribute set and
functions that take a single argument (plain lambdas) into one AST node (Function) that contains a Pattern node describing the arguments. Current patterns are single lazy arguments (VarPat) and matching against an attribute set (AttrsPat). This refactoring allows other kinds of patterns to be added easily, such as Haskell-style @-patterns, or list pattern matching.
Diffstat (limited to 'tests/lang/eval-okay-xml.nix')
-rw-r--r-- | tests/lang/eval-okay-xml.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lang/eval-okay-xml.nix b/tests/lang/eval-okay-xml.nix index 8151337b98e0..75420316df99 100644 --- a/tests/lang/eval-okay-xml.nix +++ b/tests/lang/eval-okay-xml.nix @@ -10,4 +10,6 @@ rec { f = {z, x, y}: if y then x else z; -} \ No newline at end of file + id = x: x; + +} |