diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2016-03-30 21:43:51 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-03-30 22:49:06 +0200 |
commit | e9c2555ac666912f7dff56448ced4bfa06d14e76 (patch) | |
tree | 3a884a5b82d9ee30802c3127897fc7c9ebc3df88 /docs/users_guide/phases.rst | |
parent | 58bbb40ba23860df2ede1275493ef32ba69a2083 (diff) | |
download | haskell-e9c2555ac666912f7dff56448ced4bfa06d14e76.tar.gz |
Don't require -hide-all-packages for MIN_VERSION_* macros
Define MIN_VERSION_pkgname and VERSION_pkgname macros for all exposed
packages, without requiring -hide-all-packages.
See #10970 comment 7-10 for discussion.
Reviewers: duncan, ezyang, bgamari, austin
Reviewed By: ezyang
Subscribers: hvr, rwbarton
Differential Revision: https://phabricator.haskell.org/D1869
GHC Trac Issues: #10970
Diffstat (limited to 'docs/users_guide/phases.rst')
-rw-r--r-- | docs/users_guide/phases.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/users_guide/phases.rst b/docs/users_guide/phases.rst index ed05add4d9..0c3b59f54c 100644 --- a/docs/users_guide/phases.rst +++ b/docs/users_guide/phases.rst @@ -313,16 +313,14 @@ defined by your local GHC installation, the following trick is useful: ``VERSION_pkgname`` This macro is available starting GHC 8.0. It is defined for every - exposed package, but only if the ``-hide-all-packages`` flag - is set. This macro expands to a string recording the + exposed package. This macro expands to a string recording the version of ``pkgname`` that is exposed for module import. It is identical in behavior to the ``VERSION_pkgname`` macros that Cabal defines. ``MIN_VERSION_pkgname(x,y,z)`` This macro is available starting GHC 8.0. It is defined for every - exposed package, but only if the ``-hide-all-packages`` flag - is set. This macro is provided for convenience to write CPP + exposed package. This macro is provided for convenience to write CPP conditionals testing if a package version is ``x.y.z`` or less. It is identical in behavior to the ``MIN_VERSION_pkgname`` macros that Cabal defines. |