package eio
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Effect-based direct-style IO API for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
eio-1.6.tbz
sha256=c1f04986b401094176494863dde1ca9b292b59fdc679a9d7023e558d80fb5b15
sha512=92ed8cf20300b8a4e0141bdbc373c0803c5a24530cb65852637d905fff4a5b956a8859a00a424034ff78c1112da9b0391194bcd558326168bdebd1ce683a8890
doc/src/eio.unix/err.ml.html
Source file err.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23type Eio.Exn.Backend.t += Unix_error of Unix.error * string * string let () = Eio.Exn.Backend.register_pp (fun f -> function | Unix_error (code, name, arg) -> Fmt.pf f "Unix_error (%s, %S, %S)" (Unix.error_message code) name arg; true | _ -> false ) let unclassified e = Eio.Exn.create (Eio.Exn.X e) let v code name arg = let e = Unix_error (code, name, arg) in match code with | EUNKNOWNERR x when Some x = Config.enotcapable -> Eio.Fs.err (Permission_denied e) | ECONNREFUSED -> Eio.Net.err (Connection_failure (Refused e)) | ECONNRESET | EPIPE | ECONNABORTED -> Eio.Net.err (Connection_reset e) | ENOPROTOOPT -> Eio.Net.err Invalid_option | ENOSYS | EOPNOTSUPP -> Eio.Exn.create (Eio.Exn.Not_available e) | EEXIST -> Eio.Fs.err (Already_exists e) | ENOENT -> Eio.Fs.err (Not_found e) | EXDEV | EACCES | EPERM -> Eio.Fs.err (Permission_denied e) | ELOOP | EMLINK -> Eio.Fs.err Symlink | _ -> unclassified e
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>