summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-11-28 18:43:18 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-12-08 08:31:39 -0500
commit90cd53960f4e712197efc320b3aa104e95345a23 (patch)
treeab31477bab7b30404568f91fb5178f7dbb9e30d6
parentc5d8ed3ae14396733e240f6a146a0793f288b296 (diff)
downloadhaskell-90cd53960f4e712197efc320b3aa104e95345a23.tar.gz
Mark Type.Reflection.Unsafe as Unsafe
This module can be used to construct ill-formed TypeReps, so it should be Unsafe.
-rw-r--r--libraries/base/Type/Reflection/Unsafe.hs2
-rw-r--r--libraries/base/changelog.md1
2 files changed, 2 insertions, 1 deletions
diff --git a/libraries/base/Type/Reflection/Unsafe.hs b/libraries/base/Type/Reflection/Unsafe.hs
index a109400412..55cb3a84e3 100644
--- a/libraries/base/Type/Reflection/Unsafe.hs
+++ b/libraries/base/Type/Reflection/Unsafe.hs
@@ -12,7 +12,7 @@
-- type representations.
--
-----------------------------------------------------------------------------
-{-# LANGUAGE PolyKinds, DataKinds, ScopedTypeVariables #-}
+{-# LANGUAGE PolyKinds, DataKinds, ScopedTypeVariables, Unsafe #-}
module Type.Reflection.Unsafe (
-- * Type representations
diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md
index 9c259d8c3a..ee712fe27c 100644
--- a/libraries/base/changelog.md
+++ b/libraries/base/changelog.md
@@ -56,6 +56,7 @@
`malloc` for allocation. It avoids the O(n) overhead of maintaining a list
of individually allocated pointers as well as freeing each one of them when
freeing a `Pool`. (#14762) (#18338)
+ * `Type.Reflection.Unsafe` is now marked as unsafe.
## 4.17.0.0 *August 2022*