ghc-lib-parser-8.10.2.20200916: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

CostCentreState

Synopsis

Documentation

data CostCentreState Source #

Per-module state for tracking cost centre indices.

See documentation of cc_flavour for more details.

newCostCentreState :: CostCentreState Source #

Initialize cost centre state.

data CostCentreIndex Source #

An index into a given cost centre module,name,flavour set

Instances
Eq CostCentreIndex Source # 
Instance details

Defined in CostCentreState

Data CostCentreIndex Source # 
Instance details

Defined in CostCentreState

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CostCentreIndex -> c CostCentreIndex #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CostCentreIndex #

toConstr :: CostCentreIndex -> Constr #

dataTypeOf :: CostCentreIndex -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CostCentreIndex) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CostCentreIndex) #

gmapT :: (forall b. Data b => b -> b) -> CostCentreIndex -> CostCentreIndex #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CostCentreIndex -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CostCentreIndex -> r #

gmapQ :: (forall d. Data d => d -> u) -> CostCentreIndex -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CostCentreIndex -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CostCentreIndex -> m CostCentreIndex #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CostCentreIndex -> m CostCentreIndex #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CostCentreIndex -> m CostCentreIndex #

Ord CostCentreIndex Source # 
Instance details

Defined in CostCentreState

Binary CostCentreIndex Source # 
Instance details

Defined in CostCentreState

getCCIndex :: FastString -> CostCentreState -> (CostCentreIndex, CostCentreState) Source #

Get a new index for a given cost centre name.