Skip to content

Commit

Permalink
ambiguous implicits
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Nov 24, 2015
1 parent b96a445 commit 5b426cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/src/test/scala/cats/tests/IdTTests.scala
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package cats.tests

import cats.{Monad, Traverse}
import cats.{Monad, Traverse, Functor}
import cats.data.IdT
import cats.laws.discipline.{MonadTests, SerializableTests, TraverseTests}
import cats.laws.discipline.arbitrary._

class IdTTests extends CatsSuite {

def idTFunctor[F[_]: Monad] = implicitly[Functor[IdT[F, ?]]]

checkAll("IdT[List, Int]", MonadTests[IdT[List, ?]].monad[Int, Int, Int])
checkAll("Monad[IdT[List, ?]]", SerializableTests.serializable(Monad[IdT[List, ?]]))

Expand Down

0 comments on commit 5b426cc

Please sign in to comment.