Skip to content

Commit 5ae9203

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents c2ad4e2 + e14a8fd commit 5ae9203

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Add as a dependency:
3131
}
3232

3333
dependencies {
34-
compile 'com.github.h0tk3y:kotlin-monads:0.3'
34+
compile 'com.github.h0tk3y:kotlin-monads:0.3-1'
3535
}
3636

3737
See the usage examples in [tests](https://github.com/h0tk3y/kotlin-monads/tree/master/src/test/kotlin/com/github/h0tk3y/kotlinMonads).
@@ -130,8 +130,8 @@ This problem is effectively solved using the Kotlin coroutines: the compiler per
130130
code block under the hood. However, this coroutines use case is somewhat out of conventions: it might resume the same continuation
131131
several times and uses quite a dirty hack to do that.
132132

133-
The result type parameter (`R` in `Monad<M, R`) is usually inferred, and the compiler controls the flow inside a *do block*, but still you need to
134-
downcast the `Monad<M, R>` to your actual monad type (e.g. `Monad<Maybe<*>, R>` to `Maybe<R>`), because the type system doesn't seem to allow this to be done
133+
The result type parameter (`R` in `Monad<M, R>`) is usually inferred, and the compiler controls the flow inside a *do block*, but still you need to
134+
downcast the `Monad<M, R>` to your actual monad type (e.g. `Monad<Maybe<*>, R>` to `Maybe`), because the type system doesn't seem to allow this to be done
135135
automatically (if you know a way, please tell me).
136136

137137
**Be careful with mutable state** in _do_ blocks, since all continuation calls will share it, sometimes resulting into counter-intuitive results:

0 commit comments

Comments
 (0)