From 77322d65e4de323d8520ef127379aa1208f5c73d Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Thu, 18 Dec 2025 12:10:38 +1000 Subject: [PATCH] fix: Some aliased to Res!! --- nib/types/maybe.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nib/types/maybe.nix b/nib/types/maybe.nix index 3bb41b4..ea13f4b 100644 --- a/nib/types/maybe.nix +++ b/nib/types/maybe.nix @@ -1,5 +1,4 @@ {nib, ...}: let - Res = nib.types.Res; findFirst = nib.std.findFirst; # TODO: try get enum generation working (and other type constructors) # Maybe = mkEnum "nib::Maybe" { @@ -62,7 +61,7 @@ in rec { _some_ = some; # allows _value_ to be null (yuck!!) _value_ = value; }; - Some = Res true; + Some = Maybe true; None = Maybe false null; # Pattern Matching (unsafe and safe variants)