John Wiegley
94e0be3882
Reformat all sources with Brittany, to restore consistency
2019-03-17 14:47:38 -07:00
Domen Kožar
58a83622eb
GHC 8.6 support
2018-11-20 23:44:59 +00:00
Ryan Trinkle
d60130c566
Abstract Scopes
2018-11-17 16:21:03 -05:00
Félix Baylac-Jacqué
e246bdd647
Add recursive NSelect reduction.
2018-06-26 10:28:33 +02:00
Félix Baylac-Jacqué
32fa31353c
Add missing sAttrPath base case.
2018-06-25 17:19:39 +02:00
Félix Baylac-Jacqué
cd90a9aff7
Add basic NSelect reduction strategy.
2018-06-25 17:19:29 +02:00
Félix Baylac-Jacqué
13cfce4e01
Documenting reductions behaviour.
2018-06-25 17:18:36 +02:00
John Wiegley
e9006ff98b
Fix a problem with static processing of imports
2018-05-09 13:36:06 -07:00
John Wiegley
15baa5c8b8
Track attribute source positions in the binding, not the key name
2018-05-09 01:25:01 -07:00
John Wiegley
a2e9334648
Factor out a staticImport function in Reduce.hs
2018-05-02 15:08:53 -07:00
John Wiegley
a735d3ffb6
Add two new helper instances for Has
2018-04-30 21:48:45 -04:00
John Wiegley
0b6c52eb45
Remove all warnings
2018-04-28 16:26:32 -07:00
John Wiegley
a4f24f148f
Comment out a function not currently being used
2018-04-28 16:26:32 -07:00
John Wiegley
100c41db6d
Run the repl in the same MonadNix environment as Main.hs
...
Fixes #204
2018-04-28 16:26:32 -07:00
John Wiegley
6c2149f767
Remove code TODOs, which have been changed into GitHub issues
2018-04-26 17:13:22 -07:00
John Wiegley
bb361afa3c
Add an improvement to the reduction code for later
2018-04-25 14:58:16 -07:00
John Wiegley
05ca87a732
Several improvements to error reporting; add new --thunks option
2018-04-25 13:00:41 -07:00
John Wiegley
19973d7529
Drop inherit (null) ... during reduction; add a comment
2018-04-25 01:10:40 -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
9e5c8a340e
Move nNull into Annotated.hs
2018-04-21 22:16:32 -07:00
John Wiegley
9937453ef2
Ensure that the --trace option persists through imports
2018-04-21 10:36:32 -07:00
John Wiegley
96a0c387dd
Merge Nix.Trace and Nix.Reduce into Nix.Reduce
...
Since almost all of that code had to do with program reduction. addTracing and
tracingEvalExpr have moved into Exec.hs, since they depend on MonadNix.
2018-04-21 10:28:09 -07:00
John Wiegley
fc85f1a7b9
Delete some commented out code in Reduce.hs
2018-04-21 00:54:40 -07:00
John Wiegley
986a3043da
Add a constant-folding tree transformer: Reduce.reduceExpr
2018-04-20 02:57:23 -07:00