Effection Logo

type alias Result

thefrontside/effection

type Result = {} | {}

A value representing either a successful outcome or an error.

Result<T> is used in APIs when you want to make explicit flow control decisions about success/failure rather than allowing them to automatically percolate.

A successful result has the shape { ok: true, value } and a failed result has the shape { ok: false, error }.

Type Parameters

T