[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 06:54:24 UTC 2020



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


Commits:
ae3785bb by Sylvain Henry at 2020-04-26T02:54:21-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/ae3785bbc8a0acaa2ccd0354397451003d405358

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ae3785bbc8a0acaa2ccd0354397451003d405358
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/505bc36d/attachment-0001.html>


More information about the ghc-commits mailing list