From 90d7aa59ad305e6a26ad6b078dd0fcb78eabdab2 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Sun, 14 Dec 2025 18:55:54 +1000 Subject: [PATCH] fix: unwrapOk and unwrapErr incorrect definition --- nib/types/res.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nib/types/res.nix b/nib/types/res.nix index e57457f..7e34f39 100644 --- a/nib/types/res.nix +++ b/nib/types/res.nix @@ -21,8 +21,8 @@ with nib.types; rec { if isOk R then f R._value_ else g R._value_; - unwrapOk = f: unwrapRes f (R: R._value_); - unwrapErr = f: unwrapRes (R: R._value_) f; + unwrapOk = f: unwrapRes (R: R._value_) f; + unwrapErr = f: unwrapRes f (R: R._value_); # Map (Monadic Bind Operation) mapRes = f: g: unwrapRes (R: Ok (f R)) (R: Err (f R));