mkBoolean
lib.gvariant.mkBoolean
Docs pulled from | This Revision | about 1 hour ago
Returns the GVariant boolean from the given Nix bool value.
Inputs
v
-
1. Function argument
Type
mkBoolean :: Bool -> gvariant
Noogle detected
Implementation
The following is the current implementation of this function.
mkBoolean =
v:
mkPrimitive type.boolean v
// {
__toString = self: if self.value then "true" else "false";
};