John Wiegley
68d81dd57c
More work on provenance reporting
2018-04-24 23:09:43 -07:00
John Wiegley
2de8c7cf84
More fixes to error reporting
2018-04-24 12:25:40 -07:00
John Wiegley
01bcb86d3f
Further improvements to error rendering, but not all done yet
2018-04-24 11:12:20 -07:00
John Wiegley
9864a8c7a5
Rework the way that info frames and error are handled
...
There is still work to be done to render the new "typed frames", and to
convert all the current string based frame into typed frames. This will pave
the way forward to smarter error messages that can be browsed in intelligent
environments like Emacs and the browser.
2018-04-24 02:15:28 -07:00
John Wiegley
3cf02e3902
Track value provenance during evaluation
2018-04-22 14:33:38 -07:00
Domen Kožar
7ef7a0bb00
Pretty: handle tilde in paths
2018-04-22 15:06:57 +01:00
Kaushik Chakraborty
bbb72654d7
Parser: support tilde in paths
2018-04-21 11:47:57 +05:30
John Wiegley
86b09103d6
Move production of a reduced test case to --reduce, improve --trace
2018-04-20 22:36:40 -07:00
Domen Kožar
9fb4047bdc
Pretty: handle variadic params + tests
2018-04-20 01:05:20 +01:00
John Wiegley
bb0e0d987c
Slight improvements to the pretty printing output
2018-04-19 00:24:01 -07:00
John Wiegley
4163d35a09
nixpkgs allows let with no bindings in some places
...
At the beginning of arangodb/default.nix:
```
{ stdenv, fetchFromGitHub
, openssl, zlib, python2Packages, readline, cmake, python }:
let
in stdenv.mkDerivation rec {
version = "3.3.4";
name = "arangodb-${version}";
```
2018-04-18 23:42:13 -07:00
John Wiegley
02ee1c7e34
The argument order for the function passed to foldl' had gotten flipped
2018-04-17 18:30:05 -07:00
John Wiegley
4853381832
Add a new case_fixed_points test, based on an example from fixed-points.nix
2018-04-17 18:11:30 -07:00
John Wiegley
03c86aa872
Allow comparison of more value types in the tests
2018-04-17 18:11:26 -07:00
John Wiegley
c3f34e62ce
Use verbosity to control how much is displayed in error messages
2018-04-17 17:25:59 -07:00
John Wiegley
a3c4bbfb76
Use NonEmpty for let bindings and attribute selector paths
...
Note that Nix allows inherit; and inherit (foo);, so we cannot make the list
of inherited names non-empty, even though the former constructions have no
meaning.
2018-04-17 12:46:41 -07:00
John Wiegley
451ccf7c60
Fix test eval-okay-autoargs
2018-04-15 02:22:33 -07:00
John Wiegley
cce65fb106
Add argument processing for the tests; test still not working yet
2018-04-15 02:16:06 -07:00
John Wiegley
169a2140dd
Add to the imports listed in Nix.hs
2018-04-14 09:39:03 -07:00
John Wiegley
eadf714036
If MATCHING_TESTS=yes (default for Travis), compare eval tests to Nix
2018-04-13 22:34:24 -07:00
Ryan Trinkle
7889e2a9e8
Add a couple of tests for inherit
scoping
2018-04-14 00:14:26 -04:00
John Wiegley
58b65d2ce1
Don't evaluate to normal form by default in the top level evaluators
2018-04-13 19:29:18 -07:00
John Wiegley
7f6a64da04
More corrections to the search path logic
...
Fixes #112
2018-04-13 16:37:11 -07:00
John Wiegley
78b185c5b5
Add a strange hack needed to get a test to run
2018-04-13 01:20:58 -07:00
John Wiegley
ef489753e7
Fix to find env path
2018-04-13 00:52:09 -07:00
John Wiegley
14bc5360f4
More work on supporting -I and completing env paths
2018-04-13 00:34:49 -07:00
John Wiegley
99189e9536
The basic REPL now works; doesn't allow establishing definitions yet
2018-04-12 16:46:34 -07:00
John Wiegley
e6abbdc91e
Add two more basic parsing tests
2018-04-12 14:22:55 -07:00
John Wiegley
9a089712aa
Create new __includes builtin, set by --include/-I
2018-04-11 22:02:31 -07:00
John Wiegley
90e4a3ec37
Add preliminary parsing of .flags files, though more work is needed
2018-04-11 21:02:37 -07:00
John Wiegley
27c3875934
Use hnix to process nixpkgs in the tests
2018-04-11 13:56:31 -07:00
John Wiegley
978710aa7d
Remember how much indentation was stripped from multi-line strings
2018-04-11 12:06:14 -07:00
John Wiegley
3233c9cb31
Restore the pretty show instance for NValue m (orphaned in Pretty for now)
2018-04-10 21:11:46 -07:00
John Wiegley
74de14dc7d
Restore the linter, to some degree, at least for the language tests
2018-04-10 21:02:01 -07:00
John Wiegley
01d1ae99a7
Fix ind-string-14
2018-04-10 18:45:57 -07:00
John Wiegley
58345c29f9
Mark ind-string-14.nix as broken, since I have no answer for it now
2018-04-10 18:20:58 -07:00
John Wiegley
2a6ba86ad5
Capitalize a test category name
2018-04-10 17:15:23 -07:00
John Wiegley
481d6fa9c1
Don't ignore errors when parsing nixpkgs
2018-04-10 13:17:37 -07:00
Doug Beardsley
375e6025d3
Break out eval-okay-ind-string into separate tests
2018-04-10 14:57:50 -05:00
John Wiegley
dcd081d899
Add directory dependency for the tests
2018-04-10 12:38:14 -07:00
Doug Beardsley
13fc5bcd6d
Add builtins.split
...
Finishes issue #113
2018-04-10 12:33:31 -07:00
John Wiegley
a7e7e84795
Drop dependency on insert-ordered-containers
...
Fixes #161
2018-04-10 11:58:08 -07:00
John Wiegley
84f809a568
Add a test for issue #152
2018-04-10 11:22:54 -07:00
John Wiegley
6d275b6093
Make Nixpkgs parsing test also optional (for now)
2018-04-10 11:14:20 -07:00
John Wiegley
586402ad9a
Add a test for parsing all of the nixpkgs that we build with
2018-04-10 11:05:22 -07:00
John Wiegley
9d7f25d368
All is building with Megaparsec now, but many parsing tests fail
2018-04-09 17:12:16 -07:00
John Wiegley
4c2eebbe40
Refactor evaluation using a type class
2018-04-09 00:52:10 -07:00
John Wiegley
3681d51dd6
Create modules Nix.Monad.Lazy, Nix.Monad.Lint, Nix.Monad.Context
2018-04-07 23:14:08 -07:00
Ryan Trinkle
1ada8648f2
Fix comparison of derivations
2018-04-07 20:15:55 -04:00
John Wiegley
85b7799246
Quiet some warnings
2018-04-07 15:15:22 -07:00