- data Class
- type ClassOpItem = (Id, DefMeth)
- data DefMeth
- = NoDefMeth
- | DefMeth Name
- | GenDefMeth Name
- defMethSpecOfDefMeth :: DefMeth -> DefMethSpec
- type FunDep a = ([a], [a])
- pprFundeps :: Outputable a => [FunDep a] -> SDoc
- pprFunDep :: Outputable a => FunDep a -> SDoc
- mkClass :: Name -> [TyVar] -> [([TyVar], [TyVar])] -> [PredType] -> [Id] -> [TyCon] -> [ClassOpItem] -> TyCon -> Class
- classTyVars :: Class -> [TyVar]
- classArity :: Class -> Arity
- classKey :: Class -> Unique
- className :: Class -> Name
- classATs :: Class -> [TyCon]
- classTyCon :: Class -> TyCon
- classMethods :: Class -> [Id]
- classOpItems :: Class -> [ClassOpItem]
- classBigSig :: Class -> ([TyVar], [PredType], [Id], [ClassOpItem])
- classExtraBigSig :: Class -> ([TyVar], [FunDep TyVar], [PredType], [Id], [TyCon], [ClassOpItem])
- classTvsFds :: Class -> ([TyVar], [FunDep TyVar])
- classSCTheta :: Class -> [PredType]
- classAllSelIds :: Class -> [Id]
- classSCSelId :: Class -> Int -> Id
Documentation
type ClassOpItem = (Id, DefMeth)Source
defMethSpecOfDefMeth :: DefMeth -> DefMethSpecSource
Convert a DefMethSpec
to a DefMeth
, which discards the name field in
the DefMeth
constructor of the DefMeth
.
pprFundeps :: Outputable a => [FunDep a] -> SDocSource
pprFunDep :: Outputable a => FunDep a -> SDocSource
mkClass :: Name -> [TyVar] -> [([TyVar], [TyVar])] -> [PredType] -> [Id] -> [TyCon] -> [ClassOpItem] -> TyCon -> ClassSource
classTyVars :: Class -> [TyVar]Source
classArity :: Class -> AritySource
classTyCon :: Class -> TyConSource
classMethods :: Class -> [Id]Source
classOpItems :: Class -> [ClassOpItem]Source
classBigSig :: Class -> ([TyVar], [PredType], [Id], [ClassOpItem])Source
classExtraBigSig :: Class -> ([TyVar], [FunDep TyVar], [PredType], [Id], [TyCon], [ClassOpItem])Source
classSCTheta :: Class -> [PredType]Source
classAllSelIds :: Class -> [Id]Source
classSCSelId :: Class -> Int -> IdSource