diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-01-21 11:30:24 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-01-21 14:59:06 +0100 |
commit | 928484d2b021fc968d5f2dfe490dc0ad201dc7df (patch) | |
tree | 3ef748106317248d4e2d586acf0cb08a7b00d7f0 /docs/users_guide/phases.rst | |
parent | f23b578f792a357fa754604188eea46ca46cf613 (diff) | |
download | haskell-928484d2b021fc968d5f2dfe490dc0ad201dc7df.tar.gz |
user-guide: Refer to MIN_VERSION_GLASGOW_HASKELL from intro
And fix markup.
Diffstat (limited to 'docs/users_guide/phases.rst')
-rw-r--r-- | docs/users_guide/phases.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/users_guide/phases.rst b/docs/users_guide/phases.rst index bc4e90f3a9..e9637fac69 100644 --- a/docs/users_guide/phases.rst +++ b/docs/users_guide/phases.rst @@ -182,6 +182,11 @@ Options affecting the C pre-processor The GHC driver pre-defines several macros when processing Haskell source code (``.hs`` or ``.lhs`` files). +.. _standard-cpp-macros: + +Standard CPP macros +~~~~~~~~~~~~~~~~~~~ + The symbols defined by GHC are listed below. To check which symbols are defined by your local GHC installation, the following trick is useful: @@ -258,7 +263,7 @@ defined by your local GHC installation, the following trick is useful: is required, the presence of the ``MIN_VERSION_GLASGOW_HASKELL`` macro needs to be ensured before it is called, e.g.: - .. code-block: c + .. code-block:: c #ifdef MIN_VERSION_GLASGOW_HASKELL #if MIN_VERSION_GLASGOW_HASKELL(7,10,2,0) @@ -451,6 +456,7 @@ Options affecting code generation no-op on that platform. .. ghc-flag:: -dynamic + :noindex: When generating code, assume that entities imported from a different package will reside in a different shared library or binary. |