Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: arrow-kt/arrow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.4
Choose a base ref
...
head repository: arrow-kt/arrow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.1.5
Choose a head ref
  • 7 commits
  • 177 files changed
  • 2 contributors

Commits on Dec 28, 2022

  1. Remove test modules (#2874)

    serras authored Dec 28, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    iampopovich Alex Popov
    Copy the full SHA
    7a08939 View commit details

Commits on Jan 8, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    iampopovich Alex Popov
    Copy the full SHA
    4a8e88d View commit details

Commits on Jan 9, 2023

  1. Prisms for Either (#2877)

    Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
    serras and nomisRev authored Jan 9, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a5a867f View commit details
  2. Update to 1.8.0 (#2864)

    Co-authored-by: Alejandro Serrano <trupill@gmail.com>
    nomisRev and serras authored Jan 9, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    iampopovich Alex Popov
    Copy the full SHA
    a49e5db View commit details
  3. Implement 'align' using 'buildList' (#2886)

    Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
    serras and nomisRev authored Jan 9, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9ca5f8c View commit details

Commits on Jan 12, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    iampopovich Alex Popov
    Copy the full SHA
    7156f4a View commit details

Commits on Jan 16, 2023

  1. Fix knitCheck & re-add check (#2887)

    * Use check -x linuxX64Test -x jsTest
    nomisRev authored Jan 16, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0dd37b5 View commit details
Showing with 2,024 additions and 3,238 deletions.
  1. +57 −6 .github/workflows/pull_request.yml
  2. +11 −0 README.md
  3. +4 −1 arrow-libs/core/arrow-continuations/build.gradle.kts
  4. +3 −2 arrow-libs/core/arrow-continuations/src/commonTest/kotlin/generic/SuspendingComputationTest.kt
  5. +4 −1 arrow-libs/core/arrow-core-retrofit/build.gradle.kts
  6. +6 −8 ...e/arrow-core-retrofit/src/test/kotlin/arrow/retrofit/adapter/either/ArrowEitherCallAdapterTest.kt
  7. +6 −8 ...re/arrow-core-retrofit/src/test/kotlin/arrow/retrofit/adapter/either/ArrowResponseEAdapterTest.kt
  8. +0 −158 arrow-libs/core/arrow-core-test/api/arrow-core-test.api
  9. +0 −37 arrow-libs/core/arrow-core-test/build.gradle.kts
  10. +0 −3 arrow-libs/core/arrow-core-test/gradle.properties
  11. +0 −5 arrow-libs/core/arrow-core-test/knit.properties
  12. +0 −14 arrow-libs/core/arrow-core-test/src/commonMain/kotlin/arrow/core/test/Platform.kt
  13. +0 −277 arrow-libs/core/arrow-core-test/src/commonMain/kotlin/arrow/core/test/UnitSpec.kt
  14. +0 −12 arrow-libs/core/arrow-core-test/src/commonMain/kotlin/arrow/core/test/concurrency/SideEffect.kt
  15. +0 −276 arrow-libs/core/arrow-core-test/src/commonMain/kotlin/arrow/core/test/generators/Generators.kt
  16. +0 −33 arrow-libs/core/arrow-core-test/src/commonMain/kotlin/arrow/core/test/generators/utils.kt
  17. +0 −186 arrow-libs/core/arrow-core-test/src/commonMain/kotlin/arrow/core/test/laws/FxLaws.kt
  18. +0 −12 arrow-libs/core/arrow-core-test/src/commonMain/kotlin/arrow/core/test/laws/Law.kt
  19. +0 −45 arrow-libs/core/arrow-core-test/src/commonMain/kotlin/arrow/core/test/laws/MonoidLaws.kt
  20. +0 −21 arrow-libs/core/arrow-core-test/src/commonMain/kotlin/arrow/core/test/laws/SemigroupLaws.kt
  21. +0 −10 arrow-libs/core/arrow-core-test/src/jsMain/kotlin/arrow.core/test/Platform-js.kt
  22. +0 −10 arrow-libs/core/arrow-core-test/src/jvmMain/kotlin/arrow/core/test/Platform-jvm.kt
  23. +0 −10 arrow-libs/core/arrow-core-test/src/nativeMain/kotlin/arrow/core/test/Platform-native.kt
  24. +4 −0 arrow-libs/core/arrow-core/api/arrow-core.api
  25. +4 −2 arrow-libs/core/arrow-core/build.gradle.kts
  26. +14 −13 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Iterable.kt
  27. +11 −5 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/continuations/EagerEffect.kt
  28. +122 −36 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/continuations/Effect.kt
  29. +4 −3 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/AndThenTests.kt
  30. +4 −5 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/BooleanTest.kt
  31. +3 −7 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/CollectionsSyntaxTests.kt
  32. +5 −3 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/ComparisonKtTest.kt
  33. +14 −14 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/EitherTest.kt
  34. +7 −6 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/EndoTest.kt
  35. +20 −26 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/EvalTest.kt
  36. +11 −17 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/FunctionSyntaxTest.kt
  37. +7 −7 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/IorTest.kt
  38. +10 −10 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/IterableTest.kt
  39. +5 −6 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/ListKTest.kt
  40. +21 −18 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/MapKTest.kt
  41. +2 −2 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/MemoizationTest.kt
  42. +8 −7 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/NonEmptyListTest.kt
  43. +3 −5 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/NonFatalTest.kt
  44. +28 −27 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/NullableTest.kt
  45. +8 −10 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/OptionTest.kt
  46. +8 −8 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/SequenceKTest.kt
  47. +6 −9 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/ValidatedTest.kt
  48. +4 −6 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/computations/NullableTest.kt
  49. +6 −8 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/computations/ResultTest.kt
  50. +17 −9 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/continuations/EagerEffectSpec.kt
  51. +33 −26 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/continuations/EffectSpec.kt
  52. +1 −1 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/continuations/IorSpec.kt
  53. +2 −3 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/continuations/NullableSpec.kt
  54. +4 −6 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/continuations/OptionSpec.kt
  55. +179 −183 ...-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/continuations/StructuredConcurrencySpec.kt
  56. +5 −5 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/extensions/NumberInstancesTest.kt
  57. +129 −0 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/test/Generators.kt
  58. +31 −0 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/test/Laws.kt
  59. +9 −0 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/test/Platform.kt
  60. +40 −0 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/test/laws/MonoidLaws.kt
  61. +19 −0 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/test/laws/SemigroupLaws.kt
  62. +4 −5 ...core-test/src/commonMain → arrow-core/src/commonTest}/kotlin/arrow/core/test/laws/SemiringLaws.kt
  63. +4 −6 arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt
  64. +5 −4 arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/EitherJvmTest.kt
  65. +3 −2 arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/EvalJvmTest.kt
  66. +2 −2 arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/NonFatalJvmTest.kt
  67. +1 −4 .../test/generators/GeneratorsJvm.kt → arrow-core/src/jvmTest/java/arrow/core/test/JvmGenerators.kt}
  68. +7 −1 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-effect-guide-11.kt
  69. +2 −3 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-effect-guide-12.kt
  70. +0 −13 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-effect-guide-13.kt
  71. +20 −0 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-effect-guide-14.kt
  72. +0 −60 arrow-libs/fx/arrow-fx-coroutines-test/api/arrow-fx-coroutines-test.api
  73. +0 −41 arrow-libs/fx/arrow-fx-coroutines-test/build.gradle.kts
  74. +0 −2 arrow-libs/fx/arrow-fx-coroutines-test/gradle.properties
  75. +0 −5 arrow-libs/fx/arrow-fx-coroutines-test/knit.properties
  76. +0 −15 arrow-libs/fx/arrow-fx-coroutines-test/src/commonMain/kotlin/arrow/fx/coroutines/ArrowFxSpec.kt
  77. +0 −264 arrow-libs/fx/arrow-fx-coroutines-test/src/commonMain/kotlin/arrow/fx/coroutines/predef-test.kt
  78. +0 −11 arrow-libs/fx/arrow-fx-coroutines-test/src/commonTest/kotlin/examples/example-predef-test-01.kt
  79. +0 −24 arrow-libs/fx/arrow-fx-coroutines-test/src/jvmMain/kotlin/arrow/fx/coroutines/predef-test-jvm.kt
  80. +0 −52 arrow-libs/fx/arrow-fx-coroutines-test/src/jvmTest/kotlin/arrow/fx/coroutines/PredefTest.kt
  81. +3 −1 arrow-libs/fx/arrow-fx-coroutines/build.gradle.kts
  82. +7 −8 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/CircuitBreaker.kt
  83. +5 −1 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/CountDownLatch.kt
  84. +1 −1 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Schedule.kt
  85. +3 −2 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/AtomicTest.kt
  86. +9 −7 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/BracketCaseTest.kt
  87. +4 −6 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/CircuitBreakerTest.kt
  88. +4 −6 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/CountDownLatchSpec.kt
  89. +11 −11 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/FlowTest.kt
  90. +158 −0 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/Generators.kt
  91. +5 −3 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/GuaranteeCaseTest.kt
  92. +4 −2 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/ParTraverseEitherTest.kt
  93. +6 −5 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/ParTraverseResultTest.kt
  94. +4 −3 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/ParTraverseTest.kt
  95. +4 −2 ...libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/ParTraverseValidatedTest.kt
  96. +9 −0 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/Platform.kt
  97. +20 −15 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/RaceNTest.kt
  98. +53 −49 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/ResourceTest.kt
  99. +8 −2 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/ScheduleTest.kt
  100. +5 −9 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/parMapN/ParMap2Test.kt
  101. +3 −5 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/parMapN/ParMap3Test.kt
  102. +3 −5 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/parMapN/ParMap4Test.kt
  103. +3 −5 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/parMapN/ParMap5Test.kt
  104. +3 −5 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/parMapN/ParMap6Test.kt
  105. +3 −5 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/parMapN/ParMap7Test.kt
  106. +3 −5 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/parMapN/ParMap8Test.kt
  107. +6 −1 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/FlowJvmTest.kt
  108. +6 −6 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParMap2JvmTest.kt
  109. +10 −9 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParMap3JvmTest.kt
  110. +18 −16 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParMap4JvmTest.kt
  111. +26 −24 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParMap5JvmTest.kt
  112. +36 −33 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParMap6JvmTest.kt
  113. +48 −46 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParMap7JvmTest.kt
  114. +61 −58 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParMap8JvmTest.kt
  115. +4 −3 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParTraverseEitherJvmTest.kt
  116. +3 −1 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParTraverseJvmTest.kt
  117. +3 −1 ...libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ParTraverseValidatedJvmTest.kt
  118. +16 −14 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/RaceNJvmTest.kt
  119. +9 −15 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/ResourceTestJvm.kt
  120. +19 −0 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/predef-test-jvm.kt
  121. +3 −4 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-circuitbreaker-01.kt
  122. +4 −4 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-circuitbreaker-02.kt
  123. +1 −1 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-schedule-08.kt
  124. +4 −1 arrow-libs/fx/arrow-fx-stm/build.gradle.kts
  125. +5 −13 arrow-libs/fx/arrow-fx-stm/src/commonTest/kotlin/arrow/fx/stm/STMTest.kt
  126. +2 −3 arrow-libs/fx/arrow-fx-stm/src/commonTest/kotlin/arrow/fx/stm/TArrayTest.kt
  127. +3 −3 arrow-libs/fx/arrow-fx-stm/src/commonTest/kotlin/arrow/fx/stm/TMVarTest.kt
  128. +3 −3 arrow-libs/fx/arrow-fx-stm/src/commonTest/kotlin/arrow/fx/stm/TMapTest.kt
  129. +3 −3 arrow-libs/fx/arrow-fx-stm/src/commonTest/kotlin/arrow/fx/stm/TQueueTest.kt
  130. +2 −3 arrow-libs/fx/arrow-fx-stm/src/commonTest/kotlin/arrow/fx/stm/TSemaphoreTest.kt
  131. +5 −1 arrow-libs/optics/arrow-optics-reflect/build.gradle.kts
  132. +7 −5 arrow-libs/optics/arrow-optics-reflect/src/test/kotlin/arrow/optics/ReflectionTest.kt
  133. +0 −69 arrow-libs/optics/arrow-optics-test/api/arrow-optics-test.api
  134. +0 −38 arrow-libs/optics/arrow-optics-test/build.gradle.kts
  135. +0 −3 arrow-libs/optics/arrow-optics-test/gradle.properties
  136. +0 −5 arrow-libs/optics/arrow-optics-test/knit.properties
  137. +17 −0 arrow-libs/optics/arrow-optics/api/arrow-optics.api
  138. +3 −1 arrow-libs/optics/arrow-optics/build.gradle.kts
  139. +45 −0 arrow-libs/optics/arrow-optics/src/commonMain/kotlin/arrow/optics/Prism.kt
  140. +56 −0 arrow-libs/optics/arrow-optics/src/commonMain/kotlin/arrow/optics/dsl/either.kt
  141. +0 −105 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/DSLTest.kt
  142. +8 −7 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/EveryTest.kt
  143. +7 −7 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/FoldTest.kt
  144. +8 −9 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/GetterTest.kt
  145. +9 −9 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/IsoTest.kt
  146. +9 −8 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/LensTest.kt
  147. +6 −5 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/OptionalGetterTest.kt
  148. +12 −11 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/OptionalTest.kt
  149. +10 −9 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/PrismTest.kt
  150. +7 −7 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/SetterTest.kt
  151. +11 −8 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/TraversalTest.kt
  152. +6 −7 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/instances/AtInstanceTest.kt
  153. +5 −6 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/instances/ConsInstanceTest.kt
  154. +6 −9 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/instances/EitherInstanceTest.kt
  155. +10 −8 ...-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/instances/FilterIndexInstanceTest.kt
  156. +9 −6 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/instances/IndexInstanceTest.kt
  157. +6 −6 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/instances/SnocInstanceTest.kt
  158. +7 −9 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/std/EitherTest.kt
  159. +11 −10 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/std/ListTest.kt
  160. +7 −6 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/std/MapTest.kt
  161. +7 −7 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/std/NonEmptyListTest.kt
  162. +8 −9 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/std/OptionTest.kt
  163. +5 −6 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/std/StringTest.kt
  164. +5 −121 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/std/TupleTest.kt
  165. +8 −9 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/std/ValidatedTest.kt
  166. +34 −0 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/test/Generators.kt
  167. +7 −16 ...ptics-test/src/commonMain → arrow-optics/src/commonTest}/kotlin/arrow/optics/test/laws/IsoLaws.kt
  168. +31 −0 arrow-libs/optics/arrow-optics/src/commonTest/kotlin/arrow/optics/test/laws/Laws.kt
  169. +9 −24 ...tics-test/src/commonMain → arrow-optics/src/commonTest}/kotlin/arrow/optics/test/laws/LensLaws.kt
  170. +9 −21 ...-test/src/commonMain → arrow-optics/src/commonTest}/kotlin/arrow/optics/test/laws/OptionalLaws.kt
  171. +7 −17 ...ics-test/src/commonMain → arrow-optics/src/commonTest}/kotlin/arrow/optics/test/laws/PrismLaws.kt
  172. +6 −15 ...cs-test/src/commonMain → arrow-optics/src/commonTest}/kotlin/arrow/optics/test/laws/SetterLaws.kt
  173. +5 −13 ...test/src/commonMain → arrow-optics/src/commonTest}/kotlin/arrow/optics/test/laws/TraversalLaws.kt
  174. +6 −16 build.gradle.kts
  175. +3 −3 gradle/libs.versions.toml
  176. +4 −4 kotlin-js-store/yarn.lock
  177. +0 −13 settings.gradle.kts
63 changes: 57 additions & 6 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -21,9 +21,6 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: Install watchOS simulator
run: xcrun simctl create "Apple Watch Series 5 - 44mm" "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-5-44mm" "com.apple.CoreSimulator.SimRuntime.watchOS-9-1"

- name: ios and watchos tests
uses: gradle/gradle-build-action@v2
with:
@@ -90,7 +87,7 @@ jobs:
name: 'reports-windows'
path: '**/build/reports/**'

ubuntu:
check:
runs-on: ubuntu-latest
timeout-minutes: 60

@@ -118,7 +115,7 @@ jobs:
- name: check
uses: gradle/gradle-build-action@v2
with:
arguments: check
arguments: check -x linuxX64Test -x jsTest

- name: Create code coverage report
if: "! github.event.pull_request.head.repo.fork "
@@ -140,7 +137,61 @@ jobs:
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-ubuntu'
name: 'reports-jvm'
path: '**/build/reports/**'

js:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: jsTest
uses: gradle/gradle-build-action@v2
with:
arguments: jsTest

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-js'
path: '**/build/reports/**'

linux:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: linuxX64Test
uses: gradle/gradle-build-action@v2
with:
arguments: linuxX64Test

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-linux'
path: '**/build/reports/**'

update_api:
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -28,6 +28,17 @@ Use the list below to learn more about Λrrow's main features.
If you have a blog post, talk, or upcoming event on Arrow, please considering opening an issue or PR
to add to the collection over at the [Arrow Media](https://github.com/arrow-kt/arrow-media) repo.

## Arrow 2.0

The next version of Arrow is [in active development](https://github.com/arrow-kt/arrow/pull/2778).
If you want to try it, you need to add the following repository in your build file:

```
maven("https://oss.sonatype.org/content/repositories/snapshots")
```

and depend on the `2.0.0-SNAPSHOT` version of the desired library.

## Join Us

Arrow is an inclusive community powered by awesome individuals like you. As an actively growing
5 changes: 4 additions & 1 deletion arrow-libs/core/arrow-continuations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -29,7 +29,10 @@ kotlin {
if(!enableCompatibilityMetadataVariant) {
commonTest {
dependencies {
implementation(project(":arrow-core-test"))
implementation(projects.arrowCore)
implementation(libs.kotest.frameworkEngine)
implementation(libs.kotest.assertionsCore)
implementation(libs.kotest.property)
}
}
jvmTest {
Original file line number Diff line number Diff line change
@@ -9,14 +9,15 @@ import arrow.core.computations.ensureNotNull
import arrow.core.computations.eval
import arrow.core.left
import arrow.core.right
import arrow.core.test.UnitSpec
import io.kotest.assertions.fail
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import io.kotest.property.Arb
import io.kotest.property.arbitrary.boolean
import io.kotest.property.arbitrary.int
import io.kotest.property.arbitrary.orNull
import io.kotest.property.arbitrary.string
import io.kotest.property.checkAll
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Deferred
@@ -31,7 +32,7 @@ import kotlin.coroutines.intrinsics.intercepted
import kotlin.coroutines.intrinsics.suspendCoroutineUninterceptedOrReturn
import kotlin.coroutines.startCoroutine

class SuspendingComputationTest : UnitSpec({
class SuspendingComputationTest : StringSpec({

"immediate values" {
either<String, Int> {
5 changes: 4 additions & 1 deletion arrow-libs/core/arrow-core-retrofit/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -24,9 +24,12 @@ dependencies {
compileOnly(libs.squareup.retrofit)

if (!enableCompatibilityMetadataVariant) {
testImplementation(projects.arrowCore)
testImplementation(libs.kotest.frameworkEngine)
testImplementation(libs.kotest.assertionsCore)
testImplementation(libs.kotest.property)
testCompileOnly(libs.kotlin.reflect)
testRuntimeOnly(libs.kotest.runnerJUnit5)
testImplementation(project(":arrow-core-test"))
testImplementation(libs.squareup.okhttpMockWebServer)
testImplementation(libs.squareup.retrofitConverterGson)
testImplementation(libs.squareup.retrofitConverterMoshi)
Original file line number Diff line number Diff line change
@@ -2,23 +2,21 @@ package arrow.retrofit.adapter.either

import arrow.core.left
import arrow.core.right
import arrow.core.test.UnitSpec
import arrow.retrofit.adapter.mock.ErrorMock
import arrow.retrofit.adapter.mock.ResponseMock
import arrow.retrofit.adapter.retrofit.SuspendApiTestClient
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import okhttp3.mockwebserver.SocketPolicy
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

class ArrowEitherCallAdapterTest : UnitSpec() {
class ArrowEitherCallAdapterTest : StringSpec({

private lateinit var server: MockWebServer
private lateinit var service: SuspendApiTestClient

init {
lateinit var server: MockWebServer
lateinit var service: SuspendApiTestClient

beforeAny {
server = MockWebServer()
@@ -88,5 +86,5 @@ class ArrowEitherCallAdapterTest : UnitSpec() {

body.isFailure shouldBe true
}
}
}

})
Original file line number Diff line number Diff line change
@@ -2,23 +2,21 @@ package arrow.retrofit.adapter.either

import arrow.core.left
import arrow.core.right
import arrow.core.test.UnitSpec
import arrow.retrofit.adapter.mock.ErrorMock
import arrow.retrofit.adapter.mock.ResponseMock
import arrow.retrofit.adapter.retrofit.SuspendApiTestClient
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import okhttp3.mockwebserver.SocketPolicy
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

class ArrowResponseEAdapterTest : UnitSpec() {
class ArrowResponseEAdapterTest : StringSpec({

private lateinit var server: MockWebServer
private lateinit var service: SuspendApiTestClient

init {
lateinit var server: MockWebServer
lateinit var service: SuspendApiTestClient

beforeAny {
server = MockWebServer()
@@ -100,5 +98,5 @@ class ArrowResponseEAdapterTest : UnitSpec() {

responseE.isFailure shouldBe true
}
}
}

})
Loading