summaryrefslogtreecommitdiff
path: root/docs/users_guide/phases.rst
diff options
context:
space:
mode:
authorHécate <hecate+gitlab@glitchbra.in>2020-07-01 23:35:39 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-03 17:34:36 -0400
commit7aa6ef110d8cc6626b1cf18d85a37cbac53e2795 (patch)
tree80a703c03e8fee5850954a89e84750f53c391e7f /docs/users_guide/phases.rst
parent41d2649288a5debcb4c8003e54b7d3072ab951c5 (diff)
downloadhaskell-7aa6ef110d8cc6626b1cf18d85a37cbac53e2795.tar.gz
Add the __GHC_FULL_VERSION__ CPP macro to expose the full GHC version
Diffstat (limited to 'docs/users_guide/phases.rst')
-rw-r--r--docs/users_guide/phases.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/users_guide/phases.rst b/docs/users_guide/phases.rst
index 33a57385bf..5975962370 100644
--- a/docs/users_guide/phases.rst
+++ b/docs/users_guide/phases.rst
@@ -332,6 +332,13 @@ defined by your local GHC installation, the following trick is useful:
source, including the C source generated from a Haskell module (i.e.
``.hs``, ``.lhs``, ``.c`` and ``.hc`` files).
+``__GLASGOW_HASKELL_FULL_VERSION__``
+ .. index::
+ single: __GLASGOW_HASKELL_FULL_VERSION__
+ This macro exposes the full version string.
+ For instance: ``__FULL_GHC_VERSION__==8.11.0.20200319``.
+ Its value comes from the ``ProjectVersion`` Autotools variable.
+
``__GLASGOW_HASKELL_PATCHLEVEL1__``; \ ``__GLASGOW_HASKELL_PATCHLEVEL2__``
.. index::
single: __GLASGOW_HASKELL_PATCHLEVEL2__