John Wiegley
|
5effdda04b
|
Move the scoping code into its own module
|
2018-03-30 13:30:28 -07:00 |
|
John Wiegley
|
0b812d5c94
|
Correctly support 'with' by distinguishing weak scopes from non-weak
|
2018-03-30 13:18:24 -07:00 |
|
John Wiegley
|
744c4fd388
|
Disable tracing again
|
2018-03-30 12:48:20 -07:00 |
|
John Wiegley
|
cab2fe914e
|
Add a missing import
|
2018-03-30 12:48:20 -07:00 |
|
Ryan Trinkle
|
cb2d69c24a
|
Bump nix to a fork where we have a new test: eval-okay-nested-with
|
2018-03-30 15:47:09 -04:00 |
|
John Wiegley
|
a4a2fc0659
|
Move the linting code into its own module
|
2018-03-30 12:45:23 -07:00 |
|
John Wiegley
|
185ddf94e4
|
Add support for the inherit keyword
|
2018-03-30 12:37:11 -07:00 |
|
John Wiegley
|
92a030c707
|
Restore foldl'
|
2018-03-30 12:10:04 -07:00 |
|
John Wiegley
|
45d29178df
|
Remove an unnecessary layer of indirection in the management of thunks
|
2018-03-30 12:05:38 -07:00 |
|
Ryan Trinkle
|
3d1bc0bb0b
|
Fix compareVersions
Previously, it did not consider `pre` to be less than a missing version component
|
2018-03-30 13:21:02 -04:00 |
|
Ryan Trinkle
|
4c10e6333d
|
Add some things to .gitignore
|
2018-03-30 13:07:40 -04:00 |
|
Ryan Trinkle
|
83335ec0f3
|
Add builtins.parseDrvName
|
2018-03-30 13:07:33 -04:00 |
|
Ryan Trinkle
|
5c509ab66a
|
Add builtins.sub
|
2018-03-30 12:42:34 -04:00 |
|
Ryan Trinkle
|
6d9e5e1b4f
|
Bump nix
|
2018-03-30 12:39:21 -04:00 |
|
Ryan Trinkle
|
a63b908f99
|
Add builtins.splitVersion and builtins.compareVersions
|
2018-03-30 12:39:15 -04:00 |
|
Ryan Trinkle
|
e763089786
|
Add builtins.tail
|
2018-03-30 12:00:31 -04:00 |
|
Ryan Trinkle
|
d813c4d1e9
|
Add builtins.head
|
2018-03-30 11:58:05 -04:00 |
|
Ryan Trinkle
|
b800c630a2
|
Make == and /= handle lists
|
2018-03-30 11:57:58 -04:00 |
|
Ryan Trinkle
|
4007498b2d
|
Add foldl' builtin
|
2018-03-30 11:46:23 -04:00 |
|
John Wiegley
|
22924a591f
|
Implement getEnv, set TEST_VAR=foo for the language tests
|
2018-03-30 02:16:52 -07:00 |
|
John Wiegley
|
c234849fd6
|
Fix a few tests by making a small change to printNix
|
2018-03-30 02:07:08 -07:00 |
|
John Wiegley
|
8e944cc223
|
Fix the tests
|
2018-03-30 02:00:36 -07:00 |
|
John Wiegley
|
71b4bf5e8a
|
Various fixes, and make imports local to their containing file
|
2018-03-30 01:50:19 -07:00 |
|
John Wiegley
|
b456eba4d6
|
Add some test files
|
2018-03-30 01:14:06 -07:00 |
|
John Wiegley
|
4e698d76fa
|
More fixes to lazy evaluation and scoping
|
2018-03-30 01:11:27 -07:00 |
|
John Wiegley
|
21b179b267
|
Change the precedence of 'with' bindings
Fixes #104
|
2018-03-29 18:14:20 -07:00 |
|
Ryan Trinkle
|
3f29f65477
|
Use nix-store --add to convert paths to strings
Fixes eval-fail-bad-antiquote-2
|
2018-03-29 20:23:22 -04:00 |
|
John Wiegley
|
6ada0e8861
|
Merge pull request #101 from ryantrinkle/eval-fail-undeclared-arg
Fix eval-fail-undeclared-arg
|
2018-03-29 17:02:14 -07:00 |
|
Ryan Trinkle
|
1080ad7b5e
|
Fix eval-fail-undeclared-arg
|
2018-03-29 19:34:08 -04:00 |
|
John Wiegley
|
8a01f87d69
|
Fix one of the function-related tests
|
2018-03-29 16:00:06 -07:00 |
|
John Wiegley
|
8f24c7b645
|
Implement laziness, although without support for concurrency
|
2018-03-29 15:35:12 -07:00 |
|
John Wiegley
|
c82dec901f
|
Begin work to avoid buying thunks in m (NThunk m)
|
2018-03-29 12:32:16 -07:00 |
|
John Wiegley
|
e06271d9ca
|
Initial round of work on supporting first class thunks
|
2018-03-29 12:16:18 -07:00 |
|
John Wiegley
|
84918aa1d3
|
Remove the MonadFix requirement, it was not needed; fix NRecSet
|
2018-03-28 23:52:07 -07:00 |
|
John Wiegley
|
9a37da33f7
|
Fix recursive binding problem with NRecSet
|
2018-03-28 17:43:09 -07:00 |
|
John Wiegley
|
abb2d8a98b
|
Fix to .travis.yml
|
2018-03-28 16:32:28 -07:00 |
|
John Wiegley
|
d77e52e9d4
|
Don't run the language tests (say, on Travis) unless LANGUAGE_TESTS=yes
|
2018-03-28 16:30:54 -07:00 |
|
John Wiegley
|
dfee8cd2b8
|
Add checkExpr, which checks for errors in Nix expressions
This allows us to pass 10 more of the NixLanguageTests, so that after parsing
a file containing "x: y", we can report that y is undefined.
|
2018-03-28 16:27:35 -07:00 |
|
John Wiegley
|
2c188045cd
|
Passing --debug to hnix when not evaluating dump the parse tree
|
2018-03-28 15:48:32 -07:00 |
|
John Wiegley
|
b97378c581
|
Restore previous default.nix (mostly)
|
2018-03-28 15:13:02 -07:00 |
|
John Wiegley
|
4cce2adc1b
|
Add Nix/Utils.hs
|
2018-03-28 15:00:28 -07:00 |
|
John Wiegley
|
c68e508f83
|
Remove an unneeded import
|
2018-03-28 15:00:19 -07:00 |
|
John Wiegley
|
7affd66a25
|
Drop some dead code
|
2018-03-28 15:00:02 -07:00 |
|
John Wiegley
|
cce4118452
|
Remove some debugging code
|
2018-03-28 14:51:40 -07:00 |
|
John Wiegley
|
39f772ef3c
|
Restore monadic abstraction (to support importFile), fix attribute sets
|
2018-03-28 14:45:10 -07:00 |
|
John Wiegley
|
1974ace399
|
Remove some tracing code
|
2018-03-27 23:16:00 -07:00 |
|
John Wiegley
|
124530c9a9
|
Fix at-right patterns
|
2018-03-27 22:53:52 -07:00 |
|
John Wiegley
|
dbc57423e7
|
Constrain exports from Nix.Eval
|
2018-03-27 22:34:56 -07:00 |
|
John Wiegley
|
b923af49f4
|
Split off some utility functions into their own Nix.Utils module
|
2018-03-27 22:32:43 -07:00 |
|
John Wiegley
|
1ba29231af
|
Clarify an error message
|
2018-03-27 22:28:53 -07:00 |
|