ghc-8.0.2: The GHC API

Safe Haskell | None
Language | Haskell2010

Desugar

Contents

- Desugaring operations
- Dependency/fingerprinting code (used by MkIface)

Synopsis

- deSugar :: HscEnv -> ModLocation -> TcGblEnv -> IO (Messages, Maybe ModGuts)
- deSugarExpr :: HscEnv -> LHsExpr Id -> IO (Messages, Maybe CoreExpr)
- mkUsageInfo :: HscEnv -> Module -> ImportedMods -> NameSet -> [FilePath] -> IO [Usage]
- mkUsedNames :: TcGblEnv -> NameSet
- mkDependencies :: TcGblEnv -> IO Dependencies

# Desugaring operations

deSugar :: HscEnv -> ModLocation -> TcGblEnv -> IO (Messages, Maybe ModGuts) Source #

Main entry point to the desugarer.

deSugarExpr :: HscEnv -> LHsExpr Id -> IO (Messages, Maybe CoreExpr) Source #

# Dependency/fingerprinting code (used by MkIface)

mkUsageInfo :: HscEnv -> Module -> ImportedMods -> NameSet -> [FilePath] -> IO [Usage] Source #

mkUsedNames :: TcGblEnv -> NameSet Source #

mkDependencies :: TcGblEnv -> IO Dependencies Source #

Extract information from the rename and typecheck phases to produce a dependencies information for the module being compiled.