
👌 OkRes
Oversimplified multiplatform result monad library for Kotlin.
The Result Monad

Usage example
Dependencies
In gradle/libs.versions.toml
[versions]
kotlin = "2.0.20"
okres = "5.3"
[libraries]
okres = { module = "de.halfbit:okres", version.ref = "okres" }
[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
In shared/build.gradle.kts
plugins {
alias(libs.plugins.kotlin.multiplatform)
}
kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.okres)
}
}
}
Releasing
- Bump version in
root.publication.gradle.kts
./gradlew clean build publishAllPublicationsToCentralRepository
License
Copyright 2023-2024 Sergej Shafarenka, www.halfbit.de
You are FREE to use, copy, redistribute, remix, transform, and build
upon the material or its derivative LEGAL PURPOSES.
distributed derivative work containing this material parts
it must have this copyright attribution notices.
The material distributed an "AS IS" BASIS, WARRANTIES
CONDITIONS KIND, either express implied.