mirror of
https://github.com/barrucadu/dejafu.git
synced 2024-12-20 03:51:39 +03:00
Use default writeCRef for IO
This commit is contained in:
parent
0ea2930862
commit
5862d536ca
@ -19,7 +19,7 @@ import Control.Monad (unless)
|
|||||||
import Control.Monad.Catch (MonadCatch, MonadThrow, MonadMask)
|
import Control.Monad.Catch (MonadCatch, MonadThrow, MonadMask)
|
||||||
import Control.Monad.STM (STM)
|
import Control.Monad.STM (STM)
|
||||||
import Control.Monad.STM.Class (MonadSTM)
|
import Control.Monad.STM.Class (MonadSTM)
|
||||||
import Data.IORef (IORef, atomicModifyIORef, atomicWriteIORef, newIORef, readIORef)
|
import Data.IORef (IORef, atomicModifyIORef, newIORef, readIORef)
|
||||||
|
|
||||||
import qualified Control.Monad.Catch as Ca
|
import qualified Control.Monad.Catch as Ca
|
||||||
import qualified Control.Concurrent as C
|
import qualified Control.Concurrent as C
|
||||||
@ -234,7 +234,6 @@ instance MonadConc IO where
|
|||||||
newCRef = newIORef
|
newCRef = newIORef
|
||||||
readCRef = readIORef
|
readCRef = readIORef
|
||||||
modifyCRef = atomicModifyIORef
|
modifyCRef = atomicModifyIORef
|
||||||
writeCRef = atomicWriteIORef
|
|
||||||
atomically = S.atomically
|
atomically = S.atomically
|
||||||
|
|
||||||
-- | Create a concurrent computation for the provided action, and
|
-- | Create a concurrent computation for the provided action, and
|
||||||
|
Loading…
Reference in New Issue
Block a user