From 88effe5af07bfa04a8d18091953757c9fee5b529 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Sun, 14 Dec 2025 18:55:36 +1000 Subject: [PATCH] implement nullableToMaybe --- nib/types/maybe.nix | 5 +++++ 1 file changed, 5 insertions(+) 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; }