From ee051084723333fc5889c604c829669800e8b43c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 23 Jul 2020 14:20:54 +0200 Subject: ->
Pandoc silently ignores ... --- doc/manual/expressions/language-constructs.xml | 32 +++++++++++++------------- doc/manual/expressions/language-values.xml | 12 +++++----- 2 files changed, 22 insertions(+), 22 deletions(-) (limited to 'doc/manual/expressions') diff --git a/doc/manual/expressions/language-constructs.xml b/doc/manual/expressions/language-constructs.xml index 4d316609c..82d3afed1 100644 --- a/doc/manual/expressions/language-constructs.xml +++ b/doc/manual/expressions/language-constructs.xml @@ -6,7 +6,7 @@ Language Constructs -Recursive sets +
Recursive sets Recursive sets are just normal sets, but the attributes can refer to each other. For example, @@ -38,10 +38,10 @@ does not terminateActually, Nix detects infinite recursion in this case and aborts (infinite recursion encountered).. - +
-Let-expressions +
Let-expressions A let-expression allows you to define local variables for an expression. For instance, @@ -56,10 +56,10 @@ evaluates to "foobar". - +
-Inheriting attributes +
Inheriting attributes When defining a set or in a let-expression it is often convenient to copy variables from the surrounding lexical scope (e.g., when you want to propagate @@ -129,10 +129,10 @@ a = src-set.a; b = src-set.b; c = src-set.c; when used while defining local variables in a let-expression or while defining a set. - +
-Functions +
Functions Functions have the following form: @@ -248,10 +248,10 @@ in concat { x = "foo"; y = "bar"; } - +
-Conditionals +
Conditionals Conditionals look like this: @@ -262,10 +262,10 @@ where e1 is an expression that should evaluate to a Boolean value (true or false). - +
-Assertions +
Assertions Assertions are generally used to check that certain requirements on or between features and dependencies hold. They look like this: @@ -349,11 +349,11 @@ stdenv.mkDerivation { - +
-With-expressions +
With-expressions A with-expression, @@ -394,16 +394,16 @@ let a = 1; in let a = 2; in let a = 3; in let a = 4; in ... - +
-Comments +
Comments Comments can be single-line, started with a # character, or inline/multi-line, enclosed within /* ... */. - +
diff --git a/doc/manual/expressions/language-values.xml b/doc/manual/expressions/language-values.xml index 4a72c67a8..6c0fcbacb 100644 --- a/doc/manual/expressions/language-values.xml +++ b/doc/manual/expressions/language-values.xml @@ -7,7 +7,7 @@ Values -Simple Values +
Simple Values Nix has the following basic data types: @@ -193,10 +193,10 @@ stdenv.mkDerivation { - +
-Lists +
Lists Lists are formed by enclosing a whitespace-separated list of values between square brackets. For example, @@ -217,10 +217,10 @@ function and the fifth being a set. Note that lists are only lazy in values, and they are strict in length. - +
-Sets +
Sets Sets are really the core of the language, since ultimately the Nix language is all about creating derivations, which are really just @@ -307,7 +307,7 @@ a form of object-oriented programming, for example. - +
-- cgit v1.2.3