CostCentreState

ghc-8.6.3: The GHC API

Safe Haskell | None
Language | Haskell2010

CostCentreState

Synopsis

- data CostCentreState
- newCostCentreState :: CostCentreState
- data CostCentreIndex
- unCostCentreIndex :: CostCentreIndex -> Int
- getCCIndex :: FastString -> CostCentreState -> (CostCentreIndex, CostCentreState)

# Documentation

data CostCentreState #

Per-module state for tracking cost centre indices.

See documentation of `cc_flavour` for more details.

newCostCentreState :: CostCentreState #

Initialize cost centre state.

data CostCentreIndex #

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

Instances

Eq CostCentreIndex # |
Instance details Defined in CostCentreState Methods (==) :: CostCentreIndex -> CostCentreIndex -> Bool # (/=) :: CostCentreIndex -> CostCentreIndex -> Bool #
Data CostCentreIndex # |
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 Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CostCentreIndex Source # toConstr :: CostCentreIndex -> Constr Source # dataTypeOf :: CostCentreIndex -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CostCentreIndex) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CostCentreIndex) Source # gmapT :: (forall b. Data b => b -> b) -> CostCentreIndex -> CostCentreIndex Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CostCentreIndex -> r Source # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CostCentreIndex -> r Source # gmapQ :: (forall d. Data d => d -> u) -> CostCentreIndex -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> CostCentreIndex -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CostCentreIndex -> m CostCentreIndex Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CostCentreIndex -> m CostCentreIndex Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CostCentreIndex -> m CostCentreIndex Source #
Ord CostCentreIndex # |
Instance details Defined in CostCentreState Methods compare :: CostCentreIndex -> CostCentreIndex -> Ordering # (<) :: CostCentreIndex -> CostCentreIndex -> Bool # (<=) :: CostCentreIndex -> CostCentreIndex -> Bool # (>) :: CostCentreIndex -> CostCentreIndex -> Bool # (>=) :: CostCentreIndex -> CostCentreIndex -> Bool # max :: CostCentreIndex -> CostCentreIndex -> CostCentreIndex # min :: CostCentreIndex -> CostCentreIndex -> CostCentreIndex #
Binary CostCentreIndex # |
Instance details Defined in CostCentreState Methods put_ :: BinHandle -> CostCentreIndex -> IO () # put :: BinHandle -> CostCentreIndex -> IO (Bin CostCentreIndex) # get :: BinHandle -> IO CostCentreIndex #

unCostCentreIndex :: CostCentreIndex -> Int #

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

Get a new index for a given cost centre name.