ghc-7.0.3: The GHC API

TcHsSyn

# Documentation

mkHsConApp :: DataCon -> [Type] -> [HsExpr Id] -> LHsExpr Id

mkHsDictLet :: TcEvBinds -> LHsExpr Id -> LHsExpr Id

mkHsApp :: LHsExpr name -> LHsExpr name -> LHsExpr name

hsLitType :: HsLit -> TcType

hsLPatType :: OutPat Id -> Type

hsPatType :: Pat Id -> Type

mkHsAppTy :: LHsType name -> LHsType name -> LHsType name

mkSimpleHsAlt :: LPat id -> LHsExpr id -> LMatch id

nlHsIntLit :: Integer -> LHsExpr id

shortCutLit :: OverLitVal -> TcType -> Maybe (HsExpr TcId)

hsOverLitName :: OverLitVal -> Name

type TcId = Id

type TcIdSet = IdSet

zonkTopDecls :: Bag EvBind -> LHsBinds TcId -> NameSet -> [LRuleDecl TcId] -> [LTcSpecPrag] -> [LForeignDecl TcId] -> TcM ([Id], Bag EvBind, Bag (LHsBind Id), [LForeignDecl Id], [LTcSpecPrag], [LRuleDecl Id])

zonkTopExpr :: HsExpr TcId -> TcM (HsExpr Id)

zonkTopLExpr :: LHsExpr TcId -> TcM (LHsExpr Id)

zonkId :: TcId -> TcM TcId

zonkTopBndrs :: [TcId] -> TcM [Id]