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

GHC.ThToHs

Documentation

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

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

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

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