ghc-7.8.2: The GHC API

Safe Haskell | None
Language | Haskell98

TcClassDcl

# Documentation

tcClassSigs :: Name -> [LSig Name] -> LHsBinds Name -> TcM ([TcMethInfo], NameEnv Type)

tcClassDecl2 :: LTyClDecl Name -> TcM (LHsBinds Id)

findMethodBind :: Name -> LHsBinds Name -> Maybe ((Origin, LHsBind Name), SrcSpan)

instantiateMethod :: Class -> Id -> [TcType] -> TcType

tcInstanceMethodBody :: SkolemInfo -> [TcTyVar] -> [EvVar] -> Id -> TcSigInfo -> TcSpecPrags -> (Origin, LHsBind Name) -> TcM (Origin, LHsBind Id)

tcClassMinimalDef :: Name -> [LSig Name] -> [TcMethInfo] -> TcM ClassMinimalDef

type HsSigFun = NameEnv (LHsType Name)

mkHsSigFun :: [LSig Name] -> HsSigFun

lookupHsSig :: HsSigFun -> Name -> Maybe (LHsType Name)

emptyHsSigs :: HsSigFun

tcMkDeclCtxt :: TyClDecl Name -> SDoc

tcAddDeclCtxt :: TyClDecl Name -> TcM a -> TcM a

badMethodErr :: Outputable a => a -> Name -> SDoc