[Git][ghc/ghc][wip/marge_bot_batch_merge_job] Fix misleading Ptr phantom type in SerializedCompact (#15653)

Marge Bot gitlab at gitlab.haskell.org
Sun Apr 26 12:24:48 UTC 2020



 Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC


Commits:
31748cc8 by Sylvain Henry at 2020-04-26T08:24:44-04:00
Fix misleading Ptr phantom type in SerializedCompact (#15653)

- - - - -


1 changed file:

- libraries/ghc-compact/GHC/Compact/Serialized.hs


Changes:

=====================================
libraries/ghc-compact/GHC/Compact/Serialized.hs
=====================================
@@ -47,8 +47,8 @@ import GHC.Compact
 -- sent out of band in advance if the data is to be sent over RDMA
 -- (which requires both sender and receiver to have pinned buffers).
 data SerializedCompact a = SerializedCompact
-  { serializedCompactBlockList :: [(Ptr a, Word)]
-  , serializedCompactRoot :: Ptr a
+  { serializedCompactBlockList :: [(Ptr (), Word)]
+  , serializedCompactRoot :: Ptr ()
   }
 
 addrIsNull :: Addr# -> Bool



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/31748cc869bb6ebca7a1c36801216abe0b02e1e0

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/31748cc869bb6ebca7a1c36801216abe0b02e1e0
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/20200426/b71c90c2/attachment.html>


More information about the ghc-commits mailing list