rename result.nix -> res.nix
also use `with nib.types`
This commit is contained in:
parent
106d9a51a5
commit
edb1b3d752
1 changed files with 3 additions and 2 deletions
|
|
@ -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';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue