touch# primitive

Daniel Cartwright chessai1996 at
Tue Sep 18 15:07:24 UTC 2018

in GHC.Prim, there is a primitive 'touch#'. It seems that it is used to
keep pointers alive, and takes something of any runtime representation, and
a State# RealWorld, but there's really no documentation on it, so my idea
of what it does is just a guess. Can anyone explain what exactly it does?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list