
alleycats.EmptyK.scala Maven / Gradle / Ivy
The newest version!
package alleycats
import simulacrum.typeclass
@typeclass trait EmptyK[F[_]] { self =>
def empty[A]: F[A]
def synthesize[A]: Empty[F[A]] =
new Empty[F[A]] {
def empty: F[A] = self.empty[A]
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy