TcBinds

ghc-7.6.3: The GHC API

Safe Haskell | None

TcBinds

# Documentation

tcLocalBinds :: HsLocalBinds Name -> TcM thing -> TcM (HsLocalBinds TcId, thing)

tcTopBinds :: HsValBinds Name -> TcM (TcGblEnv, TcLclEnv)

tcRecSelBinds :: HsValBinds Name -> TcM TcGblEnv

tcHsBootSigs :: HsValBinds Name -> TcM [Id]

tcPolyBinds :: TopLevelFlag -> TcSigFun -> PragFun -> RecFlag -> RecFlag -> [LHsBind Name] -> TcM (LHsBinds TcId, [TcId], TopLevelFlag)

tcPolyCheck :: TcSigInfo -> PragFun -> RecFlag -> [LHsBind Name] -> TcM (LHsBinds TcId, [TcId], TopLevelFlag)

type PragFun = Name -> [LSig Name]

tcSpecPrags :: Id -> [LSig Name] -> TcM [LTcSpecPrag]

tcVectDecls :: [LVectDecl Name] -> TcM [LVectDecl TcId]

mkPragFun :: [LSig Name] -> LHsBinds Name -> PragFun

data TcSigInfo

Constructors

TcSigInfo |
Fields sig_id :: TcId sig_tvs :: [(Maybe Name, TcTyVar)] sig_theta :: TcThetaType sig_tau :: TcSigmaType sig_loc :: SrcSpan

Instances

Outputable TcSigInfo |

type TcSigFun = Name -> Maybe TcSigInfo

instTcTySig :: LHsType Name -> TcType -> Name -> TcM TcSigInfo

instTcTySigFromId :: SrcSpan -> Id -> TcM TcSigInfo

badBootDeclErr :: MsgDoc