ghc-prim-0.3.1.0: GHC primitives

Safe HaskellNone
LanguageHaskell2010

GHC.PrimopWrappers

Documentation

newArray# :: Int# -> a -> State# s -> (#State# s, MutableArray# s a#) Source

readArray# :: MutableArray# s a -> Int# -> State# s -> (#State# s, a#) Source

indexArray# :: Array# a -> Int# -> (#a#) Source

thawArray# :: Array# a -> Int# -> Int# -> State# s -> (#State# s, MutableArray# s a#) Source

casArray# :: MutableArray# s a -> Int# -> a -> a -> State# s -> (#State# s, Int#, a#) Source

newMutVar# :: a -> State# s -> (#State# s, MutVar# s a#) Source

readMutVar# :: MutVar# s a -> State# s -> (#State# s, a#) Source

writeMutVar# :: MutVar# s a -> a -> State# s -> State# s Source

atomicModifyMutVar# :: MutVar# s a -> (a -> b) -> State# s -> (#State# s, c#) Source

casMutVar# :: MutVar# s a -> a -> a -> State# s -> (#State# s, Int#, a#) Source

raise# :: a -> b Source

newTVar# :: a -> State# s -> (#State# s, TVar# s a#) Source

readTVar# :: TVar# s a -> State# s -> (#State# s, a#) Source

readTVarIO# :: TVar# s a -> State# s -> (#State# s, a#) Source

writeTVar# :: TVar# s a -> a -> State# s -> State# s Source

sameTVar# :: TVar# s a -> TVar# s a -> Int# Source

newMVar# :: State# s -> (#State# s, MVar# s a#) Source

takeMVar# :: MVar# s a -> State# s -> (#State# s, a#) Source

tryTakeMVar# :: MVar# s a -> State# s -> (#State# s, Int#, a#) Source

putMVar# :: MVar# s a -> a -> State# s -> State# s Source

tryPutMVar# :: MVar# s a -> a -> State# s -> (#State# s, Int##) Source

readMVar# :: MVar# s a -> State# s -> (#State# s, a#) Source

tryReadMVar# :: MVar# s a -> State# s -> (#State# s, Int#, a#) Source

sameMVar# :: MVar# s a -> MVar# s a -> Int# Source

isEmptyMVar# :: MVar# s a -> State# s -> (#State# s, Int##) Source

mkWeak# :: o -> b -> c -> State# RealWorld -> (#State# RealWorld, Weak# b#) Source

spark# :: a -> State# s -> (#State# s, a#) Source

getSpark# :: State# s -> (#State# s, Int#, a#) Source

addrToAny# :: Addr# -> (#a#) Source

mkApUpd0# :: BCO# -> (#a#) Source

getApStackVal# :: a -> Int# -> (#Int#, b#) Source

getCCSOf# :: a -> State# s -> (#State# s, Addr##) Source