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

Add a CofreeConvertible protocol.

This commit is contained in:
Rob Rix 2015-10-15 15:31:51 -04:00
parent 24c66eb1ff
commit 8d93a77b86

View File

@ -112,4 +112,15 @@ extension Cofree where B: Categorizable {
} }
// MARK: - CofreeConvertible
public protocol CofreeConvertible {
typealias Leaf
typealias Annotation
init(cofree: Cofree<Leaf, Annotation>)
var cofree: Cofree<Leaf, Annotation> { get }
}
import Prelude import Prelude