lib/types: simplify eitherRecursive by defining it only once

This commit is contained in:
Matt Sturgeon 2024-09-12 13:05:21 +01:00
parent a5152c2f8e
commit 27a0dd435d
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 10 additions and 5 deletions

View file

@ -13,8 +13,6 @@ let
// {
getSubOptions = prefix: (t1.getSubOptions prefix) // (t2.getSubOptions prefix);
};
eitherRecursive = t1: t2: (final.types.either t1 t2) // { getSubOptions = _: { }; };
};
}
);