[commit: ghc] master: Docs: -interactive-print should reside in registered package (7cddcde)
git at git.haskell.org
git at git.haskell.org
Wed Dec 23 21:18:53 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/7cddcde52cf27c55223b1dbb995df623498d0f70/ghc
>---------------------------------------------------------------
commit 7cddcde52cf27c55223b1dbb995df623498d0f70
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Wed Dec 23 22:14:57 2015 +0100
Docs: -interactive-print should reside in registered package
Since commit 03c4893e355948fe865bc52c744359c42e4b06d7, ic_int_print is
retained from registered packages after `:reload`.
Fixes #11159.
>---------------------------------------------------------------
7cddcde52cf27c55223b1dbb995df623498d0f70
docs/users_guide/ghci.rst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/users_guide/ghci.rst b/docs/users_guide/ghci.rst
index 347bb87..7fedf21 100644
--- a/docs/users_guide/ghci.rst
+++ b/docs/users_guide/ghci.rst
@@ -1068,7 +1068,9 @@ contains strings with non-ascii characters.
The ``-interactive-print`` flag allows to specify any function of type
``C a => a -> IO ()``, for some constraint ``C``, as the function for
printing evaluated expressions. The function can reside in any loaded
-module or any registered package.
+module or any registered package, but only when it resides in a registered
+package will it survive a ``:cd``, ``:add``, ``:load``, ``:reload`` or
+``:set``.
As an example, suppose we have following special printing module:
More information about the ghc-commits
mailing list