From b2762785b7f72db175d47df21b966badb03c9f20 Mon Sep 17 00:00:00 2001 From: Franco Ponticelli Date: Tue, 26 Dec 2017 08:38:18 -0700 Subject: [PATCH] release --- haxelib.json | 4 ++-- src/thx/Objects.hx | 2 +- src/thx/fp/ktree/Zipper.hx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/haxelib.json b/haxelib.json index 6c636a8d..52a8662f 100644 --- a/haxelib.json +++ b/haxelib.json @@ -5,7 +5,7 @@ "classPath": "src", "tags": ["thx", "general", "cross", "std"], "description": "General purpose library. It contains extensions to many of the types contained in the standard library as well as new complementary types.", - "releasenote": "Update doc.", - "version": "0.42.1", + "releasenote": "`Do` notation, and more.", + "version": "0.43.0", "contributors": ["fponticelli", "andywhite37", "mlms13"] } diff --git a/src/thx/Objects.hx b/src/thx/Objects.hx index eb87a689..9aabf2f7 100644 --- a/src/thx/Objects.hx +++ b/src/thx/Objects.hx @@ -468,7 +468,7 @@ Create a copy of the object with the field `field` replaced by `value`. #if macro static function buildFromAnonymous(matchField, fields, value, pos) { var found = false; - var e = haxe.macro.Expr.ExprDef.EObjectDecl(fields.map(function(field)#if (haxe_ver >= 4.0) :haxe.macro.Expr.ObjectField #end { + var e = haxe.macro.Expr.ExprDef.EObjectDecl(fields.map(function(field)#if ((haxe_ver >= 4.0) && !macro ) :haxe.macro.Expr.ObjectField #end { var fieldName = field.name; if(fieldName == matchField) { found = true; diff --git a/src/thx/fp/ktree/Zipper.hx b/src/thx/fp/ktree/Zipper.hx index 4c5ad706..3b25a2ce 100644 --- a/src/thx/fp/ktree/Zipper.hx +++ b/src/thx/fp/ktree/Zipper.hx @@ -147,7 +147,7 @@ import thx.fp.KTree; } public function selectChild(new_head:KTree):Zipper{ return switch(this){ - case Cons(head,tail) : Cons(new_head,tail); + case Cons(head,t) : Cons(new_head,t); default : Cons(new_head,List.empty()); } }