export unwrapMaybe, unwrapSome, unwrapNone in tests/maybe.nix
NOTE: nix-unit does NOT handle lambda partial equality well...
This commit is contained in:
parent
c84d84231b
commit
9db1e24987
2 changed files with 16 additions and 13 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue