Skip to content

Removes the ambiguity-inducing ^ method from FunctorOps and FunctorSyntax #326

Merged
merged 1 commit into from Apr 8, 2013

2 participants

@nuttycom
nuttycom commented Apr 8, 2013

This symbolic name for the map function is superfluous, and previously caused
ambiguity problems when functor syntax was imported from multiple locations, such as:

scala> import scalaz.syntax.traverse._
import scalaz.syntax.traverse._

scala> import scalaz.std.option._
import scalaz.std.option._

scala> ^(Option(1), Option(2)) { _ + _ }

which previously was a compilation error due to ambiguity, but which is now fine.

@nuttycom nuttycom Removes the ambiguity-inducing ^ method from FunctorOps and FunctorSy…
…ntax

This symbolic name for the map function is superfluous, and previously caused
ambiguity problems when functor syntax was imported from multiple locations, such as:

scala> import scalaz.syntax.traverse._
import scalaz.syntax.traverse._

scala> import scalaz.std.option._
import scalaz.std.option._

scala> ^(Option(1), Option(2)) { _ + _ }

which previously was a compilation error due to ambiguity, but which is now fine.
35a3301
@larsrh larsrh referenced this pull request Apr 8, 2013
Closed

Backport pull requests and commits from 7.1.x to 7.0.1 #323

24 of 24 tasks complete
@larsrh larsrh merged commit 086f644 into scalaz:scalaz-seven Apr 8, 2013

1 check passed

Details default The Travis build passed
@nuttycom nuttycom added a commit that referenced this pull request Apr 9, 2013
@nuttycom nuttycom Removes the ambiguity-inducing ^ method from FunctorOps and FunctorSy…
…ntax

Cherry-picking pull request #326 (35a3301)
ddbdc92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.