From 9e808c846e026870fd154aa98dacbdbf2a30d866 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Tue, 27 Jan 2026 12:58:55 +1000 Subject: [PATCH] fix mapSome/mapNone leave monadic context --- nt/primitives/bootstrap/maybe.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nt/primitives/bootstrap/maybe.nix b/nt/primitives/bootstrap/maybe.nix index 9016985..08b49b9 100644 --- a/nt/primitives/bootstrap/maybe.nix +++ b/nt/primitives/bootstrap/maybe.nix @@ -64,8 +64,8 @@ in rec { in assert enfIsMaybe value "mapMaybe"; value; - mapSome = f: mapMaybe f id; - mapNone = mapMaybe id; + mapSome = f: mapMaybe f (_: None); + mapNone = mapMaybe (x: Some x); # Utility Functions boolToMaybe = x: