There was an error while loading. Please reload this page.
The implementation of Result.equal and Result.compare seems wrong as it treats any two errors as equal.
Result.equal
Result.compare
This is also the case with Belt.eq and Belt.cmp where this was likely copied from.
Belt.eq
Belt.cmp
OCaml does this correctly in https://ocaml.org/manual/5.3/api/Result.html, equal and compare both take two functions, one for comparing the ok case and one for the error case.