Skip to content

Generalize type of runRW#

Currently, we have

runRW# :: (State# RealWorld -> (# State# RealWorld, o #)) -> (# State# RealWorld, o #)

where o is open-kinded. This type is a bit annoying, because runRW# is very often used in contexts where we want to discard the state token. I think it should be easy to generalize, however:

runRW# :: (State# RealWorld -> o) -> o
Trac metadata
Trac field Value
Version 8.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information