diff options
Diffstat (limited to 'docs/users_guide/using-warnings.rst')
-rw-r--r-- | docs/users_guide/using-warnings.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/users_guide/using-warnings.rst b/docs/users_guide/using-warnings.rst index 977bb69941..d61fc46319 100644 --- a/docs/users_guide/using-warnings.rst +++ b/docs/users_guide/using-warnings.rst @@ -2355,6 +2355,21 @@ of ``-W(no-)*``. triggered whenever this happens, and can be addressed by enabling the extension. +.. ghc-flag:: -Wreify-module-missing-info + :shortdesc: warn when `reifyModule` + :type: dynamic + :reverse: -Wno-reify-module-missing-info + + :since: 9.6.1 + + The `reifyModule` function in the Template Haskell API can fail to find the necessary + information when an interface file is generated with `-fno-write-self-recomp-info`. This + is due to a shortcoming in `reifyModule` tracked by :ghc-ticket:`8489`. + + This flag warns the user when they try to call `reifyModule` on a module where this + situation occurs so that they know the traversal has ended prematurely. + + If you're feeling really paranoid, the :ghc-flag:`-dcore-lint` option is a good choice. It turns on heavyweight intra-pass sanity-checking within GHC. (It checks GHC's sanity, not yours.) |