GHC.Utils.GlobalVars

ghc-lib-parser-9.10.1.20250103: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Utils.GlobalVars

Description

Do not use global variables!

Global variables are a hack. Do not use them if you can help it.

# Documentation

v_unsafeHasPprDebug :: IORef Bool #

v_unsafeHasNoDebugOutput :: IORef Bool #

v_unsafeHasNoStateHack :: IORef Bool #

unsafeHasPprDebug :: Bool #

unsafeHasNoDebugOutput :: Bool #

unsafeHasNoStateHack :: Bool #

global :: a -> IORef a #

consIORef :: IORef [a] -> a -> IO () #

globalM :: IO a -> IORef a #

sharedGlobal :: a -> (Ptr (IORef a) -> IO (Ptr (IORef a))) -> IORef a #

sharedGlobalM :: IO a -> (Ptr (IORef a) -> IO (Ptr (IORef a))) -> IORef a #