diff --git a/doc/functions/library.xml b/doc/functions/library.xml index 901423c52a18..08319937c2d2 100644 --- a/doc/functions/library.xml +++ b/doc/functions/library.xml @@ -9,7 +9,5 @@ through import <nixpkgs/lib>. - - diff --git a/doc/functions/library/asserts.xml b/doc/functions/library/asserts.xml deleted file mode 100644 index 437850e408bc..000000000000 --- a/doc/functions/library/asserts.xml +++ /dev/null @@ -1,117 +0,0 @@ -
- Assert functions - -
- <function>lib.asserts.assertMsg</function> - - assertMsg :: Bool -> String -> Bool - - - - - - Print a trace message if pred is false. - - - - Intended to be used to augment asserts with helpful error messages. - - - - - - pred - - - - Condition under which the msg should - not be printed. - - - - - - msg - - - - Message to print. - - - - - - - Printing when the predicate is false - trace: foo is not bar, silly -stderr> assert failed -]]> - -
- -
- <function>lib.asserts.assertOneOf</function> - - assertOneOf :: String -> String -> - StringList -> Bool - - - - - - Specialized asserts.assertMsg for checking if - val is one of the elements of xs. - Useful for checking enums. - - - - - - name - - - - The name of the variable the user entered val into, - for inclusion in the error message. - - - - - - val - - - - The value of what the user provided, to be compared against the values in - xs. - - - - - - xs - - - - The list of valid values. - - - - - - - Ensuring a user provided a possible value - false -stderr> trace: sslLibrary must be one of "openssl", "libressl", but is: "bearssl" - ]]> - -
-