`StablePtr` in `ST`

Matthew Farkas-Dyck <[email protected]>
Newsgroups gmane.comp.lang.haskell.ghc.devel,gmane.comp.lang.haskell.glasgow.user
Message-ID <CAL3m8eAtBW8Chf_ZBTE+QuOiga885D0gyu40RP8ixYEg7Mi=Fw@mail.gmail.com>
I have been doing some work where i want `StablePtr`, but also to not
be confined to `IO`. I saw the following comment in
"compiler/prelude/PrimOp.hs":

Question: Why @RealWorld@ - won't any instance of @_ST@ do the job? [ADR]

It has been there for 20 years. What is the answer? If it is safe i'll
send the patch generalizing these operations.
_______________________________________________
ghc-devs mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.