Skip to content

Commit

Permalink
define ownOps as alternative to ops
Browse files Browse the repository at this point in the history
It doesn't conflict with the implicits from FunctorT.ops
  • Loading branch information
mossprescott committed Dec 4, 2015
1 parent daa01b8 commit 1059fd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/main/scala/quasar/recursionschemes/TraverseT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ object TraverseT {
def traverse[M[_]: Applicative, F[_], G[_]](t: T[F])(f: F[T[F]] => M[G[T[G]]]) =
f(Recursive[T].project(t)).map(Corecursive[T].embed)
}

/** Import from this object instead of `ops._` to get just ops for the
* methods of TraverseT, and not those inherited from FunctorT.
*/
object ownOps extends ToTraverseTOps
}

0 comments on commit 1059fd2

Please sign in to comment.