
#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