Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dacr/zio-worksheet

Simplified ZIO user experience in REPL, worksheet or script contexts
https://github.com/dacr/zio-worksheet

repl scala zio

Last synced: 19 days ago
JSON representation

Simplified ZIO user experience in REPL, worksheet or script contexts

Awesome Lists containing this project

README

        

# ZIO worksheet [![][ZIOWorksheetManagerImg]][ZIOWorksheetManagerLnk]

A small library to simplify ZIO developer experience in the context of REPL sessions, scripts or worksheets. It must
only be used in this context, for example in real world projects you must use `ZIOAppDefault` or `ZIOSpecDefault`
as your main starting point for your ZIO projects.

This library comes with various helpers in order to make your code examples the most simple possible for learning, demo,
proof of concepts purposes. It brings a `.unsafeRun` function (originally written by @adamgfraser) to quickly start
an effect synchronously and get its results :

```scala
//> using scala "3.2.2"
//> using lib "fr.janalyse::zio-worksheet:2.0.12.0"

import zio.*
import zio.worksheet.*

val app = Console.printLine("Hello world !")
app.unsafeRun
```

[ZIOWorksheetManagerImg]: https://img.shields.io/maven-central/v/fr.janalyse/zio-worksheet_3.svg
[ZIOWorksheetManagerLnk]: https://mvnrepository.com/artifact/fr.janalyse/zio-worksheet