Commit Graph

  • da32b8fff8 Add 'map' builtin Ryan Trinkle 2018-03-30 19:46:25 -0400
  • a9cc3644b2 Fix error message in attrNames Ryan Trinkle 2018-03-30 19:46:16 -0400
  • d74c5506b1 Reindent 'substring' Ryan Trinkle 2018-03-30 19:45:58 -0400
  • 1944316909 Add builtins.attrNames Ryan Trinkle 2018-03-30 19:37:11 -0400
  • e0084cbbfa Add builtins.stringLength Ryan Trinkle 2018-03-30 19:19:12 -0400
  • ce016b2dca Add builtins.substring Ryan Trinkle 2018-03-30 19:16:58 -0400
  • f9b5755642 Minor whitespace change John Wiegley 2018-03-30 15:15:31 -0700
  • 77b7647c42 Add an arit2 helper John Wiegley 2018-03-30 15:14:55 -0700
  • 94d4b5960c Fix a scoping bug introduced by 4cedcca9ad John Wiegley 2018-03-30 15:09:02 -0700
  • 2672610fea Disable tracing John Wiegley 2018-03-30 14:57:03 -0700
  • 19e88692a3 Fix an import in Main.hs John Wiegley 2018-03-30 14:56:41 -0700
  • 4cedcca9ad Abstract the NScope type within MonadNix John Wiegley 2018-03-30 14:55:30 -0700
  • cac662f7dc Merge branch 'to-from-nix' Ryan Trinkle 2018-03-30 17:52:38 -0400
  • 48c47eecdf Refactor `sub` primitive Ryan Trinkle 2018-03-30 17:34:27 -0400
  • c15ee3d733 Merge remote-tracking branch 'origin/master' into to-from-nix Ryan Trinkle 2018-03-30 17:26:31 -0400
  • 74cc1a2ad5 Split MonadNix into evaluation and environmental effects John Wiegley 2018-03-30 14:25:03 -0700
  • 9f6c2ba948 Move a lot of code around into new modules John Wiegley 2018-03-30 14:08:38 -0700
  • 3c109a150c Add ToNix, FromNix, and ToBuiltin Ryan Trinkle 2018-03-30 16:52:45 -0400
  • 35b0cc1c59 Use valueRef in Builtins.hs John Wiegley 2018-03-30 13:52:36 -0700
  • b1620ffe49 Restore the valueRef method John Wiegley 2018-03-30 13:52:01 -0700
  • 5effdda04b Move the scoping code into its own module John Wiegley 2018-03-30 13:30:28 -0700
  • 0b812d5c94 Correctly support 'with' by distinguishing weak scopes from non-weak John Wiegley 2018-03-30 13:18:24 -0700
  • 744c4fd388 Disable tracing again John Wiegley 2018-03-30 12:48:12 -0700
  • cab2fe914e Add a missing import John Wiegley 2018-03-30 12:47:49 -0700
  • cb2d69c24a Bump nix to a fork where we have a new test: eval-okay-nested-with Ryan Trinkle 2018-03-30 15:45:59 -0400
  • a4a2fc0659 Move the linting code into its own module John Wiegley 2018-03-30 12:45:23 -0700
  • 185ddf94e4 Add support for the inherit keyword John Wiegley 2018-03-30 12:37:11 -0700
  • 92a030c707 Restore foldl' John Wiegley 2018-03-30 12:10:04 -0700
  • 45d29178df Remove an unnecessary layer of indirection in the management of thunks John Wiegley 2018-03-30 11:53:51 -0700
  • 3d1bc0bb0b Fix compareVersions Ryan Trinkle 2018-03-30 13:21:02 -0400
  • 4c10e6333d Add some things to .gitignore Ryan Trinkle 2018-03-30 13:07:40 -0400
  • 83335ec0f3 Add builtins.parseDrvName Ryan Trinkle 2018-03-30 13:07:33 -0400
  • 5c509ab66a Add builtins.sub Ryan Trinkle 2018-03-30 12:42:34 -0400
  • 6d9e5e1b4f Bump nix Ryan Trinkle 2018-03-30 12:39:21 -0400
  • a63b908f99 Add builtins.splitVersion and builtins.compareVersions Ryan Trinkle 2018-03-30 12:39:15 -0400
  • e763089786 Add builtins.tail Ryan Trinkle 2018-03-30 12:00:31 -0400
  • d813c4d1e9 Add builtins.head Ryan Trinkle 2018-03-30 11:58:05 -0400
  • b800c630a2 Make == and /= handle lists Ryan Trinkle 2018-03-30 11:57:47 -0400
  • 4007498b2d Add foldl' builtin Ryan Trinkle 2018-03-30 11:46:23 -0400
  • 22924a591f Implement getEnv, set TEST_VAR=foo for the language tests John Wiegley 2018-03-30 02:16:52 -0700
  • c234849fd6 Fix a few tests by making a small change to printNix John Wiegley 2018-03-30 02:07:08 -0700
  • 8e944cc223 Fix the tests John Wiegley 2018-03-30 02:00:36 -0700
  • 71b4bf5e8a Various fixes, and make imports local to their containing file John Wiegley 2018-03-30 01:50:19 -0700
  • b456eba4d6 Add some test files John Wiegley 2018-03-30 01:14:06 -0700
  • 4e698d76fa More fixes to lazy evaluation and scoping John Wiegley 2018-03-30 01:11:27 -0700
  • 21b179b267 Change the precedence of 'with' bindings John Wiegley 2018-03-29 18:14:04 -0700
  • 3f29f65477 Use nix-store --add to convert paths to strings Ryan Trinkle 2018-03-29 20:23:01 -0400
  • 6ada0e8861
    Merge pull request #101 from ryantrinkle/eval-fail-undeclared-arg John Wiegley 2018-03-29 17:02:14 -0700
  • 1080ad7b5e Fix eval-fail-undeclared-arg Ryan Trinkle 2018-03-29 19:34:08 -0400
  • 8a01f87d69 Fix one of the function-related tests John Wiegley 2018-03-29 16:00:06 -0700
  • 8f24c7b645 Implement laziness, although without support for concurrency John Wiegley 2018-03-29 15:35:12 -0700
  • c82dec901f Begin work to avoid buying thunks in m (NThunk m) John Wiegley 2018-03-29 12:32:16 -0700
  • e06271d9ca Initial round of work on supporting first class thunks John Wiegley 2018-03-29 12:16:18 -0700
  • 84918aa1d3 Remove the MonadFix requirement, it was not needed; fix NRecSet John Wiegley 2018-03-28 23:51:55 -0700
  • 9a37da33f7 Fix recursive binding problem with NRecSet John Wiegley 2018-03-28 17:43:09 -0700
  • abb2d8a98b Fix to .travis.yml John Wiegley 2018-03-28 16:32:28 -0700
  • d77e52e9d4 Don't run the language tests (say, on Travis) unless LANGUAGE_TESTS=yes John Wiegley 2018-03-28 16:30:54 -0700
  • dfee8cd2b8 Add checkExpr, which checks for errors in Nix expressions John Wiegley 2018-03-28 16:27:35 -0700
  • 2c188045cd Passing --debug to hnix when not evaluating dump the parse tree John Wiegley 2018-03-28 15:48:32 -0700
  • b97378c581 Restore previous default.nix (mostly) John Wiegley 2018-03-28 15:12:57 -0700
  • 4cce2adc1b Add Nix/Utils.hs John Wiegley 2018-03-28 15:00:28 -0700
  • c68e508f83 Remove an unneeded import John Wiegley 2018-03-28 15:00:19 -0700
  • 7affd66a25 Drop some dead code John Wiegley 2018-03-28 15:00:02 -0700
  • cce4118452 Remove some debugging code John Wiegley 2018-03-28 14:51:40 -0700
  • 39f772ef3c Restore monadic abstraction (to support importFile), fix attribute sets John Wiegley 2018-03-28 14:45:10 -0700
  • 1974ace399 Remove some tracing code John Wiegley 2018-03-27 23:16:00 -0700
  • 124530c9a9 Fix at-right patterns John Wiegley 2018-03-27 22:53:52 -0700
  • dbc57423e7 Constrain exports from Nix.Eval John Wiegley 2018-03-27 22:34:56 -0700
  • b923af49f4 Split off some utility functions into their own Nix.Utils module John Wiegley 2018-03-27 22:32:43 -0700
  • 1ba29231af Clarify an error message John Wiegley 2018-03-27 22:28:53 -0700
  • b5c0ccf6d5 Clarify a comment John Wiegley 2018-03-27 22:28:00 -0700
  • f0f88edac7 Add support for import statements John Wiegley 2018-03-27 22:21:17 -0700
  • 3a29249e43 Normalize import statements, add option parsing John Wiegley 2018-03-27 21:59:27 -0700
  • 1e0e47d064 Remove monadic context from evalExpr: we weren't using it! John Wiegley 2018-03-27 19:07:08 -0700
  • 278916a9ab Further work on argument evaluation John Wiegley 2018-03-27 18:42:31 -0700
  • ecd18e3da3 Merge branch 'master' into fix-recursive-argument-set John Wiegley 2018-03-27 14:34:28 -0700
  • 15651db78a
    Merge pull request #99 from dmjio/patch-1 John Wiegley 2018-03-27 14:11:16 -0700
  • 37e457367b
    Bump deriving-compat upper bound David Johnson 2018-03-27 12:34:56 -0700
  • 9cd901fc4b
    Merge pull request #96 from madjar/default-args-in-atpattern Georges Dubus 2018-03-11 12:16:01 +0100
  • 2e26bd75a5 Fix a bug where defaultargs are absent from the atpattern argument Georges Dubus 2018-03-11 12:15:33 +0100
  • fe28701d1c
    Merge pull request #95 from madjar/variadic-params Georges Dubus 2018-03-09 14:11:36 +0100
  • 0f7332636e Add support for variadic parameters Georges Dubus 2018-03-09 14:09:43 +0100
  • 6bee6ecc91
    Merge pull request #94 from deepfire/master John Wiegley 2018-03-05 20:19:06 -0800
  • 0693768550
    Fix #93: true/false being mis-parsed when part of an attribute name. Kosyrev Serge 2018-03-06 04:07:35 +0300
  • 89305fedf0
    Merge pull request #92 from madjar/fix-function-env John Wiegley 2018-03-01 11:23:00 -0800
  • 6a8ae208b4 Use environment in evaluation of function definitions Georges Dubus 2018-03-01 20:04:54 +0100
  • edd12bbbbd
    Merge pull request #91 from jwiegley/rm_shorthands_test John Wiegley 2018-02-28 10:12:27 -0800
  • 46bb504ccc whack that mole Allen Nelson 2018-02-28 11:45:08 -0600
  • e6be5e0096 rm mention of shorthandtests from cabal file Allen Nelson 2018-02-28 11:34:50 -0600
  • cbee241685 remove mkDots test, no longer necessary Allen Nelson 2018-02-28 10:59:53 -0600
  • ac731ee4a0
    Merge pull request #89 from madjar/set-to-string John Wiegley 2018-02-27 10:28:26 -0800
  • 1c9a7b4ce7
    Merge pull request #90 from madjar/curry-builtin-implementation John Wiegley 2018-02-27 10:27:56 -0800
  • 15bf5b34d4 Represent builtins with 2 arguments with currying Georges Dubus 2018-02-27 18:52:58 +0100
  • eedcc13ece Eval: coerce a set to a string if there is a __asString attribute Georges Dubus 2018-02-16 12:17:46 +0100
  • c91a3487e3
    Merge pull request #88 from jwiegley/simplify_dots John Wiegley 2018-02-24 00:05:51 -0800
  • 42c16d1cbd Simplify mkDots Allen Nelson 2018-02-24 01:36:26 -0600
  • a68a33ac0d
    Merge pull request #87 from madjar/string-context John Wiegley 2018-02-21 12:00:20 -0800
  • aaa15ac77a Add context to strings Georges Dubus 2018-02-14 18:20:33 +0100
  • f2ceb7513d
    Merge pull request #82 from layus/nix-test John Wiegley 2018-02-20 16:07:41 -0800
  • 746d828ac7
    Merge pull request #83 from layus/parse-let-body John Wiegley 2018-02-20 16:06:54 -0800