Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Apr 8, 2013
Commits on Apr 8, 2013
  1. Removes the ambiguity-inducing ^ method from FunctorOps and FunctorSy…

    nuttycom committed Apr 8, 2013
    …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.