diff --git a/prototype/Doubt/Free.swift b/prototype/Doubt/Free.swift index 03b92ab86..cdee6ca54 100644 --- a/prototype/Doubt/Free.swift +++ b/prototype/Doubt/Free.swift @@ -87,8 +87,8 @@ public enum Free: CustomDebugStringConvertible { // MARK: Functor - public func map(@noescape transform: Value -> C) -> Free { - return analysis(ifPure: { .Pure(transform($0)) }, ifRoll: { .Roll($0, $1.map { $0.map(transform) }) }) + public func map(@noescape transform: Value throws -> C) rethrows -> Free { + return try analysis(ifPure: { try .Pure(transform($0)) }, ifRoll: { try .Roll($0, $1.map { try $0.map(transform) }) }) }