2
4

2 回答 2

3
于 2010-04-21T13:46:39.850 回答
3

I need to add this to object Scalaz:

implicit def SetMA[M[_] <: Set[_], A](s: M[A]): MA[M, A] = ma[M, A](s)

But, thanks to #2741, I'm running into a problem making this higher priority than the offending conversion:

implicit def Function1ApplyMA[A, R](f: A => R): MA[PartialApply1Of2[Function1, A]#Apply, R]  = ma[PartialApply1Of2[Function1, A]#Apply, R](f)

I really wish that Seq and Set were implicitly convertible to Function1 rather than inheriting from it.

UPDATE

This is now fixed.

于 2010-04-21T21:40:02.163 回答