ghc-lib-0.20210228: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.ThToHs

Documentation

convertToHsExpr :: Origin -> SrcSpan -> Exp -> Either SDoc (LHsExpr GhcPs) Source #

convertToPat :: Origin -> SrcSpan -> Pat -> Either SDoc (LPat GhcPs) Source #

convertToHsDecls :: Origin -> SrcSpan -> [Dec] -> Either SDoc [LHsDecl GhcPs] Source #

convertToHsType :: Origin -> SrcSpan -> Type -> Either SDoc (LHsType GhcPs) Source #