|
Scala example source code file (TracedTTest.scala)
The TracedTTest.scala Scala example source codepackage scalaz object TracedTTest extends SpecLite { def compilationTestTracedTU: Unit = { import scalaz.syntax.either._ import scalaz.std.function._ val a: Int \/ (Byte => String) = 1.left[Byte => String] TracedT.tracedTU(a) } object instances { def functor[F[_]: Functor, A] = Functor[TracedT[F, A, ?]] def apply[F[_]: Apply, A] = Apply[TracedT[F, A, ?]] def applicative[F[_]: Applicative, A] = Applicative[TracedT[F, A, ?]] def distributive[F[_]: Distributive, A] = Distributive[TracedT[F, A, ?]] def cobind[F[_]: Cobind, A: Semigroup] = Cobind[TracedT[F, A, ?]] def comonoad[F[_]: Comonad, A: Monoid] = Comonad[TracedT[F, A, ?]] def comonoadStore[F[_], S, A: Monoid](implicit F: ComonadStore[F, S]) = ComonadStore[TracedT[F, A, ?], S] def contravariant[F[_]: Functor, A] = Contravariant[TracedT[F, ?, A]] } } Other Scala examples (source code examples)Here is a short list of links related to this Scala TracedTTest.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.