| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (TracedTTest.scala)

This example Scala source code file (TracedTTest.scala) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Scala by Example" TM.

Learn more about this Scala project at its project page.

Java - Scala tags/keywords

applicative, apply, byte, cobind, comonad, comonadstore, distributive, functor, monoid, string, tracedttest

The TracedTTest.scala Scala example source code

package 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]

  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


new blog posts


Copyright 1998-2021 Alvin Alexander,
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.