diff options
author | Hécate <hecate+gitlab@glitchbra.in> | 2020-07-01 23:35:39 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-07-03 17:34:36 -0400 |
commit | 7aa6ef110d8cc6626b1cf18d85a37cbac53e2795 (patch) | |
tree | 80a703c03e8fee5850954a89e84750f53c391e7f /docs/users_guide/phases.rst | |
parent | 41d2649288a5debcb4c8003e54b7d3072ab951c5 (diff) | |
download | haskell-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.rst | 7 |
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__ |