Skip to Content
i documentation
Standard library referenceModules

i/fail

Errors (§9.3).

raise

Ends the computation with error.

raise : <E>(E) <- (Fail(E)) -> Never

catch

Changes every error into Error(…).

catch : <A, E, N>(() <- (Fail(E), ..N) -> A) <- N -> Result(A, E)

from_result

Gives the error x for Error(x).

from_result = <A, E>(result : Result(A, E)) -> A {

map_error

Changes the errors.

map_error = <A, E, N, E2>(