on package:ghc-lib-parser
Make a
Demand evaluated at-most-once.
True when the signature indicates all arguments are boxed
Info about a lambda-bound variable, if the Id is one
Like
finally, but only performs the final action if there was
an exception raised by the computation.
onJust x m f applies f to the value inside the Just or
returns the default.
Utility function to go from a singleton list to it's element.
Wether or not the argument is a singleton list is only checked in
debug builds.
The flag only affects the non-interactive GHC
The flag only affects the interactive GHC
Occurs exactly once (per branch), not inside a rule
If the Id is a lambda-bound variable then it may have
lambda-bound variable info. Sometimes we know whether the lambda
binding this variable is a "one-shot" lambda; that is, whether it is
applied at most once.
This information may be useful in optimisation, as computations may
safely be floated inside such a lambda without risk of duplicating
work.
See also Note [OneShotInfo overview] above.