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

Equality over Cofrees of equatable types.

This commit is contained in:
Rob Rix 2015-10-14 10:53:29 -04:00
parent 889dab1df2
commit 3dcfbc0d38

View File

@ -74,5 +74,9 @@ extension Cofree {
} }
} }
public func == <A: Equatable, B: Equatable> (left: Cofree<A, B>, right: Cofree<A, B>) -> Bool {
return Cofree.equals(annotation: ==, leaf: ==)(left, right)
}
import Prelude import Prelude