-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
Deprecate CartesianBuilder, finish up #1487 #1745
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
# see https://weblogs.java.net/blog/kcpeppe/archive/2013/12/11/case-study-jvm-hotspot-flags | ||
-Dfile.encoding=UTF8 | ||
-Xms1G | ||
-Xmx6G | ||
-XX:MaxPermSize=512M | ||
-XX:ReservedCodeCacheSize=250M | ||
-XX:+TieredCompilation | ||
-XX:-UseGCOverheadLimit | ||
# effectively adds GC to Perm space | ||
-XX:+CMSClassUnloadingEnabled | ||
# must be enabled for CMSClassUnloadingEnabled to work | ||
-XX:+UseConcMarkSweepGC |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ lazy val commonJsSettings = Seq( | |
scalaJSStage in Global := FastOptStage, | ||
parallelExecution := false, | ||
requiresDOM := false, | ||
jsEnv := NodeJSEnv().value, | ||
jsEnv := new org.scalajs.jsenv.nodejs.NodeJSEnv(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. old one is deprecated. |
||
// Only used for scala.js for now | ||
botBuild := scala.sys.env.get("TRAVIS").isDefined, | ||
// batch mode decreases the amount of memory needed to compile scala.js code | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,7 @@ final case class EitherT[F[_], A, B](value: F[Either[A, B]]) { | |
* scala> val v1: Validated[NonEmptyList[Error], Int] = Validated.invalidNel("error 1") | ||
* scala> val v2: Validated[NonEmptyList[Error], Int] = Validated.invalidNel("error 2") | ||
* scala> val eithert: EitherT[Option, Error, Int] = EitherT.leftT[Option, Int]("error 3") | ||
* scala> eithert.withValidated { v3 => (v1 |@| v2 |@| v3.toValidatedNel).map { case (i, j, k) => i + j + k } } | ||
* scala> eithert.withValidated { v3 => (v1, v2, v3.leftMap(NonEmptyList.of(_))).mapN { case (i, j, k) => i + j + k } } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can keep the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missed that during the merge. will fix. |
||
* res0: EitherT[Option, NonEmptyList[Error], Int] = EitherT(Some(Left(NonEmptyList(error 1, error 2, error 3)))) | ||
* }}} | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ package cats | |
package data | ||
|
||
import cats.functor.Contravariant | ||
import cats.syntax.cartesian._ | ||
import cats.syntax.apply._ | ||
|
||
/** | ||
* [[Tuple2K]] is a product to two independent functor values. | ||
|
@@ -160,7 +160,7 @@ private[data] sealed trait Tuple2KTraverse[F[_], G[_]] extends Traverse[λ[α => | |
def G: Traverse[G] | ||
|
||
override def traverse[H[_]: Applicative, A, B](fa: Tuple2K[F, G, A])(f: A => H[B]): H[Tuple2K[F, G, B]] = | ||
(F.traverse(fa.first)(f) |@| G.traverse(fa.second)(f)).map(Tuple2K(_, _)) | ||
(F.traverse(fa.first)(f), G.traverse(fa.second)(f)).mapN(Tuple2K(_, _)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we can just write |
||
} | ||
|
||
private[data] sealed trait Tuple2KMonadCombine[F[_], G[_]] extends MonadCombine[λ[α => Tuple2K[F, G, α]]] | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DavidGregory084 pointed out that these comments causes problem on Windows.