diff --git a/nib/types/maybe.nix b/nib/types/maybe.nix index 3114415..361b54a 100644 --- a/nib/types/maybe.nix +++ b/nib/types/maybe.nix @@ -97,4 +97,9 @@ in rec { else f T; firstSome = findFirst isSome None; + + nullableToMaybe = x: + if x == null + then None + else Some x; }