Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data ClassDefaults = ClassDefaults {}
- type DefaultEnv = TyConEnv ClassDefaults
- emptyDefaultEnv :: DefaultEnv
- isEmptyDefaultEnv :: DefaultEnv -> Bool
- defaultEnv :: [ClassDefaults] -> DefaultEnv
- unitDefaultEnv :: ClassDefaults -> DefaultEnv
- lookupDefaultEnv :: DefaultEnv -> Name -> Maybe ClassDefaults
- filterDefaultEnv :: (ClassDefaults -> Bool) -> DefaultEnv -> DefaultEnv
- defaultList :: DefaultEnv -> [ClassDefaults]
- plusDefaultEnv :: DefaultEnv -> DefaultEnv -> DefaultEnv
Documentation
data ClassDefaults Source #
ClassDefaults | |
|
Instances
Outputable ClassDefaults Source # | |
Defined in GHC.Types.DefaultEnv ppr :: ClassDefaults -> SDoc Source # | |
Data ClassDefaults Source # | |
Defined in GHC.Types.DefaultEnv gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ClassDefaults -> c ClassDefaults # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ClassDefaults # toConstr :: ClassDefaults -> Constr # dataTypeOf :: ClassDefaults -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ClassDefaults) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ClassDefaults) # gmapT :: (forall b. Data b => b -> b) -> ClassDefaults -> ClassDefaults # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ClassDefaults -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ClassDefaults -> r # gmapQ :: (forall d. Data d => d -> u) -> ClassDefaults -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ClassDefaults -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ClassDefaults -> m ClassDefaults # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ClassDefaults -> m ClassDefaults # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ClassDefaults -> m ClassDefaults # |
type DefaultEnv = TyConEnv ClassDefaults Source #
Default environment mapping class TyCon
s to their default type lists
isEmptyDefaultEnv :: DefaultEnv -> Bool Source #
defaultEnv :: [ClassDefaults] -> DefaultEnv Source #
lookupDefaultEnv :: DefaultEnv -> Name -> Maybe ClassDefaults Source #
filterDefaultEnv :: (ClassDefaults -> Bool) -> DefaultEnv -> DefaultEnv Source #
defaultList :: DefaultEnv -> [ClassDefaults] Source #
plusDefaultEnv :: DefaultEnv -> DefaultEnv -> DefaultEnv Source #