A Cause represents the full history of a failure resulting from running an
Effect workflow.
Effect-TS uses a data structure from functional programming called a semiring
to represent the Cause data type. This allows us to take a base type E
(which represents the error type of an Effect) and capture the sequential
and parallel composition of errors in a fully lossless fashion.
A
Cause
represents the full history of a failure resulting from running anEffect
workflow.Effect-TS uses a data structure from functional programming called a semiring to represent the
Cause
data type. This allows us to take a base typeE
(which represents the error type of anEffect
) and capture the sequential and parallel composition of errors in a fully lossless fashion.