nixpkgs/lib
aszlig 0f0805b51a
lib/types: Handle submodules for type "either"
So far the "either" type only handled "flat" types, so you couldn't do
something like:

type = either int (submodule {
  options = ...;
});

Not only caused this the submodule's options not being checked but also
not show up in the documentation.

This was something we stumbled on with #13916.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @edolstra
2016-03-19 17:22:39 +01:00
..
tests lib: alphabetize things 2016-02-26 22:15:41 +00:00
attrsets.nix lib/attrsets: document all the functions 2016-03-09 19:59:57 +00:00
composable-derivation.nix Shea told me composableDerivation is hard to understand. 2014-04-30 20:31:40 +02:00
customisation.nix lib: add makeScope 2015-09-27 09:45:23 -05:00
debug.nix lib: cleanup a little bit, add traceIf 2015-03-26 12:43:42 +00:00
default.nix cherry-pick lib.sandbox into master 2015-11-19 11:33:21 -08:00
deprecated.nix Update deprecated.nix 2015-11-15 03:41:39 +08:00
licenses.nix epson_201207w: init at 1.0.0 2016-03-09 15:25:53 -03:00
lists.nix lib/lists: document all functions 2016-03-10 12:31:05 +00:00
maintainers.nix yamdi: init at 1.9 2016-03-16 11:39:43 -04:00
meta.nix Make appendToName do the right thing 2014-03-10 15:01:56 +01:00
minver.nix Expose minimum required Nix version. 2015-11-26 23:11:11 +08:00
modules.nix Revert "Add the tool "nixos-typecheck" that can check an option declaration to:" 2016-03-01 20:52:06 +01:00
options.nix Revert "Add the tool "nixos-typecheck" that can check an option declaration to:" 2016-03-01 20:52:06 +01:00
platforms.nix lib.platforms: alphabetize 2016-02-26 22:15:40 +00:00
sandbox.nix cherry-pick lib.sandbox into master 2015-11-19 11:33:21 -08:00
sources.nix Manual: Handle XML files in subdirectories 2014-08-25 14:33:33 +02:00
strings-with-deps.nix Replace references to all-packages.nix, by references to the top-level of nixpkgs repository. 2016-03-13 18:25:52 +00:00
strings.nix lib/strings: document all the functions 2016-03-10 12:31:06 +00:00
systems.nix lib: alphabetize things 2016-02-26 22:15:41 +00:00
tests.nix add helper to lib/attrsets: hasAttrByPath 2015-12-07 11:04:14 +01:00
trivial.nix lib.trivial: add a new importJSON function 2016-02-29 11:21:56 +00:00
types.nix lib/types: Handle submodules for type "either" 2016-03-19 17:22:39 +01:00