Desugar

ghc-8.0.1: 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) #

Main entry point to the desugarer.

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

# Dependency/fingerprinting code (used by MkIface)

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

mkUsedNames :: TcGblEnv -> NameSet #

mkDependencies :: TcGblEnv -> IO Dependencies #

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