Skip to content
This repository was archived by the owner on Feb 27, 2021. It is now read-only.
This repository was archived by the owner on Feb 27, 2021. It is now read-only.

Equal[Option[A]] ambiguity with Cats 2.2.0 #116

@nigredo-tori

Description

@nigredo-tori

Scastie. With Shims 2.2.0 and Cats 2.2.0, we get this:

import scalaz.Scalaz._
import shims.eqToScalaz

implicitly[scalaz.Equal[Option[Short]]]
//ambiguous implicit values:
// both method optionOrder in trait OptionInstances of type [A](implicit A0: scalaz.Order[A])scalaz.Order[Option[A]]
// and method eqToScalaz in trait EqConversions of type [A](implicit AC: shims.util.Capture[cats.kernel.Eq[A]])scalaz.Equal[A] with shims.conversions.Synthetic
// match expected type scalaz.Equal[Option[Short]]
//could not find implicit value for parameter e: scalaz.Equal[Option[Short]]
//not enough arguments for method implicitly: (implicit e: scalaz.Equal[Option[Short]])scalaz.Equal[Option[Short]].
//Unspecified value parameter e.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions