ghc-7.4.2: The GHC API

Safe Haskell | None

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] -> [LVectDecl TcId] -> [LTcSpecPrag] -> [LForeignDecl TcId] -> TcM ([Id], Bag EvBind, Bag (LHsBind Id), [LForeignDecl Id], [LTcSpecPrag], [LRuleDecl Id], [LVectDecl Id])

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

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

mkZonkTcTyVar :: (TcTyVar -> TcM Type) -> (TcTyVar -> Type) -> TcTyVar -> TcM TcType

zonkId :: TcId -> TcM TcId

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