ghc-7.8.4: The GHC API

Safe Haskell | None
Language | Haskell98

RdrHsSyn

# Documentation

mkHsOpApp :: LHsExpr id -> id -> LHsExpr id -> HsExpr id

mkHsIntegral :: Integer -> PostTcType -> HsOverLit id

mkHsFractional :: FractionalLit -> PostTcType -> HsOverLit id

mkHsIsString :: FastString -> PostTcType -> HsOverLit id

mkHsDo :: HsStmtContext Name -> [ExprLStmt id] -> HsExpr id

mkSpliceDecl :: LHsExpr RdrName -> HsDecl RdrName

mkRoleAnnotDecl :: SrcSpan -> Located RdrName -> [Located (Maybe FastString)] -> P (LRoleAnnotDecl RdrName)

mkClassDecl :: SrcSpan -> Located (Maybe (LHsContext RdrName), LHsType RdrName) -> Located [Located (FunDep RdrName)] -> Located (OrdList (LHsDecl RdrName)) -> P (LTyClDecl RdrName)

mkTyData :: SrcSpan -> NewOrData -> Maybe CType -> Located (Maybe (LHsContext RdrName), LHsType RdrName) -> Maybe (LHsKind RdrName) -> [LConDecl RdrName] -> Maybe [LHsType RdrName] -> P (LTyClDecl RdrName)

mkDataFamInst :: SrcSpan -> NewOrData -> Maybe CType -> Located (Maybe (LHsContext RdrName), LHsType RdrName) -> Maybe (LHsKind RdrName) -> [LConDecl RdrName] -> Maybe [LHsType RdrName] -> P (LInstDecl RdrName)

mkTySynonym :: SrcSpan -> LHsType RdrName -> LHsType RdrName -> P (LTyClDecl RdrName)

mkTyFamInstEqn :: LHsType RdrName -> LHsType RdrName -> P (TyFamInstEqn RdrName)

mkTyFamInst :: SrcSpan -> LTyFamInstEqn RdrName -> P (LInstDecl RdrName)

mkFamDecl :: SrcSpan -> FamilyInfo RdrName -> LHsType RdrName -> Maybe (LHsKind RdrName) -> P (LTyClDecl RdrName)

splitCon :: LHsType RdrName -> P (Located RdrName, HsConDeclDetails RdrName)

mkInlinePragma :: (InlineSpec, RuleMatchInfo) -> Maybe Activation -> InlinePragma

mkRecConstrOrUpdate :: LHsExpr RdrName -> SrcSpan -> ([HsRecField RdrName (LHsExpr RdrName)], Bool) -> P (HsExpr RdrName)

mkTyLit :: Located HsTyLit -> P (LHsType RdrName)

mkTyClD :: LTyClDecl n -> LHsDecl n

mkInstD :: LInstDecl n -> LHsDecl n

cvBindGroup :: OrdList (LHsDecl RdrName) -> HsValBinds RdrName

cvBindsAndSigs :: OrdList (LHsDecl RdrName) -> (LHsBinds RdrName, [LSig RdrName], [LFamilyDecl RdrName], [LTyFamInstDecl RdrName], [LDataFamInstDecl RdrName], [LDocDecl])

cvTopDecls :: OrdList (LHsDecl RdrName) -> [LHsDecl RdrName]

placeHolderPunRhs :: LHsExpr RdrName

mkImport :: CCallConv -> Safety -> (Located FastString, Located RdrName, LHsType RdrName) -> P (HsDecl RdrName)

parseCImport :: CCallConv -> Safety -> FastString -> String -> Maybe ForeignImport

mkExport :: CCallConv -> (Located FastString, Located RdrName, LHsType RdrName) -> P (HsDecl RdrName)

mkExtName :: RdrName -> CLabelString

mkGadtDecl :: [Located RdrName] -> LHsType RdrName -> [ConDecl RdrName]

mkSimpleConDecl :: Located RdrName -> [LHsTyVarBndr RdrName] -> LHsContext RdrName -> HsConDeclDetails RdrName -> ConDecl RdrName

mkDeprecatedGadtRecordDecl :: SrcSpan -> Located RdrName -> [ConDeclField RdrName] -> LHsType RdrName -> P (LConDecl RdrName)

checkPrecP :: Located Int -> P Int

checkContext :: LHsType RdrName -> P (LHsContext RdrName)

checkPattern :: SDoc -> LHsExpr RdrName -> P (LPat RdrName)

bang_RDR :: RdrName

checkPatterns :: SDoc -> [LHsExpr RdrName] -> P [LPat RdrName]

checkMonadComp :: P (HsStmtContext Name)

checkCommand :: LHsExpr RdrName -> P (LHsCmd RdrName)

checkValDef :: SDoc -> LHsExpr RdrName -> Maybe (LHsType RdrName) -> Located (GRHSs RdrName (LHsExpr RdrName)) -> P (HsBind RdrName)

checkValSig :: LHsExpr RdrName -> LHsType RdrName -> P (Sig RdrName)

checkDoAndIfThenElse :: LHsExpr RdrName -> Bool -> LHsExpr RdrName -> Bool -> LHsExpr RdrName -> P ()

checkRecordSyntax :: Outputable a => Located a -> P (Located a)

parseErrorSDoc :: SrcSpan -> SDoc -> P a

data ImpExpSubSpec

Constructors

ImpExpAbs |
ImpExpAll |
ImpExpList [RdrName] |

mkModuleImpExp :: RdrName -> ImpExpSubSpec -> IE RdrName

mkTypeImpExp :: Located RdrName -> P (Located RdrName)