|
Scala example source code file (IdTTest.scala)
The IdTTest.scala Scala example source codepackage scalaz object IdTTest extends SpecLite { object instances { def equal[F[_], A](implicit F: Equal[F[A]]) = Equal[IdT[F, A]] def order[F[_], A](implicit F: Order[F[A]]) = Order[IdT[F, A]] def functor[F[_] : Functor] = Functor[IdT[F, ?]] def apply[F[_] : Apply] = Apply[IdT[F, ?]] def bindRec[F[_] : BindRec] = BindRec[IdT[F, ?]] def monad[F[_] : Monad] = Monad[IdT[F, ?]] def foldable[F[_] : Foldable] = Foldable[IdT[F, ?]] def traverse[F[_] : Traverse] = Traverse[IdT[F, ?]] // checking absence of ambiguity def equal[F[_], A](implicit F: Order[F[A]]) = Equal[IdT[F, A]] def functor[F[_] : Monad] = Functor[IdT[F, ?]] def functor[F[_] : Monad : Traverse] = Functor[IdT[F, ?]] def functor[F[_] : BindRec: Traverse] = Functor[IdT[F, ?]] def functor[F[_] : Apply: BindRec] = Functor[IdT[F, ?]] def functor[F[_] : Applicative: BindRec] = Functor[IdT[F, ?]] def functor[F[_] : Monad : BindRec] = Functor[IdT[F, ?]] def apply[F[_] : Monad] = Apply[IdT[F, ?]] def apply[F[_] : BindRec] = Apply[IdT[F, ?]] def apply[F[_] : Applicative: BindRec] = Apply[IdT[F, ?]] def apply[F[_] : ApplicativePlus: BindRec] = Apply[IdT[F, ?]] def apply[F[_] : Monad: BindRec] = Apply[IdT[F, ?]] def foldable[F[_] : Traverse] = Foldable[IdT[F, ?]] } } Other Scala examples (source code examples)Here is a short list of links related to this Scala IdTTest.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.