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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.FromGHC.Decls

Description

Functions that convert the declarations of the GHC AST to corresponding elements in the Haskell-tools AST representation

Synopsis

Documentation

trfDeclsGroup :: forall n r. TransformName n r => HsGroup n -> Trf (AnnListG UDecl (Dom r) RangeStage) #

trfVal :: TransformName n r => HsBindLR n n -> Trf (UDecl (Dom r) RangeStage) #

trfSig :: TransformName n r => Sig n -> Trf (UDecl (Dom r) RangeStage) #

addParenLocs :: SrcSpan -> Trf SrcSpan #

Get the parentheses directly before and after (for parenthesized application)