papa-0.7.0: src/Papa/Base/Data/IORef.hs
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -Wall #-}
-- | Mutable references in 'Prelude.IO'.
--
-- Only the strict modifiers are exported: "Data.IORef"'s @modifyIORef@ and
-- @atomicModifyIORef@ store the unevaluated result, and a reference modified
-- many times without being read holds a chain of thunks (a space leak).
-- 'modifyIORef'' and 'atomicModifyIORef'' evaluate it.
module Papa.Base.Data.IORef (
module P,
) where
import Data.IORef as P (
IORef,
atomicModifyIORef',
atomicWriteIORef,
modifyIORef',
newIORef,
readIORef,
writeIORef,
)