summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid Simmons-Duffin <davidsd@gmail.com>2021-05-10 00:16:34 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-08-10 15:00:05 -0400
commit741fdf0e4f371afbd8ef36f81bbb90a2049b005c (patch)
tree09e67911aff43ef6bd2c388794fb10dc1fbd8ff8 /docs
parent8b9acc4d58f51dcbae73c8226ef876218809fd79 (diff)
downloadhaskell-741fdf0e4f371afbd8ef36f81bbb90a2049b005c.tar.gz
Add a Typeable constraint to fromStaticPtr, addressing #19729
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/9.4.1-notes.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/users_guide/9.4.1-notes.rst b/docs/users_guide/9.4.1-notes.rst
index 655e672a1b..31c0fc3c46 100644
--- a/docs/users_guide/9.4.1-notes.rst
+++ b/docs/users_guide/9.4.1-notes.rst
@@ -61,7 +61,7 @@ Version 9.4.1
- Added ``GHC.Exts.sameArray#``, ``GHC.Exts.sameSmallArray#``,
``GHC.Exts.sameByteArray#`` and ``GHC.Exts.sameArrayArray#``: ::
-
+
sameArray# :: Array# a -> Array# a -> Int#
sameSmallArray# :: SmallArray# a -> SmallArray# a -> Int#
sameByteArray# :: ByteArray# -> ByteArray# -> Int#
@@ -74,3 +74,8 @@ Version 9.4.1
for computing the ``Type`` of an ``HsExpr GhcTc`` in a pure fashion.
The ``hsLitType`` and ``hsPatType`` functions that previously lived in
``GHC.Tc.Utils.Zonk`` have been moved to this module.
+- A `Typeable` constraint has been added to `fromStaticPtr` in the
+ class `GHC.StaticPtr.IsStatic`. GHC automatically wraps each use of
+ the `static` keyword with `fromStaticPtr`. Because `static` requires
+ its argument to be an instance of `Typeable`, `fromStaticPtr` can
+ safely carry this constraint as well.