ghc-8.2.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

Demand

Synopsis

Documentation

data UseDmd #

Constructors

UCall Count UseDmd 
UProd [ArgUse] 
UHead 
Used 

data Count #

Instances

type Demand = JointDmd ArgStr ArgUse #

type CleanDemand = JointDmd StrDmd UseDmd #

getStrDmd :: JointDmd s u -> s #

getUseDmd :: JointDmd s u -> u #

toCleanDmd :: Demand -> Type -> (DmdShell, CleanDemand) #

type BothDmdArg = (DmdEnv, Termination ()) #

type DmdResult = Termination CPRResult #

seqDemand :: Demand -> () #

postProcessUnsat :: DmdShell -> DmdType -> DmdType #

useCount :: Use u -> Count #

zapUsedOnceDemand :: Demand -> Demand #

Remove all 1* information (but not C1 information) from the demand

zapUsedOnceSig :: StrictSig -> StrictSig #

Remove all 1* information (but not C1 information) from the strictness signature