From 3fbfeccce9622ef68cc5d917052ec4d22252ee96 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 2 Nov 2015 15:12:27 -0500 Subject: [PATCH] =?UTF-8?q?`Free.para`=E2=80=99s=20transformation=20functi?= =?UTF-8?q?on=20receives=20the=20annotation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prototype/Doubt/Free.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prototype/Doubt/Free.swift b/prototype/Doubt/Free.swift index 481403272..b5786abf2 100644 --- a/prototype/Doubt/Free.swift +++ b/prototype/Doubt/Free.swift @@ -63,10 +63,10 @@ public enum Free: CustomDebugStringConvertible { } /// Like `cata`, except the `Syntax` values are parameterized by the `Free` values as well as the reduced form. - public func para(@noescape transform: Syntax<(Free, Value), Leaf> throws -> Value) rethrows -> Value { + public func para(@noescape transform: (Annotation, Syntax<(Free, Value), Leaf>) throws -> Value) rethrows -> Value { return try analysis( ifPure: id, - ifRoll: { try transform($1.map { try ($0, $0.para(transform)) }) }) + ifRoll: { try transform($0, $1.map { try ($0, $0.para(transform)) }) }) }