This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |