John Wiegley
39f772ef3c
Restore monadic abstraction (to support importFile), fix attribute sets
2018-03-28 14:45:10 -07:00
John Wiegley
f0f88edac7
Add support for import statements
2018-03-27 22:21:17 -07:00
John Wiegley
3a29249e43
Normalize import statements, add option parsing
2018-03-27 21:59:27 -07:00
John Wiegley
1e0e47d064
Remove monadic context from evalExpr: we weren't using it!
2018-03-27 19:07:08 -07:00
John Wiegley
278916a9ab
Further work on argument evaluation
2018-03-27 18:42:31 -07:00
Georges Dubus
15bf5b34d4
Represent builtins with 2 arguments with currying
...
As a result, `NVBuiltin2` is not needed any more, and `NVBuiltin1` gets renamed
to `NVBuiltin`
2018-02-27 18:52:58 +01:00
Georges Dubus
aaa15ac77a
Add context to strings
...
This commit adds a `DList Text` to the NVStr constructor. This allows haskell
code that generates string to give them a context, which will be tracked when
the string in used.
This allows, for example, to determine the dependencies of a derivation.
2018-02-21 15:09:36 +01:00
Guillaume Maudoux
5718952e7b
Add NValue constructors for builtins
2018-02-15 12:05:23 +01:00