Skip to content

Instantly share code, notes, and snippets.

@benhutchison
Created May 1, 2016 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benhutchison/0b3b25ae6962611f087c99d1649d7b61 to your computer and use it in GitHub Desktop.
Save benhutchison/0b3b25ae6962611f087c99d1649d7b61 to your computer and use it in GitHub Desktop.
> effJVM/bench:compile
[warn] Credentials file /Users/ben/.sbt/specs2.credentials does not exist
[info] Updating {file:/Users/ben/others-code/eff-cats/}effJVM...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/ben/others-code/eff-cats/jvm/target/scala-2.11/bench-classes...
[error] /Users/ben/others-code/eff-cats/jvm/src/bench/scala/EffBenchmark.scala:21: type mismatch;
[error] found : scalaz.Name[V]
[error] required: org.atnos.eff.EvalEffect.Eval[?]
[error] (which expands to) cats.Eval[?]
[error] impure(m.inject(Name(v)), Arrs.singleton((v: V) => EffMonad[R].pure(v)))
[error] ^
[error] /Users/ben/others-code/eff-cats/jvm/src/bench/scala/EffBenchmark.scala:27: polymorphic expression cannot be instantiated to expected type;
[error] found : [GB]G.M[List[G.A]]
[error] required: org.atnos.eff.Eff[?,?]
[error] run(runEval(list.traverseU(a => simpleSend[E, Int](a))))
[error] ^
[error] /Users/ben/others-code/eff-cats/jvm/src/bench/scala/EffBenchmark.scala:32: Implicit not found: scalaz.Unapply[scalaz.Applicative, org.atnos.eff.Eff[org.atnos.benchmarks.EffBenchmark.E,Int]]. Unable to unapply type `org.atnos.eff.Eff[org.atnos.benchmarks.EffBenchmark.E,Int]` into a type constructor of kind `M[_]` that is classified by the type class `scalaz.Applicative`. Check that the type class is defined by compiling `implicitly[scalaz.Applicative[type constructor]]` and review the implicits in object Unapply, which only cover common type 'shapes.'
[error] run(runEval(list.traverseU(a => delay[E, Int](a))))
[error] ^
[error] three errors found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment