Skip to content
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

Feature/remove validated #2795

Merged
merged 53 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
7eb7a6c
remove(arrow): Remove Validated and its dependencies
Atternatt Aug 9, 2022
5f7fa9e
Merge branch 'main' into feature/remove_validated
Atternatt Aug 9, 2022
9c16874
api(arrow): Update api files
Atternatt Aug 11, 2022
34e9dad
doc(arrow): Run knit to update examples
Atternatt Aug 11, 2022
b2d4dd2
test(arrow): Update tests
Atternatt Aug 11, 2022
1b6a22f
fix(arrow): Fix typos
Atternatt Aug 11, 2022
e0656a7
remove(arrow): Remove Validated reference formr comments
Atternatt Aug 11, 2022
a453282
doc(arrow): Update documentation
Atternatt Aug 11, 2022
4770333
doc(arrow): Update knit examples
Atternatt Aug 11, 2022
0b1fa97
test(arrow): Remove Validated test
Atternatt Aug 11, 2022
10c88b7
Merge branch 'main' of github.com:arrow-kt/arrow into feature/remove_…
Atternatt Aug 11, 2022
40571a2
doc(arrow): Remove Validated from sidebar-core.yaml
Atternatt Aug 11, 2022
e89dfd2
doc(arrow): Remove Validated from documentation
Atternatt Aug 12, 2022
3d219f2
test(arrow): Fix explicit import to ResultEffect.result
Atternatt Aug 12, 2022
fcdee97
doc(arrow): Update crashing examples
Atternatt Aug 12, 2022
5eb3604
Merge branch 'arrow-2' into feature/remove_validated
nomisRev Aug 17, 2022
76b879e
feat(arrow): Implement new zip fun for Either
Atternatt Aug 17, 2022
e2a773e
feat(arrow): Add extra arities for Either#zip
Atternatt Aug 17, 2022
e477733
refactor(arrow): Refactor Ior#bitraverseEither
Atternatt Aug 17, 2022
02c5a4a
test(arrow): Update EitherTests
Atternatt Aug 17, 2022
e70a011
wip(arrow): Add mappAccumulated
Atternatt Aug 18, 2022
8f8fa57
refactor(arrow2): Add bitraverseEitheraAccumulated
Atternatt Sep 8, 2022
3a199b2
test(arrow2): Add missing zip tests
Atternatt Sep 8, 2022
1f68fbe
Merge branch 'feature/remove_validated' into feature/replace_traverse
Atternatt Sep 8, 2022
b82e0a2
feature(arrow2): Add mapAccumulating to Iterable
Atternatt Sep 13, 2022
3c08cbd
test(arrow2): Add tests for mapAccumulating
Atternatt Sep 13, 2022
63b7f60
remove(arrow2): Remove traverse from data structures
Atternatt Sep 13, 2022
47b7405
Merge pull request #1 from Atternatt/feature/replace_traverse
Atternatt Sep 13, 2022
0a1f067
Merge remote-tracking branch 'upstream/arrow-2' into feature/remove_v…
Atternatt Sep 14, 2022
5921c0e
fix(arrow2): Fix merging conflicts
Atternatt Sep 14, 2022
cffe3b9
doc(arrow2): Add knit missing examples
Atternatt Sep 14, 2022
5926b8c
test(arrow2): Fix EitherTest
Atternatt Sep 14, 2022
f59680f
revert(arrow2): Revete Either merge
Atternatt Sep 15, 2022
f518e50
refactor(arrow2): Rename parTraverse to parMap
Atternatt Sep 15, 2022
59e3358
move(arrow2): Rename parTraverse to parMap
Atternatt Sep 28, 2022
e25348b
doc(arrow2): Add knit samples
Atternatt Sep 28, 2022
5aaf795
Merge remote-tracking branch 'origin/arrow-2' into feature/remove_val…
nomisRev Nov 22, 2022
e1fcb97
Fix signatures zip Either functions
nomisRev Nov 22, 2022
925582a
Fix Semigroup, lambda zip signature
nomisRev Nov 22, 2022
ce7c97e
Fix duplicated signature
nomisRev Nov 22, 2022
a33d39c
Fix tests, and revert unrelated changes
nomisRev Nov 26, 2022
958a532
Fix examples, and revert more unrelated changes
nomisRev Nov 26, 2022
072865f
Fix zip Nel test
nomisRev Nov 26, 2022
c63ad72
apiDump
nomisRev Nov 26, 2022
60015c2
Fix test parTraverseResult
nomisRev Nov 26, 2022
6920b5d
Fix parTraverseEither
nomisRev Nov 26, 2022
9e6fc71
Fix parTraverseXXXTest
nomisRev Nov 27, 2022
206db2f
Add tests, and split zip code in two files
nomisRev Nov 27, 2022
7262208
Add Nel convenience syntax
nomisRev Nov 27, 2022
682c7e4
apiDump
nomisRev Nov 27, 2022
e3f5467
Rename mapAccumulate to mapOrAccumulate as suggested by @pakoito
nomisRev Nov 29, 2022
e252775
apiDump
nomisRev Nov 29, 2022
19cc4d9
Merge branch 'arrow-2' into feature/remove_validated
serras Dec 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

Arrow aims to provide a [*lingua franca*](https://en.wikipedia.org/wiki/Lingua_franca) of interfaces
and abstractions across Kotlin libraries. For this, it includes the most popular data types such
as `Option`, `Either`, `Validated` etc and functional operators such as `traverse` and computation
as `Option`, `Either` etc and functional operators such as `traverse` and computation
blocks to empower users to write pure FP apps and libraries built atop higher order abstractions.

Use the list below to learn more about Λrrow's main features.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public expect fun <A> Atomic(initialValue: A): Atomic<A>
* import arrow.atomic.Atomic
* import arrow.atomic.update
* import arrow.fx.coroutines.parTraverse
*
* suspend fun main() {
* val count = Atomic(0)
* (0 until 20_000).parTraverse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package arrow.atomic.examples.exampleAtomic01
import arrow.atomic.Atomic
import arrow.atomic.update
import arrow.fx.coroutines.parTraverse

suspend fun main() {
val count = Atomic(0)
(0 until 20_000).parTraverse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal object Reset {
* The usage of `try { ... } catch(e: Throwable) { ... }` will catch the [ShortCircuit] error,
* and will lead to recover of short-circuiting.
* You should always prefer to catch the most specific exception class, or
* use `Either.catch`, `Validated.catch` etc or `e.nonFatalOrThrow()`
* use `Either.catch` etc or `e.nonFatalOrThrow()`
* to ensure you're not catching `ShortCircuit`.
*/
@Deprecated(deprecateArrowContinuation)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package arrow.continuations.generic
* A [Throwable] class intended for control flow.
* Instance of [ControlThrowable] should **not** be caught,
* and `arrow.core.NonFatal` does not catch this [Throwable].
* Thus by extension `Either.catch` and `Validated.catch` also don't catch [ControlThrowable].
* Thus by extension `Either.catch` also don't catch [ControlThrowable].
*/
@Deprecated(deprecateArrowContinuation)
public expect open class ControlThrowable() : Throwable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package arrow.continuations.generic
* A [Throwable] class intended for control flow.
* Instance of [ControlThrowable.kt] should **not** be caught,
* and `arrow.core.NonFatal` does not catch this [Throwable].
* Thus by extension `Either.catch` and `Validated.catch` also don't catch [ControlThrowable.kt].
* Thus by extension `Either.catch` also don't catch [ControlThrowable.kt].
*/
@Deprecated(deprecateArrowContinuation)
public actual open class ControlThrowable : Throwable()
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package arrow.continuations.generic
* A [Throwable] class intended for control flow.
* Instance of [ControlThrowable.kt] should **not** be caught,
* and `arrow.core.NonFatal` does not catch this [Throwable].
* Thus by extension `Either.catch` and `Validated.catch` also don't catch [ControlThrowable.kt].
* Thus by extension `Either.catch` also don't catch [ControlThrowable.kt].
*/
@Deprecated(deprecateArrowContinuation)
public actual open class ControlThrowable : Throwable() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package arrow.continuations.generic
* A [Throwable] class intended for control flow.
* Instance of [ControlThrowable] should **not** be caught,
* and `arrow.core.NonFatal` does not catch this [Throwable].
* Thus by extension `Either.catch` and `Validated.catch` also don't catch [ControlThrowable].
* Thus by extension `Either.catch` also don't catch [ControlThrowable].
*/
@Deprecated(deprecateArrowContinuation)
public actual open class ControlThrowable : Throwable()
1 change: 0 additions & 1 deletion arrow-libs/core/arrow-core-test/api/arrow-core-test.api
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public final class arrow/core/test/generators/GeneratorsKt {
public static final fun tuple8 (Lio/kotest/property/Arb$Companion;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;)Lio/kotest/property/Arb;
public static final fun tuple9 (Lio/kotest/property/Arb$Companion;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;Lio/kotest/property/Arb;)Lio/kotest/property/Arb;
public static final fun unit (Lio/kotest/property/Arb$Companion;)Lio/kotest/property/Arb;
public static final fun validated (Lio/kotest/property/Arb$Companion;Lio/kotest/property/Arb;Lio/kotest/property/Arb;)Lio/kotest/property/Arb;
}

public final class arrow/core/test/generators/UtilsKt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import arrow.core.Tuple6
import arrow.core.Tuple7
import arrow.core.Tuple8
import arrow.core.Tuple9
import arrow.core.Validated
import arrow.core.left
import arrow.core.right
import arrow.core.test.concurrency.deprecateArrowTestModules
Expand Down Expand Up @@ -220,10 +219,6 @@ public fun <E, A> Arb.Companion.either(arbE: Arb<E>, arbA: Arb<A>): Arb<Either<E
@Deprecated(deprecateArrowTestModules)
public fun <E, A> Arb<E>.or(arbA: Arb<A>): Arb<Either<E, A>> = Arb.either(this, arbA)

@Deprecated(deprecateArrowTestModules)
public fun <E, A> Arb.Companion.validated(arbE: Arb<E>, arbA: Arb<A>): Arb<Validated<E, A>> =
Arb.either(arbE, arbA).map { Validated.fromEither(it) }

@Deprecated(deprecateArrowTestModules)
public fun Arb.Companion.unit(): Arb<Unit> =
Arb.constant(Unit)
Expand Down
Loading