We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current Monoid instances for Tuples cause stack overflow.
A working implementation for Tuple2:
implicit def Tuple2Monoid[A, B](implicit ma: Monoid[A], mb: Monoid[B]): Monoid[(A, B)] = { implicit val sa = ma.semigroup implicit val za = ma.zero implicit val sb = mb.semigroup implicit val zb = mb.zero monoid[(A, B)] }
The text was updated successfully, but these errors were encountered:
Seems okay now:
scala> import scalaz.std.tuple._ scala> import scalaz.std.anyVal._ scala> import scalaz.syntax.monoid._ scala> mzero[Int] res1: Int = 0 scala> mzero[(Int, Int)] res2: (Int, Int) = (0,0)
scala>
Sorry, something went wrong.
Update sbt-pgp to 2.2.1 in template (scalaz#34)
b531301
No branches or pull requests
The current Monoid instances for Tuples cause stack overflow.
A working implementation for Tuple2:
The text was updated successfully, but these errors were encountered: