Moduleghc-9.10.3GHC2021
GHC.Types.Name.Set
- 7 types
- 38 values
- Packageghc-9.10.3
- Exports45
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceSet.hs
Names set type
1 declarationManipulating these sets
True if there is a non-empty intersection.
s1 intersectsNameSet s2 doesn't compute s2 if s1 is empty
Get the elements of a NameSet with some stable ordering. This only works for Names that originate in the source code or have been tidied. See Note [Deterministic UniqFM] to learn about nondeterminism
Free variables
1 declarationManipulating sets of free variables
Defs and uses
4 declarationsA set of names that are defined somewhere
A set of names that are used somewhere
(Just ds, us) => The use of any member of the ds
implies that all the us are used too.
Also, us may mention ds.
Nothing => Nothing is defined in this group, but
nevertheless all the uses are essential.
Used for instance declarations, for example
Manipulating defs and uses
Non-CAFfy names
1 declarationIds which have no CAF references. This is a result of analysis of C--.
It is always safe to use an empty NonCaffySet. TODO Refer to Note.
Constructors
Instances2Semigroup, Monoid
Semigroup NonCaffySetDefined in ghc-9.10.3 · GHC.Types.Name.SetMonoid NonCaffySetDefined in ghc-9.10.3 · GHC.Types.Name.Set