[GHC] #13131: add effectful version of atomicModifyMutVar#
GHC
ghc-devs at haskell.org
Sun Jan 15 21:23:14 UTC 2017
#13131: add effectful version of atomicModifyMutVar#
-------------------------------------+-------------------------------------
Reporter: carter | Owner:
Type: feature | Status: new
request |
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
something like
{{{
atomicEffectfulModifyMutVar# :: MutVar# s a -> ((# a, State# s #) -> (#
State# s , a , b#)) -> State# s -> (#State# s, b #)
}}}
this isn't quite safely expressible currently without some unsafeCoercion
highjinks that I'm not sure are robust
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13131>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list