haskell-tools-backend-ghc-1.1.0.1: Creating the Haskell-Tools AST from GHC's representations

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.BackendGHC.Modules

Description

Functions that convert the module-related elements (modules, imports, exports) of the GHC AST to corresponding elements in the Haskell-tools AST representation Also contains the entry point of the transformation that collects the information from different GHC AST representations.

Synopsis

Documentation

trfModuleRename :: ModSummary -> Ann UModule (Dom GhcPs) RangeStage -> RenamedSource -> Located (HsModule GhcPs) -> Trf (Ann UModule (Dom GhcRn) RangeStage) #

Transformes the module in its typed state. Uses the results of trfModule to extract program elements (splices for example) that are not kept in the typed representation.

loadSplices :: HsModule GhcPs -> Trf a -> Trf a #

Extract the template haskell splices from the representation and adds them to the transformation state.

trfImports :: forall n r. TransformName n r => [LImportDecl n] -> Trf (AnnListG UImportDecl (Dom r) RangeStage) #

trfIESpec' :: forall n r. TransformName n r => IE n -> Trf (Maybe (UIESpec (Dom r) RangeStage)) #