CorePrep

ghc-8.6.3: The GHC API

Safe Haskell | None
Language | Haskell2010

CorePrep

# Documentation

corePrepPgm :: HscEnv -> Module -> ModLocation -> CoreProgram -> [TyCon] -> IO (CoreProgram, Set CostCentre) #

corePrepExpr :: DynFlags -> HscEnv -> CoreExpr -> IO CoreExpr #

cvtLitInteger :: DynFlags -> Id -> Maybe DataCon -> Integer -> CoreExpr #

cvtLitNatural :: DynFlags -> Id -> Maybe DataCon -> Integer -> CoreExpr #

lookupMkIntegerName :: DynFlags -> HscEnv -> IO Id #

lookupIntegerSDataConName :: DynFlags -> HscEnv -> IO (Maybe DataCon) #

lookupMkNaturalName :: DynFlags -> HscEnv -> IO Id #

lookupNaturalSDataConName :: DynFlags -> HscEnv -> IO (Maybe DataCon) #