All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.specs2.fp.NaturalTransformation.scala Maven / Gradle / Ivy

There is a newer version: 5.5.8
Show newest version
package org.specs2.fp

trait NaturalTransformation[-F[_], +G[_]]:
  def apply[A](fa: F[A]): G[A]

object NaturalTransformation:

  given naturalId[M[_]: Monad]: NaturalTransformation[Id, M] with
    def apply[A](fa: Id[A]): M[A] =
      summon[Monad[M]].point(fa)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy