feat(nix/yants): add unit type

Has one less value than bool.

Change-Id: I2f2db07b1eb1f49172942bc1d8c6ceb30d987d84
Reviewed-on: https://cl.tvl.fyi/c/depot/+/661
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Profpatsch 2020-06-27 21:45:20 +02:00
parent f3bf9fbad9
commit e2c7e38934
2 changed files with 2 additions and 0 deletions

View file

@ -93,6 +93,7 @@ with builtins; let
in lib.fix (self: {
# Primitive types
any = typedef "any" (_: true);
unit = typedef "unit" (v: v == {});
int = typedef "int" isInt;
bool = typedef "bool" isBool;
float = typedef "float" isFloat;