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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.BackendGHC.Binds

Description

Functions that convert the value and function definitions of the GHC AST to corresponding elements in the Haskell-tools AST representation

Documentation

trfBind' :: forall n r p. (TransformName n r, n ~ GhcPass p) => HsBind n -> Trf (UValueBind (Dom r) RangeStage) Source #

trfMatch :: (TransformName n r, n ~ GhcPass p) => IdP n -> Located (Match n (LHsExpr n)) -> Trf (Ann UMatch (Dom r) RangeStage) Source #

trfMatch' :: (TransformName n r, n ~ GhcPass p) => IdP n -> Match n (LHsExpr n) -> Trf (UMatch (Dom r) RangeStage) Source #

trfMatchLhs :: forall n r p. (TransformName n r, n ~ GhcPass p) => IdP n -> HsMatchContext (NameOrRdrName (IdP n)) -> [LPat n] -> Trf (Ann UMatchLhs (Dom r) RangeStage) Source #

trfRhss :: (TransformName n r, n ~ GhcPass p) => [Located (GRHS n (LHsExpr n))] -> Trf (Ann URhs (Dom r) RangeStage) Source #

trfLocalSig :: forall n r p. (TransformName n r, n ~ GhcPass p) => Located (Sig n) -> Trf (Ann ULocalBind (Dom r) RangeStage) Source #

trfTypeSig' :: forall n r p. (TransformName n r, n ~ GhcPass p) => Sig n -> Trf (UTypeSignature (Dom r) RangeStage) Source #