File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import cats.syntax.all._
33
33
* Eval instance -- this can defeat the trampolining and lead to stack
34
34
* overflows.
35
35
*/
36
- sealed abstract class Eval [A ] extends Serializable { self =>
36
+ sealed abstract class Eval [+ A ] extends Serializable { self =>
37
37
38
38
/**
39
39
* Evaluate the computation and return an A value.
@@ -279,7 +279,7 @@ object Eval extends EvalInstances {
279
279
cc.start().asInstanceOf [L ],
280
280
cc.run.asInstanceOf [C ] :: c.run.asInstanceOf [C ] :: fs)
281
281
case xx =>
282
- loop(c.run(xx.value). asInstanceOf [ L ] , fs)
282
+ loop(c.run(xx.value), fs)
283
283
}
284
284
case x =>
285
285
fs match {
@@ -350,7 +350,7 @@ trait EvalMonoid[A] extends Monoid[Eval[A]] with EvalSemigroup[A] {
350
350
trait EvalGroup [A ] extends Group [Eval [A ]] with EvalMonoid [A ] {
351
351
implicit def algebra : Group [A ]
352
352
def inverse (lx : Eval [A ]): Eval [A ] =
353
- lx.map(_.inverse)
353
+ lx.map(_.inverse() )
354
354
override def remove (lx : Eval [A ], ly : Eval [A ]): Eval [A ] =
355
355
for { x <- lx; y <- ly } yield x |-| y
356
356
}
You can’t perform that action at this time.
0 commit comments