- success : Π {α : Type}, α → exceptional α
- exception : Π {α : Type}, (options → format) → exceptional α
An exceptional is similar to Result
in Haskell.
Remark: we use a function that produces a format object as the exception information. Motivation: the formatting object may be big, and we may create it on demand.
Instances for exceptional
@[protected]
@[protected, instance]
@[protected]