rename result.nix -> res.nix

also use `with nib.types`
This commit is contained in:
Emile Clark-Boman 2025-12-14 14:35:05 +10:00
parent 106d9a51a5
commit edb1b3d752

View file

@ -1,5 +1,6 @@
{nib, ...}:
with builtins; rec {
with builtins;
with nib.types; rec {
# Res (Result) Monad
Res = success: value: {inherit success value;};
Ok = value: Res true value;
@ -37,5 +38,5 @@ with builtins; rec {
then R
else f R;
firstErr = nib.types.findFirst isErr Ok';
firstErr = findFirst isErr Ok';
}