Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
fix(macro): Work bad expansion in extendWithPath
Browse files Browse the repository at this point in the history
This doesn't fix the underlying problem (needs to investigate changes in
both Sweet.js and lambda-chop), but at least fixes this particular
instance of the problem in Raven.

Addresses #90, but we still need to make sure that this problem doesn't
happen elsewhere.
  • Loading branch information
robotlolita committed Jul 30, 2015
1 parent f6e2ccf commit aecfa8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/scripts/novel.sjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = function(storage) {
var joinPath = λ a b -> path.join(a, b);
var appendPath = flip(joinPath);
var extendWith = λ a b -> extend(b, a);
var extendWithPath = λ(data, path) -> extend(data, { path: path });
var extendWithPath = function(data, path){ return extend(data, { path: path }) };
var toNullable = λ(a) -> a.cata({ Nothing: λ(_) -> null,
Just: λ(a) -> a });
var writeAsText = FS.writeAsText;
Expand Down

0 comments on commit aecfa8d

Please sign in to comment.