Skip to content

Commit 1c90e2c

Browse files
author
doyougnu
committed
conf: use custom.rst for global variables
fixes: haskellfoundation#76
1 parent dcf7054 commit 1c90e2c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
'ghcWiki': ('https://gitlab.haskell.org/ghc/ghc/wikis/%s', '#%s'),
6060
}
6161

62-
# prolog for colored text
62+
# prolog for colored text and global variables
6363
rst_prolog = """
6464
.. include:: <s5defs.txt>
6565

custom.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
.. role:: strike
44
:class: strike
5+
6+
.. |ghcVersion| replace:: 9.2.x

index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Haskell Optimization Handbook
55
*by Jeffrey M. Young*
66

77

8-
This book assumes you are using ghc ``9.2.x`` or above and using the Linux
8+
This book assumes you are using ghc |ghcVersion| or above and using the Linux
99
operating system. If you are new then the best place to start is the :doc:`How
1010
to use this book </src/Preliminaries/how_to_use>` chapter. If you are returning
1111
then feel free to jump to the :ref:`mastertoc` and best wishes. It is dangerous

src/Preliminaries/how_to_use.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ optimization rabbit hole. If you have no code to optimize, then you may consider
3030
picking your favorite Haskell library and attempting to optimize that!
3131

3232

33-
The book assumes you are using ``GHC 8.10.x`` and a Linux distribution (kernel
33+
The book assumes you are using GHC |ghcVersion| and a Linux distribution (kernel
3434
version ``5.8`` and higher). Should you be using an older compiler than some
3535
sections, such as :doc:`Using EventLog
3636
</src/Measurement_Observation/Heap_Ghc/eventlog>`; which arrived in ``GHC 8.8``

0 commit comments

Comments
 (0)