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.
Resolve typelevel#1549. Enable all cross modules for Scala Native. De…
…pends on typelevel/discipline-munit#73.
- Loading branch information
Showing
9 changed files
with
222 additions
and
25 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
14 changes: 14 additions & 0 deletions
14
alleycats-tests/native/src/test/scala/alleycats/tests/TestSettings.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,14 @@ | ||
package alleycats.tests | ||
|
||
import org.scalacheck.Test.Parameters | ||
|
||
trait TestSettings { | ||
|
||
lazy val checkConfiguration: Parameters = | ||
Parameters.default | ||
.withMinSuccessfulTests(50) | ||
.withMaxDiscardRatio(5.0f) | ||
.withMaxSize(10) | ||
.withMinSize(0) | ||
.withWorkers(1) | ||
} |
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
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
10 changes: 10 additions & 0 deletions
10
kernel-laws/native/src/main/scala/cats/platform/Platform.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 cats.platform | ||
|
||
private[cats] object Platform { | ||
// using `final val` makes compiler constant-fold any use of these values, dropping dead code automatically | ||
// $COVERAGE-OFF$ | ||
final val isJvm = false | ||
final val isJs = false | ||
final val isNative = true | ||
// $COVERAGE-ON$ | ||
} |
Oops, something went wrong.