ghc-7.7.20130829: The GHC API

Safe HaskellNone

Demand

Documentation

data UseDmd Source

Constructors

UCall Count UseDmd 
UProd [MaybeUsed] 
UHead 
Used 

data Count Source

Constructors

One 
Many 

type Demand = JointDmdSource

mkProdDmd :: [JointDmd] -> CleanDemandSource

oneifyDmd :: JointDmd -> JointDmdSource

toCleanDmd :: (CleanDemand -> e -> (DmdType, e)) -> Demand -> e -> (DmdType, e)Source

absDmd :: JointDmdSource

topDmd :: JointDmdSource

botDmd :: JointDmdSource

seqDmd :: JointDmdSource

lubDmd :: JointDmd -> JointDmd -> JointDmdSource

bothDmd :: JointDmd -> JointDmd -> JointDmdSource

isTopDmd :: JointDmd -> BoolSource

isBotDmd :: JointDmd -> BoolSource

isAbsDmd :: JointDmd -> BoolSource

isSeqDmd :: JointDmd -> BoolSource

seqDemand :: JointDmd -> ()Source

seqDemandList :: [JointDmd] -> ()Source

evalDmd :: JointDmdSource

deferDmd :: JointDmd -> JointDmdSource

splitProdDmd :: Arity -> JointDmd -> [JointDmd]Source

splitProdDmd_maybe :: JointDmd -> Maybe [JointDmd]Source

argOneShots :: JointDmd -> [Bool]Source

isSingleUsed :: JointDmd -> BoolSource