Skip to content

Instantly share code, notes, and snippets.

@Krever
Krever / wio.scala
Last active April 2, 2024 05:23
context-dependent-wio
// This is a very minimal example showcasing how we can levarage type members to capture fixed types without the need
// to introduce more type parameters
trait WorkflowContext {
type State
type Event
// operation that transforms In into Out, while guaranteeing the output is a substate os State