about summary refs log tree commit diff
path: root/doc/functions/library/asserts.xml
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-10-05 10:46:58 -0400
committerGraham Christensen <graham@grahamc.com>2018-10-05 11:20:46 -0400
commit5daee73ce41652d21743a7304b4fd3f9da926c35 (patch)
tree7a799a32287d88d9435855bcdd64437b14efa33a /doc/functions/library/asserts.xml
parent4312cfdbda1855088905a3d9959a4fac362fd051 (diff)
downloadnixlib-5daee73ce41652d21743a7304b4fd3f9da926c35.tar
nixlib-5daee73ce41652d21743a7304b4fd3f9da926c35.tar.gz
nixlib-5daee73ce41652d21743a7304b4fd3f9da926c35.tar.bz2
nixlib-5daee73ce41652d21743a7304b4fd3f9da926c35.tar.lz
nixlib-5daee73ce41652d21743a7304b4fd3f9da926c35.tar.xz
nixlib-5daee73ce41652d21743a7304b4fd3f9da926c35.tar.zst
nixlib-5daee73ce41652d21743a7304b4fd3f9da926c35.zip
Generate links to function definitions
Hydra passes the full revision in to the input, which we pass through.

If we don't get this ,we try to get it from other sources, or default to
master which should have the definition in a close-ish location.

All published docs should have theURL resolve properly, only local
hackers will have the link break.
Diffstat (limited to 'doc/functions/library/asserts.xml')
-rw-r--r--doc/functions/library/asserts.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/functions/library/asserts.xml b/doc/functions/library/asserts.xml
index 1f42078c8cf3..437850e408bc 100644
--- a/doc/functions/library/asserts.xml
+++ b/doc/functions/library/asserts.xml
@@ -10,6 +10,8 @@
   <subtitle><literal>assertMsg :: Bool -> String -> Bool</literal>
   </subtitle>
 
+  <xi:include href="./locations.xml" xpointer="lib.asserts.assertMsg" />
+
   <para>
    Print a trace message if <literal>pred</literal> is false.
   </para>
@@ -59,6 +61,8 @@ stderr> assert failed
       StringList -> Bool</literal>
   </subtitle>
 
+  <xi:include href="./locations.xml" xpointer="lib.asserts.assertOneOf" />
+
   <para>
    Specialized <function>asserts.assertMsg</function> for checking if
    <varname>val</varname> is one of the elements of <varname>xs</varname>.