GHC.StgToJS.Sinker.Collect

ghc-9.14.0.20251028: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.StgToJS.Sinker.Collect

Synopsis

- collectArgsTop :: CgStgBinding -> [Id]
- collectArgs :: CgStgBinding -> [Id]
- selectUsedOnce :: (Foldable t, Uniquable a) => t a -> UniqSet a

# Documentation

collectArgsTop :: CgStgBinding -> [Id] Source #

fold over all id in StgArg used at the top level in an StgRhsCon

collectArgs :: CgStgBinding -> [Id] Source #

fold over all Id in StgArg in the AST

selectUsedOnce :: (Foldable t, Uniquable a) => t a -> UniqSet a Source #