export unwrapMaybe, unwrapSome, unwrapNone in tests/maybe.nix

NOTE: nix-unit does NOT handle lambda partial equality well...
This commit is contained in:
Emile Clark-Boman 2026-01-28 09:15:49 +10:00
parent c84d84231b
commit 9db1e24987
2 changed files with 16 additions and 13 deletions

View file

@ -21,9 +21,8 @@ in {
inherit
(maybe-mod)
Maybe
unwrapSome
Some
None
;
in {
expr = Some true;
@ -33,9 +32,7 @@ in {
derive = ["nt::&Maybe"];
instance = true;
ops = {
"nt::&Maybe" = {
unwrap = f: self: f self.${bootstrap.ntDynamicTrapdoorKey}.value;
};
"nt::&Maybe".unwrap = unwrapSome;
};
req = {};
sig = "nt::Some";