ghc-7.4.2: The GHC API

Safe Haskell | None

TcClassDcl

# Documentation

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

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

findMethodBind :: Name -> LHsBinds Name -> Maybe (LHsBind Name)

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

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

mkGenericDefMethBind :: Class -> [Type] -> Id -> Name -> TcM (LHsBind Name)

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

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