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:
parent
24c66eb1ff
commit
8d93a77b86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user