File: result-as-newtype.ml

package info (click to toggle)
ocaml-result 1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 108 kB
  • sloc: makefile: 23; ml: 20
file content (2 lines) | stat: -rw-r--r-- 80 bytes parent folder | download
1
2
type ('a, 'b) result = Ok of 'a | Error of 'b
type ('a, 'b) t = ('a, 'b) result