haskell / haskell/primitive

Behavior of `Control.Monad.Primitive.touch` on boxed types

Open
#18 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
123
Forks
60
PR merge metrics
No merged PRs in 30d

Description

This is a request for documentation. I'm having trouble finding details about how `touch#` behaves, primarily I'd like to know if it works if I call it on say an `IORef` when GHC has unboxed that IORef (similar to the issue with `Weak` references). If it does have the same problem (and `touch#` should only be passed primitive types), then it would seem wise to deprecate `touch`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.