zio-direct
zio-direct copied to clipboard
Direct-Style Programming for ZIO
I was converting some code: ``` val oldStyle = for _
If I turn these on: ``` scalacOptions := Seq( "-Wunused:locals", "-Xfatal-warnings", ) ``` And have a `defer` that returns a concrete value like: ``` defer: ZIO.debug("hello, world").run () ``` I...
Hi, I see the readme says that the below code doesn't work ```scala for { textA
I'm replacing dotty-cps-async in Kyo by zio-direct. Kyo uses `defer`/`await` but the `await` is a regular method instead of an extension
It would be nice to add ScalaJS 1.x support
**WIP**: * Created IRT - the typed version of `IR` AST * WithComputeType: extracting `IRT` instead of `IR`
```scala val out = defer { val bar = ZIO.succeed("foo").run unsafe { "bar" } } ``` Expected out to be of type `ZIO[Any, Throwable, String]` but is `ZIO[Any, Throwable, Any]`.
The following code triggers a 'Detected the use of a mutable collection inside a defer clause.', but I don't think it should lead to any issues. ```scala defer { val...
To improve the ergonomics of error handling, it would be nice if we could eliminate some union types from the error channel when explicitly handled in a catch block. Maybe...