atomic-modify-general-0.1.0.0: Generalizations of atomicModifyIORef
Safe HaskellUnsafe
LanguageHaskell2010

Data.IORef.AtomicModify.Generic

Description

Atomic modification for more general records, using GHC generics to check their suitablility. When applicable, this is faster than the general utilities in Data.IORef.AtomicModify.

Documentation

atomicModifyIORef2Native :: (EnsureGenericData t, FirstField t (Rep t) ~ a) => IORef a -> (a -> t) -> IO (a, t) Source #