GHC.ThToHs

ghc-9.14.0.20251028: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.ThToHs

# Documentation

convertToHsExpr :: EnumSet Extension -> Origin -> SrcSpan -> Exp -> Either RunSpliceFailReason (LHsExpr GhcPs) Source #

convertToPat :: EnumSet Extension -> Origin -> SrcSpan -> Pat -> Either RunSpliceFailReason (LPat GhcPs) Source #

convertToHsDecls :: EnumSet Extension -> Origin -> SrcSpan -> [Dec] -> Either RunSpliceFailReason [LHsDecl GhcPs] Source #

convertToHsType :: EnumSet Extension -> Origin -> SrcSpan -> Type -> Either RunSpliceFailReason (LHsType GhcPs) Source #

thRdrNameGuesses :: Bool -> Name -> [RdrName] Source #