forked from typelevel/cats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added scalafix to rename Cartesian to Semigroupal
- Loading branch information
1 parent
de6345e
commit f42419b
Showing
5 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
scalafix/input/src/main/scala/fix/v1_0_0/RenameCartesian.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
rule = "scala:fix.v1_0_0.RenameCartesian" | ||
*/ | ||
package fix | ||
package to1_0_0 | ||
|
||
import cats.Cartesian | ||
|
||
object RenameCartesianTests { | ||
import cats.syntax.cartesian._ | ||
|
||
def prod[F[_]: Cartesian, A, B](fa: F[A], fb: F[B]): F[(A, B)] = Cartesian[F].product(fa, fb) | ||
} |
10 changes: 10 additions & 0 deletions
10
scalafix/output/src/main/scala/fix/v1_0_0/RenameCartesian.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package fix | ||
package to1_0_0 | ||
|
||
import cats.Semigroupal | ||
|
||
object RenameCartesianTests { | ||
import cats.syntax.semigroupal._ | ||
|
||
def prod[F[_]: Semigroupal, A, B](fa: F[A], fb: F[B]): F[(A, B)] = Semigroupal[F].product(fa, fb) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters