Skip to content

Commit dfb2c99

Browse files
committed
Implicit val needs signature...
... to be considered during implicit search before the position of said implicit val. Revealed by: scala/scala#5294 Community build follow-up: scala/scala-dev#203
1 parent 4d3ca9a commit dfb2c99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/scala/scalaz/Maybe.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ sealed abstract class MaybeInstances {
275275

276276
implicit def maybeMaxMonad: Monad[MaxMaybe] = Tags.Max.subst1[Monad, Maybe](Monad[Maybe])
277277

278-
implicit val maybeInstance = new Traverse[Maybe] with MonadPlus[Maybe] with Cozip[Maybe] with Zip[Maybe] with Unzip[Maybe] with Align[Maybe] with IsEmpty[Maybe] with Cobind[Maybe] with Optional[Maybe] {
278+
implicit val maybeInstance: Traverse[Maybe] with MonadPlus[Maybe] with Cozip[Maybe] with Zip[Maybe] with Unzip[Maybe] with Align[Maybe] with IsEmpty[Maybe] with Cobind[Maybe] with Optional[Maybe] =
279+
new Traverse[Maybe] with MonadPlus[Maybe] with Cozip[Maybe] with Zip[Maybe] with Unzip[Maybe] with Align[Maybe] with IsEmpty[Maybe] with Cobind[Maybe] with Optional[Maybe] {
279280

280281
def point[A](a: => A) = just(a)
281282

0 commit comments

Comments
 (0)