/** * Get a `Compact` instance for an `Either` given an * `AssociativeIdentity`. * * @tsplus static Either.Ops getCompact */ export function getCompact(M: AssociativeIdentity) { const compact = Either.$.compactMaybe(M) return HKT.instance>>({ compact }) }