Skip to content

Commit

Permalink
Fix compile error in Trampoline.scala
Browse files Browse the repository at this point in the history
Also make TrampolineFunctions package-private, since it's just a
workaround for a scalac bug and isn't really intended to be used
directly.
  • Loading branch information
ceedubs committed Nov 9, 2015
1 parent 2af29f2 commit bc06262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions free/src/main/scala/cats/free/Trampoline.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import cats.std.function.function0Instance

// To workaround SI-7139 `object Trampoline` needs to be defined inside the package object
// together with the type alias.
abstract class TrampolineFunctions {
private[free] abstract class TrampolineFunctions {
def done[A](a: A): Trampoline[A] =
Free.Pure[Function0,A](a)
Free.pure[Function0, A](a)

def suspend[A](a: => Trampoline[A]): Trampoline[A] =
Free.suspend(a)
Expand Down

0 comments on commit bc06262

Please sign in to comment.