ligo/vendors/ligo-utils/simple-utils/runned_result.ml
Lesenechal Remi c6b95bf07a result monad refactoring:
- do not use plain JSON rep for errors and use polymorphic variants instead
- split formatting for human readable and JSON output
- no more simple_errors simple_fails
- much less result bindings used in stages
2020-06-15 14:45:28 +02:00

10 lines
212 B
OCaml

type failwith =
| Failwith_int of int
| Failwith_string of string
| Failwith_bytes of bytes
type 'a runned_result =
| Success of 'a
| Fail of failwith
type check_type = Check_parameter | Check_storage