Skip to content

Instantly share code, notes, and snippets.

@back2dos
Last active January 16, 2023 11:19
Show Gist options
  • Save back2dos/0f2b42fd0b305b3c534a to your computer and use it in GitHub Desktop.
Save back2dos/0f2b42fd0b305b3c534a to your computer and use it in GitHub Desktop.
enum Process<O> {
Emit(head:O,tail:Process<O>);
Held(ft:Future<Process<O>>);
Halt(e:Null<Error>);
}
typedef InOut<In, Out> = Process<Either<Callback<In>, Out>>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment