ghc-prim-0.2.0.0: GHC primitives

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

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# sSource

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 -> bSource

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# sSource

sameTVar# :: TVar# s a -> TVar# s a -> BoolSource

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# sSource

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

sameMVar# :: MVar# s a -> MVar# s a -> BoolSource

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

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

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

traceCcs# :: a -> b -> bSource