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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.FromGHC.Stmts

Description

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

Documentation

trfDoStmt :: TransformName n r => Located (Stmt n (LHsExpr n)) -> Trf (Ann UStmt (Dom r) RangeStage) Source #

trfDoStmt' :: TransformName n r => Stmt n (Located (HsExpr n)) -> Trf (UStmt' UExpr (Dom r) RangeStage) Source #

gTrfDoStmt' :: TransformName n r => (Located (ge n) -> Trf (Ann ae (Dom r) RangeStage)) -> Stmt n (Located (ge n)) -> Trf (UStmt' ae (Dom r) RangeStage) Source #

trfListCompStmts :: TransformName n r => [Located (Stmt n (LHsExpr n))] -> Trf (AnnListG UListCompBody (Dom r) RangeStage) Source #

trfListCompStmt :: TransformName n r => Located (Stmt n (LHsExpr n)) -> Trf [Ann UCompStmt (Dom r) RangeStage] Source #

extractActualStmt :: TransformName n r => Stmt n (LHsExpr n) -> Trf (Ann UCompStmt (Dom r) RangeStage) Source #