[Git][ghc/ghc][master] Mark Type.Reflection.Unsafe as Unsafe

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Thu Dec 8 13:32:06 UTC 2022



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
90cd5396 by Krzysztof Gogolewski at 2022-12-08T08:31:39-05:00
Mark Type.Reflection.Unsafe as Unsafe

This module can be used to construct ill-formed TypeReps, so it should
be Unsafe.

- - - - -


2 changed files:

- libraries/base/Type/Reflection/Unsafe.hs
- libraries/base/changelog.md


Changes:

=====================================
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


=====================================
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*
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/90cd53960f4e712197efc320b3aa104e95345a23

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/90cd53960f4e712197efc320b3aa104e95345a23
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221208/8f5fa253/attachment.html>


More information about the ghc-commits mailing list