Skip to content

Commit d5e6c0f

Browse files
Merge branch 'master' into rg_selective_functor
2 parents d12e819 + 6645255 commit d5e6c0f

File tree

68 files changed

+52
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+52
-32
lines changed

README.md

Lines changed: 5 additions & 4 deletions

modules/core/arrow-core-data/src/main/kotlin/arrow/core/Either.kt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -367,16 +367,3 @@ fun <A, B> B?.rightIfNotNull(default: () -> A): Either<A, B> = when (this) {
367367
null -> Either.Left(default())
368368
else -> Either.Right(this)
369369
}
370-
371-
372-
/**
373-
* Applies the given function `f` if this is a [Left], otherwise returns this if this is a [Right].
374-
* This is like `flatMap` for the exception.
375-
*/
376-
fun <A, B> EitherOf<A, B>.handleErrorWith(f: (A) -> EitherOf<A, B>): Either<A, B> =
377-
fix().let {
378-
when (it) {
379-
is Either.Left -> f(it.a).fix()
380-
is Either.Right -> it
381-
}
382-
}

modules/core/arrow-core-data/src/test/kotlin/arrow/core/EitherTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import arrow.Kind
44
import arrow.Kind2
55
import arrow.core.extensions.*
66
import arrow.core.extensions.either.applicative.applicative
7+
import arrow.core.extensions.either.applicativeError.handleErrorWith
78
import arrow.core.extensions.either.bifunctor.bifunctor
89
import arrow.core.extensions.either.eq.eq
910
import arrow.core.extensions.either.hash.hash
@@ -68,7 +69,7 @@ class EitherTest : UnitSpec() {
6869
"combine a right and a left should return left" {
6970
forAll { a: String, b: String ->
7071
Either.left(a) == Either.left(a).combine(String.monoid(), String.monoid(), Either.right(b)) &&
71-
Either.left(a) == Either.right(b).combine(String.monoid(), String.monoid(), Either.left(a))
72+
Either.left(a) == Either.right(b).combine(String.monoid(), String.monoid(), Either.left(a))
7273
}
7374
}
7475

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Maven publishing configuration
22
POM_NAME=Arrow Data
3-
POM_ARTIFACT_ID=arrow-extras
3+
POM_ARTIFACT_ID=arrow-extras-data
44
POM_PACKAGING=jar

modules/core/arrow-extras-extensions/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dependencies {
22
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
33
compile project(':arrow-annotations')
44
compile project(':arrow-typeclasses')
5-
compile project(':arrow-extras')
5+
compile project(':arrow-extras-data')
66
compile project(':arrow-core-extensions')
77
kapt project(':arrow-meta')
88
kaptTest project(':arrow-meta')

modules/core/arrow-kindedj/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
compile project(':arrow-extras')
2+
compile project(':arrow-extras-data')
33

44
kapt project(':arrow-meta')
55
kaptTest project(':arrow-meta')

modules/core/arrow-test/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
compile project(':arrow-extras')
2+
compile project(':arrow-extras-data')
33
compile project(':arrow-optics')
44
compile project(':arrow-effects-data')
55
compile project(':arrow-mtl')

modules/docs/arrow-docs/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies {
88
// exclude group: 'io.arrow-kt', module: 'arrow-free'
99
// }
1010
compile project(':arrow-ank')
11-
compile project(':arrow-extras')
11+
compile project(':arrow-extras-data')
1212
compile project(':arrow-core-data')
1313
compile project(':arrow-test')
1414
compile project(':arrow-extras-extensions')

modules/docs/arrow-docs/docs/docs/README.md

Lines changed: 5 additions & 4 deletions
Lines changed: 30 additions & 0 deletions

modules/effects/arrow-effects-kotlinx-coroutines-data/src/test/kotlin/arrow/effects/coroutines/DeferredKTest.kt

Whitespace-only changes.

modules/effects/arrow-effects-kotlinx-coroutines-extensions/src/main/kotlin/arrow/effects/coroutines/extensions/deferredk.kt

Whitespace-only changes.

modules/meta/arrow-meta/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies {
1818
kaptTest 'com.google.auto.service:auto-service:1.0-rc4'
1919
testCompile "com.google.testing.compile:compile-testing:0.15"
2020
testCompile fileTree(dir: './src/test/libs', includes: ['*.jar'])
21-
testCompile project(":arrow-extras")
21+
testCompile project(":arrow-extras-data")
2222
testCompile project(":arrow-meta-test-models")
2323
testCompile project(":arrow-optics")
2424
testCompile("junit:junit:$jUnitVersion")

modules/meta/arrow-meta/models/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies {
55
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
66
compileOnly 'com.google.auto.service:auto-service:1.0-rc4'
77
kapt 'com.google.auto.service:auto-service:1.0-rc4'
8-
compile project(":arrow-extras")
8+
compile project(":arrow-extras-data")
99
compile project(':arrow-annotations')
1010
compile project(":arrow-optics")
1111
compile project(":arrow-core-extensions")

modules/optics/arrow-optics/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
compile project(':arrow-extras')
2+
compile project(':arrow-extras-data')
33
compile project(':arrow-extras-extensions')
44
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
55
testCompile("junit:junit:$jUnitVersion")

modules/validation/arrow-validation/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
compile project(':arrow-extras')
2+
compile project(':arrow-extras-data')
33
compile project(':arrow-extras-extensions')
44

55
kapt project(':arrow-meta')

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ include {
4444
core {
4545
_ 'core-data'
4646
_ 'core-extensions'
47-
_ 'extras'
47+
_ 'extras-data'
4848
_ 'extras-extensions'
4949
_ 'generic'
5050
_ 'kindedj'

0 commit comments

Comments
 (0)