1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 21:43:07 +03:00

Patch has a JSON property when A is CustomJSONConvertible.

This commit is contained in:
Rob Rix 2015-10-09 09:06:06 -05:00
parent 4512b6f2e7
commit 5fc16e86f8

View File

@ -109,6 +109,13 @@ extension Patch {
}
extension Patch where A: CustomJSONConvertible {
public var JSON: Doubt.JSON {
return self.JSON { $0.JSON }
}
}
/// A hack to enable constrained extensions on `Free<A, Patch<A>>`.
public protocol PatchConvertible {
typealias Info