ghc-7.6.3: 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 -> TcSigInfo -> TcSpecPrags -> LHsBind Name -> TcM (LHsBind Id)

type HsSigFun = NameEnv (LHsType Name)

mkHsSigFun :: [LSig Name] -> HsSigFun

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

emptyHsSigs :: HsSigFun

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

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