mkdir nib/std && replace --all 'with' 'let ... in'
This commit is contained in:
parent
f9bb6ad937
commit
fd008cd2e1
11 changed files with 108 additions and 104 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{...}:
|
||||
with builtins; rec {
|
||||
{...}: rec {
|
||||
# Fault Monad
|
||||
# Wrapper around an error (ie builtins.abort)
|
||||
Fault = error: {
|
||||
|
|
@ -7,7 +6,7 @@ with builtins; rec {
|
|||
};
|
||||
|
||||
# Pattern Matching
|
||||
isFault = F: attrNames F == ["_error_"];
|
||||
isFault = F: builtins.attrNames F == ["_error_"];
|
||||
|
||||
# Unwrap (Monadic Return Operation)
|
||||
unwrapFault = F: F._error_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue