[commit: ghc] ghc-8.0: user_guide: Move addModFinalizer mention to 8.0.2 release notes (0e68d98)

git at git.haskell.org git at git.haskell.org
Wed Aug 31 23:24:12 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/0e68d98dbd6ad28cc8171d9a8590e00c7a863fdc/ghc

>---------------------------------------------------------------

commit 0e68d98dbd6ad28cc8171d9a8590e00c7a863fdc
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Aug 31 17:03:46 2016 -0400

    user_guide: Move addModFinalizer mention to 8.0.2 release notes
    
    (cherry picked from commit 4e1e7f2b2b3e352bd772339480b67f7c02ba9061)


>---------------------------------------------------------------

0e68d98dbd6ad28cc8171d9a8590e00c7a863fdc
 docs/users_guide/8.0.2-notes.rst | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/docs/users_guide/8.0.2-notes.rst b/docs/users_guide/8.0.2-notes.rst
index a86050c..3885951 100644
--- a/docs/users_guide/8.0.2-notes.rst
+++ b/docs/users_guide/8.0.2-notes.rst
@@ -27,3 +27,12 @@ Template Haskell
 ~~~~~~~~~~~~~~~~
 
 -  TODO FIXME.
+
+- ``addModFinalizer`` now exposes the local typing environment at the splice
+  point. This allows ``reify`` to see local and top-level definitions in the
+  current declaration group when used as in
+
+  .. code-block:: none
+
+      f x = $(addModFinalizer (reify 'x >>= runIO . print) >> [| x |])
+



More information about the ghc-commits mailing list