ghc-7.8.20140130: The GHC API

Safe HaskellNone
LanguageHaskell98

Demand

Documentation

data UseDmdSource

Constructors

UCall Count UseDmd 
UProd [MaybeUsed] 
UHead 
Used 

data CountSource

Constructors

One 
Many 

type Demand = JointDmdSource

mkProdDmd :: [JointDmd] -> CleanDemandSource

oneifyDmd :: JointDmd -> JointDmdSource

toCleanDmd :: Demand -> (CleanDemand, DeferAndUseM)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

type BothDmdArg = (DmdEnv, Termination ())Source

type DmdResult = Termination CPRResultSource

seqDemand :: JointDmd -> ()Source

seqDemandList :: [JointDmd] -> ()Source

evalDmd :: JointDmdSource

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

splitProdDmd_maybe :: JointDmd -> Maybe [JointDmd]Source

isSingleUsed :: JointDmd -> BoolSource