[Git][ghc/ghc][wip/js-staging] Make field lazy

Sylvain Henry (@hsyl20) gitlab at gitlab.haskell.org
Wed Nov 9 16:11:37 UTC 2022



Sylvain Henry pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC


Commits:
3e1d171e by Sylvain Henry at 2022-11-09T17:15:07+01:00
Make field lazy

- - - - -


1 changed file:

- compiler/GHC/Utils/Binary.hs


Changes:

=====================================
compiler/GHC/Utils/Binary.hs
=====================================
@@ -172,7 +172,7 @@ handleData (BinMem _ ixr _ binr) = BinData <$> readFastMutInt ixr <*> readIORef
 
 data BinHandle
   = BinMem {                     -- binary data stored in an unboxed array
-     bh_usr :: !UserData,        -- sigh, need parameterized modules :-)
+     bh_usr :: UserData,         -- sigh, need parameterized modules :-)
      _off_r :: !FastMutInt,      -- the current offset
      _sz_r  :: !FastMutInt,      -- size of the array (cached)
      _arr_r :: !(IORef BinArray) -- the array (bounds: (0,size-1))



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3e1d171ef7adf527f5df0d8d5cc8de32f36f270a

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3e1d171ef7adf527f5df0d8d5cc8de32f36f270a
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/20221109/69540e0d/attachment.html>


More information about the ghc-commits mailing list