John McClean
John McClean
The flatMap on the Kleisli implementation has been improved and for comprehensions aded.
A couple of ideas / questions - Would something like a local function (https://github.com/scalaz/scalaz/blob/series/7.3.x/core/src/main/scala/scalaz/ReaderWriterStateT.scala#L195) help? I think as long as the type of output extracted from the repositories matches the...
Hey @noorulhaq is this example from Debasish Ghosh's Functional and Reactive Domain Modelling? Does the book also describe the wider challenge, and if yes any potential solutions? I think being...
2.0.0-MI4 should be available on Maven Central. I think this is a rough equivalent of the Scala example ```java public class AccountService{ public Kleisli debit(String no, Amount amount){ return repo...
Hey @torsten-liermann , It should be possible to use Try in this way. With later cyclops versions : ```java void globalIntegrationExceptionHandler(Throwable e) { Try.failure(e) .onFail(Exception1.class, ...) .onFail(Exception2.class, ...) } ```...
I'll take a look at this later today. V2 of cyclops-react will provide away to keep the types available (using Witness types and fluent type safe conversion methods). In v1...
I haven't run this yet, but from the code this should return a Try.Failure wrapped in an AnyM. Looks like a bug.
The bug seems to in in the toString() generation as the result of the flatMapT operation does seem to have the correct type. E.g. the intermediate variable v is displayed...
Thanks a million for reporting this by the way! If you find any other issues or have any questions please do log an issue or get in touch.
I think v2 is a big improvement from v1 - but most of the monad transformers have yet to be reimplemented in the new way. Also cyclops-reactor has to be...