packages feed

MicroHs-0.17.4.0 / lib / System / RTS.hs

module System.RTS(gc, Stats(..), getStats) whereimport qualified Prelude()import MiniPreludeimport Primitivesgc :: IO ()gc = primGC 0data Stats = Stats  { cellsAllocated :: Word  , reductions     :: Word  } deriving (Show)getStats :: IO StatsgetStats = do  (a, r) <- primStats  return Stats{ cellsAllocated = a, reductions = r }