Must obey the laws defined in cats.laws.CategoryLaws.
Must obey the laws defined in cats.laws.ComposeLaws.
FunctionK[F[_], G[_]]
is a functor transformation from F
to G
in the same manner that function A => B
is a morphism from values
of type A
to B
.
FunctionK[F[_], G[_]]
is a functor transformation fromF
toG
in the same manner that functionA => B
is a morphism from values of typeA
toB
. An easy way to create a FunctionK instance is to use the Polymorphic lambdas provided by non/kind-projector v0.9+. E.g.