Skip to content

Commit

Permalink
Added implicit finder method for Hoist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Nuttycombe committed Dec 18, 2012
1 parent a0d95e7 commit c5a3082
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/scala/scalaz/MonadTrans.scala
Expand Up @@ -14,6 +14,10 @@ trait Hoist[F[_[_], _]] extends MonadTrans[F] {
def hoist[M[_]: Monad, N[_]](f: M ~> N): ({type f[x] = F[M, x]})#f ~> ({type f[x] = F[N, x]})#f
}

object Hoist {
def apply[F[_[_], _]](implicit F: Hoist[F]): Hoist[F] = F
}

/**
* This trait establishes a partial order among monads. A "bigger" monad
* is one that does all of the effects of the "smaller" as part of its
Expand Down

0 comments on commit c5a3082

Please sign in to comment.