[英]What's the equivalent of hoistEither in scalaz?
What's the equivalent of hoistEither :: Monad m => Either ea -> EitherT ema
? hoistEither :: Monad m => Either ea -> EitherT ema
什么?
I have an \\/[E, A]
and I'd like to get a EitherT[M[_],E,A]
我有一个
\\/[E, A]
,我想得到一个EitherT[M[_],E,A]
You can use EitherT#fromDisjunction
. 您可以使用
EitherT#fromDisjunction
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.